/* EF Architecture — editorial portal refinement.
   Self-contained, local type only. Layered after the view-specific styles.
   Never change a view's access or archive-related visibility. */
:root {
    --efcp-paper: #f6f5f0;
    --efcp-card: #fffefa;
    --efcp-ink: #252723;
    --efcp-soft: #62655d;
    --efcp-rule: #dcdcd3;
    --efcp-red: #9b3932;
    --efcp-dark: #252723;
    --efcp-font: Arial, Helvetica, sans-serif;
}
body.efcp-body {
    font-family: var(--efcp-font);
    font-size: 15px;
    line-height: 1.6;
    font-variant-emoji: text;
}
body.efcp-body h1, body.efcp-body h2, body.efcp-body h3 {
    font-family: var(--efcp-font);
    letter-spacing: -.035em;
}
body.efcp-body h1 { font-size: clamp(34px, 4.3vw, 56px); line-height: 1.05; }
body.efcp-body h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.18; }
.efcp-eyebrow,.efcp-kicker,.efcp-small-label {
    letter-spacing: .135em!important;
    line-height: 1.5;
    font-size: 11px!important;
}
.efcp-header,.efcp-footer,.efcp-workspace { width: min(1500px, calc(100% - 88px)); }
.efcp-header { height: 92px; align-items: center; }
.efcp-brand { gap: 14px; }
.efcp-brand img { width: 45px; height: 45px; }
.efcp-brand > span { font-size: 12px; letter-spacing: .16em; }
.efcp-brand small { letter-spacing: .15em; font-size: 9px; }
.efcp-header-nav { gap: clamp(18px, 2.5vw, 32px); }
.efcp-header-nav .efcp-text-link {
    min-height: 44px;
    border-bottom-color: transparent;
    gap: 9px;
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
}
.efcp-header-nav .efcp-text-link:hover,
.efcp-header-nav .efcp-text-link[aria-current] { color: var(--efcp-red); border-bottom-color: var(--efcp-red); }
.efcp-header-nav .efcp-inbox-nav {
    padding: 0 14px;
    background: #eeede6;
    border: 1px solid var(--efcp-rule);
}
.efcp-header-nav .efcp-inbox-badge { font-size: 10px; font-weight: 700; }
.efcp-footer { color: var(--efcp-soft); font-size: 11px; }
.efcp-footer a { min-height: 44px; display: inline-flex; align-items: center; }

/* Graphic arrows: CSS strokes, not Unicode glyphs that iOS may show as emoji.
   Only decorative symbols are replaced — visible labels and badges remain. */
.efcp-graphic-arrow,
.efcp-text-link > span[aria-hidden="true"]:not([class]),
.efcp-side-projects a > span[aria-hidden="true"],
.efcp-side-views a > span[aria-hidden="true"],
.efcp-sidebar-support a > span[aria-hidden="true"],
.efcp-stat small > span[aria-hidden="true"],
.efcp-action-arrow,
.efcp-handover-download > span[aria-hidden="true"],
.efcp-button > span[aria-hidden="true"]:not([class]){
    position: relative;
    display: inline-block;
    width: 13px; height: 13px;
    min-width: 13px;
    flex: 0 0 13px;
    font-size: 0!important;
    line-height: 1;
    vertical-align: middle;
    color: inherit;
}
.efcp-graphic-arrow::before,
.efcp-text-link > span[aria-hidden="true"]:not([class])::before,
.efcp-side-projects a > span[aria-hidden="true"]::before,
.efcp-side-views a > span[aria-hidden="true"]::before,
.efcp-sidebar-support a > span[aria-hidden="true"]::before,
.efcp-stat small > span[aria-hidden="true"]::before,
.efcp-action-arrow::before,
.efcp-handover-download > span[aria-hidden="true"]::before,
.efcp-button > span[aria-hidden="true"]:not([class])::before {
    content: "";
    position: absolute;
    width: 11px;
    height: 1px;
    background: currentColor;
    left: 1px;
    top: 6px;
    transform: rotate(-45deg);
}
.efcp-graphic-arrow::after,
.efcp-text-link > span[aria-hidden="true"]:not([class])::after,
.efcp-side-projects a > span[aria-hidden="true"]::after,
.efcp-side-views a > span[aria-hidden="true"]::after,
.efcp-sidebar-support a > span[aria-hidden="true"]::after,
.efcp-stat small > span[aria-hidden="true"]::after,
.efcp-action-arrow::after,
.efcp-handover-download > span[aria-hidden="true"]::after,
.efcp-button > span[aria-hidden="true"]:not([class])::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    right: 1px;
    top: 1px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
}
.efcp-button > span[aria-hidden="true"]:not([class])::before { transform: none; }
.efcp-button > span[aria-hidden="true"]:not([class])::after { top: 3px; right: 2px; transform: rotate(45deg); }
.efcp-doc-table .efcp-text-link > span[aria-hidden="true"]:not([class]),
.efcp-handover-download > span[aria-hidden="true"] { transform: rotate(135deg); }

/* Guest and authentication — retain the studio's paper/ink materials palette. */
.efcp-auth-layout {
    width: min(1320px, calc(100% - 88px));
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: clamp(40px, 7vw, 106px);
    padding: clamp(45px, 6vw, 90px) 0;
    min-height: calc(100vh - 172px);
}
.efcp-auth-intro { padding-top: clamp(12px, 3.5vw, 50px); min-width:0; }
.efcp-auth-intro h1 {
    font-family: var(--efcp-font)!important;
    font-size: clamp(46px, 6vw, 78px)!important;
    letter-spacing: -.055em!important;
    line-height: .99!important;
    margin-bottom: 25px!important;
}
.efcp-auth-intro h1 em,.efcp-mfa-copy h1 em {
    color: var(--efcp-red);
    font-family: var(--efcp-font)!important;
    font-size: 1em!important;
    font-weight: 400!important;
    font-style: normal!important;
    letter-spacing: -.055em!important;
}
.efcp-auth-lead { max-width: 470px; line-height: 1.65; font-size: clamp(15px, 1.5vw, 19px); }
.efcp-auth-features { gap: 20px; margin-top: 36px; }
.efcp-auth-features > div > span { font-size: 12px; margin-bottom: 9px; }
.efcp-auth-features strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.efcp-auth-features p { font-size: 12.5px; line-height: 1.55; }
.efcp-auth-panel {
    padding: clamp(26px, 3.6vw, 48px);
    border: 1px solid var(--efcp-rule);
    border-top: 3px solid var(--efcp-red);
    box-shadow: 0 12px 32px rgb(37 39 35 / 4%);
}
.efcp-auth-panel h2 { font-size: clamp(30px, 2.7vw, 43px)!important; }
.efcp-auth-panel > p:not(.efcp-kicker,.efcp-auth-switch) { max-width: 46ch; font-size: 14px; }
.efcp-auth-switch { gap: 8px; font-size: 13px; line-height: 1.7; }
.efcp-auth-switch a,.efcp-label-row a { text-underline-offset: 4px; }
.efcp-label-row a { min-height: 34px; display: inline-flex; align-items: center; font-size: 12px; margin-top: 0; }
.efcp-form { gap: 9px; }
.efcp-form label { font-size: 13px; }
.efcp-form input:not([type=checkbox],[type=hidden],[type=file]),.efcp-form select,.efcp-form textarea {
    border-color: #c5c6bc;
    min-height: 50px;
}
.efcp-field-note { font-size: 12px; margin-top: 0!important; }
.efcp-button { min-height: 50px; font-size: 14px!important; gap: 20px; padding: 13px 18px; }
.efcp-button:focus-visible { outline-offset: 3px; }

/* Workspace: compact studio navigation alongside a spacious content canvas. */
.efcp-workspace {
    grid-template-columns: minmax(205px, 244px) minmax(0, 1fr);
    gap: clamp(32px, 3.2vw, 54px);
    padding-bottom: 54px;
}
.efcp-sidebar { padding: 28px 22px 0 0; gap: 23px; }
.efcp-sidebar-head { padding: 18px 14px; background: #eeede6; border: 1px solid var(--efcp-rule); }
.efcp-sidebar-head strong { font-size: 21px; line-height: 1.2; letter-spacing: -.03em; }
.efcp-private { font-size: 12px; }
.efcp-side-projects,.efcp-side-views { gap: 3px; }
.efcp-side-projects a,.efcp-side-views a {
    padding: 10px 11px;
    font-size: 13px;
    min-height: 44px;
    border-left-width: 2px;
}
.efcp-side-projects a[aria-current],.efcp-side-views a[aria-current] {
    background: #eae8df;
    border-left-color: var(--efcp-red);
    color: var(--efcp-ink);
    font-weight: 600;
}
.efcp-side-project small { font-weight: 600; font-size: 10px; }
.efcp-side-project strong { font-weight: 500; }
.efcp-side-projects .efcp-side-project { gap: 5px 8px; }
.efcp-side-views::before {
    content: "SECȚIUNI PROIECT";
    letter-spacing: .13em;
    font-size: 10px;
    color: var(--efcp-soft);
    font-weight: 600;
    margin: 0 0 6px 11px;
}
.efcp-sidebar-support { font-size: 13px; }
.efcp-sidebar-support a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
.efcp-main { padding-top: 38px; gap: 21px; }
.efcp-main > .efcp-eyebrow { margin-bottom: -8px!important; }
.efcp-page-heading {
    align-items: flex-start;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--efcp-rule);
}
.efcp-page-heading p { font-size: 15px; max-width: 75ch; margin-top: 9px!important; }
.efcp-heading-count {
    text-align: right;
    color: var(--efcp-ink);
    font-size: clamp(32px, 4vw, 45px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.efcp-heading-count small { font-size: 11px; color: var(--efcp-red); letter-spacing: .07em; }
.efcp-project-heading h1 { font-size: clamp(31px, 3.5vw, 48px)!important; }
.efcp-project-heading .efcp-pill { margin-top: 3px; }
.efcp-back { min-height: 44px; font-size: 13px; margin-bottom: -15px; }
.efcp-archive-nav {
    gap: 3px;
    margin: -3px 0 1px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--efcp-rule);
    background: #eeede6;
    padding: 4px;
}
.efcp-archive-nav a {
    border: 1px solid transparent;
    color: var(--efcp-soft);
    padding: 9px 14px;
    min-height: 44px;
    font-weight: 500;
    gap: 11px;
}
.efcp-archive-nav a[aria-current] {
    background: var(--efcp-card);
    border-color: var(--efcp-rule);
    color: var(--efcp-ink);
    font-weight: 600;
}
.efcp-archive-nav a span {
    color: var(--efcp-red);
    font-size: 12px;
    font-weight: 600;
    opacity: 1;
    font-variant-numeric: tabular-nums;
}
.efcp-tabs { margin-top: -7px; gap: 0 22px; align-items: stretch; }
.efcp-tabs a { font-size: 13px; min-height: 45px; padding: 13px 0; }
.efcp-tabs a:hover { color: var(--efcp-ink); border-bottom-color: var(--efcp-rule); }
.efcp-tabs a[aria-current] { border-bottom-color: var(--efcp-red); }
.efcp-card {
    padding: clamp(23px, 2.3vw, 32px);
    border-color: var(--efcp-rule);
    border-radius: 0;
    box-shadow: 0 4px 12px rgb(37 39 35 / 2%);
}
.efcp-section-head { gap: 14px; margin-bottom: 23px; }
.efcp-section-head > div > p:not(.efcp-kicker) { font-size: 14px; }
.efcp-section-head .efcp-kicker { color: var(--efcp-red); margin-bottom: 7px!important; }
.efcp-text-link { min-height: 44px; font-size: 13px; gap: 8px; }
.efcp-pill {
    color: #4c5348;
    border-radius: 2px;
    font-size: 11px;
    max-width: 100%;
    padding: 6px 9px;
    font-weight: 500;
}
.efcp-pill--red { color: var(--efcp-red); }
.efcp-pill--success { color: var(--efcp-green); }
.efcp-project-grid { gap: 17px; }
.efcp-project-card {
    padding: clamp(22px, 2.5vw, 32px);
    gap: 17px;
    min-height: 250px;
    border-top: 2px solid var(--efcp-ink);
}
.efcp-project-card:hover { border-top-color: var(--efcp-red); }
.efcp-card-top { align-items: center; }
.efcp-code { font-size: 12px; letter-spacing: .1em; }
.efcp-project-card h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; }
.efcp-project-card p { color: var(--efcp-soft); font-size: 14px; line-height: 1.6; }
.efcp-project-card-foot { min-width: 0; align-items: center; padding-top: 16px; flex-wrap: wrap; }
.efcp-project-card-foot small { font-size: 11px; }
.efcp-project-open {
    color: var(--efcp-ink);
    font-size: 12px;
    font-weight: 600;
    min-height: 44px;
    border: 1px solid var(--efcp-rule);
    background: var(--efcp-paper);
    padding: 8px 11px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.efcp-project-open:hover { background: var(--efcp-dark); color: #fff!important; border-color: var(--efcp-dark); }

/* Project overview: administrative details take a back seat to progress. */
.efcp-summary-grid { gap: 12px; }
.efcp-stat { padding: 18px 20px; gap: 7px; min-height: 136px; }
.efcp-stat > span { font-size: 10px; letter-spacing: .10em; }
.efcp-stat strong { font-size: clamp(31px, 3.5vw, 41px); font-variant-numeric: tabular-nums; line-height: 1.1; }
.efcp-stat small { color: var(--efcp-soft); font-size: 12px; line-height: 1.5; align-items: center; }
a.efcp-stat:hover { border-color: var(--efcp-red); }
.efcp-stat--current { background: var(--efcp-dark); }
.efcp-stat--current > span,.efcp-stat--current small { color: #e2e1d9; }
.efcp-stat--current strong { font-size: clamp(24px, 2.3vw, 31px); }
.efcp-timeline { margin-bottom: 24px; }
.efcp-timeline li { font-size: 13px; padding-top: 15px; }
.efcp-timeline li.is-current { padding-top: 14px; }
.efcp-step-number {
    border-radius: 2px;
    margin-bottom: 9px;
    width: 28px;
    height: 28px;
    font-weight: 600;
}
.efcp-timeline li small { font-size: 11px; }
.efcp-next { border-top: 0; border-left: 2px solid var(--efcp-red); background: #f1efe8; padding: 18px 19px; }
.efcp-next .efcp-small-label { color: var(--efcp-red); }
.efcp-next > p:not(.efcp-small-label){ font-size: 18px; line-height: 1.55; }
.efcp-description { padding-top: 17px; }
.efcp-overview-grid { gap: 16px; }
.efcp-overview-grid .efcp-section-head h2 { font-size: 24px; }
.efcp-mini-docs strong,.efcp-event-list strong { font-size: 14px; font-weight: 600; }
.efcp-mini-docs small,.efcp-event-list small { font-size: 12px; }
.efcp-event-list p,.efcp-empty,.efcp-empty-box p,.efcp-empty-card p:not(.efcp-kicker) { font-size: 14px; }
.efcp-file-icon { font-size: 10px; }
.efcp-action-center { border-top: 2px solid var(--efcp-red); }
.efcp-action-content strong { font-size: 14px; }
.efcp-action-content small,.efcp-action-more { font-size: 12px; }
.efcp-action-item { min-height: 56px; padding-top: 12px; padding-bottom: 12px; }
.efcp-action-project h3 { font-size: 16px; }
.efcp-doc-table .efcp-text-link { min-height: 44px; font-size: 12px; gap: 6px; }
.efcp-message-body { font-size: 14px; }

/* Tablet: keep account navigation and project tabs reachable without horizontal scrolling. */
@media (max-width: 1100px) {
    .efcp-header,.efcp-footer,.efcp-workspace,.efcp-auth-layout { width: calc(100% - 56px); }
    .efcp-workspace { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
    .efcp-sidebar { padding-right: 14px; }
    .efcp-auth-layout { gap: 38px; }
    .efcp-stat { padding: 15px 16px; min-height: 126px; }
}
@media (max-width: 870px) {
    .efcp-workspace { display: block; }
    .efcp-main { padding-top: 30px; }
    .efcp-auth-layout { grid-template-columns: minmax(0,1fr) minmax(300px,.95fr); gap: 28px; }
    .efcp-auth-features { margin-top: 25px; gap: 7px; }
    .efcp-auth-intro h1 { font-size: clamp(43px, 6.5vw, 56px)!important; }
}
@media (max-width: 720px) {
    .efcp-header,.efcp-footer,.efcp-workspace,.efcp-auth-layout { width: calc(100% - 36px); }
    .efcp-header {
        flex-wrap: wrap;
        height: auto;
        padding: 19px 0 8px;
        align-items: center;
        gap: 9px 14px;
    }
    .efcp-brand { gap: 10px; flex: 0 1 auto; }
    .efcp-brand img { width: 38px; height: 38px; }
    .efcp-brand > span { font-size: 11px; letter-spacing: .13em; }
    .efcp-brand small { font-size: 8px; margin-top: 4px; }
    .efcp-session .efcp-header-nav {
        width: 100%;
        flex: 1 1 100%;
        justify-content: flex-start;
        gap: 5px 16px;
        flex-wrap: wrap;
    }
    .efcp-header-nav .efcp-text-link { font-size: 12px; min-height: 44px; gap: 6px; }
    .efcp-header-nav .efcp-inbox-nav { padding: 0 10px; }
    .efcp-auth-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 25px 0 38px; min-height: 0; }
    .efcp-auth-intro { padding-top: 0; }
    .efcp-auth-intro .efcp-eyebrow { margin-bottom: 11px!important; }
    .efcp-auth-intro h1 { font-size: clamp(42px,9vw,62px)!important; margin-bottom: 14px!important; }
    .efcp-auth-lead { font-size: 14px; line-height: 1.55; }
    .efcp-auth-features { display: none; }
    .efcp-auth-panel { padding: 24px 20px; }
    .efcp-auth-panel h2 { font-size: 31px!important; }
    .efcp-main { gap: 17px; padding-top: 26px; }
    .efcp-main > .efcp-eyebrow { margin-bottom: -7px!important; }
    .efcp-page-heading { gap: 10px; padding-bottom: 17px; }
    .efcp-page-heading h1 { font-size: clamp(31px,8.7vw,40px); }
    .efcp-page-heading p { font-size: 14px; }
    .efcp-heading-count { font-size: 34px; }
    .efcp-heading-count small { font-size: 10px; }
    .efcp-project-heading { flex-wrap: wrap; }
    .efcp-project-heading h1 { font-size: clamp(29px,7.8vw,36px)!important; }
    .efcp-archive-nav { width: 100%; gap: 4px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: -4px; }
    .efcp-archive-nav a { justify-content: space-between; padding: 8px 11px; min-width: 0; }
    .efcp-tabs {
        display: grid;
        grid-template-columns: repeat(6,minmax(0,1fr));
        gap: 5px;
        border: 0;
        margin: -3px 0 2px;
    }
    .efcp-tabs a {
        grid-column: span 2;
        margin: 0;
        text-align: center;
        padding: 7px 5px;
        min-height: 46px;
        line-height: 1.3;
        border: 1px solid var(--efcp-rule);
        background: var(--efcp-card);
        font-size: 12px;
        overflow-wrap: anywhere;
    }
    .efcp-tabs a:nth-last-child(-n+2) { grid-column: span 3; }
    .efcp-tabs a[aria-current] { background: var(--efcp-ink); color: white; border-color: var(--efcp-ink); }
    .efcp-tabs--limited a { grid-column: 1/-1!important; }
    .efcp-back { margin-bottom: -12px; }
    .efcp-card { padding: 20px; }
    .efcp-project-grid,.efcp-overview-grid { grid-template-columns: 1fr; gap: 13px; }
    .efcp-project-card { padding: 20px; min-height: 213px; gap: 13px; }
    .efcp-project-card h2 { font-size: 28px; }
    .efcp-project-card-foot { padding-top: 12px; gap: 5px 11px; }
    .efcp-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    .efcp-stat { padding: 13px; min-height: 115px; }
    .efcp-stat strong { font-size: 32px; }
    .efcp-stat small { font-size: 11px; }
    .efcp-stat--current { grid-column: 1/-1; min-height: 105px; }
    .efcp-stat--current strong { font-size: 26px; }
    .efcp-section-head { gap: 8px; margin-bottom: 17px; }
    .efcp-section-head .efcp-text-link { font-size: 12px; min-height: 44px; }
    .efcp-section-head h2,.efcp-overview-grid .efcp-section-head h2 { font-size: 24px; }
    .efcp-section-head > div > p:not(.efcp-kicker) { font-size: 13px; }
    .efcp-timeline { gap: 12px; }
    .efcp-timeline li { font-size: 12px; }
    .efcp-timeline li small { font-size: 10px; }
    .efcp-next { padding: 15px 13px; }
    .efcp-next > p:not(.efcp-small-label) { font-size: 16px; }
    .efcp-action-content strong { font-size: 13px; }
    .efcp-action-item .efcp-pill { font-size: 10px; padding: 5px 6px; }
    .efcp-button { min-height: 50px; }
    .efcp-footer { font-size: 10px; }
}
@media (max-width: 390px) {
    .efcp-header,.efcp-footer,.efcp-workspace,.efcp-auth-layout { width: calc(100% - 30px); }
    .efcp-card,.efcp-auth-panel { padding: 17px; }
    .efcp-project-card { padding: 18px; }
    .efcp-project-card-foot { align-items: flex-start; }
    .efcp-project-open { padding: 8px 9px; }
    .efcp-tabs a { font-size: 11.5px; }
    .efcp-section-head .efcp-pill { flex: 0 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after { transition: none!important; animation: none!important; }
}
