/* Continue the existing project library beneath the interactive details. */
.uk-related-projects{position:relative;z-index:6;padding:80px 48px 96px;background:var(--paper);color:var(--ink)}
.uk-related-heading{max-width:1184px;margin:0 auto 40px;display:flex;align-items:baseline;justify-content:space-between;gap:24px}
.uk-related-heading h2{margin:0;font-size:clamp(28px,3vw,44px);line-height:1.15;letter-spacing:-.035em}
.uk-related-heading>a{color:inherit;font-size:16px;text-underline-offset:5px;white-space:nowrap}
.uk-related-row{display:flex;gap:40px;overflow-x:auto;scroll-snap-type:x proximity;padding:16px 8px 32px;max-width:1184px;margin:auto;scrollbar-width:thin}
.uk-related-row>.library-item{flex:0 0 280px;min-width:0;scroll-snap-align:start;color:inherit;text-align:center;text-decoration:none}
.uk-related-row .project-folder{width:100%;height:210px;margin:0 auto 24px}
.uk-related-row .secondary-folder-frame{width:100%;height:auto;margin:0}
.uk-related-row h3{font-size:24px;line-height:1.2;margin:16px 0 8px}
.uk-related-row p{font-size:15px;line-height:1.5;margin:0;opacity:.7}
.uk-related-row a:focus-visible{outline:2px solid var(--purple);outline-offset:4px;border-radius:16px}
/* The dark theme keeps the same layered lavender / sage glass as light mode. */
[data-theme="dark"] .uk-chapters{background:radial-gradient(ellipse at 10% 28%,#65537535,transparent 64%),radial-gradient(ellipse at 95% 75%,#71836b16,transparent 62%),#202123}
[data-theme="dark"] .uk-chapters .uk-chapter-card{background:linear-gradient(135deg,#eee7ff0e,#dce9cc06);border-color:#eee7ff24;box-shadow:inset 0 1px 0 #ffffff0b,0 12px 40px #08080b18;backdrop-filter:blur(24px) saturate(115%);-webkit-backdrop-filter:blur(24px) saturate(115%)}
[data-theme="dark"] .uk-chapters .uk-chapter-placeholder{background:linear-gradient(125deg,#c0a9e514,#ceddad0d);border-color:#e4d6fa29}
[data-theme="dark"] .uk-chapters .uk-chapter-point{background:linear-gradient(120deg,#f0e7ff12,#e7eed50b);border-color:#f0e8ff29;box-shadow:inset 0 1px 0 #ffffff08;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
[data-theme="dark"] .uk-chapters-nav button{background:linear-gradient(130deg,#ece5fa0b,#dce9cc05);border-color:#ece5fa18}
[data-theme="dark"] .uk-chapters-nav button[aria-current="step"]{background:linear-gradient(130deg,#c4b0e537,#e4dfef1c);border-color:#e5d8fc50;box-shadow:inset 0 1px 0 #ffffff16,0 4px 24px #08080b12}
@media(max-width:700px){.uk-related-projects{padding:56px 24px 72px}.uk-related-heading{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:24px}.uk-related-row{gap:24px}.uk-related-row>.library-item{flex-basis:250px}}
/* Explicit shared centre coordinates avoid border/inset rounding offsets. */
.uk-hotspot-device .uk-hotspot-trigger{box-sizing:border-box;width:28px;height:28px;padding:0;border-radius:50%;opacity:1;transition:opacity .25s,background .25s;display:block}
.uk-hotspot-device .uk-hotspot-trigger::before,
.uk-hotspot-device .uk-detail-hotspot.is-open .uk-hotspot-trigger::before{inset:auto;left:50%;top:50%;width:18px;height:18px;box-sizing:border-box;border-radius:50%;transform:translate(-50%,-50%);animation:none}
.uk-hotspot-device .uk-hotspot-trigger span,
.uk-hotspot-device .uk-detail-hotspot.is-open .uk-hotspot-trigger span{position:absolute;left:50%;top:50%;width:11px;height:11px;transform:translate(-50%,-50%);margin:0}
.uk-hotspot-device .uk-detail-hotspot.is-open .uk-hotspot-trigger{opacity:1}
.uk-hotspot-device .uk-detail-hotspot.is-open .uk-hotspot-trigger::before{animation:uk-centred-pulse 4s ease-in-out infinite}
@keyframes uk-centred-pulse{0%,100%{transform:translate(-50%,-50%) scale(.95);opacity:.8}50%{transform:translate(-50%,-50%) scale(1.06);opacity:1}}
.case-page .icon-menu{box-sizing:border-box}
.case-page .icon-menu>a:first-child{box-sizing:border-box;align-self:center;display:grid;place-items:center}
.case-page .icon-menu .dock-star{display:block;margin:0}

/* Restore the quiet pulse on every centred marker. */
.uk-hotspot-device .uk-hotspot-trigger::before,
.uk-hotspot-device .uk-detail-hotspot.is-open .uk-hotspot-trigger::before{animation:uk-centred-pulse 4s ease-in-out infinite}
/* Validation uses the same material as its surrounding explanation card. */
.uk-hotspot-section #uk-hotspot-alias .uk-user-favorite,
[data-theme="dark"] .uk-hotspot-section #uk-hotspot-alias .uk-user-favorite{
 background:var(--care-visual-background);color:var(--ink);border:1px solid var(--case-border);border-radius:16px;box-shadow:inset 0 1px 0 #ffffff0b;
}
@media(prefers-reduced-motion:reduce){.uk-hotspot-device .uk-hotspot-trigger::before,.uk-hotspot-device .uk-detail-hotspot.is-open .uk-hotspot-trigger::before{animation:none}}
/* Compact edit symbols and a shared glass treatment for test evidence. */
.uk-hotspot-section .uk-edit-control-note img{width:24px;height:24px}
.uk-hotspot-section .uk-hotspot-popover .uk-user-favorite,
.uk-hotspot-section #uk-hotspot-alias .uk-user-favorite,
[data-theme="dark"] .uk-hotspot-section .uk-hotspot-popover .uk-user-favorite,
[data-theme="dark"] .uk-hotspot-section #uk-hotspot-alias .uk-user-favorite{
 display:flex;align-items:center;gap:10px;padding:14px 16px;
 border:1px solid var(--case-border);border-radius:18px;
 background:var(--care-visual-background);color:var(--ink);
 box-shadow:inset 0 1px 0 #ffffff16,0 3px 12px #00000008;
 backdrop-filter:blur(20px) saturate(110%);-webkit-backdrop-filter:blur(20px) saturate(110%);
}
.uk-hotspot-section .uk-user-favorite .uk-local-icon{width:16px;height:16px;min-width:16px;font-size:16px;margin:0}

.uk-hotspot-device .uk-detail-hotspot.is-muted>.uk-hotspot-trigger{opacity:0;visibility:hidden;pointer-events:none}
.uk-hotspot-section .uk-hotspot-back{display:block;margin-top:24px;padding:8px 14px;border:1px solid var(--case-border);border-radius:999px;background:var(--navigation-glass);color:var(--ink);font:14px/1.4 Arial,sans-serif;cursor:pointer}
.uk-hotspot-back:focus-visible,.uk-explore-prototype:focus-visible{outline:2px solid var(--purple);outline-offset:4px}
.uk-explore-stage>.uk-explore-prototype{display:block;position:relative;margin:0 auto 32px;padding:12px 24px;border:1px solid #ffffff40;border-radius:999px;background:#ffffff12;color:inherit;font:16px/1.4 Arial,sans-serif;cursor:pointer;transition:background .2s}
.uk-explore-stage>.uk-explore-prototype:hover{background:#ffffff24}
/* Keep the insight model beside its tabs instead of at the far edge. */
.uk-chapters .uk-insight-header{justify-content:flex-start;gap:16px;flex-wrap:wrap}
.uk-chapters .uk-insight-header>.uk-project-tabs{flex:0 1 auto;min-width:0}
.uk-chapters .uk-insight-header>.uk-insight-map{margin:0;box-sizing:border-box;flex-shrink:0}
.uk-chapters .uk-insight-header>.uk-insight-map{width:40px;height:40px;flex-basis:40px;padding:10px}
.uk-chapters .uk-insight-header>.uk-insight-map svg{width:20px;height:20px}
.case-page>.project-reading-toggle{position:absolute;bottom:64px;right:0;width:48px;height:48px;display:grid;place-items:center;padding:12px;box-sizing:border-box;border:1px solid var(--navigation-glass-border);border-radius:50%;background:var(--navigation-glass);color:var(--ink);box-shadow:var(--navigation-glass-shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);cursor:pointer}
.project-reading-toggle svg{display:block;width:22px;height:22px}
.project-reading-toggle:focus-visible{outline:2px solid var(--purple);outline-offset:4px}
/* Independent of the bottom menu: centre the toggle on the right edge. */
.case-page>.project-reading-toggle{position:fixed;top:50%;bottom:auto;right:24px;transform:translateY(-50%)}
@media(max-width:700px){.case-page>.project-reading-toggle{right:16px}}

/* Contents takes the project picker's top-right position. */
.case-page .project-picker{display:none}
.case-page .project-menu{top:24px;bottom:auto;right:24px;opacity:1;visibility:visible}
.case-page .project-menu .project-section-panel{top:64px;bottom:auto;transform:translateY(-8px)}
.case-page .project-menu.is-open .project-section-panel{transform:none}
.case-page .project-menu .project-section-panel::after{top:auto;bottom:100%}
.case-page>.project-reading-toggle{top:auto;bottom:24px;right:24px;transform:none;z-index:100}
@media(max-width:700px){.case-page .project-menu{top:16px;right:16px}.case-page>.project-reading-toggle{bottom:16px;right:16px}}
/* Shared context surface for the interactive design-detail example. */
:root{--uk-context-background:radial-gradient(ellipse at 12% 35%,#e6def0,transparent 65%),#f1f2ed}
[data-theme="dark"]{--uk-context-background:radial-gradient(ellipse at 10% 28%,#65537535,transparent 64%),radial-gradient(ellipse at 95% 75%,#71836b16,transparent 62%),#202123}
.uk-chapters,
[data-theme="dark"] .uk-chapters,
.uk-design-details.uk-hotspot-section,
[data-theme="dark"] .uk-design-details.uk-hotspot-section{background:var(--uk-context-background)}
.uk-hotspot-section .uk-details-stage{background:#ffffff59;border:1px solid #ffffffa6;box-shadow:0 8px 32px #30243e08;backdrop-filter:blur(24px) saturate(115%);-webkit-backdrop-filter:blur(24px) saturate(115%)}
[data-theme="dark"] .uk-hotspot-section .uk-details-stage{background:linear-gradient(135deg,#eee7ff0e,#dce9cc06);border-color:#eee7ff24;box-shadow:inset 0 1px 0 #ffffff0b,0 12px 40px #08080b18}
/* Contain folder previews and hint at horizontal continuation without a scrollbar. */
.uk-related-row{scrollbar-width:none;-ms-overflow-style:none;padding-left:24px;padding-right:24px;mask-image:linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent);-webkit-mask-image:linear-gradient(to right,transparent,#000 32px,#000 calc(100% - 32px),transparent)}
.uk-related-row::-webkit-scrollbar{display:none}
.uk-related-row .library-item .project-folder{width:280px;height:230px;max-width:100%;transform:none;margin:0 auto 24px;overflow:hidden;border-radius:20px;box-sizing:border-box}
.uk-related-row .library-item .folder-previews img{width:84px;height:176px;top:26px;object-fit:cover;object-position:top}
.uk-related-row .library-item .folder-previews img:nth-child(1){left:24px;transform:rotate(-9deg)}
.uk-related-row .library-item .folder-previews img:nth-child(2){left:98px;top:20px;transform:none}
.uk-related-row .library-item .folder-previews img:nth-child(3){right:24px;transform:rotate(9deg)}
.uk-related-row .library-item .folder-glass{height:156px;box-sizing:border-box}
.uk-related-row .au-folder-guide-cover,.uk-related-row .au-folder-guide-pages{width:190px}
.uk-related-row .au-folder-guide-cover{left:24px;top:24px}
.uk-related-row .au-folder-guide-pages{left:60px;top:38px}
.uk-related-row .concept-sheets{inset:24px 24px 0;gap:10px}
.uk-related-row .concept-sheets span{min-width:0;width:50%;height:176px;padding:16px;box-sizing:border-box;font-size:16px}
@media(max-width:700px){.uk-related-row .library-item .folder-previews img:nth-child(2){left:calc(50% - 42px)}}
/* Optional reading depth is confined to Context & challenge. */
.uk-chapters .uk-reading-depth[hidden]{display:none!important}
.uk-chapters .uk-reading-depth{margin-top:24px;padding-top:24px;border-top:1px solid var(--case-border);color:var(--ink)}
.uk-chapters .uk-reading-depth p{font:inherit;font-size:18px;line-height:1.6;margin:0}
.uk-chapters .uk-reading-depth p+p{margin-top:20px}
.uk-chapters .uk-reading-methods h3{font-size:22px;line-height:1.25;margin:0 0 16px}
.uk-chapters .uk-reading-methods{margin-top:32px}
@media(max-width:700px){.uk-chapters .uk-reading-depth p{font-size:16px}}
.uk-chapters .uk-reading-quick[hidden]{display:none!important}
.uk-chapters .uk-reading-depth.uk-reading-replacement{margin-top:0;padding-top:0;border-top:0}
.uk-next-steps .uk-reading-replacement ul{margin-top:0}
.uk-next-steps .uk-reading-replacement li+li{margin-top:24px}
.uk-next-steps .uk-reading-replacement li>p{margin-top:12px}
.uk-next-steps .uk-reading-depth ol{margin:0;padding-left:24px;font-size:18px;line-height:1.55}
.uk-next-steps .uk-reading-depth ol li+li{margin-top:16px}
@media(max-width:700px){.uk-next-steps .uk-reading-depth ol{font-size:16px}}

.uk-development-copy h3 { margin:28px 0 8px; font-size:20px; line-height:1.35; }
.uk-development-copy h2 + h3 { margin-top:24px; }

.uk-next-steps .uk-research-points { list-style:none; padding:0; margin-bottom:0; }
.uk-next-steps .uk-research-points > .uk-chapter-point { display:block; margin:0; }
.uk-floating-prototype { position:fixed; z-index:90; bottom:28px; left:50%; transform:translateX(-50%); min-height:44px; padding:12px 22px; border:1px solid var(--navigation-glass-border); border-radius:999px; background:var(--navigation-glass); box-shadow:var(--navigation-glass-shadow); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); color:var(--ink); font:16px/1.4 Arial,sans-serif; cursor:pointer; white-space:nowrap; }
.uk-floating-prototype[hidden], .app-preview-open .uk-floating-prototype { display:none; }
.uk-floating-prototype:hover { background:var(--navigation-glass-hover); }
.uk-floating-prototype:focus-visible { outline:3px solid var(--purple); outline-offset:4px; }
@media(max-width:600px) { .uk-floating-prototype { bottom:24px; padding:10px 16px; font-size:14px; } }

/* Compact project links inside the closing glass sheet. */
.uk-project-outro .uk-outro-projects { width:min(600px,100%); margin:24px 0 0 auto; padding:0; background:transparent; pointer-events:auto; }
.uk-outro-projects .uk-related-heading { margin:0 0 12px; gap:16px; }
.uk-outro-projects .uk-related-heading h2 { font-size:18px; letter-spacing:-.02em; margin:0; }
.uk-outro-projects .uk-related-heading > a { font-size:12px; }
.uk-outro-projects .uk-related-row { padding:4px 0 8px; gap:16px; mask-image:none; -webkit-mask-image:none; }
.uk-outro-projects .uk-related-row > .library-item { flex:0 0 128px; overflow:hidden; }
.uk-outro-projects .uk-related-row .library-item .project-folder { width:280px; max-width:none; height:230px; transform:scale(.45); transform-origin:top left; margin:0 0 -126px; }
.uk-outro-projects .uk-related-row h3 { font-size:13px; margin:8px 0 0; line-height:1.3; }
.uk-outro-projects .uk-related-row p { display:none; }
.uk-project-outro { padding-top:48px; padding-bottom:48px; }
@media(max-width:600px) {
 .uk-project-outro .uk-outro-projects { margin-top:20px; }
 .uk-outro-projects .uk-related-heading { flex-direction:row; align-items:center; }
 .uk-outro-projects .uk-related-row { gap:12px; }
 .uk-outro-projects .uk-related-row > .library-item { flex-basis:112px; }
 .uk-outro-projects .uk-related-row .library-item .project-folder { transform:scale(.4); margin-bottom:-138px; }
}

.uk-letter-favorite-visual { position:relative; }
.uk-letter-favorite { position:absolute; bottom:24px; left:24px; display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:10px 16px; border:1px solid var(--navigation-glass-border); border-radius:999px; background:var(--navigation-glass); box-shadow:var(--navigation-glass-shadow); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); color:var(--ink); font:14px/1.4 Arial,sans-serif; cursor:pointer; }
.uk-letter-favorite:hover { background:var(--navigation-glass-hover); }
.uk-letter-favorite:focus-visible { outline:3px solid var(--purple); outline-offset:4px; }
