/* Bluedify desk sites (M144-f): shared skeleton for Audio & Music, Electronics and Tools & Auto.
   Each desk sets its own tokens and signature sections in au.css / el.css / tl.css. CSP: no inline styles. */
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }

:root { --pad: clamp(16px, 4vw, 56px); --top-h: 96px; --sans: "Instrument Sans", system-ui, sans-serif; --serif: "Cormorant Garamond", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace; --p: 0; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; padding: 10px 14px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 44px; }
.defs { position: absolute; width: 0; height: 0; }
.ico { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
section[id] { scroll-margin-top: calc(var(--top-h) + 8px); }

/* ---------- header ---------- */
.dk-top { position: fixed; z-index: 50; top: var(--gbar-h, 36px); left: 0; right: 0; height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 16px; padding-inline: var(--pad); color: var(--top-ink, var(--ink)); transition: background .4s ease, box-shadow .4s ease, color .4s ease; }
.dk-top.solid, .sub .dk-top { background: var(--top-bg); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.dk-nav { display: flex; gap: clamp(14px, 2vw, 28px); font-size: .82rem; letter-spacing: .02em; }
.dk-nav a { text-decoration: none; opacity: .82; }
.dk-nav a:hover { opacity: 1; }
.dk-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.35rem/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.dk-mark img { width: 32px; height: 32px; }
.dk-mark small { font: 500 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .78; }
.dk-r { display: flex; justify-content: flex-end; }
.dk-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid currentColor; border-radius: 999px; font-size: .8rem; text-decoration: none; white-space: nowrap; transition: background .3s ease, color .3s ease; }
.dk-pill:hover { background: var(--ac); border-color: var(--ac); color: var(--on-ac); }
@media (max-width: 860px) {
  .dk-top { grid-template-columns: auto 1fr; }
  .dk-nav { display: none; }
  .dk-mark small { display: none; }
}

/* ---------- shared bits ---------- */
.k { font: 600 .72rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ac); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--ac); color: var(--on-ac); font-weight: 600; font-size: .9rem; text-decoration: none; border: 0; cursor: pointer; transition: transform .3s ease, filter .3s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.wrap { max-width: 84rem; margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(72px, 10vw, 150px); }
.sec-h { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-h h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); line-height: 1; }
.sec-h p { color: var(--mute); font-size: 1.04rem; max-width: 38rem; }
.band { position: relative; isolation: isolate; display: grid; align-items: end; min-height: min(88vh, 760px); padding: var(--pad); overflow: hidden; color: #fff; }
.band img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 115%; object-fit: cover; transform: translateY(calc(var(--bp, 0) * -12%)); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0, 0, 0, .66), rgba(0, 0, 0, 0) 60%); }
.band p { max-width: 40rem; font-size: clamp(2rem, 1.2rem + 3vw, 4.2rem); line-height: 1.02; text-wrap: balance; }

/* journal cards */
.jr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(18px, 3vw, 40px); }
.jr a { display: grid; gap: 14px; align-content: start; text-decoration: none; }
.jr-pic { overflow: hidden; border-radius: var(--r, 4px); }
.jr-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.jr a:hover .jr-pic img { transform: scale(1.04); }
.jr-k { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.jr h3 { font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); line-height: 1.1; }
.jr p:not(.jr-k) { color: var(--mute); }
@media (max-width: 700px) { .jr { grid-template-columns: 1fr; } }
/* four cards: 2 + 2 on tablets instead of 3 with the last one alone */
@media (min-width: 701px) and (max-width: 1100px) { .jr:has(> a:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- closing ---------- */
.dfin { position: relative; isolation: isolate; overflow: hidden; background: var(--fin-bg); color: var(--fin-ink); padding: clamp(72px, 10vw, 140px) var(--pad) 0; }
.dfin-pic { position: absolute; z-index: -1; top: 0; right: 0; width: 50%; height: 100%; object-fit: cover; opacity: .5;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%), linear-gradient(to top, transparent 0, #000 22%); mask-image: linear-gradient(to left, #000 30%, transparent 100%); }
.dfin-in { max-width: 84rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.dfin h2 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.8rem); line-height: .98; }
.dfin-join p { margin-top: 18px; max-width: 30rem; opacity: .82; }
.dfin form { display: flex; gap: 10px; margin-top: 28px; max-width: 30rem; }
.dfin input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--fin-line); background: transparent; }
.dfin input::placeholder { color: inherit; opacity: .6; }
.dfin-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; font-size: .9rem; }
.dfin-cols h3 { margin-bottom: 10px; font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; opacity: .6; }
.dfin-cols a { display: block; padding-block: 4px; text-decoration: none; opacity: .86; }
.dfin-cols a:hover { opacity: 1; color: var(--ac); }
.dfin-legal { grid-column: 1 / -1; margin-top: 28px; font-size: .78rem; opacity: .62; max-width: 46rem; }
.dfin-word { margin-top: clamp(28px, 4vw, 60px); font: 500 clamp(5rem, 1rem + 19vw, 21rem)/.8 var(--serif); letter-spacing: -.03em; text-align: center; transform: translateY(.12em);
  background: linear-gradient(90deg, var(--w1), var(--w2), var(--w3), var(--w2), var(--w1)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: dk-word 5s ease-in-out infinite alternate; }
@keyframes dk-word { from { background-position: 0 0; } to { background-position: 100% 0; } }
@media (max-width: 860px) {
  .dfin-in { grid-template-columns: minmax(0, 1fr); }   /* 23.11: plain 1fr grew to the content min width (366px) and clipped the form at 360px */
  .dfin-pic { width: 100%; opacity: .25; }
}
@media (max-width: 520px) { .dfin-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- article pages ---------- */
.ar { padding-top: calc(var(--top-h) + clamp(40px, 7vw, 100px)); }
.ar-head { max-width: 50rem; margin-inline: auto; padding-inline: var(--pad); text-align: center; }
.ar-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ar-meta a { color: var(--ac); text-decoration: none; }
.ar-head h1 { margin-top: 22px; font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: 1; }
.ar-lead { margin-top: 22px; font-size: 1.16rem; color: var(--mute); }
.ar-pic { max-width: 64rem; margin: clamp(36px, 6vw, 72px) auto 0; padding-inline: var(--pad); }
.ar-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r, 4px); }
.ar-body { max-width: 42rem; margin-inline: auto; padding: clamp(36px, 6vw, 72px) var(--pad) 0; font-size: 1.08rem; line-height: 1.75; overflow-wrap: break-word; }   /* 23.11: the OPSS email scrolled the page at 320px */
.ar-body h2 { margin: 2.2em 0 .5em; font-size: 1.6rem; line-height: 1.15; }
.ar-body p + p { margin-top: 1em; }
.ar-body ul { margin: 1em 0; display: grid; gap: .5em; }
.ar-body li { padding-left: 22px; position: relative; }
.ar-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--ac); }
.ar-body a { color: var(--ac); }
.ar-src { margin-top: 56px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r, 4px); font-size: .9rem; line-height: 1.6; color: var(--mute); }
.ar-src h2 { margin: 0 0 8px; font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.ar-src p { margin-top: 10px; }
.ar-more { max-width: 84rem; margin-inline: auto; padding: clamp(72px, 10vw, 140px) var(--pad); }
.ar-more > h2 { margin-bottom: 28px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- shared widgets: tabs and filter chips (d.js) ---------- */
.js .tab-p:not(.on) { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.chips button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .84rem; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.chips button:hover { border-color: var(--ac); }
.chips button[aria-pressed="true"] { background: var(--ac); border-color: var(--ac); color: var(--on-ac); }
[data-tags].off { display: none; }
.dfin-sub .dfin-pic { opacity: .32; }
.tab-p { scroll-margin-top: calc(var(--top-h) + 12px); }

/* ---------- M145: editorial blocks shared by the three desks (hero, statement, catalogue, ruled lists, split rows) ---------- */
h4 { margin: 0; }
.dh { position: relative; isolation: isolate; min-height: max(100svh, 640px); display: grid; align-items: center; padding: calc(var(--top-h) + 48px) var(--pad) 132px; overflow: hidden; color: #fff; background: var(--hero-bg, #000); }
.dh-pic { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: dh-zoom 2.6s cubic-bezier(.2, .7, .1, 1) both; }
.dh::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-veil, none); pointer-events: none; }
@keyframes dh-zoom { from { transform: scale(1.07); opacity: .4; } to { transform: none; opacity: 1; } }
.dh-in { position: relative; display: grid; gap: 22px; max-width: 84rem; width: 100%; margin-inline: auto; }
.dh h1 { font-size: clamp(3.4rem, 1.4rem + 8vw, 9.5rem); line-height: .92; }
.dh-lead { max-width: 34rem; font-size: 1.08rem; color: rgba(255, 255, 255, .84); }
.dh-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.dh-idx { position: absolute; left: var(--pad); right: var(--pad); bottom: 30px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .82); }
.dh-idx li { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .28); }
.dh-idx li span { margin-right: 10px; opacity: .6; }
.dsay { padding-block: clamp(96px, 14vw, 200px); }
.dsay p { max-width: 62rem; margin-inline: auto; text-align: center; font-size: clamp(1.8rem, 1rem + 2.6vw, 3.4rem); line-height: 1.16; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.cats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cats-l { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cats-l h3 { font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.4rem); line-height: 1; }
.cats-l span { color: var(--mute); font-size: .9rem; }
.cats-l ~ .cats-l { margin-top: clamp(24px, 4vw, 56px); }
.cat { display: grid; gap: 8px; align-content: start; }
.cat-pic { overflow: hidden; border-radius: var(--r); background: var(--line); }
.cat-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .1, 1), filter .8s ease; }
.cat:hover .cat-pic img { transform: scale(1.045); }
.cat-n { margin-top: 10px; font: 600 .7rem/1 var(--sans); letter-spacing: .18em; color: var(--ac); }
.cat h4 { font-size: 1.4rem; line-height: 1.1; font-weight: inherit; }
.cat p { color: var(--mute); font-size: .92rem; }
.cat .cat-q { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .01em; }
.ruled { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.ruled-2 { --cols: 2; }
.ruled h3 { padding-bottom: 16px; border-bottom: 1px solid var(--ink); font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); line-height: 1.05; }
.ruled ol li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.ruled ol li span { font: 600 .7rem/1.9 var(--sans); letter-spacing: .12em; color: var(--ac); }
.dsplit { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.dsplit > .sec-h { position: sticky; top: calc(var(--top-h) + 40px); margin: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows b { font-weight: 600; font-size: 1.02rem; }
.rows p { color: var(--mute); }
.sec-h a, .rows a { color: var(--ac); }
@media (max-width: 960px) {
  .cats, .cats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruled, .ruled-2 { grid-template-columns: 1fr; }
  .dsplit { grid-template-columns: 1fr; }
  .dsplit > .sec-h { position: static; }
  .rows li { grid-template-columns: 1fr; gap: 10px; }
  .dh-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 560px) {
  .cats, .cats-3 { gap: 28px 12px; }
  .cat h4 { font-size: 1.12rem; }
  .cat .cat-q { display: none; }
  .dh { padding-bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) { .dh-pic { animation: none; } }

/* M147: the white emblem with the black line-drawn B, larger in the bar */
.dk-mark { font-size: 1.6rem; gap: 12px; }
.dk-mark img { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.dk-mark small { font-size: .7rem; }

/* f148 */
/* M148-g: a line drawing that draws itself once in view, five numbered parts (Electronics plug, Tools axle stand) */
.pl { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pl-fig { margin: 0; }
.pl-svg { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; overflow: visible; }
.pl-d { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.6, 0, .2, 1), stroke .3s, opacity .3s; }
.js .pl:not(.drawn) .pl-d { stroke-dashoffset: 1; }
.pl-s { stroke-width: 1.5; opacity: .55; }
.pl-p[data-part="1"] .pl-d { transition-delay: .5s, 0s, 0s; }
.pl-p[data-part="2"] .pl-d { transition-delay: .7s, 0s, 0s; }
.pl-p[data-part="3"] .pl-d { transition-delay: .9s, 0s, 0s; }
.pl-p[data-part="4"] .pl-d { transition-delay: 1.1s, 0s, 0s; }
.pl-t { fill: var(--ink); font: 500 26px var(--mono, var(--sans)); letter-spacing: .14em; text-anchor: middle; transition: opacity .6s 1.5s, fill .3s; }
.pl-tags text { fill: var(--ac2, var(--ac)); font: 700 24px var(--mono, var(--sans)); transition: opacity .5s 1.8s; }
.js .pl:not(.drawn) .pl-t, .js .pl:not(.drawn) .pl-tags text { opacity: 0; }
.pl.focus .pl-p:not(.on) .pl-d, .pl.focus .pl-p:not(.on) .pl-t { opacity: .22; transition-delay: 0s; }
.pl-p.on .pl-d { stroke: var(--ac2, var(--ac)); }
.pl-p.on .pl-t { fill: var(--ac2, var(--ac)); }
.pl-fig figcaption { margin-top: 14px; color: var(--mute); font-size: .82rem; text-align: center; }
.pl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pl-i { display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 14px; padding: 18px 8px 18px 0; border-bottom: 1px solid var(--line); }
.pl-i:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.pl-n { grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: 50%; font: 600 .85rem/1 var(--mono, var(--sans)); color: var(--ac2, var(--ac)); transition: background .25s, color .25s, border-color .25s; }
.pl-i strong { font-weight: 600; }
.pl-i span:last-child { color: var(--mute); font-size: .95rem; }
.pl-i.on .pl-n { background: var(--ac); border-color: var(--ac); color: var(--on-ac); }
@media (max-width: 860px) { .pl { grid-template-columns: 1fr; } .pl-svg { max-width: 300px; } }
@media (prefers-reduced-motion: reduce) { .pl-d, .pl-t, .pl-tags text { transition: none; } }
/* /f148 */
