/* Gutenberg wrapper compatibility for the approved COACHes design. */
.coaches-editor-content .wp-block-group { box-sizing: border-box; }
.coaches-editor-content .wp-block-image { margin: 0; }
.coaches-editor-content .wp-block-image img { display:block; max-width:100%; height:auto; }
.coaches-editor-content figure.hero-logo { width:min(400px,78vw); margin:0 0 30px; }
.coaches-editor-content figure.hero-logo img { width:100%; height:auto; }
.coaches-editor-content .member > .wp-block-image { margin:0; }

/* Core Button blocks keep the mockup's .btn classes on the block wrapper. */
.coaches-editor-content .wp-block-button.btn { padding:0; border:0; background:transparent; border-radius:0; }
.coaches-editor-content .wp-block-button.btn:hover { transform:none; }
.coaches-editor-content .wp-block-button.btn .wp-block-button__link {
  display:inline-block; text-decoration:none; font-weight:700; font-size:16px;
  padding:13px 26px; border-radius:var(--radius,10px); border:none; cursor:pointer;
  font-family:inherit; transition:transform .15s ease;
}
.coaches-editor-content .wp-block-button.btn .wp-block-button__link:hover { transform:translateY(-1px); }
.coaches-editor-content .wp-block-button.btn-accent .wp-block-button__link { background:var(--accent,#DE7A2A); color:#1B2635; }
.coaches-editor-content .wp-block-button.btn-ghost .wp-block-button__link { border:2px solid currentColor; color:inherit; background:none; }
.coaches-editor-content .wp-block-buttons.btn-row { display:flex; gap:14px; flex-wrap:wrap; align-items:center; }

/* Utility text that was a span/strong in the original mockup is now editable Paragraph blocks. */
.coaches-editor-content .person p.person-name { display:block; color:var(--primary); font-size:15.5px; font-weight:700; margin:0; }
.coaches-editor-content .person p.person-detail { display:block; font-size:13.5px; color:var(--muted); line-height:1.5; margin:0; }
.coaches-editor-content .member p.role { font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--secondary); margin:0 0 10px; line-height:1.5; }
.coaches-editor-content p.crumb { font-family:"IBM Plex Mono",monospace; font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); display:block; margin:0 0 14px; }
.coaches-editor-content .meta-strip p.book-meta-item { font-size:14px; margin:0; }
.coaches-editor-content .meta-strip p.book-meta-item .k { font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); display:block; }
.coaches-editor-content p.note-box { display:block; }
.coaches-editor-content p.cover-frame { display:block; }

/* Paragraph blocks used to hold standalone text links should not introduce extra
   bottom space at the end of cards/tiles. */
.coaches-editor-content .card > p:last-child,
.coaches-editor-content .tile > p:last-child { margin-bottom:0; }

/* Same neutralization inside the block editor canvas. */
.editor-styles-wrapper .wp-block-image { margin:0; }
.editor-styles-wrapper .wp-block-button.btn { padding:0; border:0; background:transparent; }
.editor-styles-wrapper .wp-block-button.btn .wp-block-button__link { display:inline-block; text-decoration:none; font-weight:700; font-size:16px; padding:13px 26px; border-radius:var(--radius,10px); font-family:inherit; }
.editor-styles-wrapper .wp-block-button.btn-accent .wp-block-button__link { background:var(--accent,#DE7A2A); color:#1B2635; }
.editor-styles-wrapper .wp-block-button.btn-ghost .wp-block-button__link { border:2px solid currentColor; color:inherit; background:none; }
.editor-styles-wrapper .person p.person-name { color:var(--primary); font-size:15.5px; font-weight:700; margin:0; }
.editor-styles-wrapper .person p.person-detail { font-size:13.5px; color:var(--muted); line-height:1.5; margin:0; }

/* Remove Gutenberg flow spacing from items inside our custom grids. */
.coaches-editor-content .grid2 > *,
.coaches-editor-content .grid3 > *,
.coaches-editor-content .grid4 > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.editor-styles-wrapper .grid2 > *,
.editor-styles-wrapper .grid3 > *,
.editor-styles-wrapper .grid4 > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

.coaches-editor-content .grid2 > *,
.coaches-editor-content .grid3 > *,
.coaches-editor-content .grid4 > *,
.coaches-editor-content .people > *,
.coaches-editor-content .team > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* About page team portraits - keep every card image uniform */
.coaches-editor-content .team .wp-block-image {
    width: 100%;
    margin: 0;
}

.coaches-editor-content .team .wp-block-image img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.editor-styles-wrapper .team .wp-block-image {
    width: 100%;
    margin: 0;
}

.editor-styles-wrapper .team .wp-block-image img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

/* Ninja Forms - match COACHes form styling */
.nf-form-content .nf-field-container {
    margin-bottom: 12px;
}

.nf-form-content .nf-field-label {
    margin-bottom: 6px;
}

.nf-form-content .nf-field-label label {
    font-weight: 600;
    color: #0A2A56;
}

/* Text, email, textarea, select */
.nf-form-content input.ninja-forms-field,
.nf-form-content textarea.ninja-forms-field,
.nf-form-content select.ninja-forms-field {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #D9D5CC;
    border-radius: 10px;
    background: #fff;
    color: #1B2635;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
}

/* Placeholder text */
.nf-form-content input.ninja-forms-field::placeholder,
.nf-form-content textarea.ninja-forms-field::placeholder {
    color: #777;
    opacity: 1;
}

/* Focus state */
.nf-form-content input.ninja-forms-field:focus,
.nf-form-content textarea.ninja-forms-field:focus,
.nf-form-content select.ninja-forms-field:focus {
    outline: none;
    border-color: #DE7A2A;
    box-shadow: 0 0 0 2px rgba(222, 122, 42, 0.12);
}

/* Submit button */
.nf-form-content input[type="button"],
.nf-form-content input[type="submit"],
.nf-form-content button {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: #DE7A2A;
    color: #0A2A56;
    font-weight: 700;
    cursor: pointer;
}

/* Submit hover */
.nf-form-content input[type="button"]:hover,
.nf-form-content input[type="submit"]:hover,
.nf-form-content button:hover {
    background: #0A2A56;
    color: #fff;
}
.nf-form-content input.ninja-forms-field.btn.btn-accent[type="submit"] {
    width: 100%;
    display: block;
}

.nf-form-content .form-note {
    font-size: 12.5px;
    color: var(--muted, #6B7280);
    line-height: 1.5;
    margin: 0;
}
.nf-form-content .html-container,
.nf-form-content .html-container .nf-field-element,
.nf-form-content .html-container .nf-field-element p {
    width: 100%;
    max-width: none;
}
.nf-before-form-content {
    display: none;
}

.slo-app-image img {
    display: block;
    width: 250px;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    border: 4px solid #051D40;
    border-radius: 50px;
}
.slo-app-image a {
    display: inline-block;
}

.post-hero {
    background: #0A2A56;
}

.post-hero h1 {
    color: #fff;
    margin: 0;
}
.coaches-editor-content article h2,
.coaches-editor-content article h2 a {
    background: transparent;
    color: #0A2A56;
    text-decoration: none;
}

.single-post .post-hero {
    background: transparent;
}

.single-post .post-hero h1 {
    color: #0A2A56;
    padding: 0;
}

.single-post article {
    margin-top: 30px;
}

/* -------------------------------------------------------
   Guide to SLO Assessment
   Gutenberg compatibility
------------------------------------------------------- */

.coaches-editor-content section > .wrap,
.coaches-editor-content .wp-block-group > .wrap {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Exact section vertical spacing from supplied design */
.coaches-editor-content .wrap {
    box-sizing: border-box;
}

.coaches-editor-content section:not(.page-hero) > .wrap,
.coaches-editor-content .alt > .wrap {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Gutenberg otherwise inserts margins between Group blocks */
.coaches-editor-content .grid2 > *,
.coaches-editor-content .grid3 > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* Training cards */
.coaches-editor-content .grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Go Further cards */
.coaches-editor-content .grid3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.coaches-editor-content .card {
    background: #fff;
    border: 1px solid #E2DDD2;
    border-top: 4px solid #1F5741;
    border-radius: 10px;
    padding: 24px;
}

.coaches-editor-content .card:nth-child(even) {
    border-top-color: #DE7A2A;
}

.coaches-editor-content .card h3 {
    font-size: 19px;
    line-height: 1.15;
    margin: 0 0 8px;
    color: #0A2A56;
    font-weight: 600;
}

.coaches-editor-content .card p {
    font-size: 15px;
    color: #5B6675;
    margin: 0 0 12px;
}

/* Don't let Gutenberg paragraph margins distort cards */
.coaches-editor-content .card > :last-child {
    margin-bottom: 0;
}

.coaches-editor-content .card .meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    color: #1F5741;
    margin: 0 0 10px;
}

.coaches-editor-content .card a.link {
    color: #DE7A2A;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
}

.coaches-editor-content .card a.link:hover {
    text-decoration: underline;
}

/* Section headings */
.coaches-editor-content .section-head {
    margin-bottom: 30px;
}

.coaches-editor-content .section-head h2 {
    font-size: clamp(24px, 3vw, 33px);
    color: #0A2A56;
    font-weight: 600;
    margin: 0;
}

.coaches-editor-content .section-head p {
    color: #5B6675;
    font-size: 16.5px;
    margin: 8px 0 0;
    max-width: 66ch;
}

/* Intro paragraph */
.coaches-editor-content .prose {
    max-width: 72ch;
    font-size: 16.5px;
}

.coaches-editor-content .prose p {
    margin: 0 0 16px;
}

/* White middle section */
.coaches-editor-content .alt {
    background: #fff;
    border-top: 1px solid #E2DDD2;
    border-bottom: 1px solid #E2DDD2;
}

/* Guide / interior page hero */
.coaches-editor-content .page-hero {
    color: #F7F5EF;
    background:
        radial-gradient(
            900px 420px at 88% -20%,
            rgba(232,130,44,0.34),
            transparent 62%
        ),
        radial-gradient(
            700px 400px at -12% 130%,
            rgba(38,110,80,0.40),
            transparent 62%
        ),
        linear-gradient(
            158deg,
            #00143D 0%,
            #00143D 55%,
            #14418A 100%
        );
}

.coaches-editor-content .page-hero > .wrap {
    padding-top: 56px;
    padding-bottom: 60px;
}

.coaches-editor-content .page-hero h1 {
    color: #F7F5EF !important;
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 600;
    line-height: 1.15;
    max-width: 22ch;
    margin-bottom: 14px;
}

.coaches-editor-content .page-hero p {
    color: #F7F5EF !important;
    font-size: 18px;
    max-width: 62ch;
    opacity: 0.92;
}

.coaches-editor-content .page-hero .crumb {
    display: block;
    margin-bottom: 14px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #F6D00A;
}

/* -------------------------------------------------------
   Blog archive
------------------------------------------------------- */

.blog-grid {
    align-items: stretch;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    margin: 0 0 12px;
}

.blog-card-title a {
    color: #0A2A56;
    text-decoration: none;
}

.blog-card-title a:hover,
.blog-card-title a:focus {
    color: #DE7A2A;
    text-decoration: none;
}

.blog-card-excerpt {
    flex-grow: 1;
}

.blog-card-excerpt p {
    margin: 0 0 16px;
}

.blog-pagination {
    margin-top: 40px;
}

.blog-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #E2DDD2;
    border-radius: 6px;
    color: #0A2A56;
    text-decoration: none;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #F6E3CF;
}

/* SLO App Creator hero alignment */
.coaches-editor-content .page-hero .wrap {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.coaches-editor-content .page-hero .crumb {
    color: #F6D00A !important;
}
.coaches-editor-content .page-hero > .wp-block-group.wrap {
    width: 100%;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
}
/* Keep all hero content on one left edge */
.coaches-editor-content .page-hero .wrap > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* About page team portraits */
.coaches-editor-content .team .wp-block-image {
    width: 100%;
    margin: 0;
    text-align: center;
}

.coaches-editor-content .team .wp-block-image img {
    display: block;
    width: 220px;
    height: 220px;
    margin: 0 auto;

    object-fit: cover;
    object-position: center;

    /* Oval portrait */
    border-radius: 50%;

    /* Default: black and white */
    filter: grayscale(100%);

    transition:
        filter 0.35s ease,
        transform 0.35s ease;
}
.coaches-editor-content .team .wp-block-image {
    width: 100%;
    margin: 0;
    padding-top: 16px;
    text-align: center;
}

/* Reveal original color */
.coaches-editor-content .team .wp-block-image:hover img {
    filter: grayscale(0%);
}

/* Footer social icons */
footer.site .social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

footer.site .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.22);

    color: #F6D00A;
    text-decoration: none;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

footer.site .social a:hover {
    background: #F6D00A;
    color: #00143D;
    border-color: #F6D00A;
}

footer.site .social svg {
    display: block;

    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;

    fill: currentColor;
}

footer.site {
    color: #C9D3E0;

    background:
        radial-gradient(
            800px 340px at 100% 0%,
            rgba(38,110,80,0.32),
            transparent 60%
        ),
        radial-gradient(
            600px 300px at 0% 100%,
            rgba(232,130,44,0.14),
            transparent 60%
        ),
        #00143D;
}

footer.site .wrap {
    padding-top: 50px;
    padding-bottom: 42px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    text-align: center;
}

footer.site .custom-logo {
    width: min(280px, 66vw);
    height: auto;
}

footer.site .foot-line {
    font-size: 13.5px;
    opacity: 0.8;
}

footer.site .social a {
    color: #F6D00A;
}

footer.site .social svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    fill: #F6D00A !important;
}
footer.site .social a:hover {
    background: #F6D00A;
    color: #00143D;
    border-color: #F6D00A;
}

footer.site .social a:hover svg {
    fill: #00143D !important;
}
footer.site .social svg path {
    fill: #F6D00A !important;
}

footer.site .social a:hover svg path {
    fill: #00143D !important;
}
footer.site .social svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

footer.site .social svg path {
    fill: #F6D00A !important;
    stroke: none !important;
}

footer.site .social a:hover svg path {
    fill: #00143D !important;
}
.coaches-editor-content .slo-app-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.coaches-editor-content .slo-app-links > .wp-block-column {
    min-width: 0;
    margin: 0 !important;
}
/* Responsive card layout */
@media (max-width: 700px) {
    .coaches-editor-content .grid2,
    .coaches-editor-content .grid3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {

    header.site .wrap {
        flex-wrap: wrap;
    }

    header.site .menu-btn {
        display: block;
    }

    header.site .main {
        display: none;
        width: 100%;
        flex-basis: 100%;
    }

    header.site .main.is-open {
        display: block;
    }

    header.site .main .menu {
        display: block;
        width: 100%;
        margin: 10px 0 0;
        padding: 0;
    }

    header.site .main .menu-item {
        width: 100%;
    }

    header.site .main .menu-item > a {
        width: 100%;
        box-sizing: border-box;
    }

    header.site .main .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: 0;
        padding: 0 0 0 16px;
        margin: 0;
    }

    header.site .main .menu-item:hover > .sub-menu,
    header.site .main .menu-item:focus-within > .sub-menu {
        display: block;
    }

    @media (max-width: 781px) {
    .coaches-editor-content .slo-app-links {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 24px !important;
    }

    .coaches-editor-content .slo-app-links > .wp-block-column {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .coaches-editor-content .slo-app-image {
        width: 100%;
        text-align: center;
    }

    .coaches-editor-content .slo-app-image img {
        width: 300px;
        max-width: 85vw;
        height: auto;
        margin: 0 auto;
    }
}
}

.nf-form-content input.ninja-forms-field.btn.btn-accent[type="submit"],
.nf-form-content input.ninja-forms-field.btn.btn-accent[type="button"],
.nf-form-content button.btn.btn-accent {
    background: #DE7A2A !important;
    color: #0A2A56 !important;
    border: 0 !important;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.nf-form-content input.ninja-forms-field.btn.btn-accent[type="submit"]:hover,
.nf-form-content input.ninja-forms-field.btn.btn-accent[type="button"]:hover,
.nf-form-content button.btn.btn-accent:hover {
    background: #0A2A56 !important;
    color: #F7F5EF !important;
}
.nf-form-content input.ninja-forms-field.btn.btn-accent[type="submit"] {
    width: 100%;
    display: block;
}


@media (max-width: 920px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 921px) {
    .hide-on-desktop {
        display: none !important;
    }
}