/* BusinessApps blog. Tokens, header, buttons, footer and mobile menu copied from business-apps/our-story.html (keep in step). */

:root {
  --paper: #ffffff;
  --white: #ffffff;
  --tint: #f7f7f5;
  --sand: #f3f2ee;
  --ink: #1c1b17;
  --soft: #6b6a62;
  --faint: #a19f95;
  --line: #e2e0d8;
  --accent: #35746e;
  --accent-strong: #2b605b;
  --accent-text: #35746e;
  --accent-display: #35746e;
  --accent-soft: #e7f1ef;
  --button: #35746e;
  --button-hover: #2b605b;
  --on-accent: #ffffff;
  --night-accent: #6ccbbe;
  --night: #121512;
  --night-2: #1a1e1a;
  --night-ink: #ecebe5;
  --night-soft: #9b9d94;
  --night-line: #2a2f2a;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121311; --white: #121311; --tint: #181916; --sand: #1d1e1b; --ink: #ecebe5; --soft: #a3a299; --faint: #6f6e66;
    --line: #2b2c27; --accent: #3f8a82; --accent-strong: #4fa198; --accent-text: #6ccbbe; --accent-display: #6ccbbe; --accent-soft: #15302d; --button: #3f8a82; --button-hover: #4fa198; --on-accent: #ffffff; --night-accent: #6ccbbe; --night: #0b0c0b; --night-2: #141614;
    --night-ink: #ecebe5; --night-soft: #9b9d94; --night-line: #262a26; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121311; --white: #121311; --tint: #181916; --sand: #1d1e1b; --ink: #ecebe5; --soft: #a3a299; --faint: #6f6e66;
  --line: #2b2c27; --accent: #3f8a82; --accent-strong: #4fa198; --accent-text: #6ccbbe; --accent-display: #6ccbbe; --accent-soft: #15302d; --button: #3f8a82; --button-hover: #4fa198; --on-accent: #ffffff; --night-accent: #6ccbbe; --night: #0b0c0b; --night-2: #141614;
  --night-ink: #ecebe5; --night-soft: #9b9d94; --night-line: #262a26; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.muted { color: var(--soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--sans); padding: 12px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn.primary { background: var(--button); color: var(--on-accent); }
.btn.primary:hover { background: var(--button-hover); }
.btn.line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn.line:hover { border-color: var(--ink); }
.btn.sm { padding: 9px 14px; font-size: 14px; }

/* header */
.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; height: 68px; }
.nav > .brand { justify-self: start; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.brand-name { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name small { align-self: flex-end; margin-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--soft); white-space: nowrap; }
.links { display: flex; justify-content: center; gap: 28px; font-size: 15px; color: var(--soft); }
.links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; justify-self: end; }
/* section scaffolding */
.sec { padding-block: clamp(80px, 10vw, 140px); }
.sec.white { background: var(--white); }
.swiss { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.swiss .label { grid-column: 1 / span 3; padding-top: 12px; }
.swiss h2 { grid-column: 4 / span 9; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -0.03em; }
.swiss p { grid-column: 4 / span 7; color: var(--soft); font-size: 18px; }

/* footer */
footer { background: var(--paper); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 56px 40px; font-size: 14.5px; }
.foot h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--soft); }
.foot a:hover { color: var(--ink); }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px 36px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--soft); }

/* spacing pass: more air between and inside elements */
body { font-size: 17.5px; line-height: 1.65; }
.nav { height: 76px; }
.btn { padding: 14px 22px; }
.btn.sm { padding: 10px 16px; }
.sec { padding-block: clamp(72px, 8vw, 120px) clamp(96px, 10vw, 152px); }
.sec.white { background: var(--tint); }
.swiss { row-gap: 26px; margin-bottom: clamp(56px, 7vw, 104px); }
.swiss p { line-height: 1.65; }
.foot { padding-block: 88px 64px; gap: 48px; }
.foot ul { gap: 12px; }
.split-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 112px); align-items: center; margin-bottom: clamp(64px, 7vw, 104px); }
.split-head .label { margin-bottom: 20px; }
.split-head h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 22px; }
.split-head p { color: var(--soft); font-size: 18px; line-height: 1.65; max-width: 36em; }
.gov-art { aspect-ratio: 4 / 3; border-radius: var(--r); background: color-mix(in srgb, var(--accent-soft) 55%, var(--white)); border: 1px solid var(--line); padding: 6%; display: grid; place-items: center; }
.gov-art svg { width: 100%; height: auto; display: block; }
/* proof strip: real figures from a recent engagement */
.proof { background: var(--white); border-block: 1px solid var(--line); padding-block: clamp(32px, 4vw, 52px); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.proof-grid > div { display: flex; flex-direction: column-reverse; gap: 6px; padding-inline: 0 16px; border-left: 1px solid var(--line); padding-left: clamp(14px, 1.6vw, 24px); }
.proof-grid > div:first-child { border-left: 0; padding-left: 0; }
.proof-grid dd { margin: 0; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.03em; }
.proof-grid dt { font-size: 14.5px; color: var(--soft); }
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .proof-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid > div { border-left: 1px solid var(--line); padding-left: 14px; }
  .proof-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
/* mobile menu */
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; padding: 0; place-items: center; align-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; justify-self: center; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.menu { border-top: 1px solid var(--line); background: var(--white); }
.menu .wrap { display: grid; padding-block: 8px 20px; }
.menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.menu .btn { margin-top: 18px; justify-self: start; }
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  .nav { grid-template-columns: auto 1fr auto auto; gap: 12px; }
  .nav-cta { grid-column: 3; grid-row: 1; }
  .menu-btn { grid-column: 4; grid-row: 1; }
}
@media (min-width: 1101px) { .menu { display: none; } }
/* footer on phones: brand on top, link columns two by two */
@media (max-width: 600px) {
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 20px; padding-block: 56px 40px; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .foot-base { flex-direction: column; gap: 4px; }
  .sec { padding-block: 64px 80px; }
  .swiss, .split-head { margin-bottom: 40px; }
  .split-head { gap: 32px; }
}
.foot-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }
.foot-partners h4 { flex-basis: 100%; margin-bottom: 0; }
.foot-partners img { display: block; height: 22px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .3s ease, opacity .3s ease; }
.foot-partners a:hover img { filter: none; opacity: 1; }
.foot-partners img[alt="PTC"] { height: 28px; }
.tp-card img[alt="PTC"] { height: 48px; margin-block: -4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot-partners img { filter: grayscale(1) invert(1); } }

@media (max-width: 1100px) { .links { display: none; } }
@media (max-width: 900px) { .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.links a[aria-current="page"] { color: var(--ink); }

@media (max-width: 600px) { h1, h2, h3, h4 { text-wrap: pretty; } }

/* ================= BusinessApps blog (calm, Ramp-like: one sans face, weight 400, warm grey cards) ================= */
.blog, .art { --card: #f4f3f0; --card-2: #ecebe7; --text-2: color-mix(in srgb, var(--ink) 62%, transparent); --r12: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.blog, .art) { --card: #1b1c19; --card-2: #23241f; } }
:root[data-theme="dark"] :is(.blog, .art) { --card: #1b1c19; --card-2: #23241f; }
.blog h1, .blog h2, .blog h3, .art h1, .art h2, .art h3 { font-family: var(--sans); font-weight: 400; letter-spacing: -0.015em; }
.lbl { font-size: 13px; line-height: 19px; text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); }
.img { position: relative; overflow: hidden; border-radius: var(--r12); background: var(--card-2); }
.img > picture { position: absolute; inset: 0; }
.img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a:hover .img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .img img { transition: none; } a:hover .img img { transform: none; } }

.by { display: flex; align-items: center; gap: 12px; }
.by .av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.by .av svg { width: 22px; height: 22px; }
.by span { font-size: 16px; line-height: 22px; }
.by small { display: block; font-size: 16px; color: var(--text-2); }

/* ---------- list page ---------- */
.blog { padding-bottom: clamp(96px, 11vw, 160px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crumb.lcrumb { margin: 0; padding-block: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px); }

/* featured slider */
.slider { position: relative; }
.track { position: relative; }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); background: var(--card); border-radius: var(--r12); min-height: 460px; overflow: hidden; }
.slide[hidden] { display: none; }
.slide .txt { padding: clamp(32px, 4.4vw, 64px); display: grid; align-content: center; gap: 24px; }
.slide h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; max-width: 14em; }
.slide p { font-size: 17px; line-height: 27px; color: var(--text-2); max-width: 28em; }
.slide .by { margin-top: 8px; }
.slide .img { margin: 14px; border-radius: 8px; }
.slide.in { animation: slide-in .5s ease; }
@keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide.in { animation: none; } }
.dots { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.bars { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; max-width: 760px; }
.bars button { all: unset; cursor: pointer; height: 16px; display: flex; align-items: center; }
.bars button i { display: block; width: 100%; height: 1.5px; background: var(--line); position: relative; overflow: hidden; }
.bars button i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.bars button[aria-current="true"] i::after { transform: scaleX(1); }
.bars.run button[aria-current="true"] i::after { animation: bar 7s linear; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrows { margin-left: auto; display: flex; gap: 8px; }
.arrows button { all: unset; box-sizing: border-box; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); transition: background .2s; }
.arrows button:hover { background: var(--card-2); }
.arrows svg, .toc-btn svg, .dh svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:is(.bars, .arrows) button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* two promo cards */
.promos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: clamp(72px, 8vw, 120px); }
.promo { position: relative; border-radius: var(--r12); padding: clamp(28px, 3vw, 44px); background: var(--card); overflow: hidden; display: grid; align-content: start; gap: 10px; min-height: 260px; }
.promo h3 { font-size: 24px; line-height: 30px; }
.promo p { font-size: 17px; line-height: 27px; color: var(--text-2); max-width: 26em; }
.promo.dark { background: #dce8f7; color: #1c1b17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .promo.dark { background: #1e2633; color: var(--ink); } }
:root[data-theme="dark"] .promo.dark { background: #1e2633; color: var(--ink); }
.promo.dark p { color: var(--text-2); }
.promo form { margin-top: 22px; display: flex; background: #fff; border-radius: 8px; padding: 5px; max-width: 600px; }
.promo input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 17px/1 var(--sans); color: #1c1b17; padding: 0 22px; }
.promo input::placeholder { color: #8a897f; }
.promo form button { all: unset; cursor: pointer; padding: 0 34px; height: 54px; border-radius: 6px; background: #d9f26b; color: #1c1b17; font-size: 17px; transition: background .2s; }
.promo form button:hover { background: #cbe84f; }
.promo form button:focus-visible { outline: 2px solid #1c1b17; outline-offset: 2px; }
.promo .note { min-height: 20px; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.promo.link { padding-right: 38%; }
.promo.link .go { margin-top: 20px; font-size: 17px; color: var(--text-2); display: inline-flex; gap: 8px; }
.promo.link:hover .go { color: var(--ink); }
.promo.link .go::after { content: "\2192"; transition: transform .2s; }
.promo.link:hover .go::after { transform: translateX(3px); }
.promo.link .img { position: absolute; right: 0; top: 32px; bottom: 32px; width: 32%; border-radius: 8px 0 0 8px; }

/* article grids */
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: clamp(96px, 10vw, 144px); }
.sh h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.sh a { font-size: 17px; color: var(--text-2); display: inline-flex; gap: 8px; }
.sh a:hover { color: var(--ink); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(56px, 6vw, 80px) clamp(24px, 3vw, 44px); margin-top: clamp(36px, 4vw, 56px); }
.cards a { display: grid; }
.cards .img { aspect-ratio: 2 / 1; }
.cards .lbl { margin-top: 24px; }
.cards h3 { font-size: 21px; line-height: 29px; margin-top: 10px; max-width: 22em; }
.cards p { margin-top: 10px; font-size: 16px; line-height: 25px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- article page ---------- */
.ahero { background: var(--card); }
.ahero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(48px, 6vw, 96px); align-items: center; padding-block: clamp(32px, 4vw, 48px) clamp(56px, 6vw, 88px); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); margin-bottom: clamp(24px, 3vw, 40px); grid-column: 1 / -1; }
.crumb a:hover { color: var(--ink); }
.crumb svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ahero time { display: block; font-size: 14px; color: var(--text-2); }
.ahero h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.08; margin-top: 16px; max-width: 16em; }
.ahero .dek { margin-top: 22px; font-size: 19px; line-height: 30px; color: var(--text-2); max-width: 32em; }
.ahero .by { margin-top: 36px; }
.ahero .img { aspect-ratio: 2 / 1; }

/* one centred reading column; contents live in the drawer */
.abody { max-width: 720px; margin-inline: auto; padding-block: clamp(56px, 7vw, 104px) 0; }
.body { font-size: 18px; line-height: 32px; color: var(--text-2); }
.body > * + * { margin-top: 28px; }
.body > p:first-child { font-size: 21px; line-height: 34px; color: var(--ink); }
.body h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; color: var(--ink); margin-top: clamp(64px, 7vw, 88px); scroll-margin-top: 112px; }
.body h3 { font-size: 22px; line-height: 30px; color: var(--ink); margin-top: 48px; }
.body h2 + *, .body h3 + * { margin-top: 20px; }
.body strong { font-weight: 500; color: var(--ink); }
.body em { font-style: italic; }
.body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.body a:hover { text-decoration-color: var(--ink); }
.body code { font-family: var(--mono); font-size: 15px; background: var(--card); border-radius: 4px; padding: 2px 6px; overflow-wrap: anywhere; color: var(--ink); }
.body ul, .body ol { padding-left: 1.25em; }
.body li + li { margin-top: 12px; }
.body li::marker { color: color-mix(in srgb, var(--ink) 40%, transparent); }
.body blockquote { margin: 48px 0; padding-left: 28px; border-left: 2px solid var(--ink); font-size: 21px; line-height: 33px; color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 48px !important; }
.stats > div { background: var(--card); border-radius: var(--r12); padding: 28px; display: grid; gap: 10px; align-content: start; }
.stats b { font-weight: 400; font-size: 38px; line-height: 42px; letter-spacing: -0.02em; color: var(--ink); }
.stats span { font-size: 15px; line-height: 23px; }
.stats strong { font-weight: 500; }
.stats cite { font-style: normal; font-size: 13px; line-height: 18px; color: color-mix(in srgb, var(--ink) 45%, transparent); }
.stats cite a { color: inherit; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r12); margin-block: 48px !important; }
.body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 23px; min-width: 520px; }
.body th, .body td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.body tr:last-child td { border-bottom: 0; }
.body th { background: var(--card); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); }
.body td:last-child { color: var(--ink); }

.sources { margin-top: 72px; border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; color: var(--text-2); }
.sources summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; padding-block: 20px; font-size: 15px; color: var(--ink); }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::after { content: "+"; }
.sources[open] summary::after { content: "\2212"; }
.sources ol { padding: 0 0 20px 1.2em; display: grid; gap: 8px; }
.sources a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.endshare { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-block: 1px solid var(--line); font-size: 15px; }
.sources + .endshare { border-top: 0; }

.share { display: flex; gap: 20px; }
.share a, .share button { all: unset; cursor: pointer; color: var(--ink); opacity: .7; display: grid; place-items: center; position: relative; }
.share a:hover, .share button:hover { opacity: 1; }
.share a:focus-visible, .share button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.share svg { width: 18px; height: 18px; fill: currentColor; }
.share button.done::after { content: "Link copied"; position: absolute; right: calc(100% + 12px); font-size: 13px; white-space: nowrap; color: var(--text-2); }

.art .promos { margin-top: clamp(96px, 10vw, 144px); }
.art .more { padding-bottom: clamp(96px, 11vw, 160px); }

/* floating Contents button: appears while reading, names the current section */
.toc-btn { all: unset; box-sizing: border-box; cursor: pointer; position: fixed; left: var(--gutter); bottom: 28px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; max-width: min(360px, calc(100vw - 2 * var(--gutter))); height: 46px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(28, 27, 23, .22); font-size: 15px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, border-color .2s; }
.toc-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-btn svg { flex: none; }
.toc-btn.show { opacity: 1; transform: none; pointer-events: auto; }
.toc-btn:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.toc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; transition: visibility 0s .3s; }
.drawer.open { visibility: visible; transition: none; }
.scrim { position: absolute; inset: 0; background: rgba(28, 27, 23, .28); opacity: 0; transition: opacity .3s; }
.drawer.open .scrim { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scrim { background: rgba(0, 0, 0, .6); } }
:root[data-theme="dark"] .scrim { background: rgba(0, 0, 0, .6); }
.panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(420px, 88vw); background: var(--paper); padding: 28px 32px 32px; display: flex; flex-direction: column; overflow-y: auto; transform: translateX(-100%); transition: transform .3s ease; box-shadow: 20px 0 50px -30px rgba(0, 0, 0, .35); }
.drawer.open .panel { transform: none; }
.dh { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dh h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.dh button { all: unset; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--ink); }
.dh button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel ol { list-style: none; counter-reset: s; display: grid; margin-top: 12px; }
.panel ol a { display: flex; gap: 16px; padding: 14px 0; font-size: 16px; line-height: 23px; color: var(--text-2); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); transition: color .2s; }
.panel ol a::before { counter-increment: s; content: counter(s, decimal-leading-zero); flex: none; width: 20px; font-variant-numeric: tabular-nums; font-size: 13px; line-height: 23px; color: color-mix(in srgb, var(--ink) 38%, transparent); }
.panel ol a:hover, .panel ol a.on { color: var(--ink); }
.dshare { margin-top: auto; padding-top: 40px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .toc-btn, .scrim, .panel { transition: none; } }

.progress { position: fixed; left: 0; top: 0; height: 2px; width: 0; background: var(--ink); z-index: 40; }

@media (max-width: 900px) {
  .slide, .ahero .wrap, .promos { grid-template-columns: minmax(0, 1fr); }
  .slide { min-height: 0; }
  .slide .img { aspect-ratio: 2 / 1; order: -1; }
  .slide .txt { padding: 28px 28px 36px; gap: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo.link { padding-right: clamp(28px, 3vw, 44px); }
  .promo.link .img { display: none; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .promo form { flex-direction: column; gap: 6px; padding: 6px; }
  .promo input { height: 48px; padding: 0 14px; }
  .promo form button { text-align: center; }
  .slide .txt { padding: 22px 22px 30px; }
  .ahero .dek { font-size: 17px; line-height: 27px; }
  .body { font-size: 17px; line-height: 30px; }
  .body > p:first-child { font-size: 19px; line-height: 31px; }
  .body blockquote { margin: 36px 0; padding-left: 18px; font-size: 18px; line-height: 29px; }
  /* tables: each row becomes a small card, each cell labelled with its column name */
  .tbl { border: 0; border-radius: 0; overflow: visible; }
  .body table { min-width: 0; }
  .body thead { display: none; }
  .body table, .body tbody, .body tr, .body td { display: block; }
  .body tr { border: 1px solid var(--line); border-radius: var(--r12); padding: 4px 18px; }
  .body tr + tr { margin-top: 12px; }
  .body td, .body tr:last-child td { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .body tr td:last-child { border-bottom: 0; }
  .body td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .02em; color: var(--text-2); }
  .body td[data-label=""] { color: var(--ink); font-weight: 500; }
  .toc-btn { left: 50%; bottom: 20px; transform: translate(-50%, 12px); }
  .toc-btn.show { transform: translate(-50%, 0); }
  .bars { gap: 6px; }
}

/* in-article Register box (a <div class="join"> in an article) */
.body .join { margin-block: 64px 0 !important; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r12); background: #dce8f7; color: #1c1b17; display: grid; gap: 12px; justify-items: start; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .body .join { background: #1e2633; color: var(--ink); } }
:root[data-theme="dark"] .body .join { background: #1e2633; color: var(--ink); }
.body .join h3 { margin: 0; font-size: 24px; line-height: 30px; color: inherit; }
.body .join p { margin: 0; max-width: 34em; font-size: 17px; line-height: 27px; color: var(--text-2); }
.body .join .join-btn { margin-top: 12px; display: inline-flex; align-items: center; height: 52px; padding: 0 30px; border-radius: 6px; background: #d9f26b; color: #1c1b17; font-size: 17px; text-decoration: none; transition: background .2s; }
.body .join .join-btn:hover { background: #cbe84f; }
.body .join .join-btn:focus-visible { outline: 2px solid #1c1b17; outline-offset: 2px; }

/* line drawings beside key sections ({{spot: key}} in an article): in the empty right margin on wide screens,
   beside the text on tablets, small and centred under the heading on phones */
.body .spot { float: right; width: 150px; margin: 6px 0 16px 32px !important; }
.body .spot img { display: block; width: 100%; height: auto; opacity: .88; }
.body h2 + .spot + * { margin-top: 20px; }
@media (min-width: 1240px) {
  .body .spot { --sw: min(220px, calc((100vw - 720px) / 2 - var(--gutter) - 64px)); width: var(--sw); margin: 0 calc(-1 * var(--sw) - 64px) 0 0 !important; }
}
@media (max-width: 600px) {
  .body .spot { float: none; width: 132px; margin: 20px auto 0 !important; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .body .spot img { filter: invert(.9); } }
:root[data-theme="dark"] .body .spot img { filter: invert(.9); }

/* list page: article count + category dropdown beside "All articles" */
#all .sh { align-items: center; }
.sh .cnt { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; margin-left: 6px; border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--text-2); vertical-align: middle; position: relative; top: -4px; }
.cards li[hidden] { display: none; }
.dd { position: relative; flex: none; }
.dd-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--ink); background: var(--paper); white-space: nowrap; transition: border-color .2s; }
.dd-btn:hover, .dd-btn[aria-expanded="true"] { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.dd-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; min-width: 260px; max-height: min(420px, 70vh); overflow-y: auto; list-style: none; padding: 6px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(28, 27, 23, .3); }
.dd-menu[hidden] { display: none; }
.dd-menu button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 10px 12px; border-radius: 9px; font-size: 15px; color: var(--ink); }
.dd-menu button span { min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--card); font-size: 13px; color: var(--text-2); }
.dd-menu button:hover, .dd-menu button:focus-visible { background: var(--card); }
.dd-menu button:hover span, .dd-menu button:focus-visible span { background: var(--paper); }
.dd-menu button[aria-selected="true"] { font-weight: 500; }
.dd-menu button { position: relative; padding-left: 26px; }
.dd-menu button[aria-selected="true"]::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
@media (max-width: 600px) {
  #all .sh { flex-wrap: wrap; gap: 16px; }
  .dd-menu { right: auto; left: 0; }
}
.crumb .crumb-cat { display: inline-flex; align-items: center; gap: 8px; }
.crumb .crumb-cat[hidden] { display: none; }
.crumb [aria-current="page"] { color: var(--ink); }
