/* Three ways into the unit catalogues. */
.ux-explorer { padding: clamp(48px,6vw,88px) 0; border-bottom: 1px solid var(--line); }
.ux-explorer .h2 { margin: 12px 0 30px; text-wrap: balance; }
.ux-explorer button, .ux-explorer summary { font: inherit; cursor: pointer; }
.ux-explorer :is(button,a,summary):focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.ux-explorer .ux-link { display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--acc); font-weight: 650; }
.ux-link:hover { text-decoration: underline; }
.ux-people,.ux-environment,.ux-brics { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); border-radius: 18px; overflow: hidden; }
.ux-people { gap: clamp(20px,4vw,64px); overflow: visible; }
.ux-people figure { margin: 0; position: relative; min-height: 320px; overflow: hidden; border-radius: 16px; background: #493525; }
.ux-people figure img,.ux-env-scene img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ux-people figcaption,.ux-env-scene > div { position:absolute; inset:auto 0 0; padding: 60px 24px 24px; background:linear-gradient(transparent,rgba(10,22,30,.86)); color:white; font-size:1.35rem; font-weight:600; }
.ux-families details { border-bottom:1px solid var(--line); }
.ux-families summary { list-style:none; padding:17px 4px; display:flex; align-items:center; justify-content:space-between; font-weight:650; font-size:1.15rem; }
.ux-families summary::-webkit-details-marker { display:none; }
.ux-families summary::after { content:'+'; color:var(--acc); }
.ux-families [open] summary { color:var(--acc); }
.ux-families [open] summary::after { content:'−'; }
.ux-family-body { padding:0 4px 10px; }
.ux-family-body p,.ux-caption { color:var(--muted); font-size:.875rem; }
.ux-topics,.ux-switch,.ux-chapters { display:flex; flex-wrap:wrap; gap:8px; }
.ux-topics { margin:12px 0; }
.ux-topics a,.ux-topics button,.ux-switch button,.ux-chapters button { border:1px solid var(--line-strong); background:white; color:var(--ink); border-radius:8px; padding:9px 13px; font-size:.9rem; }
.ux-explorer button[aria-pressed=true],.ux-topics a:hover { border-color:var(--acc); color:var(--acc); background:var(--tint); }
.ux-switch { margin-bottom:18px; }
.ux-switch button { font-weight:600; }
.ux-environment,.ux-brics { border:1px solid var(--line); }
.ux-env-scene { position:relative; min-height:300px; background:#153f36; color:white; }
.ux-env-scene h3,.ux-sheet h3 { margin:6px 0; font:600 clamp(24px,2.5vw,36px)/1.2 var(--display); }
.ux-env-scene p { font-size:.875rem; }
.ux-env-scene.accounts,.ux-env-detail,.ux-sheet { padding:clamp(20px,3vw,40px); }
.ux-env-scene ol { margin:24px 0 0; padding:0; list-style:none; border-left:1px solid #8fbbac; }
.ux-env-scene li { padding:7px 16px; }
.ux-env-detail .ux-topics { margin:0 0 22px; }
.ux-result h3 { margin:0; font-size:1rem; }
.ux-result ul { margin:12px 0; padding-left:20px; color:var(--muted); line-height:1.8; }
.ux-brics { grid-template-columns:minmax(160px,.35fr) minmax(0,1fr); }
.ux-chapters { flex-direction:column; align-items:stretch; gap:4px; padding:18px; background:#faf5f2; }
.ux-chapters button { text-align:left; border-color:transparent; background:transparent; }
.ux-sheet table { width:100%; border-collapse:collapse; margin:22px 0 12px; font-size:.925rem; }
.ux-sheet th,.ux-sheet td { text-align:left; padding:12px 6px; border-bottom:1px solid var(--line); }
.ux-sheet thead th { color:var(--muted); font-size:.8125rem; border-top:1px solid var(--line); }
.ux-sheet td { color:var(--muted); }
.ux-account-intro { margin-bottom:16px; color:var(--muted); line-height:1.6; }
.ux-brics .ux-chapters { background:#572b22; }
.ux-brics .ux-chapters button { color:#fff3ec; }
.ux-brics .ux-chapters button[aria-pressed=true] { background:#fff7f2; border-color:#fff7f2; color:#713321; }
.ux-brics .ux-chapters button:focus-visible { outline-color:#ffcfb1; }
.ux-sheet thead th { border-top:2px solid var(--acc); }
.ux-explorer { --ease: cubic-bezier(.22,.68,.25,1); }
.ux-explorer .h2 { max-width: 26ch; margin-bottom: clamp(24px,3vw,42px); }
.ux-explorer .ux-photo { opacity: 0; transition: opacity 380ms var(--ease); }
.ux-explorer .ux-photo.is-current { opacity: 1; }
.ux-explorer :is(button,summary,.ux-topics a,.ux-link) {
  transition: color 180ms, border-color 180ms, background-color 180ms;
}
.ux-explorer .ux-link { min-height: 44px; }
.ux-link > span { transition: transform 180ms var(--ease); }
.ux-link:is(:hover,:focus-visible) > span { transform: translateX(3px); }

/* The photograph and the open publication form a single editorial spread. */
.ux-sws-page { background: linear-gradient(180deg,#fff 0%,#fcf9f5 100%); }
.ux-people { background: var(--paper); border: 1px solid #e6dfd5; overflow: hidden; gap: 0; }
.ux-people figure { border-radius: 0; min-height: 370px; }
.ux-people figcaption { padding: 80px 28px 26px; font: 600 clamp(22px,2vw,30px)/1.22 var(--display); }
.ux-families { padding: 12px clamp(16px,2.5vw,36px); }
.ux-families details:last-child { border-bottom: 0; }
.ux-families summary { gap: 12px; font: 600 1.2rem/1.35 var(--display); }
.ux-families summary::after { content:'+'; display:grid; place-items:center; flex:none; width:28px; height:28px; border-radius:50%; background:#f7f2ec; transition:transform 240ms var(--ease); }
.ux-families details[open] summary::after { content:'+'; transform:rotate(45deg); background:var(--tint); }
.ux-families .ux-topics a { padding:7px 12px; border-radius:20px; font-size:.875rem; }
@supports (interpolate-size: allow-keywords) {
  .ux-families details { interpolate-size: allow-keywords; }
  .ux-families details::details-content { block-size:0; overflow:clip; transition:block-size 260ms var(--ease), content-visibility 260ms allow-discrete; }
  .ux-families details[open]::details-content { block-size:auto; }
}

/* Environment switches between photographic field views and an account diagram. */
.ux-switch { display:inline-flex; max-width:100%; padding:4px; gap:2px; border:1px solid #d5e2db; border-radius:12px; background:#eff5f1; }
.ux-switch button { border-color:transparent; background:transparent; }
.ux-switch button[aria-pressed=true] { background:#fff; border-color:#c5d8cd; box-shadow:0 1px 3px #153f3614; }
.ux-env-scene { min-height:340px; overflow:hidden; }
.ux-env-scene.accounts { background:linear-gradient(120deg,#103e35,#205448); }
.ux-env-scene.accounts h3 { max-width:15ch; }
.ux-env-scene ol { margin-left:5px; }
.ux-env-scene li { position:relative; padding-left:19px; }
.ux-env-scene li::before { position:absolute; content:''; left:-4px; top:50%; width:7px; height:7px; background:#badbc6; border-radius:50%; }
.ux-env-detail .ux-topics { padding-bottom:20px; border-bottom:1px solid var(--line); }
.ux-env-detail .ux-topics button { border-radius:99px; }
.ux-result ul { list-style:none; padding:0; }
.ux-result li { padding:5px 0 5px 14px; border-left:2px solid #d6e6db; }

/* A chapter rail and a typeset index echo the joint statistical publication. */
.ux-brics { box-shadow:0 12px 32px -26px #51291e66; }
.ux-brics .ux-chapters { gap:6px; padding:clamp(14px,2vw,26px); background:linear-gradient(150deg,#592c22,#41251e); }
.ux-chapters button { min-height:44px; }
.ux-chapters button[aria-pressed=true] { font-weight:650; }
.ux-sheet { min-height:345px; }
.ux-sheet .ux-caption { color:var(--acc); font-weight:600; }
.ux-sheet tbody tr:nth-child(even) { background:#fbf8f6; }
.ux-sheet th,.ux-sheet td { padding-inline:10px; }
@media (hover:hover) {
  .ux-families summary:hover { color:var(--acc); }
  .ux-env-detail button:hover { border-color:var(--acc); }
  .ux-chapters button:not([aria-pressed=true]):hover { background:#ffffff16; }
}
@media (prefers-reduced-motion:reduce) {
  .ux-explorer *, .ux-explorer *::after, .ux-families details::details-content { animation:none!important; transition:none!important; }
}
@media(max-width:760px) {
  .ux-people,.ux-environment,.ux-brics { grid-template-columns:minmax(0,1fr); }
  .ux-people figure,.ux-env-scene { min-height:200px; }
  .ux-chapters { flex-direction:row; padding:12px; }
  .ux-sheet { padding:18px 14px; }
  .ux-sheet table { font-size:.875rem; }
  .ux-sheet th,.ux-sheet td { padding-inline:4px; }
  .ux-people figure { min-height:220px; }
  .ux-brics .ux-chapters { padding:12px; gap:4px; }
  .ux-switch { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Keep long FDES chapter names legible in the explorer and catalogue rail. */
.ux-env-detail .ux-topics button { text-align: start; white-space: normal; }
.cat-tree[data-tree-div="env"] .ct-label { white-space: normal; line-height: 1.35; }
