/* About page («מי אנחנו») — scoped to .page-about only.
   Matches homepage (--th-*) tokens; does not alter header/footer/globals. */

.page-about {
    --th-bg: #ffffff;
    --th-bg-soft: #f4f5f7;
    --th-ink: #101828;
    --th-ink-soft: #1f2937;
    --th-muted: #5c6570;
    --th-line: #e3e8ef;
    --th-line-strong: #cdd6e2;
    --th-navy: #0a1a3d;
    --th-accent: #1868c9;
    --th-cyan: #1aa6c8;
    --th-focus: rgba(24, 104, 201, 0.18);
    --th-radius: 4px;
    --th-radius-field: 7px;
    --th-radius-photo: 12px;
    --th-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ab-rail: 1100px;
    --ab-gap: 48px;
    --th-header-h: 68px;
    background: var(--th-bg);
    color: var(--th-ink);
}

.page-about .ab-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-about .ab-rail {
    margin-inline: auto;
    width: min(100% - 3rem, var(--ab-rail));
    max-width: var(--ab-rail);
    box-sizing: border-box;
}

/* —— Intro: same rail as people; text column flush RTL-start (right) —— */
.page-about .ab-intro {
    background: #fff;
    padding-block: 40px 44px; /* ~36–44 under header → label; ~40–48 end → people */
}

.page-about .ab-intro__content {
    max-width: 800px; /* ~760–820 */
    margin-inline-start: 0;
    margin-inline-end: auto; /* empty space on the left in RTL; flush to right with people */
    text-align: right;
    direction: rtl;
}

.page-about .ab-intro__label {
    display: block;
    margin: 0 0 10px; /* label → title */
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: var(--th-muted);
    text-align: right;
}

.page-about .ab-intro__title {
    margin: 0 0 20px; /* title → lead */
    font-size: clamp(2.375rem, 2.1rem + 0.6vw, 2.625rem); /* ~38–42 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--th-navy);
    text-wrap: pretty;
    text-align: right;
}

.page-about .ab-intro__lead {
    margin: 0 0 24px; /* lead → rest */
    font-size: 1.25rem; /* 20px; desktop 19–20 */
    font-weight: 400;
    line-height: 1.6;
    color: var(--th-ink-soft);
    text-align: right;
    direction: rtl;
    unicode-bidi: isolate;
}

.page-about .ab-intro__body {
    display: block;
}

.page-about .ab-intro__body p {
    margin: 0 0 16px; /* between paras */
    font-size: 1.125rem; /* 18px; desktop 17–18 */
    font-weight: 400;
    line-height: 1.65;
    color: var(--th-muted);
    text-align: right;
    direction: rtl;
    unicode-bidi: isolate;
}

.page-about .ab-intro__body p:last-child {
    margin-bottom: 0;
}

/* —— People —— */
.page-about .ab-people {
    background: var(--th-bg-soft);
    padding-block: 56px 64px;
}

.page-about .ab-people__header {
    margin-bottom: 40px;
    max-width: 40rem;
}

.page-about .ab-people__title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 0.4rem + 1.8vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--th-navy);
}

.page-about .ab-people__lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--th-muted);
}

.page-about .ab-people__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 48px;
    align-items: start;
}

.page-about .ab-people__grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-about .ab-person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: start;
}

.page-about .ab-person__photo {
    width: clamp(160px, 22vw, 240px);
    aspect-ratio: 1;
    border-radius: var(--th-radius-photo);
    overflow: hidden;
    background: #2a2f36;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-about .ab-person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.page-about .ab-person__initial {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1;
}

.page-about .ab-person__details {
    min-width: 0;
    width: 100%;
}

.page-about .ab-person__name {
    margin: 0 0 4px;
    font-size: clamp(1.375rem, 1.2rem + 0.4vw, 1.5625rem); /* ~22–25 */
    font-weight: 700;
    line-height: 1.3;
    color: var(--th-navy);
}

.page-about .ab-person__role {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--th-muted);
}

.page-about .ab-person__bio {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--th-ink-soft);
}

.page-about .ab-person__skills {
    margin: 10px 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--th-accent);
    font-weight: 600;
}

/* —— Join / participation —— */
.page-about .ab-join {
    background: #fff;
    padding-block: 56px 64px;
}

.page-about .ab-join__layout {
    display: grid;
    /* RTL: first column = right (~40% explain), second = left (~60% form) */
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: var(--ab-gap);
    align-items: start;
}

.page-about .ab-join__title {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 0.4rem + 1.8vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--th-navy);
    scroll-margin-top: calc(var(--th-header-h) + 16px);
}

.page-about .ab-join__lead {
    margin: 0 0 14px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--th-ink-soft);
}

.page-about .ab-join__note {
    margin: 0 0 28px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--th-muted);
}

.page-about .ab-domains__title {
    margin: 0 0 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--th-navy);
}

.page-about .ab-domains__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.page-about .ab-domains__list li {
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--th-ink-soft);
    position: relative;
    padding-inline-start: 0.9em;
}

.page-about .ab-domains__list li::before {
    content: "\2022";
    position: absolute;
    inset-inline-start: 0;
    color: var(--th-accent);
    font-weight: 700;
}

/* —— Form —— */
.page-about .ab-join__form-col {
    min-width: 0;
}

.page-about .ab-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    max-width: none;
}

.page-about .ab-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
}

.page-about .ab-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.page-about .ab-field--full {
    width: 100%;
}

.page-about .ab-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--th-ink);
    line-height: 1.3;
}

.page-about .ab-req {
    color: var(--th-navy);
    font-weight: 700;
}

.page-about .ab-opt {
    font-weight: 400;
    color: var(--th-muted);
    font-size: 0.875rem;
}

.page-about .ab-input,
.page-about .ab-select,
.page-about .ab-textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 1rem; /* ≥16px — no iOS zoom */
    line-height: 1.4;
    color: var(--th-ink);
    background: #fff;
    border: 1px solid var(--th-line-strong);
    border-radius: var(--th-radius-field);
    padding: 0 14px;
    min-height: 48px;
    transition: border-color 160ms var(--th-ease), box-shadow 160ms var(--th-ease);
    appearance: none;
    -webkit-appearance: none;
}

.page-about .ab-textarea {
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
    line-height: 1.55;
}

.page-about .ab-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 L10 12.5 L15 7.5' stroke='%235c6570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-inline-end: 40px;
    cursor: pointer;
}

.page-about .ab-input:focus,
.page-about .ab-select:focus,
.page-about .ab-textarea:focus,
.page-about .ab-file__input:focus-visible + .ab-file__ui {
    outline: none;
    border-color: var(--th-accent);
    box-shadow: 0 0 0 3px var(--th-focus);
}

.page-about .ab-file {
    position: relative;
}

.page-about .ab-file__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    font-size: 1rem;
}

.page-about .ab-file__ui {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid var(--th-line-strong);
    border-radius: var(--th-radius-field);
    background: #fff;
    pointer-events: none;
}

.page-about .ab-file__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--th-line-strong);
    border-radius: 6px;
    background: var(--th-bg-soft);
    color: var(--th-ink);
    font-size: 0.875rem;
    font-weight: 600;
}

.page-about .ab-file__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9375rem;
    color: var(--th-muted);
}

.page-about .ab-file__name.is-filled {
    color: var(--th-ink);
}

.page-about .ab-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.page-about .ab-status {
    display: none;
    padding: 12px 14px;
    border-radius: var(--th-radius-field);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.page-about .ab-status--ok {
    display: block;
    background: #e8f6f0;
    color: #1a7a52;
}

.page-about .ab-status--err {
    display: block;
    background: #fdecec;
    color: #c0392b;
}

.page-about .ab-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    width: auto;
    max-width: 360px;
    padding: 12px 22px;
    margin: 4px 0 0;
    border: 1px solid var(--th-navy);
    border-radius: var(--th-radius);
    background: var(--th-navy);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    transition: background 180ms var(--th-ease), border-color 180ms var(--th-ease), opacity 180ms var(--th-ease);
}

.page-about .ab-submit:hover:not(:disabled) {
    background: #10254f;
    border-color: #10254f;
    color: #fff;
}

.page-about .ab-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--th-focus);
}

.page-about .ab-submit:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.page-about .ab-privacy {
    margin: 4px 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--th-muted);
}

/* —— Community strip (minimal, no banner/card) —— */
.page-about .ab-community {
    background: var(--th-bg-soft);
    padding-block: 48px;
    border-top: 1px solid var(--th-line);
}

.page-about .ab-community__inner {
    max-width: 40rem;
}

.page-about .ab-community__title {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 0.3rem + 1.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--th-navy);
}

.page-about .ab-community__text {
    margin: 0 0 20px;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--th-ink-soft);
}

.page-about .ab-community__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--th-navy);
    border-radius: var(--th-radius);
    background: var(--th-navy);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    transition: background 180ms var(--th-ease), border-color 180ms var(--th-ease);
}

.page-about .ab-community__btn:hover {
    background: #10254f;
    border-color: #10254f;
    color: #fff;
}

.page-about .ab-community__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--th-focus);
}

/* —— Tablet —— */
@media (max-width: 900px) {
    .page-about {
        --ab-gap: 40px;
    }

    .page-about .ab-people__grid,
    .page-about .ab-people__grid--wide {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .page-about .ab-person__photo {
        width: clamp(160px, 42vw, 200px);
    }

    .page-about .ab-join__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .page-about .ab-domains__list {
        grid-template-columns: 1fr 1fr;
    }
}

/* —— Mobile —— */
@media (max-width: 640px) {
    .page-about .ab-rail {
        width: min(100% - 2.5rem, var(--ab-rail)); /* ~20–24px margins */
    }

    .page-about .ab-intro {
        padding-block: 36px 40px;
    }

    .page-about .ab-intro__content {
        max-width: none; /* full available width inside rail */
        margin-inline-end: 0;
    }

    .page-about .ab-intro__label {
        margin-bottom: 10px;
        font-size: 0.8125rem; /* 13px */
    }

    .page-about .ab-intro__title {
        margin-bottom: 20px;
        font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2rem); /* ~28–32 */
    }

    .page-about .ab-intro__lead {
        margin-bottom: 24px;
        font-size: 1.125rem; /* 18 */
        line-height: 1.6;
    }

    .page-about .ab-intro__body p {
        margin-bottom: 16px;
        font-size: 1.0625rem; /* ~17; 16–17 */
        line-height: 1.65;
    }

    .page-about .ab-intro__body p:last-child {
        margin-bottom: 0;
    }

    .page-about .ab-people {
        padding-block: 40px 48px;
    }

    .page-about .ab-people__header {
        margin-bottom: 28px;
    }

    .page-about .ab-join {
        padding-block: 40px 48px;
    }

    .page-about .ab-join__note {
        margin-bottom: 20px;
    }

    .page-about .ab-form__row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about .ab-domains__list {
        grid-template-columns: 1fr;
    }

    .page-about .ab-submit {
        width: 100%;
        max-width: none;
    }

    .page-about .ab-community {
        padding-block: 40px;
    }

    .page-about .ab-community__btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-about .ab-input,
    .page-about .ab-select,
    .page-about .ab-textarea,
    .page-about .ab-submit,
    .page-about .ab-community__btn {
        transition: none;
    }
}
