/* werkgeheugen.css — the parts of the article on working memory and AI
   (blog/werkgeheugen-ai.html) that running text cannot carry: the hand-off film, the skill panel and the workshop call. Kept out of tekst.css so another article never inherits them.
   Colours are the site's tokens (site.css); the soft blobs are radial gradients
   rather than the blurred .wash, which iOS renders slowly (site.css, 2026-10-08). */

.tekst ul { list-style: disc; }
.tekst ol { list-style: decimal; }
.tekst code { font-family: var(--mono); font-size: 0.86em; padding: 0.1em 0.35em; border-radius: 0.35em; background: var(--paper); border: 1px solid var(--line); }

/* Wider than the text column, growing to the right like the product shots. */
.wg-breed { width: min(68rem, calc(100vw - 2 * var(--pad))); max-width: none; }

/* ---- the byline under the lead, with photo and role as on news sites ---------- */
.wg-auteur { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.4rem; }
.wg-auteur__foto { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.wg-auteur p { display: grid; line-height: 1.35; }
.wg-auteur__naam { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.wg-auteur__rol { font-size: 0.85rem; color: var(--muted); }

/* ---- fact box -------------------------------------------------------------- */
.feitje {
  margin-top: 1.6rem; padding: 1.2rem 1.4rem; border-radius: 1rem;
  background: radial-gradient(120% 140% at 0% 0%, rgba(247, 228, 160, 0.55), transparent 60%), var(--paper);
  border: 1px solid var(--line);
}
.feitje p { font-size: 0.98rem; line-height: 1.65; }
.feitje strong { display: block; margin-bottom: 0.25rem; }

/* ---- the sum: the same 3 + 2, short and hidden in a story ---------------------- */
.tekst .wg-som { margin: 1.4rem 0 0; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 0.8rem; }
.wg-som__kaart { display: grid; align-content: start; gap: 0.6rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--canvas); }
.wg-som__label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tekst .wg-som__vraag { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink); }
.wg-som__antwoord { justify-self: start; display: grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.7rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; }
.wg-som__kaart--lang { cursor: pointer; }
.wg-som__hint { letter-spacing: 0.04em; text-transform: none; }
.wg-som__ruis, .wg-som__signaal { transition: opacity 200ms, background-color 200ms; border-radius: 0.2em; }
.wg-som__kaart--lang:hover .wg-som__ruis, .wg-som__kaart--lang:focus .wg-som__ruis, .wg-som__kaart--lang.is-aan .wg-som__ruis { opacity: 0.22; }
.wg-som__kaart--lang:hover .wg-som__signaal, .wg-som__kaart--lang:focus .wg-som__signaal, .wg-som__kaart--lang.is-aan .wg-som__signaal { background: var(--yellow); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wg-som__kaart--lang:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tekst .wg-som figcaption { grid-column: 1 / -1; margin-top: 0.1rem; font-size: 0.82rem; }
@media (max-width: 30rem) { .tekst .wg-som { grid-template-columns: 1fr; } }

/* ---- the hand-off film ------------------------------------------------------------- */
.wg-film { margin: 0; }
.wg-zig .wg-film__podium { padding: 1rem; }
.wg-film { cursor: pointer; }
.wg-film:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 1.25rem; }
.wg-film__hint {
  position: absolute; z-index: 2; left: 50%; top: 27%; transform: translate(-50%, -50%); padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 16px 30px -18px rgba(13, 14, 17, 0.6); transition: opacity 250ms;
}
.wg-film.is-spelen .wg-film__hint { opacity: 0; }
.wg-zig .wg-venster__berichten { height: 13.4rem; }
.wg-film__podium {
  position: relative; overflow: hidden; border-radius: 1.25rem; padding: clamp(1rem, 4vw, 2.2rem);
  background:
    radial-gradient(50% 70% at 0% 100%, rgba(246, 201, 176, 0.75), transparent 70%),
    radial-gradient(50% 70% at 100% 0%, rgba(201, 182, 240, 0.7), transparent 70%),
    var(--paper);
  border: 1px solid var(--line);
}
.wg-venster {
  max-width: 34rem; margin: 0 auto; border-radius: 0.9rem; background: var(--canvas); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -45px rgba(70, 60, 120, 0.55); overflow: hidden;
  transform-origin: 50% 100%; transition: transform 900ms var(--ease);
}
.wg-venster.is-zoom { transform: scale(1.12); }
.wg-venster__balk { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.wg-venster__balk i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgba(13, 14, 17, 0.12); }
.wg-venster__balk b { margin-left: 0.5rem; font-weight: 500; color: var(--ink); transition: opacity 300ms; }
.wg-venster__berichten { display: grid; align-content: end; gap: 0.6rem; padding: 1rem; height: 19rem; overflow: hidden; }
.wg-bericht { max-width: 86%; padding: 0.6rem 0.85rem; border-radius: 0.9rem; font-size: 0.86rem; line-height: 1.45; animation: wg-in 360ms var(--ease) both; }
.wg-bericht--jij { justify-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 0.3rem; }
.wg-bericht--ai { justify-self: start; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 0.3rem; }
.wg-bericht code { font-family: var(--mono); font-size: 0.85em; background: none; border: 0; padding: 0; color: inherit; }
.wg-briefje { display: grid; gap: 0.25rem; font-family: var(--mono); font-size: 0.74rem; line-height: 1.5; }
.wg-briefje b { font-family: var(--font); font-size: 0.86rem; font-weight: 500; margin-bottom: 0.15rem; }
.wg-briefje span { animation: wg-in 360ms var(--ease) both; }
@keyframes wg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wg-venster__invoer { display: flex; align-items: center; gap: 0.6rem; margin: 0 0.8rem 0.8rem; padding: 0.55rem 0.55rem 0.55rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.86rem; }
.wg-venster__tekst { flex: 1; min-height: 1.3em; color: var(--ink); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-venster__tekst:empty::before { content: "Typ een bericht"; font-family: var(--font); color: var(--muted); }
.wg-venster__tekst.is-typen::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -0.15em; background: var(--ink); animation: wg-knipper 900ms steps(1) infinite; }
@keyframes wg-knipper { 50% { opacity: 0; } }
.wg-venster__stuur { width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: #fff; font-size: 0.85rem; }
.wg-film figcaption { margin-top: 0.7rem; font-size: 0.875rem; color: var(--muted); }

/* ---- the skill section: two rows that alternate, as on the homepage. Text with
   the film beside it, then the skill file with the install steps beside it. ------ */
.wg-zig { margin-top: 2.8rem; display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.wg-zig__rij { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.wg-zig__rij--om { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); align-items: stretch; }
.wg-zig__tekst > * + * { margin-top: 1.1rem; }
/* Next to a long text the film travels along, so it stays beside what it shows. */
.wg-zig__rij--lang .wg-film { position: sticky; top: 6rem; }
/* The heading above the skill file sits close to the row it introduces. */
.wg-zig__kop { max-width: 44rem; margin-bottom: calc(-1 * clamp(1.2rem, 3vw, 2.2rem)); }
.wg-zig__kop > * + * { margin-top: 0.6rem; }
.wg-zig__kop h3 { margin-top: 0; }
.wg-zig__tekst h2, .wg-zig__tekst h3 { margin-top: 0; }
.wg-skill__kader { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.1rem; border-radius: 1.25rem; background: var(--ink); color: #f2f0ef; }
/* The file fills whatever height the install steps beside it leave, and scrolls
   inside: the panel's top and bottom line up with the text next to it. */
.wg-skill__venster { position: relative; flex: 1 1 0; min-height: 7rem; }
.wg-skill__venster .wg-skill__code { position: absolute; inset: 0; max-height: none; }
.wg-skill__kader h3 { margin: 0; font-size: 1.05rem; font-weight: 500; color: #fff; }
.wg-skill__kader p { margin: 0; font-size: 0.88rem; line-height: 1.5; color: rgba(242, 240, 239, 0.72); }
.wg-skill__balk { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 240, 239, 0.55); }
.wg-skill__code {
  margin: 0; padding: 0.8rem; max-height: 24rem; overflow: auto; border-radius: 0.8rem;
  background: #141416; border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--mono); font-size: 0.68rem; line-height: 1.6; color: #d9d6dd; white-space: pre-wrap; overflow-wrap: anywhere;
}
.wg-skill__knoppen { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.wg-skill__knoppen .knop--wit { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.wg-skill__knoppen .knop--wit:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.wg-skill__knoppen .knop:not(.knop--wit) { background: #fff; color: var(--ink); }
.wg-skill__status { min-height: 1.2em; font-size: 0.82rem; color: rgba(242, 240, 239, 0.72); }
/* ---- the workshop call --------------------------------------------------------------- */
.tekst .wg-cta {
  margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
}
.tekst .wg-cta h2 { margin: 0; }
.tekst .wg-cta p { margin-top: 0.4rem; max-width: 46ch; color: #46464b; }
.tekst .wg-cta__knop { min-height: 3.6rem; padding: 0 2.1rem; font-size: 1.05rem; color: #fff; text-decoration: none; }

@media (max-width: 56rem) {
  .wg-zig__rij, .wg-zig__rij--om { grid-template-columns: 1fr; }
  .wg-zig__rij--lang .wg-film { position: static; }
  .wg-skill__venster { flex: none; height: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-bericht, .wg-briefje span { animation: none; }
  .wg-venster { transition: none; }
  .wg-venster.is-zoom { transform: none; }
}
