/* ============================================================
   AI workforce page — org chart
   workforce.css | v1
   Uses site tokens from style.css; logical properties so the same
   rules mirror correctly under dir="rtl".
   ============================================================ */

.wf-hero { background: var(--ink); color: #fff; padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2.2rem, 5vw, 3.4rem); }
.wf-kicker { color: var(--brand-light); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .8rem; }
.wf-hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.15; letter-spacing: -.015em; margin: 0; max-width: 22em; text-wrap: balance; }
.wf-hero h1 em { font-style: normal; color: var(--brand-light); }
@media (min-width: 560px) { .wf-hero h1 em { white-space: nowrap; } }
.wf-lead { color: #c7cad0; font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; max-width: 46rem; margin: 1.1rem 0 0; }
.wf-stats { display: flex; flex-wrap: wrap; gap: 1.3rem 2.6rem; margin-top: 1.8rem; }
.wf-stats div { font-size: .85rem; color: #aab1ba; }
.wf-stats b { display: block; font-size: clamp(1.6rem, 3vw, 2rem); color: #fff; line-height: 1.1; }

.wf-chart { background: var(--wash); padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3.2rem); }

/* leadership block */
.wf-top { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.wf-gov { border: 1.5px dashed #9aa3af; color: #5b6470; border-radius: .5rem; padding: .55rem 1.4rem; font-size: .82rem; text-align: center; background: #fff; line-height: 1.4; }
.wf-gov small { display: block; font-size: .72rem; }
.wf-human-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem 1rem; }
.wf-ceo, .wf-ea { position: relative; }
.wf-ceo { display: flex; align-items: center; gap: .9rem; background: var(--brand); color: #fff; border-radius: .65rem; padding: .95rem 1.4rem; box-shadow: 0 6px 20px rgba(216,30,44,.22); }
.wf-ceo img { width: 3.3rem; height: 3.3rem; border-radius: 50%; object-fit: cover; border: 2px solid #fff; flex: none; }
.wf-ceo b { display: block; font-size: 1.05rem; line-height: 1.25; }
.wf-ceo span.wf-sub { display: block; font-size: .78rem; opacity: .9; margin-top: .15rem; }
.wf-ea { border: 2px solid var(--brand); color: var(--brand); background: #fff; border-radius: .5rem; padding: .6rem 1rem; font-size: .82rem; font-weight: 700; line-height: 1.3; }
.wf-office { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: .2rem; width: 100%; }
.wf-office .wf-role { width: 14.5rem; }

/* labels */
.wf-bd { position: absolute; top: -.46rem; inset-inline-end: .55rem; border-radius: .28rem; font-size: .5rem; font-weight: 700; letter-spacing: .09em; padding: .12rem .4rem; line-height: 1.25; white-space: nowrap; background: #fff; color: var(--ink); border: 1px solid var(--ink); text-transform: uppercase; }
html[dir="rtl"] .wf-bd { letter-spacing: 0; font-size: .64rem; }
.wf-ceo .wf-bd { background: #fff; color: var(--brand); border-color: #fff; }
.wf-ea .wf-bd { background: var(--brand); color: #fff; border-color: var(--brand); }
.wf-spec .wf-bd { background: var(--ink); color: #fff; }

.wf-approve { display: flex; align-items: center; gap: .8rem; color: var(--brand); font-size: .88rem; font-weight: 700; margin: 1.7rem 0 .6rem; line-height: 1.4; }
.wf-approve::before, .wf-approve::after { content: ""; flex: 1; border-top: 2px dashed var(--brand); opacity: .5; }
.wf-hint { text-align: center; color: var(--muted); font-size: .82rem; margin: 0 0 1.1rem; }

/* departments */
.wf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.1rem; align-items: start; }
.wf-dept { background: #fff; border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.wf-dh { padding: .7rem .9rem .65rem; background: #f4f6f9; background: color-mix(in srgb, var(--c) 8%, #fff); border-top: 4px solid var(--c); }
.wf-dh h3 { font-size: .86rem; font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: .01em; }
.wf-cnt { display: block; font-size: .74rem; font-weight: 600; color: var(--c); margin-top: .15rem; letter-spacing: .03em; }
.wf-db { padding: .8rem; display: flex; flex-direction: column; gap: .7rem; }

/* roles: native <details>, so no script is needed and it works by keyboard and touch */
.wf-role { position: relative; }
.wf-role summary { list-style: none; cursor: pointer; position: relative; border-radius: .45rem; padding: .62rem .8rem; font-size: .84rem; line-height: 1.35; text-align: center; transition: box-shadow .15s ease; }
.wf-role summary::-webkit-details-marker { display: none; }
.wf-role summary:hover { box-shadow: 0 3px 12px rgba(20,23,28,.16); }
.wf-role summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wf-head summary { background: var(--ink); color: #fff; font-weight: 700; padding-block: .72rem; }
.wf-spec summary { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); }
.wf-role[open] summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.wf-role p { margin: 0; padding: .6rem .75rem .7rem; font-size: .8rem; line-height: 1.55; color: var(--ink-soft); background: #fff; border: 1.5px solid var(--ink); border-top: 0; border-radius: 0 0 .45rem .45rem; text-align: start; }

.wf-legend { margin: 1.6rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.7; }
.wf-legend i { display: inline-block; width: 1rem; height: .75rem; border-radius: .2rem; vertical-align: -1px; margin-inline-end: .35rem; }

/* call to action */
.wf-cta { padding: clamp(2.4rem, 5vw, 3.6rem) 0; text-align: center; }
.wf-cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .6rem; letter-spacing: -.01em; }
.wf-cta p { color: var(--muted); max-width: 40rem; margin: 0 auto 1.4rem; line-height: 1.65; }
.wf-cta .wf-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.2rem; align-items: center; }

@media (max-width: 620px) {
  .wf-office .wf-role { width: 100%; max-width: 20rem; }
  .wf-ceo { padding: .85rem 1rem; }
  .wf-ceo b { font-size: .98rem; }
  .wf-approve { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .wf-role summary { transition: none; } }
@media print { .wf-role p { display: block; } .wf-role:not([open]) p { display: none; } }
