/* Bounded leadership modules. Theme colors come from the owning portfolio. */
.leadership-depth, .selected-work-depth {
  --depth-ink: var(--accent-ink, #b6d9ee);
  --depth-line: var(--line, #283647);
  --depth-surface: var(--surface, #111c29);
  --depth-text: var(--text, #edf1f5);
  --depth-muted: var(--muted, #b1bdcb);
  color: var(--depth-text);
}
.depth-role-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 22px 40px; margin-block: 28px; padding-block: 20px; border-block: 1px solid var(--depth-line); }
.depth-role-strip > div { display: flex; flex-direction: column; gap: 6px; }
.depth-role-strip span { color: var(--depth-muted); font-size: 14px; line-height: 1.5; }
.depth-role-strip strong { color: var(--depth-text); font-size: 16px; font-weight: 500; }
.depth-role-strip > a { margin-inline-start: auto; color: var(--depth-ink); font-size: 14px; text-underline-offset: 5px; }
.depth-switch { display: flex; flex-wrap: wrap; gap: 9px; min-width: 0; margin: 0 0 28px; padding: 0; border: 0; }
.depth-choice { position: relative; display: block; flex: 1 1 190px; max-width: 290px; cursor: pointer; }
.depth-choice input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.depth-choice > span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 12px 20px; border: 1px solid var(--depth-line); border-radius: 6px; background: transparent; color: var(--depth-muted); font-size: 16px; line-height: 1.5; transition: background-color .2s ease,border-color .2s ease,color .2s ease; }
.depth-choice > span::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; }
.depth-choice:hover > span { border-color: var(--depth-ink); color: var(--depth-text); }
.depth-choice input:checked + span { color: var(--depth-text); border-color: var(--depth-ink); background: color-mix(in srgb,var(--depth-ink) 10%,transparent); }
.depth-choice input:checked + span::before { opacity: 1; background: var(--depth-ink); }
.depth-choice input:focus-visible + span { outline: 2px solid var(--depth-ink); outline-offset: 4px; }
.depth-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.depth-lens-panel { margin-block: 0 28px; }
.depth-panel-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); gap: 44px; align-items: start; }
.depth-focus { min-width: 0; padding-top: 8px; }
.depth-small-heading { color: var(--depth-ink); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.depth-focus h3 { max-width: 590px; margin: 0 0 18px; font-size: clamp(25px,2.4vw,32px); font-weight: 450; line-height: 1.3; }
.depth-focus > p:not(.depth-small-heading) { color: var(--depth-muted); font-size: 16px; line-height: 1.75; margin-bottom: 23px; }
.depth-focus-list { list-style: none; padding: 0; margin: 0; }
.depth-focus-list li { display: grid; grid-template-columns: minmax(100px,.6fr) minmax(0,1.4fr); gap: 20px; padding: 17px 0; margin: 0; border-top: 1px solid var(--depth-line); }
.depth-focus-list strong { color: var(--depth-text); font-size: 16px; font-weight: 500; line-height: 1.55; }
.depth-focus-list span { color: var(--depth-muted); font-size: 16px; line-height: 1.65; }
.depth-case-note { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--depth-line); border-top: 2px solid var(--depth-ink); border-radius: 8px; background: var(--depth-surface); }
.depth-case-note .eyebrow { color: var(--depth-ink); font-size: 14px; margin-bottom: 15px; }
.depth-case-note h4 { color: var(--depth-text); font-size: 23px; font-weight: 500; line-height: 1.35; margin: 0 0 17px; }
.depth-case-note > p:not(.eyebrow) { color: var(--depth-muted); font-size: 16px; line-height: 1.7; }
.depth-record { margin: 22px 0 0; }
.depth-record > div { padding: 15px 0; border-top: 1px solid var(--depth-line); }
.depth-record dt { color: var(--depth-ink); font-size: 14px; line-height: 1.6; margin-bottom: 5px; }
.depth-record dd { color: var(--depth-text); font-size: 16px; line-height: 1.65; margin: 0; }
.depth-evidence-links { display: flex; flex-wrap: wrap; gap: 9px 22px; padding-top: 18px; }
.depth-evidence-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--depth-ink); font-size: 14px; line-height: 1.6; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.depth-evidence-links a:hover { color: var(--depth-text); }

/* Native radios remain usable with JavaScript disabled; old engines show all views. */
@supports selector(:has(input:checked)) {
  .leadership-depth .depth-lens-panel { display: none; }
  .leadership-depth:has(.depth-choice input[value="executive"]:checked) .depth-lens-panel[data-depth-lens="executive"],
  .leadership-depth:has(.depth-choice input[value="solution"]:checked) .depth-lens-panel[data-depth-lens="solution"],
  .leadership-depth:has(.depth-choice input[value="delivery"]:checked) .depth-lens-panel[data-depth-lens="delivery"] { display: block; animation: depth-panel-in .4s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes depth-panel-in { from { opacity: .65; transform: translate3d(0,12px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }
.motion-paused .depth-lens-panel, html[data-motion="paused"] .depth-lens-panel { animation: none !important; opacity: 1; transform: none; }

.depth-work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.depth-work-area { min-width: 0; border: 1px solid var(--depth-line); border-radius: 9px; background: var(--depth-surface); }
.depth-work-area summary { display: flex; flex-direction: column; gap: 13px; position: relative; min-height: 245px; padding: 26px; list-style: none; cursor: pointer; }
.depth-work-area summary::-webkit-details-marker { display: none; }
.depth-work-area summary::after { content: "+"; position: absolute; inset-inline-end: 24px; inset-block-start: 22px; width: 24px; color: var(--depth-ink); font-size: 24px; font-weight: 400; text-align: center; line-height: 1; }
.depth-work-area[open] summary::after { content: "−"; }
.depth-work-area summary:focus-visible { outline: 2px solid var(--depth-ink); outline-offset: 4px; }
.depth-work-tag { color: var(--depth-ink); font-size: 14px; line-height: 1.5; padding-inline-end: 30px; }
.depth-work-title { color: var(--depth-text); font-size: clamp(22px,2.1vw,27px); font-weight: 450; line-height: 1.35; max-width: 21em; }
.depth-work-summary { color: var(--depth-muted); font-size: 16px; line-height: 1.7; }
.depth-work-prompt { color: var(--depth-ink); font-size: 14px; line-height: 1.6; margin-top: auto; padding-top: 3px; }
.depth-work-area[open] { border-color: color-mix(in srgb,var(--depth-ink) 55%,var(--depth-line)); }
.depth-work-area[open] summary { min-height: 0; padding-bottom: 22px; }
.depth-work-area[open] .depth-work-prompt { display: none; }
.depth-work-detail { padding: 0 26px 25px; }
.depth-work-detail > p { color: var(--depth-muted); padding-top: 22px; border-top: 1px solid var(--depth-line); font-size: 16px; line-height: 1.7; }
.depth-work-detail dl { margin: 0; }
.depth-work-detail dl > div { margin-top: 18px; }
.depth-work-detail dt { font-size: 14px; color: var(--depth-ink); margin-bottom: 6px; }
.depth-work-detail dd { margin: 0; color: var(--depth-text); font-size: 16px; line-height: 1.7; }
.depth-work-detail .depth-evidence-links { margin-top: 7px; }
[dir="rtl"] .depth-focus h3, [dir="rtl"] .depth-case-note h4, [dir="rtl"] .depth-work-title { letter-spacing: 0; line-height: 1.5; }

@media (max-width: 960px) {
  .depth-panel-grid { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .depth-case-note { padding: 25px; }
  .depth-focus h3, .depth-focus > p { max-width: 760px; }
  .depth-role-strip { gap: 20px 28px; }
  .depth-role-strip > a { margin-inline-start: 0; }
  .depth-work-area summary { min-height: 285px; padding: 23px; }
  .depth-work-detail { padding-inline: 23px; }
}
@media (max-width: 620px) {
  .depth-role-strip { align-items: flex-start; gap: 18px 24px; }
  .depth-role-strip > div, .depth-role-strip > a { width: 100%; }
  .depth-switch { gap: 8px; margin-bottom: 25px; }
  .depth-choice { flex: 1 1 130px; max-width: none; }
  .depth-choice > span { font-size: 14px; padding: 10px 12px; min-height: 46px; }
  .depth-focus h3 { font-size: 25px; }
  .depth-focus-list li { grid-template-columns: minmax(0,1fr); gap: 7px; padding-block: 16px; }
  .depth-case-note { padding: 22px; }
  .depth-case-note h4 { font-size: 22px; }
  .depth-evidence-links { flex-direction: column; align-items: flex-start; gap: 5px; }
  .depth-work-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .depth-work-area summary { min-height: 0; padding: 23px; }
  .depth-work-title { font-size: 24px; }
  .depth-work-prompt { padding-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .depth-lens-panel { animation: none !important; opacity: 1; transform: none; }
  .depth-choice > span { transition: none; }
}
@media print {
  .depth-switch { display: none; }
  .leadership-depth .depth-lens-panel { display: block !important; animation: none !important; opacity: 1; transform: none; }
  .depth-panel-grid, .depth-work-grid { display: block; }
  .depth-case-note, .depth-work-area { margin-block: 18px; break-inside: avoid; }
}
