/*
Theme Name: Just Keep Swimming
Theme URI: https://justkeepswimmingisr.com
Description: Child theme for Just Keep Swimming, LLC. Adds a designed single-post layout that Hello Elementor does not provide, and hosts site-specific CSS.
Author: Just Keep Swimming, LLC
Template: hello-elementor
Version: 1.0.1
Text Domain: jks
*/

/* Palette mirrors the Elementor global kit; the var() names are what Elementor emits,
   the fallbacks keep the layout correct if the kit CSS ever fails to load. */
:root {
    --jks-primary: var(--e-global-color-primary, #39A7FF);
    --jks-secondary: var(--e-global-color-secondary, #E0F4FF);
    --jks-text: var(--e-global-color-text, #434242);
    --jks-accent: var(--e-global-color-accent, #FFEED9);
    --jks-muted: #7a7a7a;
    --jks-rule: #ebebeb;
    --jks-width: 1140px;
}

.jks-single {
    font-family: "Poppins", sans-serif;
    color: var(--jks-text);
}

.jks-hero {
    background: var(--jks-secondary);
    padding: 56px 20px 0;
}
.jks-hero__inner { max-width: var(--jks-width); margin: 0 auto; }

.jks-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--jks-primary);
    margin: 0 0 14px;
}
.jks-eyebrow a { color: inherit; text-decoration: none; }
.jks-eyebrow a:hover { text-decoration: underline; }

.jks-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.15;
    margin: 0 0 18px;
    color: var(--jks-text);
}

.jks-meta {
    font-size: 15px;
    font-weight: 300;
    color: var(--jks-muted);
    margin: 0 0 40px;
}
.jks-meta span + span::before { content: "·"; margin: 0 10px; }

.jks-featured {
    max-width: var(--jks-width);
    margin: -1px auto 0;
    padding: 0 20px;
}
.jks-featured img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    transform: translateY(40px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
}
.jks-featured + .jks-body { padding-top: 84px; }

.jks-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 20px 24px;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.75;
}
.jks-body h2 { font-weight: 600; font-size: 30px; line-height: 1.25; margin: 44px 0 14px; }
.jks-body h3 { font-weight: 600; font-size: 23px; line-height: 1.3;  margin: 34px 0 12px; }
.jks-body p  { margin: 0 0 22px; }
.jks-body ul, .jks-body ol { margin: 0 0 22px; padding-left: 22px; }
.jks-body li { margin-bottom: 10px; }
.jks-body a  { color: var(--jks-primary); }
.jks-body img { max-width: 100%; height: auto; border-radius: 4px; }
.jks-body blockquote {
    margin: 30px 0;
    padding: 6px 0 6px 24px;
    border-left: 3px solid var(--jks-primary);
    font-style: italic;
}

.jks-nav {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 20px 0;
    border-top: 1px solid var(--jks-rule);
    display: flex;
    gap: 24px;
    justify-content: space-between;
}
.jks-nav a { text-decoration: none; color: var(--jks-text); max-width: 46%; }
.jks-nav a:hover .jks-nav__title { color: var(--jks-primary); }
.jks-nav__label { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--jks-muted); margin-bottom: 6px; }
.jks-nav__title { font-weight: 500; font-size: 17px; line-height: 1.35; }
.jks-nav .jks-nav__next { text-align: right; margin-left: auto; }

.jks-related { padding: 64px 20px 72px; }
.jks-related__inner { max-width: var(--jks-width); margin: 0 auto; }
.jks-related h2 {
    font-weight: 600; font-size: 28px; margin: 0 0 28px; text-align: center;
}
.jks-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.jks-card { display: block; text-decoration: none; color: inherit; }
.jks-card__thumb {
    aspect-ratio: 16 / 10;
    background: var(--jks-secondary) center/cover no-repeat;
    border-radius: 4px;
    margin-bottom: 14px;
}
/* Not every post has a featured image. A flat pale rectangle reads as a broken image,
   so give those cards a deliberate branded tile instead. */
.jks-card__thumb--empty {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--jks-primary) 0%, #7cc6ff 55%, var(--jks-secondary) 100%);
}
.jks-card__mark {
    font-weight: 600;
    font-size: 30px;
    letter-spacing: .12em;
    color: #fff;
    opacity: .85;
}
.jks-card__title { font-weight: 500; font-size: 17px; line-height: 1.35; margin: 0 0 6px; }
.jks-card:hover .jks-card__title { color: var(--jks-primary); }
.jks-card__date { font-size: 14px; font-weight: 300; color: var(--jks-muted); }

@media (max-width: 1024px) {
    .jks-cards { grid-template-columns: repeat(2, 1fr); }
    .jks-hero { padding-top: 40px; }
}
@media (max-width: 767px) {
    .jks-cards { grid-template-columns: 1fr; }
    .jks-body { font-size: 17px; padding-top: 40px; }
    .jks-featured img { transform: translateY(24px); }
    .jks-featured + .jks-body { padding-top: 56px; }
    .jks-nav { flex-direction: column; }
    .jks-nav a { max-width: 100%; }
    .jks-nav .jks-nav__next { text-align: left; margin-left: 0; }
}

/* The horizontal nav sits close to the width of its column, so while Poppins is still
   swapping in, the wider fallback face pushes the last item ("Resources") onto a second
   row and the header jumps. There is room for all six items once the real font lands,
   so simply refusing to wrap removes the flash without changing the layout. */
.hfe-nav-menu__layout-horizontal .hfe-nav-menu {
    flex-wrap: nowrap;
}
.hfe-nav-menu__layout-horizontal .hfe-nav-menu > li.menu-item > a.hfe-menu-item {
    white-space: nowrap;
}
