/* ==========================================================================
   Running Etc. theme — site styles
   Bootstrap colors, fonts and the dark color mode come from
   css/skins/default.css, compiled from css/presets/default. This file holds
   the site's own layout and components. Restyle a build by changing the
   variables below first.
   ========================================================================== */

/* Set on the wrapper, not :root: the color mode (data-bs-theme) is on the
   wrapper, and variables resolve where they're defined. */
.theme-runningetc {
    --runningetc-header-height: 72px;
    --runningetc-header-bg: var(--bs-body-bg);
    --runningetc-header-color: var(--bs-body-color);
    --runningetc-header-border: var(--bs-border-color-translucent);
    /* Small text in the brand color uses the link color, which the style guide
       checks for contrast; the raw primary may be too light for text. */
    --runningetc-nav-active: var(--bs-link-color);
    --runningetc-hello-bg: var(--bs-primary);
    --runningetc-hello-color: #fff;
    --runningetc-footer-bg: var(--bs-dark-accent, #0f172a);
    --runningetc-footer-color: #cbd5e1;
    --runningetc-footer-link: #fff;
    --runningetc-footer-legal-bg: rgba(0, 0, 0, 0.25);
    --runningetc-panel-bg: var(--bs-tertiary-bg);
    --runningetc-radius: 0.75rem;
    --runningetc-section-y: 4rem;
    --runningetc-hero-y: 5rem;
}

/* Bootstrap applies text and background colors on <body>, which sits
   outside the wrapper. Apply them again here so the color mode takes effect. */
.theme-runningetc {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

/* Fills the area outside the wrapper (overscroll, short pages). */
body.runningetc-body--dark {
    background-color: #0b1120;
}

/* Links inside running text are underlined, so they don't rely on color
   alone (WCAG 1.4.1). Navigation, buttons and standalone links stay plain. */
.theme-runningetc :is(main, footer) :is(p, li, td, dd, blockquote, figcaption) a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* ---- Editor styles (page_theme.php getThemeEditorClasses) ---- */

.runningetc-display {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
}

.runningetc-section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.runningetc-section-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--bs-primary);
}

.text-center .runningetc-section-heading::after,
.runningetc-section-heading.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.runningetc-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bs-link-color);
}

/* Outline buttons: text in the link color (contrast-checked), not the raw primary. */
.theme-runningetc .btn-outline-primary {
    --bs-btn-color: var(--bs-link-color);
}

.runningetc-panel {
    background: var(--runningetc-panel-bg);
    border-radius: var(--runningetc-radius);
    box-shadow: var(--runningetc-panel-shadow, none);
    padding: 2rem;
}

/* Dark mode: the primary color is too dark for text on a dark page. */
.theme-runningetc[data-bs-theme="dark"] .runningetc-eyebrow,
.theme-runningetc[data-bs-theme="dark"] .runningetc-header__menu .nav-link.active {
    color: var(--bs-primary-text-emphasis);
}

.theme-runningetc[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-color: var(--bs-primary-text-emphasis);
    --bs-btn-border-color: var(--bs-primary-text-emphasis);
}

/* ---- Skip link ---- */

.runningetc-skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1100;
    padding: 0.5rem 1rem;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* ---- Header ---- */

.runningetc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: var(--runningetc-header-height);
    background: var(--runningetc-header-bg);
    color: var(--runningetc-header-color);
    border-bottom: 1px solid var(--runningetc-header-border);
    padding: 0.5rem 0;
    transition: box-shadow 0.2s ease;
}

.runningetc-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.runningetc-header__brand {
    margin: 0;
    padding: 0;
}

.runningetc-header__brand img {
    display: block;
    max-height: 56px;
    width: auto;
}

.runningetc-header__logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 60vw;
}

.runningetc-header__site-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: inherit;
}

.runningetc-header__menu .nav {
    flex-wrap: wrap;
}

.runningetc-header__menu .nav-link {
    color: inherit;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
}

.runningetc-header__menu .nav-link:hover,
.runningetc-header__menu .nav-link:focus,
.runningetc-header__menu .nav-link.active,
.runningetc-header__menu .nav-selected > a {
    color: var(--runningetc-nav-active);
}

.runningetc-header__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: 1rem;
}

.runningetc-header__toggle {
    border: 0;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.runningetc-header__toggle:focus {
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.runningetc-header__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.runningetc-header__toggle:not(.collapsed) .runningetc-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.runningetc-header__toggle:not(.collapsed) .runningetc-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.runningetc-header__toggle:not(.collapsed) .runningetc-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
    .runningetc-header__nav-collapse {
        padding: 0.75rem 0;
    }

    .runningetc-header__menu .nav {
        flex-direction: column;
    }

    .runningetc-header__cta {
        margin: 0.75rem 0 0;
    }
}

/* ---- Hello Bar ---- */

.runningetc-hello-bar {
    background: var(--runningetc-hello-bg);
    color: var(--runningetc-hello-color);
    font-weight: 600;
    text-align: center;
}

.runningetc-hello-bar__inner {
    padding: 0.6rem 1rem;
}

.runningetc-hello-bar p:last-child {
    margin-bottom: 0;
}

.runningetc-hello-bar a {
    color: inherit;
    text-decoration: underline;
}

.theme-runningetc .ccm-block-express-form .mb-3 > .form-label { grid-column: 1; grid-row: 1; }
.theme-runningetc .ccm-block-express-form .mb-3 > .form-control,
.theme-runningetc .ccm-block-express-form .mb-3 > textarea,
.theme-runningetc .ccm-block-express-form .mb-3 > div { grid-column: 2; grid-row: 1; }
/* "Required" becomes a blue asterisk after the label, as on the old forms (still read out by screen readers). */
.theme-runningetc .ccm-block-express-form .mb-3 > .text-muted { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-runningetc .ccm-block-express-form .mb-3:has(> .text-muted) > .form-label::after { content: " *"; color: #2a6db3; }
.theme-runningetc .ccm-block-express-form .mb-3 { position: relative; }

/* ---- Gift certificate (Community Store product block), laid out like the old form ---- */
.runningetc-store-product .store-product-block > .row:first-of-type { display: flex; flex-direction: column; align-items: stretch; margin: 0; }
.runningetc-store-product .store-product-details { display: contents; }
.runningetc-store-product .store-product-details > * { order: 2; }
.theme-runningetc .runningetc-store-product .store-product-details > .store-product-name { order: 0; color: var(--re-bar); font-size: 22px; text-transform: uppercase; margin: 10px 0 6px; }
.runningetc-store-product .store-product-image { order: 1; width: auto; padding: 0; }
.runningetc-store-product .store-product-image > div:first-child { display: none; }
.runningetc-store-product .store-product-primary-image { margin: 0 0 10px !important; }
.runningetc-store-product .store-product-primary-image, .runningetc-store-product .store-product-primary-image a { display: block; text-align: left !important; }
.runningetc-store-product .store-product-primary-image img { width: 211px; }
.runningetc-store-product .store-product-customer-price-entry,
.runningetc-store-product .store-product-option-group { display: grid; grid-template-columns: minmax(140px, 180px) minmax(0, 225px); gap: 0 10px; margin: 0 0 4px !important; align-items: start; }
.runningetc-store-product label { font-weight: 700; font-size: 14px; color: #000; padding-top: 4px; }
.runningetc-store-product .store-product-option-group:has([required]) label::after,
.runningetc-store-product .store-product-customer-price-label::after { content: " *"; color: #2a6db3; }
.runningetc-store-product .input-group { width: 100%; max-width: none; padding: 0; }
.runningetc-store-product .form-control { font-size: 14px; padding: 3px 8px; border-radius: 4px; }
.runningetc-store-product .form-control::placeholder { color: transparent; }
.runningetc-store-product textarea.form-control { min-height: 110px; }
.runningetc-store-product .store-min-max { grid-column: 2; font-size: 11px; color: #666; }
.runningetc-store-product .store-product-button { margin-top: 8px; }
.theme-runningetc .runningetc-store-product .store-btn-add-to-cart { background: #f5f5f5; color: #333; border: 1px solid #ccc; font-size: 14px; padding: 5px 12px; }
.runningetc-store-product .store-product-detailed-description:empty, .runningetc-store-product .store-product-description:empty { display: none; }

.theme-runningetc a.store-btn-cart-modal-continue { color: #fff; }

/* ---- Footer ---- */

.runningetc-footer {
    background: var(--runningetc-footer-bg);
    color: var(--runningetc-footer-color);
    padding-top: 3rem;
    margin-top: 3rem;
}

.runningetc-footer a {
    color: var(--runningetc-footer-link);
}

.runningetc-footer a:hover {
    text-decoration: underline;
}

.runningetc-footer h2,
.runningetc-footer h3,
.runningetc-footer h4 {
    color: #fff;
    font-size: 1.1rem;
}

.runningetc-footer__logo img {
    display: block;
    max-height: 64px;
    max-width: 220px;
    width: auto;
}

.runningetc-footer__site-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

/* Atomik's skin pads every footer (div.theme-atomik footer). Scoped under
   the wrapper so these win. */
.theme-runningetc .runningetc-footer {
    padding: 3rem 0 0;
}

/* Landing pages: legal line only. */
.theme-runningetc .runningetc-footer--minimal {
    padding-top: 0;
}

.runningetc-footer--minimal .runningetc-footer__legal {
    margin-top: 0;
}

.runningetc-footer__legal {
    background: var(--runningetc-footer-legal-bg);
    font-size: 0.875rem;
    padding: 1.25rem 0;
    margin-top: 2rem;
}

.runningetc-footer__legal p {
    margin-bottom: 0.25rem;
}

.runningetc-footer__login {
    margin-top: 0.25rem;
}

/* ---- Containers (elements/containers/runningetc_*.php) ---- */

.runningetc-section {
    padding: var(--runningetc-section-y, 4rem) 0;
}

.runningetc-section--light {
    background: var(--runningetc-panel-bg);
}

.runningetc-section__title,
.runningetc-card-grid__title {
    margin-bottom: 2rem;
}

.runningetc-hero {
    padding: var(--runningetc-hero-y, 5rem) 0;
}

.runningetc-hero__media img,
.runningetc-split__image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--runningetc-radius);
}

/* Tall cut-outs (portrait PNGs) shouldn't stretch the hero. */
.runningetc-hero__media img {
    width: auto;
    max-width: 100%;
    max-height: var(--runningetc-hero-image-max, 560px);
    margin: 0 auto;
    object-fit: contain;
}

/* Background and text color come from Bootstrap's text-bg-primary class on the
   section, which picks black or white text for contrast with the primary. */
.runningetc-cta-band {
    text-align: center;
}

.runningetc-cta-band__inner {
    max-width: 52rem;
}

.runningetc-cta-band :is(h1, h2, h3, h4, p, .lead, a:not(.btn)) {
    color: inherit;
}

/* A primary button on the primary band would disappear: make it white with
   black text, which reads on any band color. */
.runningetc-cta-band .btn-primary {
    --bs-btn-bg: #fff;
    --bs-btn-color: #000;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-bg: #f1f1f1;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-border-color: #f1f1f1;
}

.runningetc-cta-band .btn-outline-primary {
    --bs-btn-color: currentColor;
    --bs-btn-border-color: currentColor;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-border-color: #fff;
}

.runningetc-section p:last-child {
    margin-bottom: 0;
}

/* ---- Block templates (blocks/*/templates) ---- */

/* Testimonial: quote_card */
.runningetc-quote-card {
    margin: 0;
}

.runningetc-quote-card__quote {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.runningetc-quote-card__quote p::before {
    content: "\201C";
}

.runningetc-quote-card__quote p::after {
    content: "\201D";
}

.runningetc-quote-card__person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.runningetc-quote-card__image img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.runningetc-quote-card__name,
.runningetc-quote-card__role {
    display: block;
}

/* Full body color: the 75% secondary color is too faint on tinted panels. */
.runningetc-quote-card__role {
    font-size: 0.9rem;
}

/* FAQ: collapsible */
.runningetc-faq__item {
    border-bottom: 1px solid var(--bs-border-color);
}

.runningetc-faq__question {
    cursor: pointer;
    font-weight: 700;
    padding: 1rem 2rem 1rem 0;
    position: relative;
    list-style: none;
}

.runningetc-faq__question::-webkit-details-marker {
    display: none;
}

.runningetc-faq__question::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--bs-primary);
}

.runningetc-faq__item[open] > .runningetc-faq__question::after {
    content: "\2212";
}

.runningetc-faq__question:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.runningetc-faq__answer {
    padding-bottom: 1rem;
}

/* ---- Edit mode ----
   Sticky positioning and shadows on the header cover Concrete's toolbar and
   area menus. Keep things static while editing. */

html.ccm-edit-mode .runningetc-header {
    position: static;
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .runningetc-header,
    .runningetc-header__toggle-bar {
        transition: none;
    }
}

/* ---- Error pages (page_not_found.php, application/themes/core/error.php) ---- */
.runningetc-error-page {
    text-align: center;
}

.runningetc-error-page__code {
    margin: 0;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--bs-primary);
    opacity: 0.2;
}

.runningetc-error-page__title {
    margin: 0.5rem 0 1rem;
}

.runningetc-error-page__text {
    max-width: 36rem;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
}

.runningetc-error-page__detail {
    max-width: 36rem;
    margin: 0 auto 2rem;
    color: var(--bs-secondary-color);
}

.runningetc-error-page__search {
    display: flex;
    gap: 0.5rem;
    max-width: 28rem;
    margin: 0 auto 2rem;
}

.runningetc-error-page__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* ==========================================================================
   Running Etc. look (the concrete5 5.6 site's custom.css, rebuilt)
   Tan-to-white page, grey bars, white boxed text, Montserrat.
   ========================================================================== */

.theme-runningetc {
    --re-bar: var(--brand-bar-grey, #595853);
    --re-footer: var(--brand-footer-grey, #666562);
    --re-tan: var(--brand-tan, #a5a397);
    --re-shadow: 5px 5px 5px #888888;
    --re-link: var(--brand-link-blue, #0048dc);
    min-height: 100vh;
    font-size: 16px;
    color: #666562;
    background: linear-gradient(to bottom, var(--re-tan) 0%, #ffffff 100%);
}

.theme-runningetc a { color: var(--re-link); }
.theme-runningetc :is(main, footer) :is(p, li, td, dd, blockquote, figcaption) a:not(.btn) { text-decoration: none; }
.theme-runningetc :is(main) :is(p, li, td, dd) a:not(.btn):hover { text-decoration: underline; }

.theme-runningetc h1, .theme-runningetc .h1 { font-size: 2rem; font-weight: 400; color: #ffffff; }
.theme-runningetc h2, .theme-runningetc .h2 { font-size: 22px; font-weight: 400; text-transform: uppercase; color: var(--re-bar); }
.theme-runningetc h3, .theme-runningetc .h3 { font-size: 20.4px; font-weight: 400; color: var(--re-bar); }
.theme-runningetc h4, .theme-runningetc h5, .theme-runningetc h6 { font-weight: 400; }
.theme-runningetc hr { border: 0; height: 3px; background: var(--re-bar); opacity: 1; margin: 5px 0; }
.theme-runningetc img { max-width: 100%; height: auto; }

/* ---- Header: grey strip, photo with the logo, grey menu bar ---- */

.theme-runningetc .runningetc-header {
    position: relative;
    padding: 0;
    min-height: 0;
    border: 0;
    background: var(--runningetc-banner, none) center / cover no-repeat, #333;
    color: #fff;
}

.runningetc-topbar { background: var(--re-bar); color: #fff; }
.runningetc-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.runningetc-topbar__text p { margin: 0; font-size: 16px; line-height: 1.3; }
.theme-runningetc .runningetc-topbar__text a { color: #fff; text-decoration: none; }
.runningetc-search { display: flex; align-items: center; gap: 4px; }
.runningetc-search__input { width: 210px; height: 34px; border: 1px solid #ccc; border-radius: 4px; padding: 4px 8px; background: #fff; color: #333; }
.runningetc-search__button { border: 0; background: none; color: #fff; padding: 0 4px; line-height: 1; }
.runningetc-topbar .ccm-search-block-form { display: flex; gap: 4px; align-items: center; margin: 0; }
.runningetc-topbar .ccm-search-block-form .ccm-search-block-text { width: 210px; height: 34px; }

.runningetc-banner__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 292px; padding: 1.25rem 0; }
.theme-runningetc .runningetc-header__brand img { max-height: none; width: 395px; max-width: 80vw; margin: 0 auto; filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.35)); }
.runningetc-banner__phones { display: none; text-align: center; }

.theme-runningetc .runningetc-navbar { background: var(--re-bar); padding: 0; }
.runningetc-navbar__inner { justify-content: center; }
.theme-runningetc .runningetc-header__nav-collapse { justify-content: center; }
.theme-runningetc .runningetc-nav { justify-content: center; flex-wrap: wrap; }
.theme-runningetc .runningetc-nav > .nav-item { position: relative; }
.theme-runningetc .runningetc-nav > .nav-item + .nav-item::before {
    content: ""; position: absolute; left: 0; top: 30%; height: 40%; border-left: 1px solid #fff;
}
.theme-runningetc .runningetc-header__menu .nav-link {
    color: #fff; font-weight: 400; font-size: 16px; line-height: 21px; padding: 15px 14px; background: none; border: 0;
}
.theme-runningetc .runningetc-header__menu .nav-link:hover,
.theme-runningetc .runningetc-header__menu .nav-link:focus,
.theme-runningetc .runningetc-header__menu .nav-link.active,
.theme-runningetc .runningetc-header__menu .nav-link.show { color: #d9d9d9; }
.theme-runningetc .runningetc-nav .dropdown-toggle::after { border-top-width: 4px; border-right-width: 4px; border-left-width: 4px; vertical-align: middle; margin-left: 2px; }
.theme-runningetc .runningetc-nav .dropdown-menu { border: 0; border-radius: 0; background: var(--brand-dropdown-grey, #acacac); padding: 5px 0; margin: 0; min-width: 11rem; }
.theme-runningetc .runningetc-nav .dropdown-item { color: #fff; font-size: 14px; padding: 4px 20px; }
.theme-runningetc .runningetc-nav .dropdown-item:hover,
.theme-runningetc .runningetc-nav .dropdown-item:focus,
.theme-runningetc .runningetc-nav .dropdown-item.active { background: var(--re-bar); color: #fff; }
@media (min-width: 768px) {
    .theme-runningetc .runningetc-nav .dropdown:hover > .dropdown-menu { display: block; }
}
.runningetc-navbar__toggle { display: none; }

.theme-runningetc .runningetc-main { padding-top: 25px; }

/* ---- Text boxes and page titles ---- */

.theme-runningetc .runningetc-box,
.theme-runningetc .runningetc-box--container {
    background: #fff; border: 2px solid #0f010c; color: #000; padding: 10px 20px; margin-bottom: 15px;
}
.theme-runningetc .runningetc-box-plain { background: #fff; padding: 10px 20px; margin-bottom: 15px; }
.theme-runningetc .runningetc-box-plain::after { content: ""; display: table; clear: both; }
.theme-runningetc .runningetc-box::after { content: ""; display: table; clear: both; }
.theme-runningetc .runningetc-box p:last-child { margin-bottom: 0; }
.theme-runningetc .runningetc-page-title,
.theme-runningetc .runningetc-page-title h1,
.theme-runningetc .runningetc-page-title h2 {
    color: #fff; font-size: 2rem; font-weight: 400; text-transform: none; margin-bottom: 0;
}
.theme-runningetc .runningetc-page-title { border-bottom: 3px solid var(--re-bar); padding-bottom: 8px; margin: 0 0 7px; }
.theme-runningetc .runningetc-page-title + * { margin-top: 0; }
.theme-runningetc .runningetc-inner__main h2 { border-bottom: 3px solid var(--re-bar); padding-bottom: 5px; margin: 18px 0 7px; }
.theme-runningetc .runningetc-inner__main h2:first-child { margin-top: 0; }
.theme-runningetc .runningetc-inner__main .runningetc-box h2,
.theme-runningetc .runningetc-inner__main .runningetc-box h3 { border: 0; }

/* Section menu in the sidebar: white box, as on the old site. */
.theme-runningetc .runningetc-subnav { background: #fff; padding: 10px 13px; margin-bottom: 15px; }
.theme-runningetc .runningetc-subnav .nav-link { color: var(--re-link); font-size: 16px; padding: 3px 0; }
.theme-runningetc .runningetc-subnav .nav-link.active { color: var(--re-bar); }
.theme-runningetc .runningetc-subnav ul ul { display: none; }
.theme-runningetc .runningetc-inner__side img { display: block; margin: 0 auto 8px; }

.runningetc-side-label { color: var(--re-bar); font-size: 15px; margin: 0 0 6px; }
.theme-runningetc .runningetc-subnav.runningetc-box { padding: 14px 10px; }
.theme-runningetc .runningetc-subnav .ccm-block-autonav .nav-link { color: var(--re-link) !important; font-size: 16px !important; font-weight: 400 !important; padding: 3px 0; }

/* ---- Home ---- */

.runningetc-home-panel {
    background: linear-gradient(to bottom, var(--re-tan) 0%, #ffffff 100%);
    box-shadow: var(--re-shadow); margin-bottom: 15px; text-align: center; color: #6e6e6e; font-size: 15.87px;
}
.theme-runningetc .runningetc-home-panel h3 {
    background: var(--re-bar); color: #fff; text-transform: uppercase; font-size: 20.4px; line-height: 42px;
    width: 70%; margin: 0 auto; padding: 0;
}
.theme-runningetc .runningetc-home-panel h3 a { color: #bbdaf2; text-decoration: none; }
.runningetc-home-panel__body { margin: 0; padding: 12px 15px 8px; }
.runningetc-home-panel__body img { max-height: 120px; width: auto; }

.runningetc-product-carousel { background: transparent; padding: 0 40px; }
.runningetc-product-carousel__link { display: block; text-decoration: none; color: #6e6e6e; padding: 10px 0 8px; }
.theme-runningetc .runningetc-product-carousel img { display: block; height: 135px; width: auto; max-width: 100%; margin: 0 auto 10px; object-fit: contain; mix-blend-mode: multiply; }
.runningetc-product-carousel__caption { display: block; font-size: 15.87px; min-height: 24px; color: #6e6e6e; }
.runningetc-product-carousel .carousel-control-prev,
.runningetc-product-carousel .carousel-control-next { width: 40px; opacity: 0.6; }
.runningetc-product-carousel__arrow { font-size: 50px; line-height: 1; color: #333; margin-top: -30px; }

.runningetc-home__main .ccm-image-slider-container, .runningetc-home__main .ccm-image-slider { box-shadow: var(--re-shadow); margin-bottom: 18px; }
.runningetc-home__main h2 { margin-top: 0; font-size: 20.4px; }
.runningetc-home-bottom {
    background: linear-gradient(to bottom, var(--re-tan) 0%, #ffffff 100%);
    box-shadow: var(--re-shadow); padding: 20px 25px; margin: 20px -15px 0; min-height: 200px;
}
.runningetc-home-bottom .sbi_header_text { background: #ddd; padding: 10px; }
.runningetc-home-bottom .sbi_header_text a { font-weight: 600; }
.runningetc-home-bottom .sbi_header_text img { float: left; margin-right: 10px; }
.runningetc-home-bottom .sbi_header_text p { font-size: 14px; color: #535350; }


/* Home photo slider: caption over the photo, white with a shadow, as on the old carousel. */
.theme-runningetc .runningetc-home__main .ccm-image-slider-container .ccm-image-slider-text { background: none !important; height: auto; top: auto; position: absolute; left: 0; right: 0; bottom: 18px; padding: 15px; text-align: center; }
.theme-runningetc .runningetc-home__main .ccm-image-slider .ccm-image-slider-text .ccm-image-slider-title { color: #fff; font-size: 22px; text-transform: none; font-weight: 400 !important; margin: 0; padding: 0; border: 0; text-shadow: 1px 1px 3px #000, 0 0 8px rgba(0, 0, 0, 0.7); }
.theme-runningetc .runningetc-home__main .rslides_tabs { display: none; }
.theme-runningetc .runningetc-subnav .ccm-block-autonav { background: #fff; padding: 0; border: 0; border-radius: 0; }
.theme-runningetc .runningetc-subnav .nav-link { font-size: 15px; }

/* ---- Products ---- */

.runningetc-product .runningetc-page-title { text-transform: uppercase; margin-top: 2.5rem; margin-bottom: 30px; }
.runningetc-product__panel { background: #fff; color: #595853; box-shadow: var(--re-shadow); padding: 40px 20px 20px; }
.theme-runningetc .runningetc-product__details h1,
.theme-runningetc .runningetc-product__details h2,
.theme-runningetc .runningetc-product__details h3 { color: #595853; font-size: 2.1rem; }
.theme-runningetc .runningetc-product__details h1 img { max-width: 160px; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.theme-runningetc .runningetc-product__details p { font-size: 16px; line-height: 1.45; }
.theme-runningetc .runningetc-product__details [style*="color"] span,
.theme-runningetc .runningetc-product__details span[style*="color"] { color: var(--brand-price-red, #b30000) !important; font-size: 18px !important; }

.runningetc-catalog { margin-top: 1rem; }
.runningetc-catalog__filter-title { color: var(--re-bar) !important; font-size: 22px !important; text-transform: uppercase !important; }
.runningetc-catalog__intro { margin: 10px 0 20px; line-height: 2; }
.runningetc-filter { margin: 12px 0 16px; border: 0; padding: 0; }
.runningetc-filter legend { font-size: 17px; font-weight: 700; color: var(--re-bar); margin-bottom: 4px; float: none; }
.runningetc-filter__option { display: block; font-weight: 700; font-size: 16.5px; color: var(--re-bar); line-height: 1.75; cursor: pointer; }
.runningetc-filter__option input { margin-right: 3px; }
.runningetc-product-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 17px; }
.runningetc-product-grid__item { margin-bottom: 25px; }
.runningetc-product-grid__item[hidden] { display: none; }
.runningetc-product-grid__item a { display: block; text-decoration: none; padding: 8px; }
.runningetc-product-grid__image { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: #fff; box-shadow: var(--re-shadow); overflow: hidden; }
.runningetc-product-grid__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.runningetc-product-grid__name { display: block; color: #606060; font-size: 13px; margin-top: 18px; min-height: 30px; }
.runningetc-catalog__main .runningetc-page-title { margin-bottom: 10px; }

/* ---- Events ---- */

.runningetc-events__months { text-align: center; }
.theme-runningetc .runningetc-events__month { text-transform: uppercase; font-size: 20px; display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid var(--re-bar); padding-bottom: 5px; margin: 18px 0 7px; }
.runningetc-events__top { font-size: 11px; text-transform: lowercase; font-weight: 700; color: #000 !important; text-shadow: 1px 1px 0 #fff; }
.runningetc-events__list ul { list-style: none; margin: 0; padding: 0; }
.runningetc-event-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 0.9fr); gap: 0 12px; padding: 12px 0; border-bottom: 1px solid #e5e5e5; align-items: start; }
.runningetc-event-row:last-child { border-bottom: 0; }
.runningetc-event-row__cal { display: block; width: 24px; text-align: center; border: 1px solid #bbb; font-size: 8px; line-height: 1.2; margin-top: 4px; background: #fff; }
.runningetc-event-row__cal.is-same-day { visibility: hidden; }
.runningetc-event-row__mon { display: block; background: #c00; color: #fff; }
.runningetc-event-row__day { display: block; color: #333; font-size: 9px; }
.runningetc-event-row__title { display: block; font-weight: 700; font-size: 14px; color: var(--re-link); }
.runningetc-event-row__meta { display: block; font-size: 10px; color: #333; }
.runningetc-event-row__summary { font-size: 14px; color: #000; padding-top: 6px; }
.runningetc-events__empty { margin: 0; color: #000; }
.runningetc-event__panel { background: #fff; padding: 20px 10px 10px; margin-top: 0; color: #666562; }
.theme-runningetc .runningetc-event__title { color: var(--re-bar); font-size: 22px; text-transform: uppercase; margin: 0 0 15px; }
.runningetc-event__date { font-size: 18px; margin: 0 0 4px; }
.runningetc-event__location { font-size: 14px; color: #000; }
.runningetc-event__directions a, .runningetc-event__back a { color: #47a2d9; }
.runningetc-event__panel::after { content: ""; display: table; clear: both; }

/* ---- Meet the team ---- */

.runningetc-team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 14px; margin-top: 10px; }
.runningetc-team__member { margin: 0; text-align: center; }
.runningetc-team__member p { margin: 0; }
.runningetc-team__member img { width: 100%; box-shadow: var(--re-shadow); margin-bottom: 8px; }
.runningetc-team__member p + p, .runningetc-team__member figcaption { font-size: 10px; color: #6e6e6e; margin: 0; line-height: 1.4; }

/* ---- Forms (old site: labels beside the fields) ---- */

.theme-runningetc .ccm-block-express-form .mb-3, .theme-runningetc .ccm-block-express-form .form-group {
    display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 225px); gap: 0 10px; align-items: start; margin-bottom: 4px !important;
}
.theme-runningetc .runningetc-inner__side .ccm-block-express-form .mb-3,
.theme-runningetc .runningetc-inner__side .ccm-block-express-form .form-group { grid-template-columns: 60px minmax(0, 1fr); }
.theme-runningetc .ccm-block-express-form .form-label, .theme-runningetc .ccm-block-express-form label.control-label { font-weight: 700; font-size: 14px; color: #000; padding-top: 4px; margin: 0; }
.theme-runningetc .runningetc-inner__side .ccm-block-express-form .form-label { font-size: 12px; color: #595853; }
.theme-runningetc .ccm-block-express-form .form-control { border-radius: 4px; padding: 3px 8px; font-size: 14px; }
.theme-runningetc .ccm-block-express-form .text-muted, .theme-runningetc .ccm-block-express-form .ccm-input-required { color: #2a6db3 !important; }
.theme-runningetc .ccm-block-express-form .form-actions .btn, .theme-runningetc .ccm-block-express-form .btn-primary {
    background: #f5f5f5; color: #333; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; padding: 5px 12px; margin-left: 190px;
}
.theme-runningetc .runningetc-inner__side .ccm-block-express-form .btn-primary { margin-left: 70px; }
.theme-runningetc .ccm-block-express-form fieldset legend { display: none; }

/* ---- Footer ---- */

.theme-runningetc .runningetc-footer { background: var(--re-footer); color: #fff; margin-top: 60px; font-size: 14px; padding: 25px 0 15px; }
.theme-runningetc .runningetc-footer p { margin-bottom: 10px; }
.theme-runningetc .runningetc-footer a { color: #fff; text-decoration: none; }
.theme-runningetc .runningetc-footer .runningetc-footer__chip { background: #fff; color: #174f72; padding: 0 1px; }
.theme-runningetc .runningetc-footer__follow { color: #fff; font-size: 20px; margin: 10px 0 8px; }
.runningetc-footer__social { display: flex; gap: 14px; justify-content: center; }
.runningetc-footer__social img { width: 62px; height: auto; filter: drop-shadow(4px 4px 3px rgba(0, 0, 0, 0.5)); }
.theme-runningetc .runningetc-footer__email a { display: block; background: #fff; color: var(--re-bar); font-size: 20px; text-align: center; padding: 14px 10px; text-transform: uppercase; }
.theme-runningetc .runningetc-footer__legal { background: none; padding: 0; text-align: center; }
.theme-runningetc .runningetc-footer__powered { font-size: 12px; margin: 0; }
.theme-runningetc .runningetc-footer__login { font-size: 11px; }

/* ---- Phones ---- */

@media (max-width: 767.98px) {
    .runningetc-topbar { background: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
    .runningetc-topbar__text { display: none; }
    .runningetc-topbar__inner { justify-content: flex-start; padding-top: 8px; }
    .runningetc-search__input { width: 125px; }
    .runningetc-banner__inner { min-height: 0; padding: 70px 0 15px; }
    .theme-runningetc .runningetc-header__brand img { width: 290px; }
    .runningetc-banner__phones { display: block; margin-top: 75px; }
    .theme-runningetc .runningetc-header { background: var(--runningetc-banner, none) center top / auto 270px no-repeat, transparent; }
    .theme-runningetc .runningetc-navbar__toggle { margin-left: auto; }
    .theme-runningetc .runningetc-banner__phones h2 { color: #595853; font-size: 21px; text-transform: uppercase; margin: 0 0 18px; }
    .theme-runningetc .runningetc-banner__phones a { color: #2a6db3; }
    .theme-runningetc .runningetc-navbar { background: transparent; position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
    .runningetc-navbar__inner { justify-content: flex-end; }
    .theme-runningetc .runningetc-navbar__toggle { display: block; background: #fff; color: #333; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; padding: 9px 10px; margin: 8px 0 8px auto; }
    .theme-runningetc .runningetc-header__nav-collapse { background: var(--re-bar); flex-basis: 100%; }
    .theme-runningetc .runningetc-nav { flex-direction: column; align-items: stretch; }
    .theme-runningetc .runningetc-nav > .nav-item + .nav-item::before { display: none; }
    .theme-runningetc .runningetc-header__menu .nav-link { font-weight: 700; font-size: 18px; padding: 10px 15px; text-align: left; width: 100%; }
    .theme-runningetc .runningetc-nav .dropdown-menu { position: static; background: var(--re-bar); }
    .theme-runningetc .runningetc-nav .dropdown-item { font-weight: 700; font-size: 18px; }
    .runningetc-home__side { display: none; }
    .runningetc-home-bottom { margin: 20px 0 0; }
    .runningetc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .runningetc-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .runningetc-event-row { grid-template-columns: 26px minmax(0, 1fr); }
    .runningetc-event-row__summary { grid-column: 2; }
    .theme-runningetc .runningetc-footer { text-align: center; }
    .theme-runningetc .runningetc-footer__col--4 { display: none; }
    .theme-runningetc .ccm-block-express-form .mb-3, .theme-runningetc .ccm-block-express-form .form-group { grid-template-columns: 1fr; }
    .theme-runningetc .ccm-block-express-form .btn-primary { margin-left: 0 !important; }
    .runningetc-store-product .store-product-customer-price-entry, .runningetc-store-product .store-product-option-group { grid-template-columns: 1fr; }
    .runningetc-store-product .store-min-max { grid-column: 1; }
}

/* ---- Brand ----
   Written by the style-guide skill from ../style-guide.json. It's last in
   the file so its values win. Edit style-guide.json and re-run the skill
   instead of changing this block by hand. */
/* style-guide:start */
:root {
    --brand-bar-grey: #595853; /* top strip, nav bar, headings, panel headings */
    --brand-footer-grey: #666562; /* footer and body text */
    --brand-tan: #a5a397; /* top of the page background gradient */
    --brand-dropdown-grey: #acacac; /* menu dropdowns */
    --brand-link-blue: #0048dc; /* links in text */
    --brand-sky-blue: #47a2d9; /* other links */
    --brand-panel-link-blue: #bbdaf2; /* links in the grey panel headings */
    --brand-price-red: #b30000; /* product prices */
    --brand-font-body: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --brand-font-headings: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --brand-font-ui: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.theme-runningetc {
    --runningetc-header-bg: #595853;
    --runningetc-header-color: #ffffff;
    --runningetc-nav-active: #d9d9d9;
    --runningetc-hello-bg: #595853;
    --runningetc-hello-color: #ffffff;
    --runningetc-footer-bg: #666562;
    --runningetc-footer-color: #ffffff;
    --runningetc-footer-link: #ffffff;
    --runningetc-panel-bg: #ffffff;
    --runningetc-radius: 0;
    --runningetc-panel-shadow: none;
}

.theme-runningetc .btn, .theme-runningetc .runningetc-header__menu .nav-link, .theme-runningetc .runningetc-eyebrow {
    font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    text-transform: none;
}
/* style-guide:end */
