﻿/* ==========================================================================
   Kidsdoctor Subpages Master Stylesheet (sub.css)
   - Clean Code & Fully Formatted Version
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Subpage Base & Core Reset
   -------------------------------------------------------------------------- */
.figma-subpage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
}

.fd-node {
    position: relative;
    min-width: 0;
    box-sizing: border-box;
}

.fd-node.fd-full {
    width: 100%;
    max-width: none;
}

.fd-container {
    margin-inline: auto;
    max-width: calc(100% - var(--site-gutter) * 2);
}

.fd-container .fd-container {
    max-width: 100%;
}

/* Short design labels size to their text instead of rounding-sensitive frame widths. */
.fd-node.fd-fit-label {
    width: max-content;
    max-width: 100%;
    flex-shrink: 0;
    white-space: nowrap;
}

.franchise-page .franchise-opening__icon {
    margin-left: calc(87.5% - 3.88px);
}

@media (max-width: 1100px) {
    .franchise-page .franchise-opening__icon {
        align-self: center;
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    .fd-node.fd-fit-label {
        white-space: normal;
        flex-shrink: 1;
    }
}

.fd-photo {
    display: block;
    overflow: hidden;
    flex-shrink: 1;
}

.fd-photo > img {
    display: block;
}

.fd-icon {
    display: block;
    max-width: none;
    object-fit: contain;
}

.fd-line {
    display: block;
}

.fd-grid > .fd-node,
.fd-free-grid > .fd-node {
    width: 100%;
    max-width: 100%;
}

.fd-node.fd-absolute {
    position: absolute;
}

.fd-node.fd-absolute.fd-line {
    width: 50.3%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   2. Typography & Text Utilities
   -------------------------------------------------------------------------- */
.fd-text {
    margin: 0;
    padding: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    flex-shrink: 0;
}

.fd-eyebrow {
    flex-shrink: 0;
}

.fd-eyebrow .fd-text {
    white-space: nowrap;
}

.fd-bullet {
    display: inline;
}

/* --------------------------------------------------------------------------
   3. Interactive Buttons, Actions & Badges
   -------------------------------------------------------------------------- */
.fd-button {
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    flex-shrink: 0;
}

.fd-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(11, 46, 91, 0.12);
}

.fd-button .fd-text {
    white-space: nowrap;
}

.fd-action {
    transition:
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.fd-action:focus-visible {
    outline-offset: 6px;
}

/* Circular Badges */
.fd-badge {
    aspect-ratio: 1 / 1;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box;
}

.fd-badge .fd-text {
    width: auto !important;
    max-width: 100% !important;
    text-align: center !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   4. Structural Layouts (Overlap, Brand Story, Sitemap)
   -------------------------------------------------------------------------- */
.page-location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: max-content;
    max-width: 100%;
    flex-shrink: 0;
    padding: 6px 16px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 300;
    line-height: 14.32px;
    letter-spacing: -0.6px;
    text-align: left;
    white-space: nowrap;
}

.page-location a:is(:hover, :focus-visible) {
    text-decoration: underline;
}

.page-location > span {
    color: var(--gold-text);
}

.page-location [aria-current="page"] {
    font-weight: 500;
}

.fd-brand-story {
    overflow: hidden;
}

.fd-overlap {
    display: grid;
    grid-template-columns: 753fr 647fr;
    align-items: center;
}

.fd-overlap > .fd-photo {
    width: calc(100% + 145px);
    max-width: none;
    margin-left: -145px;
    align-self: end;
}

.fd-overlap > .fd-node:first-child {
    z-index: 1;
}

.fd-home-practices {
    align-items: stretch;
}

/* --------------------------------------------------------------------------
   6. Application Form, Inputs & Modals
   -------------------------------------------------------------------------- */
.application-form {
    width: 1400px;
    max-width: 100%;
    padding: 48px;
    border: 1px solid #d4af7a;
    border-radius: 24px;
    background: #f9f3e6;
    color: var(--navy);
    box-shadow: 0 5px 12px rgba(179, 142, 73, 0.06);
}

.application-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.application-field {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(231, 212, 180, 0.5);
    border-radius: 20px;
    background: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.application-field.full-width {
    grid-column: 1 / -1;
}

fieldset.application-field {
    border: 1px solid rgba(231, 212, 180, 0.5);
    border-radius: 20px;
    background: #ffffff;
    padding: 24px;
    margin: 0;
    min-inline-size: 0;
    box-sizing: border-box;
}

.application-field > label,
.application-field .field-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    line-height: 28px;
    margin: 0;
}

.application-field input:not([type="radio"]),
.application-field select,
.application-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    height: 56px;
    padding: 15px 20px;
    border: 1px solid rgba(212, 175, 122, 0.5);
    border-radius: 14px;
    background: #fcf8ef;
    color: #333333;
    font-size: 16px;
    font-weight: 400;
}

.application-field label > input:not([type="radio"]),
.application-field label > select,
.application-field label > textarea,
.application-field label > .phone-input,
.application-field label > .address-input,
.application-field label > .postal-input,
.application-field label > .datetime-input,
.application-field label > .date-input,
.application-field .radio-group {
    margin-top: 12px;
}

.application-field input::placeholder,
.application-field textarea::placeholder {
    color: #999999;
    opacity: 1;
}

.application-field textarea {
    height: 150px;
    resize: vertical;
}

.application-field legend {
    float: none;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    line-height: 28px;
}

.application-field .radio-group {
    display: flex;
    align-items: center;
    height: 56px;
    min-height: 56px;
    gap: 30px;
}

.application-field .radio-group label,
.application-field:has(legend) > label {
    display: inline-flex;
    gap: 10px;
    margin-right: 0;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.application-field input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: #b38e49;
    cursor: pointer;
}

.application-field input[type="date"] {
    cursor: pointer;
}

.application-field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.phone-input,
.address-input,
.postal-input,
.datetime-input {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.phone-input > input,
.phone-input > select {
    flex: 1 1 0;
    width: 0 !important;
    padding-inline: 12px !important;
}

.address-input > input,
.datetime-input > .date-input,
.datetime-input > input {
    flex: 1 1 0;
    width: 0 !important;
}

.datetime-input > .date-input {
    margin-top: 0 !important;
}

.date-input {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.date-input .date-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 2;
}

.date-input input[type="date"] {
    width: 100%;
    height: 56px;
    padding-left: 48px !important;
    padding-right: 20px;
    position: relative;
    cursor: pointer;
}

.date-input input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.address-search {
    min-width: 123px;
    height: 56px;
    min-height: 56px;
    padding: 10px 15px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: #999999;
    font-size: 16px;
    cursor: pointer;
    box-sizing: border-box;
}

.address-search:hover {
    background: #777777;
}

.postal-input > input {
    flex: 0 1 240px;
}

.required {
    color: #c8102e;
}

.application-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.application-caption h3 {
    font-size: 26px;
    margin: 0;
}

.application-caption p {
    font-size: 16px;
    color: #999999;
    margin: 0;
}

.application-three {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.application-franchise .application-fields {
    gap: 24px;
}

.application-privacy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    padding: 24px;
    border: 1px solid rgba(231, 212, 180, 0.5);
    border-radius: 20px;
    background: #ffffff;
}

.application-privacy > h3 {
    font-size: 18px;
    margin-bottom: 0;
}

.application-privacy > .fd-node {
    width: 100%;
    flex: none;
}

.agreement {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.agreement input {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    accent-color: #b38e49;
}

.application-submit {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.application-submit .button {
    background: #0b2e5b;
    border-color: #0b2e5b;
    min-height: 55px;
    font-size: 16px;
}

.application-note {
    font-size: 14px;
    color: #888888;
    text-align: center;
    margin-top: 20px;
}

.application-note a {
    text-decoration: underline;
}

.form-result:empty {
    display: none;
}

.form-result:not(:empty) {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

/* Modals & Dialogs */
.branch-dialog {
    width: 650px;
    max-width: calc(100vw - 40px);
    padding: 50px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--navy);
    background: #ffffff;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
}

.branch-dialog::backdrop {
    background: rgba(6, 31, 66, 0.5);
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 18px;
    border: 0;
    background: none;
    font-size: 36px;
    line-height: 1;
    color: #999999;
    cursor: pointer;
}

.branch-dialog h2 {
    font-size: 32px;
    margin: 20px 0;
}

.branch-dialog [data-branch-info] {
    font-size: 18px;
    line-height: 1.8;
    color: #777777;
    margin-bottom: 30px;
}

.branch-dialog .button-row {
    gap: 10px;
}

.postcode-dialog {
    padding: 45px 15px 15px;
    width: 500px;
    height: 560px;
}

.postcode-host {
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   7. Branch & Community Interactive Components
   -------------------------------------------------------------------------- */
.fd-branch-filters {
    align-items: center;
}

.fd-region-button,
.fd-branch-card,
[data-pagination] {
    font: inherit;
    cursor: pointer;
}

.fd-region-button {
    border: 0;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding-top: 14px;
    padding-bottom: 14px;
    box-sizing: border-box;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.fd-region-button .fd-text {
    white-space: nowrap;
    flex-shrink: 0;
}

.fd-region-button[aria-pressed="false"] {
    background: transparent;
    box-shadow: none;
}

.fd-region-button[aria-pressed="false"] .fd-text {
    color: #666666;
}

.fd-region-button[aria-pressed="false"] .fd-text:last-child {
    color: rgba(102, 102, 102, 0.6);
}

.fd-region-button[aria-pressed="false"]:hover {
    background: rgba(212, 175, 122, 0.12);
    border-radius: 50px;
}

.fd-region-button[aria-pressed="true"] {
    background: linear-gradient(120deg, #c3a163, #d4af7a);
    border-radius: 50px;
}

.fd-region-button[aria-pressed="true"] .fd-text {
    color: #ffffff;
}

.fd-region-button[aria-pressed="true"] .fd-text:last-child {
    color: rgba(255, 255, 255, 0.7);
}

.fd-branch-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    text-align: inherit;
}

.fd-branch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(179, 142, 73, 0.15);
}

.fd-node.fd-branch-filters {
    flex-wrap: wrap;
    gap: 6px;
}

.fd-branch-filters > .fd-region-button {
    flex: 1 1 auto;
    width: auto;
    padding-inline: 18px;
    gap: 8px;
}

.fd-branch-filters .fd-text {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
}

.fd-branch-filters [data-region-count] {
    font-size: 14px;
}

.branch-list-status {
    text-align: center;
    color: #666;
}

.branch-list-status:has([data-branch-status]:empty) {
    display: none;
}

.branch-list-status .button {
    margin-top: 16px;
}

.fd-branch-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.fd-branch-card .fd-node {
    width: auto;
    max-width: 100%;
}

.fd-branch-card [data-card-name] {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.fd-branch-card .fd-eyebrow {
    width: auto;
    max-width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 6px 14px;
    box-sizing: border-box;
}

.fd-branch-card [data-card-region] {
    width: auto;
    max-width: 100%;
    text-align: center;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.branch-dialog[data-branch-dialog] {
    --branch-dialog-padding: 48px;
    padding: var(--branch-dialog-padding) var(--branch-dialog-padding) 0;
    overflow: hidden;
}

.branch-dialog [data-branch-region] {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    background: #fcf7ed;
    color: #c3a163;
}

.branch-dialog [data-branch-info] p {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 16px;
}

.branch-dialog [data-branch-info] strong {
    flex: 0 0 56px;
    color: #c3a163;
    font-weight: 600;
}

.branch-dialog [data-branch-info] span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.branch-dialog-actions {
    margin: 32px calc(-1 * var(--branch-dialog-padding)) 0;
}

.branch-dialog-actions .button {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 22px;
    border: 0;
    border-radius: 0;
    background: var(--navy);
    color: #fff;
}

@media (max-width: 768px) {
    .branch-dialog[data-branch-dialog] {
        --branch-dialog-padding: 26px;
    }

    .branch-dialog [data-branch-info] p {
        font-size: 14px;
        gap: 12px;
    }
}

[data-pagination] {
    padding: 0;
}

[data-pagination][aria-current="page"] {
    background: var(--navy);
    color: #ffffff;
}

[data-pagination][aria-current="page"] .fd-text {
    color: #ffffff;
}

[data-pagination]:not([aria-current="page"]) {
    background: #ffffff;
}

[data-pagination]:not([aria-current="page"]) .fd-text {
    color: #666666;
}

/* --------------------------------------------------------------------------
   8. Subpages Card Hover Interactions (Competency, Program, Roadmap, Guide)
   -------------------------------------------------------------------------- */
/* Competency & Program Top Tabs */
.competency-page .competency-overview__cards > .fd-action,
.program-page .program-overview__layout > .fd-action {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.competency-page .competency-overview__cards > .fd-action:hover,
.competency-page .competency-overview__cards > .fd-action:focus-visible,
.program-page .program-overview__layout > .fd-action:hover,
.program-page .program-overview__layout > .fd-action:focus-visible {
    transform: translateY(-8px);
    background: #f9f3e6 !important;
    border-color: #d4af7a !important;
    box-shadow: 2px 8px 16px 0 rgba(239, 183, 110, 0.35) !important;
}

.competency-page .competency-overview__cards > .fd-action .fd-badge,
.program-page .program-overview__layout > .fd-action .fd-badge {
    transition: transform 0.3s ease;
}

.competency-page .competency-overview__cards > .fd-action:hover .fd-badge,
.program-page .program-overview__layout > .fd-action:hover .fd-badge {
    transform: scale(1.06);
}

/* Program Page Core Competencies */
.program-page .program-thinking__skills > .fd-column,
.program-page .program-spatial-math__skills > .fd-column,
.program-page .program-creative-project__skills > .fd-column {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.program-page .program-thinking__skills > .fd-column:hover,
.program-page .program-thinking__skills > .fd-column:focus-visible,
.program-page .program-spatial-math__skills > .fd-column:hover,
.program-page .program-spatial-math__skills > .fd-column:focus-visible,
.program-page .program-creative-project__skills > .fd-column:hover,
.program-page .program-creative-project__skills > .fd-column:focus-visible {
    transform: translateY(-8px);
    border-color: #d4af7a !important;
    box-shadow: 2px 8px 16px 0 rgba(239, 183, 110, 0.35) !important;
}

.program-page .program-thinking__skills > .fd-column .fd-badge,
.program-page .program-spatial-math__skills > .fd-column .fd-badge,
.program-page .program-creative-project__skills > .fd-column .fd-badge {
    transition: transform 0.3s ease;
}

.program-page .program-thinking__skills > .fd-column:hover .fd-badge,
.program-page .program-spatial-math__skills > .fd-column:hover .fd-badge,
.program-page .program-creative-project__skills > .fd-column:hover .fd-badge {
    transform: scale(1.08);
}

/* Roadmap Page Tabs & Cards */
.roadmap-page .roadmap-overview__layout > .fd-action {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.roadmap-page .roadmap-overview__layout > .fd-action:hover,
.roadmap-page .roadmap-overview__layout > .fd-action:focus-visible {
    transform: translateY(-8px);
    background: #f9f3e6 !important;
    border-color: #d4af7a !important;
    box-shadow: 2px 8px 16px 0 rgba(239, 183, 110, 0.35) !important;
}

.roadmap-page .roadmap-preschool__focus-cards > .fd-column,
.roadmap-page .roadmap-lower-primary__focus-cards > .fd-column,
.roadmap-page .roadmap-upper-primary__focus-cards > .fd-column {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.roadmap-page .roadmap-preschool__focus-cards > .fd-column:hover,
.roadmap-page .roadmap-preschool__focus-cards > .fd-column:focus-visible,
.roadmap-page .roadmap-lower-primary__focus-cards > .fd-column:hover,
.roadmap-page .roadmap-lower-primary__focus-cards > .fd-column:focus-visible,
.roadmap-page .roadmap-upper-primary__focus-cards > .fd-column:hover,
.roadmap-page .roadmap-upper-primary__focus-cards > .fd-column:focus-visible {
    transform: translateY(-8px);
    border-color: #d4af7a !important;
    box-shadow: 2px 8px 16px 0 rgba(239, 183, 110, 0.35) !important;
}

/* Guide Page Navigation Cards */
.guide-page .guide-overview__grid > .fd-action {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

.guide-page .guide-overview__grid > .fd-action:hover,
.guide-page .guide-overview__grid > .fd-action:focus-visible {
    transform: translateY(-8px);
    background: #f9f3e6 !important;
    border-color: #d4af7a !important;
    box-shadow: 2px 8px 16px 0 rgba(239, 183, 110, 0.35) !important;
}

.guide-page .guide-overview__grid > .fd-action > .fd-row:first-child {
    transition: transform 0.3s ease;
}

.guide-page .guide-overview__grid > .fd-action:hover > .fd-row:first-child {
    transform: scale(1.08);
}

.guide-page .guide-overview__grid > .fd-action > span.fd-text {
    width: auto !important;
    max-width: 100% !important;
    text-align: left !important;
    flex: 0 1 auto !important;
}

/* Guide Page 5 Home Practices Cards */
.guide-page .guide-home-learning__activities > .fd-column {
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.guide-page .guide-home-learning__activities > .fd-column:hover,
.guide-page .guide-home-learning__activities > .fd-column:focus-visible {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: #d4af7a !important;
    box-shadow: 2px 8px 20px 0 rgba(0, 0, 0, 0.3) !important;
}

.guide-page .guide-home-learning__activities > .fd-column .fd-badge {
    transition: transform 0.3s ease;
}

.guide-page .guide-home-learning__activities > .fd-column:hover .fd-badge {
    transform: scale(1.08);
}

/* Consult Page Diagnosis Test Cards */
.consult-page .consult-assessment__cards > .fd-column {
    background: #fdfaf3 !important;
    border-color: rgba(212, 175, 122, 0.5) !important;
    box-shadow: none !important;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.consult-page .consult-assessment__cards > .fd-column:hover,
.consult-page .consult-assessment__cards > .fd-column:focus-visible {
    transform: translateY(-8px);
    background: #f9f3e6 !important;
    border-color: #d4af7a !important;
    box-shadow: 2px 8px 16px 0 rgba(239, 183, 110, 0.35) !important;
}

.consult-page .consult-assessment__cards > .fd-column .fd-icon {
    transition: transform 0.3s ease;
}

.consult-page .consult-assessment__cards > .fd-column:hover .fd-icon {
    transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   9. Parent Guide Specific Enhancements (Single-line Badges & Left Alignments)
   -------------------------------------------------------------------------- */
.guide-page .guide-starting-age__content-highlight-primary-title,
.guide-page .guide-learning-pace__content-highlight-primary-title,
.guide-page .guide-ai-education__content-highlight-primary-title,
.guide-page .guide-motivation__content-highlight-primary-title,
.guide-page .guide-parent-role__content-highlight-primary-title,
.guide-page .guide-academy-choice__content-highlight-primary-title,
.guide-page .fd-effect > p:first-child {
    width: auto !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    text-align: left !important;
}

.guide-page .guide-starting-age__row-heading-title,
.guide-page .guide-learning-pace__row-heading-title,
.guide-page .guide-ai-education__row-heading-title,
.guide-page .guide-motivation__row-heading-title,
.guide-page .guide-parent-role__row-heading-title,
.guide-page .guide-academy-choice__row-heading-title,
.guide-page .guide-starting-age__content-highlight-primary-description {
    text-align: left !important;
}

/* --------------------------------------------------------------------------
   10. FAQ Accordion Architecture
   -------------------------------------------------------------------------- */
.guide-page .fd-faq {
    display: block;
    width: 100%;
    background: #fdfaf3;
    border-radius: 12px;
    border: 1px solid #d4af7a;
    padding: 0;
    box-sizing: border-box;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    cursor: pointer;
    text-align: left;
}

.guide-page .fd-faq[open] {
    background: #ffffff;
    box-shadow: 2px 6px 16px 0 rgba(212, 175, 122, 0.2);
}

.guide-page .fd-faq-question,
.guide-page .fd-faq-summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    cursor: pointer;
    list-style: none;
    text-align: left;
    user-select: none;
    -webkit-user-select: none;
}

.guide-page .fd-faq-question::-webkit-details-marker,
.guide-page .fd-faq-summary::-webkit-details-marker {
    display: none;
}

.guide-page .fd-faq-question::marker,
.guide-page .fd-faq-summary::marker {
    content: "";
}

.guide-page .fd-faq-question > div:first-child,
.guide-page .fd-faq-summary > div:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: auto;
    max-width: calc(100% - 44px);
    flex: 1 1 auto;
    text-align: left;
    pointer-events: none;
}

.guide-page .fd-faq-question > div:first-child > div:first-child,
.guide-page .fd-faq-summary > div:first-child > div:first-child {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.guide-page .fd-faq-question p.fd-text,
.guide-page .fd-faq-summary p.fd-text {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -1.2px;
    color: #08264d;
    flex: 0 1 auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.guide-page .fd-faq-question > .fd-icon,
.guide-page .fd-faq-summary > .fd-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    pointer-events: none;
}

.guide-page .fd-faq[open] > summary .fd-icon {
    transform: rotate(45deg);
}

.guide-page .fd-faq[open] > summary {
    padding-bottom: 12px;
}

.guide-page .fd-faq-answer {
    margin-top: 0;
    padding: 0 30px 30px 90px;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.guide-page .fd-faq-answer p,
.guide-page .guide-faq__content-question-primary-answer-description,
.guide-page .guide-faq-answer-text {
    width: 100%;
    max-width: 100%;
    flex: none;
    font-size: 20px;
    font-weight: 500;
    line-height: 35px;
    letter-spacing: -1px;
    color: #666666;
    text-align: left;
    margin: 0;
}

/* --------------------------------------------------------------------------
   11. Responsive Media Queries
   -------------------------------------------------------------------------- */
/* Max Width 1450px */
@media (max-width: 1450px) {
    .fd-responsive-row {
        gap: 30px;
    }

    .fd-branch-filters {
        gap: 4px;
    }

    .fd-branch-filters > button {
        padding-inline: 18px;
    }

    .fd-text {
        max-width: 100%;
    }

    .fd-row > .fd-text {
        flex-shrink: 1;
    }
}

/* Max Width 1100px */
@media (max-width: 1100px) {
    .figma-subpage > .fd-full {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .fd-container {
        max-width: calc(100% - var(--site-gutter) * 2);
    }

    .fd-node.fd-responsive-row {
        flex-wrap: wrap;
        min-height: 0;
        justify-content: center;
    }

    .fd-responsive-row > .fd-column,
    .fd-responsive-row > .fd-photo {
        flex: 1 1 260px;
        width: auto;
    }

    .fd-node.fd-cards-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .fd-cards-row > .fd-node {
        width: 100%;
    }

    .fd-branch-filters {
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
        padding: 8px;
    }

    .fd-branch-filters > button {
        flex: 0 1 auto;
        width: auto;
    }

    .fd-branch-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fd-home-practices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px;
    }

    .fd-node.fd-brand-story {
        padding-bottom: 0;
    }

    .fd-brand-story .fd-responsive-row {
        align-items: center;
    }

    .fd-overlap {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .fd-overlap > .fd-photo {
        width: min(600px, 100%);
        max-width: 100%;
        margin: 0;
        align-self: center;
    }

    .application-form {
        padding: 32px;
    }

    .application-fields {
        gap: 20px;
    }

    .application-field {
        padding: 20px;
    }

    .phone-input {
        gap: 4px;
    }

    .address-input,
    .datetime-input {
        flex-wrap: wrap;
    }

    .address-input > input,
    .datetime-input > .date-input,
    .datetime-input > input {
        flex-basis: 180px;
    }

    .fd-responsive-row .fd-row > .fd-text {
        flex-shrink: 1;
    }
}

/* Max Width 900px */
@media (max-width: 900px) {
    .guide-page .fd-faq-question,
    .guide-page .fd-faq-summary {
        padding: 20px;
    }

    .guide-page .fd-faq-question p.fd-text,
    .guide-page .fd-faq-summary p.fd-text {
        white-space: normal;
        font-size: 18px;
        line-height: 1.4;
    }

    .guide-page .fd-faq-answer {
        padding: 0 20px 20px 20px;
    }

    .guide-page .fd-faq-answer p,
    .guide-page .guide-faq__content-question-primary-answer-description,
    .guide-page .guide-faq-answer-text {
        font-size: 16px;
        line-height: 26px;
    }
}

/* Max Width 700px */
@media (max-width: 700px) {
    .figma-subpage > .fd-full {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .figma-subpage .fd-node.fd-full {
        padding-left: 0;
        padding-right: 0;
    }

    .figma-subpage .fd-padded:not(.fd-full) {
        padding: 22px 18px;
    }

    .fd-node.fd-column,
    .fd-node.fd-row,
    .fd-node.fd-grid,
    .fd-node.fd-free-grid,
    .fd-node.fd-free-stack {
        min-height: 0;
    }

    .fd-text {
        font-size: clamp(14px, 4vw, 18px);
        line-height: 1.8;
        letter-spacing: -0.04em;
    }

    .fd-text span {
        font-size: inherit;
    }

    h1.fd-text {
        font-size: 32px;
        line-height: 1.35;
    }

    h2.fd-text {
        font-size: 26px;
        line-height: 1.45;
    }

    .fd-sub-title h2.fd-text {
        font-size: 22px;
    }

    .fd-node.fd-sub-title {
        padding-top: 45px;
        padding-bottom: 40px;
        gap: 30px;
    }

    .fd-sub-title .fd-text {
        text-align: center;
    }

    .fd-break {
        display: none;
    }

    .fd-break + .fd-break {
        display: block;
    }

    .fd-text br::after {
        content: " ";
    }

    .fd-node.fd-responsive-row {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 28px;
        align-items: stretch;
    }

    .fd-responsive-row > .fd-node {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .fd-responsive-row > .fd-photo {
        max-width: 100%;
        width: 100%;
    }

    .fd-node.fd-grid,
    .fd-node.fd-free-grid,
    .fd-node.fd-cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .fd-node.fd-home-practices {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fd-home-practices .fd-text {
        width: 100%;
    }

    .fd-home-practices > .fd-node {
        padding: 25px;
    }

    .fd-photo {
        max-width: 100%;
    }

    .fd-container {
        max-width: calc(100% - 44px);
    }

    .fd-node.fd-full > .fd-text {
        max-width: calc(100% - 44px);
    }

    .fd-node.fd-effect {
        padding: 25px;
        gap: 20px;
    }

    .fd-effect .fd-absolute {
        opacity: 0.35;
    }

    .fd-node.fd-column {
        row-gap: 24px;
    }

    .fd-node.fd-column.fd-eyebrow,
    .fd-node.fd-column:has(> .fd-button),
    .fd-node.fd-column:has(> h1) {
        row-gap: 18px;
    }

    .page-location {
        padding: 0;
        line-height: 20px;
    }

    .fd-node.fd-row.fd-button {
        min-height: 48px;
        width: auto;
        padding: 12px 20px;
        gap: 10px;
        align-self: center;
    }

    .fd-button .fd-text {
        font-size: 14px;
        line-height: 20px;
    }

    .fd-eyebrow .fd-text {
        font-size: 12px;
        line-height: 18px;
    }

    .fd-node.fd-line-vertical {
        display: none;
    }

    .fd-sub-title:has(.guide-intro__layout) {
        padding-bottom: 0;
    }

    .guide-intro__layout {
        padding: 30px 22px;
    }

    .guide-intro__layout-cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .guide-intro__layout-cards > .fd-column {
        width: 100%;
        gap: 8px;
        text-align: center;
    }

    .guide-intro__layout-cards h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    .guide-intro__layout-cards p {
        font-size: 11px;
        line-height: 1.5;
    }

    .fd-node.fd-branch-filters {
        width: calc(100% - 44px);
        gap: 5px;
        padding: 7px;
        border-radius: 24px;
    }

    .fd-branch-filters > button {
        padding: 10px 12px;
        min-height: 40px;
    }

    .fd-branch-filters .fd-text {
        font-size: 13px;
        line-height: 18px;
    }

    .fd-node.fd-branch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .fd-branch-card {
        padding: 22px 10px;
    }

    .fd-branch-card .fd-node {
        width: auto;
        max-width: 100%;
        gap: 8px;
    }

    .fd-branch-card .fd-eyebrow {
        padding: 4px 10px;
    }

    .fd-branch-card .fd-eyebrow p,
    .fd-branch-card [data-card-region] {
        font-size: 10px;
        line-height: 14px;
    }

    .fd-branch-card p {
        font-size: 17px;
    }

    .fd-faq-question {
        gap: 15px;
    }

    .application-form {
        padding: 22px;
        border-radius: 20px;
    }

    .application-fields,
    .application-three {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .application-field {
        padding: 18px;
        font-size: 15px;
    }

    .application-field input:not([type="radio"]),
    .application-field select,
    .application-field textarea {
        font-size: 14px;
        padding: 12px;
        height: 48px;
    }

    .application-field textarea {
        height: 140px;
    }

    .application-field legend {
        font-size: 15px;
    }

    .application-caption {
        align-items: flex-start;
        flex-direction: column;
    }

    .application-caption h3 {
        font-size: 22px;
    }

    .application-caption p {
        font-size: 12px;
    }

    .application-privacy {
        padding: 18px;
        gap: 18px;
        margin-top: 25px;
    }

    .application-privacy h3 {
        font-size: 16px;
    }

    .application-privacy > .fd-node {
        padding: 16px;
    }

    .application-privacy .fd-text {
        font-size: 13px;
        line-height: 1.8;
    }

    .agreement {
        font-size: 13px;
        align-items: flex-start;
    }

    .agreement input {
        width: 20px;
        height: 20px;
    }

    .address-input,
    .postal-input,
    .datetime-input {
        gap: 8px;
    }

    .address-input > input,
    .datetime-input > .date-input,
    .datetime-input > input {
        flex-basis: 100%;
    }

    .application-field .radio-group {
        min-height: 48px;
        gap: 20px;
    }

    .address-search {
        min-width: 100px;
        min-height: 48px;
        font-size: 12px;
        padding: 8px;
    }

    .postal-input {
        gap: 8px;
    }

    .application-note {
        font-size: 12px;
    }

    .branch-dialog {
        padding: 35px 25px;
    }

    .branch-dialog h2 {
        font-size: 28px;
    }

    .branch-dialog [data-branch-info] {
        font-size: 16px;
    }

    .fd-row:has(> .fd-button) {
        flex-wrap: wrap;
        justify-content: center;
        max-width: calc(100% - 44px);
        row-gap: 12px;
    }

    .fd-row:has(> .fd-button) > .fd-button {
        flex: none;
    }

    .fd-effect > .fd-icon.fd-absolute {
        left: auto;
        right: 18px;
        max-width: 76px;
    }

    .fd-absolute.fd-column {
        max-width: 90%;
    }

    .fd-badge .fd-text {
        font-size: 14px;
        line-height: 1;
    }

    .fd-node.fd-free-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fd-free-grid > .fd-column {
        padding: 45px 22px 30px;
        row-gap: 14px;
    }

    .fd-node.fd-absolute.fd-badge {
        width: 48px;
        height: 48px;
        min-height: 48px;
        top: -24px;
        left: calc(50% - 24px);
        gap: 0;
    }

    .franchise-page .franchise-opening__inner-primary {
        gap: 20px;
    }

    .franchise-page .franchise-opening__cards-primary {
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
    }

    .franchise-page .franchise-opening__cards-secondary {
        display: flex;
        flex-direction: column-reverse;
        gap: 16px;
        max-width: 100%;
    }

    .franchise-page .franchise-opening__cards-primary > .fd-icon,
    .franchise-page .franchise-opening__cards-secondary > .fd-icon,
    .franchise-page .franchise-opening__icon {
        display: none;
    }

    .franchise-page .franchise-opening__cards-primary > .fd-node,
    .franchise-page .franchise-opening__cards-secondary > .fd-node {
        width: 100%;
    }

    .fd-bullet {
        white-space: pre;
    }

    .fd-column.fd-absolute:empty {
        display: none;
    }

    .fd-node.guide-intro__layout-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Consultation application reveal and completion popup (Figma 122:13324). */
.consult-page .consult-apply-entry {
    display: flex;
    justify-content: center;
    margin-bottom: 70px;
}

.consult-page .consult-apply-entry .button {
    min-height: 55px;
    background: var(--navy);
    border-color: var(--navy);
    box-shadow: 2px 6px 12px rgba(102, 102, 102, 0.3);
}

.consult-page [data-consult-application] {
    scroll-margin-top: 110px;
}

.consult-success-dialog {
    width: 700px;
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 67px 100px;
    border: 0;
    border-radius: 30px;
    background: #fff;
    color: #222;
    overflow-y: auto;
}

.consult-success-dialog::backdrop {
    background: rgba(0, 0, 0, 0.3);
}

.consult-success-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
}

.consult-success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.consult-success-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
}

.consult-success-icon > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.consult-success-copy h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
}

.consult-success-copy p {
    margin-top: 10px;
    font-size: 18px;
    line-height: 30px;
}

.consult-success-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.consult-success-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 16px;
    border: 1px solid var(--navy);
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.8px;
}

.consult-success-home {
    border-color: var(--gold-light);
    background: #fff;
    color: var(--gold-light);
    text-decoration: none;
}

html.consult-success-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .consult-page .consult-apply-entry {
        margin-bottom: 40px;
    }

    .consult-page [data-consult-application] {
        scroll-margin-top: 82px;
    }

    .consult-success-dialog {
        padding: 60px 24px 32px;
        border-radius: 24px;
    }

    .consult-success-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 34px;
    }

    .consult-success-content {
        gap: 24px;
    }

    .consult-success-copy h2 {
        font-size: 20px;
        line-height: 30px;
    }

    .consult-success-copy p {
        font-size: 16px;
        line-height: 26px;
    }

    .consult-success-action {
        min-height: 52px;
        padding: 12px;
        font-size: 17px;
    }
}

.application-privacy > .privacy-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 20px;
    border-radius: 16px;
    background: #fcf8ef;
}

.application-privacy .privacy-card h4 {
    margin: 0;
    color: #08264d;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.9px;
}

.privacy-card-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #666;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
}

.application-privacy .privacy-emphasis {
    color: var(--red);
}

.privacy-card-copy p {
    margin: 0;
    white-space: pre-wrap;
}

.privacy-card-copy p:first-child:not(:last-child) {
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .application-privacy > .privacy-card {
        padding: 16px;
        gap: 12px;
    }

    .application-privacy .privacy-card h4 {
        font-size: 15px;
        line-height: 22px;
        letter-spacing: -0.6px;
    }

    .privacy-card-copy {
        font-size: 13px;
        line-height: 23px;
        letter-spacing: -0.5px;
    }
}

/* Customer revisions, 2026-11-02. Scoped to the requested sections. */
.about-page .about-story__content-heading {
    width: 100%;
    align-items: center;
}

.about-page :is(.about-story__content-heading-eyebrow-title, .about-story__content-heading-title) {
    text-align: center;
}

.about-page .fd-badge.fd-absolute {
    box-shadow: none;
}

.about-page .about-contact__row > .fd-button {
    box-shadow: 0 2px 5px rgba(11, 46, 91, 0.1);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.about-page .about-contact__row > .fd-button:is(:hover, :focus-visible) {
    transform: translateY(-2px);
    box-shadow: 0 3px 7px rgba(11, 46, 91, 0.14);
}

.about-page .about-contact__row-button-secondary {
    background: var(--navy);
    border: 0;
}

.about-page .about-contact__row-button-secondary-title {
    color: #fff;
}

.program-page .program-competency-cards {
    align-items: stretch;
}

.program-page .program-competency-cards > .fd-column {
    justify-content: flex-start;
    padding-inline: 12px;
}

.program-page .program-competency-title {
    width: 100%;
    min-block-size: 2lh;
    flex-shrink: 0;
}

@media (max-width: 360px) {
    .program-page .program-competency-title {
        min-block-size: 3lh;
    }
}

.program-page .program-creative-project__skill-creativity-description {
    font-size: 16px;
    letter-spacing: -0.8px;
}

.program-page .fd-button,
.branch-page .fd-button {
    box-shadow: 0 2px 5px rgba(11, 46, 91, 0.1);
}

.program-page .fd-button:is(:hover, :focus-visible),
.branch-page .fd-button:is(:hover, :focus-visible) {
    transform: translateY(-2px);
    box-shadow: 0 3px 7px rgba(11, 46, 91, 0.14);
}

.roadmap-page .roadmap-upper-primary__focus-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 17px;
}

.roadmap-page .roadmap-upper-primary__focus-cards > .fd-column {
    width: 100%;
    justify-content: flex-start;
}

.roadmap-page .roadmap-upper-primary__focus-cards > .fd-column > .fd-column {
    width: 100%;
}

@media (max-width: 1100px) {
    .roadmap-page .roadmap-upper-primary__focus-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .roadmap-page .roadmap-upper-primary__focus-cards {
        grid-template-columns: 1fr;
    }
}

.roadmap-page :is(.roadmap-preschool__quote, .roadmap-lower-primary__quote-divider-start, .roadmap-upper-primary__quote) > .fd-line {
    height: 2px;
    min-height: 2px;
    flex: none;
}

.roadmap-page .roadmap-curriculum > .fd-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.roadmap-page .roadmap-curriculum > .fd-row > .fd-text {
    width: auto;
}

.roadmap-page .roadmap-milestones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 17px;
}

/* Each connector spans its own gap, independent of card width or text height. */
.roadmap-page .roadmap-milestones > .fd-line {
    display: none;
}

.roadmap-page .roadmap-milestones > .fd-column {
    width: auto;
}

.roadmap-page .roadmap-milestones > .fd-column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    right: -18px;
    width: 18px;
    height: 2px;
    background: var(--gold-light);
}

.guide-page .guide-intro__layout-cards {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: stretch;
    gap: 20px;
}

.guide-page .guide-intro__layout-cards > .fd-column {
    width: 100%;
    justify-content: center;
}

.guide-page .guide-intro__layout-cards > .fd-line {
    display: none;
}

.guide-page .guide-intro__layout-cards > .fd-column:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 100px;
    background: #666;
}

.guide-page .guide-intro__layout-cards h2 {
    width: max-content;
    max-width: 100%;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .guide-page .guide-intro__layout-cards {
        gap: 12px;
    }

    .guide-page .guide-intro__layout-cards h2 {
        font-size: clamp(18px, 5.5vw, 26px);
    }

    .guide-page .guide-intro__layout-cards > .fd-column::before {
        display: none;
    }
}

/* Guide copy uses explicit breaks for sentences, lists and card headings. */
.guide-page br.fd-break {
    display: inline;
}

.guide-page .fd-home-practices .fd-text {
    text-shadow: none;
}

.guide-page .fd-home-practices .fd-badge {
    background: #f1dfba;
    box-shadow: none;
}

.guide-page .fd-home-practices .fd-badge .fd-text {
    color: var(--navy-deep);
    font-weight: 500;
}

.guide-page .fd-home-practices > .fd-column > .fd-column:not(.fd-badge) > .fd-text:first-child {
    width: 100%;
    font-weight: 600;
    color: #fff5df;
    letter-spacing: -0.5px;
}

.branch-page .fd-branch-card {
    box-shadow: 0 2px 4px rgba(11, 46, 91, 0.06);
}

.branch-page .fd-branch-card:is(:hover, :focus-visible) {
    box-shadow: 0 3px 6px rgba(11, 46, 91, 0.12);
}

.branch-page .fd-region-button[aria-pressed="true"] .fd-text {
    color: #fff;
}

.franchise-page :is(.franchise-opening__cards-primary, .franchise-opening__cards-secondary) > .fd-icon,
.franchise-page .franchise-opening__icon {
    width: 36px;
    height: 36px;
}

@media (max-width: 1100px) {
    .roadmap-page .roadmap-curriculum > .fd-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 700px) {
    .roadmap-page .roadmap-milestones {
        grid-template-columns: 1fr;
    }

    .roadmap-page .roadmap-milestones > .fd-column::after {
        display: none;
    }
}

@media (min-width: 701px) and (max-width: 1100px) {
    .franchise-page :is(.franchise-opening__cards-primary, .franchise-opening__cards-secondary) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr);
        gap: 12px;
    }

    .franchise-page :is(.franchise-opening__cards-primary, .franchise-opening__cards-secondary) > .fd-column {
        width: 100%;
        padding: 20px 16px;
    }

    .franchise-page .franchise-opening__icon {
        align-self: flex-end;
        margin: 0 calc(12.5% - 40.5px) 0 0;
    }
}

@media (max-width: 700px) {
    .franchise-page :is(.franchise-opening__cards-primary, .franchise-opening__cards-secondary) > .fd-icon,
    .franchise-page .franchise-opening__icon {
        display: block;
        align-self: center;
        margin: 0;
    }

    .franchise-page .franchise-opening__cards-primary > .fd-icon {
        transform: rotate(90deg);
    }

    .franchise-page .franchise-opening__cards-secondary > .fd-icon {
        transform: rotate(-90deg);
    }
}
