/* QBD Workflow shares the established featured-product layout with NEXUS. */
#workflow [hidden] { display: none !important; }
#workflow-title { font-size: clamp(2.8rem, 5vw, 4.8rem); overflow-wrap: normal; }
.workflow-preview { margin: 0; }
.workflow-preview img { width: 100%; height: auto; border: 1px solid #d5b27140; box-shadow: 0 18px 48px #0005; }
.workflow-preview figcaption { margin-top: 20px; color: #aca99f; text-align: center; font-size: .875rem; line-height: 1.8; }
.workflow-preview figcaption a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; }
#workflow-notes-description { font-size: .875rem; color: #b4b2ab; margin: 10px 0 0; line-height: 1.6; }
html.workflow-notes-open { overflow: hidden; }
@media (min-width: 1041px) { .main-nav { gap: clamp(10px, 1.05vw, 17px); } }
@media (min-width: 1381px) and (max-width: 1540px) { .header-cta { display: none; } }
@media (max-width: 760px) { #workflow-title { font-size: clamp(2.3rem, 10vw, 4rem); } }
@media (max-width: 380px) { #workflow .nexus-enquiry { white-space: normal; text-align: center; } }

.workflow-theme-gallery{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:24px}.workflow-theme-gallery a{display:block;border:1px solid #373b3b;border-radius:10px;overflow:hidden;text-decoration:none;color:inherit}.workflow-theme-gallery img{display:block;width:100%;height:auto}.workflow-theme-gallery span{display:block;padding:14px;font-size:14px}.workflow-theme-gallery p{grid-column:1/-1;color:#aeb5b8;font-size:13px}@media(max-width:700px){.workflow-theme-gallery{grid-template-columns:1fr}}

.workflow-patch-summary{font-size:.875rem;line-height:1.7;color:#cbc6b7;margin-top:18px}.workflow-patch-summary a{color:var(--gold-bright);text-decoration:underline}.workflow-latest-patch{border-left:3px solid var(--gold);padding-left:20px}

#workflow { position: relative; }
#workflow > #nexus { position: absolute; top: 0; scroll-margin-top: 100px; }
#workflow-notes-body > h2 { color: var(--gold-bright); margin: 32px 0 18px; font-size: 1.25rem; }
.combined-notes-intro { padding: 16px; border: 1px solid #d5b27140; border-radius: 8px; line-height: 1.7; }

.hero-heading{display:flex;align-items:center;gap:clamp(24px,4vw,64px);flex-wrap:wrap}.hero-idea{max-width:15ch;color:var(--gold-bright);font-size:clamp(1.25rem,2.2vw,2rem);line-height:1.35;border-left:2px solid var(--gold);padding-left:24px;margin:0 0 20px;letter-spacing:-.02em}
.workflow-tool-gallery{grid-column:1/-1;margin:30px 0 8px}.workflow-tool-gallery h3{font-size:1.6rem;margin:0 0 10px}.workflow-tool-gallery>p{color:#b4b2ab;line-height:1.7}.workflow-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.workflow-gallery-card{display:block;min-width:0;overflow:hidden;border:1px solid #d5b27135;border-radius:10px;background:#111514;color:inherit;text-decoration:none;transition:border-color .18s,transform .18s}.workflow-gallery-card:hover{border-color:var(--gold-bright);transform:translateY(-3px)}.workflow-gallery-card:focus-visible{outline:2px solid var(--gold-bright);outline-offset:4px}.workflow-gallery-card img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain;background:#0b0e0e}.workflow-gallery-card span{display:block;padding:14px 16px;font-size:.9rem}.workflow-gallery-card small{float:right;color:var(--gold-bright)}
html.workflow-gallery-open{overflow:hidden}.workflow-gallery-dialog{width:min(1400px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid #d5b27170;border-radius:14px;background:#0d1111;color:#eee9df;box-shadow:0 24px 90px #000b}.workflow-gallery-dialog::backdrop{background:#030606e8}.workflow-gallery-shell{display:flex;flex-direction:column;max-height:92dvh}.workflow-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 22px;border-bottom:1px solid #ffffff18}.workflow-gallery-header h2{font-size:1.1rem;margin:0}.workflow-gallery-close,.workflow-gallery-controls button{border:1px solid #d5b27166;border-radius:7px;background:#22251f;color:#f4e4bc;cursor:pointer;padding:10px 16px;font:inherit}.workflow-gallery-close:focus-visible,.workflow-gallery-controls button:focus-visible,.workflow-gallery-thumbnails button:focus-visible{outline:2px solid #ffe19d;outline-offset:3px}.workflow-gallery-image{display:block;width:100%;height:min(62dvh,850px);min-height:120px;object-fit:contain;background:#080b0b}.workflow-gallery-controls{display:flex;align-items:center;justify-content:center;gap:20px;padding:12px}.workflow-gallery-caption{color:#c1beb6;text-align:center;margin:0;padding:0 20px 12px;font-size:.85rem;line-height:1.5}.workflow-gallery-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:8px 20px 14px;flex-shrink:0}.workflow-gallery-thumbnails button{border:2px solid transparent;background:#151a19;padding:2px;border-radius:5px;flex:0 0 88px;cursor:pointer}.workflow-gallery-thumbnails button[aria-current=true]{border-color:var(--gold-bright)}.workflow-gallery-thumbnails img{display:block;width:80px;height:52px;object-fit:contain}
@media(max-width:1000px){.workflow-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.workflow-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workflow-gallery-header{padding:12px}.workflow-gallery-image{height:48dvh}.workflow-gallery-card span{padding:10px;font-size:.8rem}.hero-heading{gap:0}.hero-idea{max-width:25ch;font-size:1.2rem;padding-left:14px;margin-bottom:24px}.workflow-gallery-thumbnails button{flex-basis:68px}.workflow-gallery-thumbnails img{width:60px;height:42px}}@media(prefers-reduced-motion:reduce){.workflow-gallery-card{transition:none}.workflow-gallery-card:hover{transform:none}}

/* Keep the second hero statement readable over the detailed gold artwork. */
.hero-idea{flex:0 1 auto;max-width:18ch;margin:0;padding:24px 28px;border:1px solid #d5b27170;border-left:4px solid #f4d58d;border-radius:8px;background:linear-gradient(120deg,#0b1010fa,#0b1010eb);color:#fff5dd;font-size:clamp(1.75rem,2.7vw,2.6rem);font-weight:650;line-height:1.25;letter-spacing:-.025em;box-shadow:0 12px 40px #0006;text-shadow:0 2px 8px #000}
@media(max-width:700px){.hero-heading{gap:22px}.hero-idea{max-width:22ch;padding:18px 20px;margin:0 0 24px;font-size:clamp(1.5rem,6.3vw,1.9rem);background:#0b1010f5}}

.hero-idea span{display:block}

.workflow-gallery-card{align-self:start}.workflow-theme-gallery img{height:auto;aspect-ratio:auto}

.nexus-current figure{margin:24px 0}.nexus-current figure img{display:block;width:100%;height:auto}.nexus-current figcaption{color:#a8abae;font-size:13px;margin-top:12px}.nexus-current .nexus-features>div{display:block}.nexus-current h3{margin-bottom:8px}
