:root {
    --jfj-ink: #243128;
    --jfj-muted: #637168;
    --jfj-cream: #f8f4ea;
    --jfj-cream-deep: #efe7d7;
    --jfj-sage: #6f806d;
    --jfj-sage-deep: #435746;
    --jfj-sage-soft: #dfe7dc;
    --jfj-gold: #b59658;
    --jfj-gold-soft: #eadfca;
    --jfj-white: #ffffff;
    --jfj-danger-soft: #f8e9e6;
    --jfj-shadow: 0 20px 55px rgba(46, 65, 50, 0.10);
    --jfj-shadow-small: 0 12px 30px rgba(46, 65, 50, 0.08);
    --jfj-radius-xl: 32px;
    --jfj-radius-lg: 22px;
    --jfj-radius-md: 16px;
}

.jfj-resources,
.jfj-resources * {
    box-sizing: border-box;
}

.jfj-resources {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    color: var(--jfj-ink);
    background: var(--jfj-white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    overflow-x: clip;
    container: jfjpage / inline-size;
}

/* The plugin-managed page uses the site's normal header and footer, but no
   theme sidebar or narrow content column. These rules are intentionally scoped
   to that one page. */
body.jfj-resources-managed-page .jfj-full-width-template,
body.jfj-resources-managed-page main.jfj-full-width-template {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.jfj-resources-managed-page .jfj-full-width-template > .jfj-resources,
body.jfj-resources-managed-page .jfj-full-width-template > p > .jfj-resources {
    width: 100%;
    max-width: none;
    margin: 0;
}

.jfj-resources h1,
.jfj-resources h2,
.jfj-resources h3,
.jfj-resources p {
    margin-top: 0;
}

.jfj-resources h1,
.jfj-resources h2,
.jfj-resources h3 {
    color: var(--jfj-ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.12;
}

.jfj-resources h1 {
    max-width: 840px;
    margin-bottom: 1.4rem;
    font-size: clamp(3rem, 5.7vw, 5.8rem);
    letter-spacing: -0.05em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.jfj-resources h2 {
    font-size: clamp(2.2rem, 4.6vw, 4rem);
    letter-spacing: -0.035em;
    margin-bottom: 1rem;
}

.jfj-resources h3 {
    font-size: 1.48rem;
    letter-spacing: -0.015em;
    margin-bottom: 0.8rem;
}

.jfj-resources a {
    color: inherit;
}

.jfj-resources p,
.jfj-resources a,
.jfj-resource-card h3,
.jfj-path-card small {
    overflow-wrap: anywhere;
}

.jfj-container {
    width: calc(100% - 48px);
    max-width: 1180px;
    min-width: 0;
    margin: 0 auto;
}

.jfj-skip-link {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 1000;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--jfj-ink);
    color: #fff !important;
    text-decoration: none;
}

.jfj-skip-link:focus {
    top: 20px;
}

.jfj-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--jfj-sage-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.jfj-hero {
    position: relative;
    padding: clamp(90px, 11vw, 155px) 0 clamp(80px, 9vw, 125px);
    background:
        radial-gradient(circle at 12% 15%, rgba(181, 150, 88, 0.14), transparent 25%),
        radial-gradient(circle at 85% 22%, rgba(111, 128, 109, 0.14), transparent 28%),
        linear-gradient(140deg, #fbf8f0 0%, #f3eee2 58%, #edf2eb 100%);
}

.jfj-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(181, 150, 88, 0.65), transparent);
}

.jfj-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
    gap: clamp(42px, 6vw, 82px);
    align-items: center;
}

.jfj-hero-grid > *,
.jfj-organizer-grid > *,
.jfj-note-grid > *,
.jfj-path-grid > *,
.jfj-resource-grid > * {
    min-width: 0;
}

.jfj-hero-copy > p {
    max-width: 780px;
    color: var(--jfj-muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.75;
}

.jfj-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 2.2rem;
}

.jfj-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.jfj-button:hover,
.jfj-button:focus-visible {
    transform: translateY(-2px);
}

.jfj-button-primary {
    background: var(--jfj-sage-deep);
    box-shadow: 0 14px 30px rgba(67, 87, 70, 0.22);
    color: #fff !important;
}

.jfj-button-primary:hover,
.jfj-button-primary:focus-visible {
    box-shadow: 0 18px 38px rgba(67, 87, 70, 0.3);
}

.jfj-button-secondary {
    border-color: rgba(67, 87, 70, 0.25);
    background: rgba(255, 255, 255, 0.54);
    color: var(--jfj-sage-deep) !important;
    backdrop-filter: blur(10px);
}

.jfj-button-secondary:hover,
.jfj-button-secondary:focus-visible {
    background: #fff;
}

.jfj-button-light {
    flex: 0 0 auto;
    background: #fff;
    color: var(--jfj-sage-deep) !important;
    box-shadow: var(--jfj-shadow-small);
}

.jfj-hero-panel {
    position: relative;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(181, 150, 88, 0.38);
    border-radius: var(--jfj-radius-xl);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--jfj-shadow);
    backdrop-filter: blur(14px);
}

.jfj-hero-panel::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(181, 150, 88, 0.18);
    border-radius: calc(var(--jfj-radius-xl) - 10px);
    pointer-events: none;
}

.jfj-panel-icon,
.jfj-card-icon,
.jfj-path-icon,
.jfj-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.jfj-panel-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    background: var(--jfj-gold-soft);
    color: #7a6030;
}

.jfj-panel-icon svg,
.jfj-card-icon svg,
.jfj-path-icon svg,
.jfj-note-icon svg,
.jfj-card-link svg,
.jfj-search-icon svg,
.jfj-print-button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.jfj-hero-panel h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.jfj-hero-panel p,
.jfj-hero-panel a {
    position: relative;
    z-index: 1;
}

.jfj-panel-kicker {
    margin-bottom: 0.45rem !important;
    color: var(--jfj-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.jfj-hero-panel > p:not(.jfj-panel-kicker) {
    color: var(--jfj-muted);
}

.jfj-hero-panel > a {
    display: inline-flex;
    margin-top: 0.45rem;
    color: var(--jfj-sage-deep);
    font-weight: 800;
    text-underline-offset: 5px;
}

.jfj-leaf {
    position: absolute;
    z-index: 1;
    width: 24px;
    height: 48px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(140deg, rgba(111, 128, 109, 0.48), rgba(111, 128, 109, 0.08));
    transform: rotate(35deg);
    animation: jfj-drift 12s ease-in-out infinite;
    pointer-events: none;
}

.jfj-leaf-one { left: 6%; top: 18%; }
.jfj-leaf-two { right: 7%; top: 14%; animation-delay: -4s; transform: rotate(90deg) scale(.72); }
.jfj-leaf-three { left: 48%; bottom: 10%; animation-delay: -8s; transform: rotate(-15deg) scale(.55); }

@keyframes jfj-drift {
    0%, 100% { translate: 0 0; rotate: 0deg; opacity: .38; }
    50% { translate: 18px 26px; rotate: 18deg; opacity: .72; }
}

.jfj-start-here,
.jfj-library,
.jfj-organizer,
.jfj-final {
    padding: clamp(78px, 9vw, 125px) 0;
}

.jfj-start-here {
    background: #fff;
}

.jfj-section-heading {
    max-width: 760px;
    margin-bottom: 40px;
}

.jfj-section-heading-centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.jfj-section-heading p,
.jfj-organizer p,
.jfj-final p {
    color: var(--jfj-muted);
    font-size: 1.08rem;
}

.jfj-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.jfj-path-card {
    display: flex;
    gap: 18px;
    align-items: center;
    min-height: 142px;
    padding: 24px;
    border: 1px solid rgba(67, 87, 70, 0.13);
    border-radius: var(--jfj-radius-lg);
    background: linear-gradient(145deg, #ffffff, #f7f8f4);
    box-shadow: var(--jfj-shadow-small);
    color: var(--jfj-ink) !important;
    text-decoration: none !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.jfj-path-card:hover,
.jfj-path-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(181, 150, 88, 0.5);
    box-shadow: var(--jfj-shadow);
}

.jfj-path-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: var(--jfj-sage-soft);
    color: var(--jfj-sage-deep);
}

.jfj-path-card strong,
.jfj-path-card small {
    display: block;
}

.jfj-path-card strong {
    margin-bottom: 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
}

.jfj-path-card small {
    color: var(--jfj-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.jfj-library {
    background: var(--jfj-cream);
}

.jfj-resource-tools {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    padding: 22px;
    border: 1px solid rgba(181, 150, 88, 0.28);
    border-radius: var(--jfj-radius-lg);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--jfj-shadow-small);
}

.jfj-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(67, 87, 70, 0.18);
    border-radius: 16px;
    background: #fff;
}

.jfj-search-icon {
    display: inline-flex;
    color: var(--jfj-sage);
}

.jfj-search-box input {
    width: 100%;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--jfj-ink);
    font: inherit;
}

.jfj-search-box input::placeholder {
    color: #8a958d;
}

.jfj-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jfj-filter {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(67, 87, 70, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--jfj-sage-deep);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.jfj-filter:hover,
.jfj-filter:focus-visible,
.jfj-filter.is-active {
    border-color: var(--jfj-sage-deep);
    background: var(--jfj-sage-deep);
    color: #fff;
}

.jfj-results-status {
    margin: 0 0 16px;
    color: var(--jfj-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.jfj-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.jfj-resource-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 25px;
    border: 1px solid rgba(67, 87, 70, 0.12);
    border-radius: var(--jfj-radius-lg);
    background: #fff;
    box-shadow: var(--jfj-shadow-small);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.jfj-resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 150, 88, 0.5);
    box-shadow: var(--jfj-shadow);
}

.jfj-resource-card.is-featured {
    border-color: rgba(181, 150, 88, 0.58);
    background: linear-gradient(155deg, #fff 0%, #fffaf0 100%);
}

.jfj-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.jfj-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--jfj-sage-soft);
    color: var(--jfj-sage-deep);
}

.jfj-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--jfj-gold-soft);
    color: #6f572b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.jfj-resource-card > p {
    color: var(--jfj-muted);
}

.jfj-phone {
    margin-top: auto;
    margin-bottom: 18px !important;
    color: var(--jfj-ink) !important;
    font-size: 0.92rem;
}

.jfj-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(67, 87, 70, 0.1);
    color: var(--jfj-sage-deep) !important;
    font-weight: 800;
    text-decoration: none !important;
}

.jfj-card-link svg {
    width: 20px;
    height: 20px;
    transition: transform 180ms ease;
}

.jfj-card-link:hover svg,
.jfj-card-link:focus-visible svg {
    transform: translateX(4px);
}

.jfj-resource-card[hidden] {
    display: none !important;
}

.jfj-no-results {
    padding: 42px;
    border: 1px dashed rgba(67, 87, 70, 0.25);
    border-radius: var(--jfj-radius-lg);
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.jfj-legislation-note {
    padding: clamp(68px, 8vw, 100px) 0;
    background: var(--jfj-sage-deep);
    color: rgba(255, 255, 255, 0.84);
}

.jfj-note-grid {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.jfj-note-icon {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.jfj-legislation-note .jfj-eyebrow,
.jfj-legislation-note h2 {
    color: #fff;
}

.jfj-legislation-note p {
    max-width: 980px;
    font-size: 1.08rem;
}

.jfj-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 20px;
}

.jfj-inline-actions a {
    color: #fff !important;
    font-weight: 800;
    text-underline-offset: 5px;
}

.jfj-organizer {
    background: #fff;
}

.jfj-organizer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    gap: clamp(45px, 8vw, 90px);
    align-items: center;
}

.jfj-checklist-card {
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(181, 150, 88, 0.35);
    border-radius: var(--jfj-radius-xl);
    background: linear-gradient(145deg, #fffdf8, #f5f8f3);
    box-shadow: var(--jfj-shadow);
}

.jfj-checklist-card ul {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.jfj-checklist-card li {
    position: relative;
    padding: 12px 0 12px 36px;
    border-bottom: 1px solid rgba(67, 87, 70, 0.09);
}

.jfj-checklist-card li:last-child {
    border-bottom: 0;
}

.jfj-checklist-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--jfj-sage-soft);
    color: var(--jfj-sage-deep);
    font-size: 0.78rem;
    font-weight: 900;
}

.jfj-print-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--jfj-sage-deep);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.jfj-print-button svg {
    width: 19px;
    height: 19px;
}


.jfj-final {
    text-align: center;
}

.jfj-final-inner {
    max-width: 820px;
}

.jfj-final-actions {
    justify-content: center;
}

.jfj-disclaimer {
    padding: 38px 0;
    border-top: 1px solid rgba(67, 87, 70, 0.1);
    background: #f4f5f1;
}

.jfj-disclaimer h2 {
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0;
}

.jfj-disclaimer p,
.jfj-maintenance-row {
    color: #69736c;
    font-size: 0.82rem;
    line-height: 1.65;
}

.jfj-maintenance-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(67, 87, 70, 0.1);
}

.jfj-maintenance-row a {
    color: var(--jfj-sage-deep) !important;
    font-weight: 800;
}

.jfj-resources :focus-visible {
    outline: 3px solid rgba(181, 150, 88, 0.72);
    outline-offset: 3px;
}

@media (max-width: 1120px) {
    .jfj-hero-grid,
    .jfj-organizer-grid {
        grid-template-columns: 1fr;
    }

    .jfj-hero-copy {
        max-width: 850px;
    }

    .jfj-hero-panel {
        width: 100%;
        max-width: 760px;
    }

    .jfj-path-grid,
    .jfj-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .jfj-container {
        width: calc(100% - 30px);
    }

    .jfj-hero {
        padding: 68px 0 72px;
    }

    .jfj-start-here,
    .jfj-library,
    .jfj-organizer,
    .jfj-final {
        padding: 68px 0;
    }

    .jfj-resources h1 {
        max-width: 100%;
        font-size: clamp(2.45rem, 12.7vw, 4rem);
        line-height: 1.02;
        letter-spacing: -0.045em;
    }

    .jfj-resources h2 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .jfj-path-grid,
    .jfj-resource-grid {
        grid-template-columns: 1fr;
    }

    .jfj-note-grid {
        grid-template-columns: 1fr;
    }

    .jfj-note-icon {
        width: 62px;
        height: 62px;
        border-radius: 20px;
    }

    .jfj-resource-tools,
    .jfj-resource-card,
    .jfj-checklist-card,
    .jfj-hero-panel {
        border-radius: 20px;
    }

    .jfj-hero-panel {
        padding: 28px 24px;
    }

    .jfj-hero-panel::before {
        inset: 10px;
    }

    .jfj-filter-row {
        flex-wrap: nowrap;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .jfj-filter {
        flex: 0 0 auto;
    }

    .jfj-button,
    .jfj-hero-actions .jfj-button {
        width: 100%;
    }


    .jfj-card-topline {
        align-items: flex-start;
    }

    .jfj-tag {
        max-width: calc(100% - 62px);
        text-align: center;
    }
}

@media (max-width: 420px) {
    .jfj-container {
        width: calc(100% - 22px);
    }

    .jfj-hero {
        padding-top: 54px;
    }

    .jfj-resources h1 {
        font-size: clamp(2.2rem, 13.5vw, 3.25rem);
    }

    .jfj-hero-copy > p,
    .jfj-section-heading p,
    .jfj-organizer p,
    .jfj-final p,
    .jfj-legislation-note p {
        font-size: 1rem;
    }

    .jfj-resource-tools,
    .jfj-resource-card,
    .jfj-path-card,
    .jfj-checklist-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .jfj-search-box {
        padding: 0 14px;
    }
}

/* Container queries also protect the layout when the shortcode is inserted
   inside a builder column or another narrow content area. */
@container jfjpage (max-width: 1050px) {
    .jfj-hero-grid,
    .jfj-organizer-grid {
        grid-template-columns: 1fr;
    }

    .jfj-hero-panel {
        width: 100%;
        max-width: 760px;
    }

    .jfj-path-grid,
    .jfj-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container jfjpage (max-width: 680px) {
    .jfj-path-grid,
    .jfj-resource-grid,
    .jfj-note-grid {
        grid-template-columns: 1fr;
    }

    .jfj-resources h1 {
        font-size: clamp(2.35rem, 12.5cqi, 4rem);
        line-height: 1.02;
    }

    .jfj-button,
    .jfj-hero-actions .jfj-button {
        width: 100%;
    }
}

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

@media print {
    body * {
        visibility: hidden !important;
    }

    .jfj-organizer,
    .jfj-organizer * {
        visibility: visible !important;
    }

    .jfj-organizer {
        position: absolute;
        inset: 0;
        padding: 24px;
        background: #fff;
    }

    .jfj-organizer-grid {
        display: block;
    }

    .jfj-checklist-card {
        margin-top: 20px;
        box-shadow: none;
    }

    .jfj-print-button {
        display: none;
    }
}
