/* Public pages share the theme's type, colour and spacing settings. */
body.train365 main .eyebrow-dot {
    box-shadow: none;
}

/* Core may cache a contrast correction when a visitor switches appearance. */
body.train365 main .hero .hero-headline {
    color: var(--ds-text);
}
html[data-t365-appearance="light"] body.train365 main .hero .hero-headline {
    color: var(--t365-heading, var(--ds-text));
    --t365-contrast-146: var(--t365-heading, var(--ds-text)) !important;
}
html[data-t365-appearance="light"] body.train365 main .hero-copy > .eyebrow {
    color: var(--ds-muted) !important;
    color: color-mix(in srgb, var(--t365-accent, var(--ds-accent)) 25%, var(--ds-text)) !important;
}
html[data-t365-appearance="dark"] body.train365 main .hero .hero-headline {
    --t365-contrast-146: var(--ds-text) !important;
}

/* Keep the planning example at its natural height, including its caption. */
body.train365 .t365-planner-preview {
    width: min(100%, 43rem);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    align-self: center;
    perspective: none;
}
body.train365 .t365-planner-preview .dash-window {
    position: static;
    border-radius: var(--ds-radius-sm);
    border-color: var(--ds-line);
    box-shadow: var(--ds-shadow);
    transform: none;
    will-change: auto;
    color: #f8faff;
}
body.train365 .t365-planner-preview .dash-body {
    grid-template-columns: minmax(5.25rem, 23%) minmax(0, 1fr);
    min-height: 0;
}
.t365-planner-preview .dash-content {
    padding: clamp(.75rem, 2.3vw, 1.75rem);
}
.t365-planner-preview .dash-nav {
    white-space: normal;
}
.t365-planner-preview .dash-nav svg {
    flex: none;
}
.t365-planner-preview .cal-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.train365 .t365-planner-preview .visual-label {
    position: static;
    margin: .7rem 0 0;
    font-size: .75rem;
    color: var(--ds-muted);
    text-align: end;
}

body.train365 main .hero::before,
body.train365 main .inner-hero::before {
    content: none;
}
body.train365 main .inner-orb,
body.train365 main .hero-glow,
body.train365 main .final-glow {
    display: none;
}

/* Industry names form a browsable index. The links keep their full hit area. */
body.train365 main .branches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(1.25rem, 4vw, 4rem);
}
body.train365 main .branches-grid .branch-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    min-height: 3.5rem;
    padding: .8rem .25rem;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ds-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--ds-text);
}
body.train365 main .branches-grid .branch-card[hidden] {
    display: none;
}
body.train365 main .branches-grid .branch-card:hover {
    transform: none;
}
.branches-grid .branch-card:is(:hover, :focus-visible) strong {
    text-decoration: underline;
    text-underline-offset: .2em;
}
body.train365 main .branch-card:focus-visible {
    outline: 2px solid var(--ds-focus);
    outline-offset: 2px;
}
body.train365 .branches-grid .branch-icon {
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--ds-muted);
}
.branches-grid .branch-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
body.train365 .branches-grid .branch-go {
    position: static;
    display: inline-flex;
    color: var(--ds-muted);
}
body.train365 .branches-grid .branch-card strong {
    max-width: none;
    font-size: 1rem;
    line-height: 1.4;
}

/* Text-only Gutenberg columns use a rule; cards with actions keep their frame. */
body.train365 .t365-builder-cards > article.t365-builder-card {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--b-border);
    border-radius: 0;
    box-shadow: none;
    padding: 1rem 0 0;
}
body.train365 .t365-builder-cards > article .t365-builder-count {
    display: none;
}
body.train365 .t365-builder-cards > article h3 {
    margin-top: 0;
}
@media (max-width: 650px) {
    body.train365 main .branches-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    body.train365 .t365-planner-preview .visual-label {
        text-align: start;
    }
}
@media (max-width: 440px) {
    .t365-planner-preview .dash-sidebar {
        display: none;
    }
    body.train365 .t365-planner-preview .dash-body {
        grid-template-columns: minmax(0, 1fr);
    }
    .t365-planner-preview .dash-title strong {
        font-size: 1rem;
    }
    .t365-planner-preview .metric small,
    .t365-planner-preview .cal-day small,
    .t365-planner-preview .cal-event {
        font-size: .65rem;
    }
}

/* A scheduling example is a short piece of reading between product sections. */
body.train365 .t365-v14-outcomes:has(.t365-planning-example) {
    padding-block: clamp(2rem, 4vw, 3.5rem);
    border-block: 1px solid var(--ds-line);
    background: var(--ds-bg);
    color: var(--ds-text);
}
body.train365 .t365-planning-example h2 {
    max-width: 28ch;
    font-size: clamp(1.6rem, 2.5vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 .65rem;
}
body.train365 .t365-planning-example p {
    max-width: 62ch;
    margin-block: 0 .65rem;
    color: var(--ds-muted);
}
.t365-planning-example a {
    display: inline-block;
    color: var(--ds-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .22em;
}
@media (min-width: 900px) {
    body.train365 .t365-planning-example {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        column-gap: clamp(2rem, 5vw, 5rem);
        align-items: start;
    }
}

.t365-quick-mobile-cta[hidden] {
    display: none;
}

body.train365.t365-view-feature_detail .t365-feature-story {
    align-items: start;
    border-top: 1px solid var(--ds-line);
    padding-top: 1.5rem;
}
body.train365.t365-view-feature_detail .t365-feature-story > div {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.t365-story-steps ul {
    margin: 0 0 1.25rem;
    padding-inline-start: 1.25rem;
}
.t365-story-steps li + li {
    margin-top: .75rem;
}
