/* Lijm: wat op elke pagina van elke mini-site gelijk is. Groot logo, vette header, mobiel menu met grote letters,
   footer, de lopende tekst en de kubus-animatie. Alles heet tm-…; een pagina stuurt alleen de kleuren via de variabelen.
   Uitvoeringen: data-kop="a|b|c" (header) en data-menu="a|b|c" (mobiel menu) op <html>. */
:root {
  --tm-papier: #e9e6dc;           /* ondergrond van header, menu en footer */
  --tm-inkt: #161514;             /* tekst, lijnen en logo */
  --tm-kop-bg: var(--tm-papier);  /* zet op transparent om de header over een beeld te laten liggen */
  --tm-marge: 60px;
  --tm-vet: "Libre Franklin", "Arial Narrow", Arial, sans-serif;     /* 800 */
  --tm-kopletter: "Playfair Display", Georgia, "Times New Roman", serif; /* 900 */
  --tm-lees: "Newsreader", Georgia, "Times New Roman", serif;       /* 400, de lopende tekst van elke pagina */
}
html[data-thema="donker"] { --tm-papier: #0b0a09; --tm-inkt: #ece4d6; }
@media (max-width: 767px) { :root { --tm-marge: 20px; } }

/* lopende tekst: op elke pagina dezelfde letter en maat */
.tm-lopend { font: 400 19px/1.5 var(--tm-lees); font-optical-sizing: auto; }
@media (max-width: 767px) { .tm-lopend { font-size: 17px; } }

.tm-kop, .tm-menu, .tm-voet { box-sizing: border-box; }
.tm-kop *, .tm-menu *, .tm-voet * { box-sizing: border-box; }
.tm-kop a, .tm-menu a, .tm-voet a { color: inherit; text-decoration: none; }
.tm-logo { display: block; }
.tm-logo img { display: block; height: 100%; width: auto; max-width: none; }
.tm-l-donker { display: none !important; }
html[data-thema="donker"] .tm-l-licht { display: none !important; }
html[data-thema="donker"] .tm-l-donker { display: block !important; }
/* De winkelmand: de kubus (masker op ::before, zodat het rondje met het aantal er niet door wordt afgesneden).
   Leeg alleen de omtrek; met producten (.is-vol, via tm_nieuw_mand() en de cart fragments) gevuld met de ringen. */
.tm-mand { display: block; position: relative; width: 30px; height: 34px; }
.tm-mand::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url(../img/kubus-leeg.svg) center / contain no-repeat; mask: url(../img/kubus-leeg.svg) center / contain no-repeat; }
.tm-mand.is-vol::before { -webkit-mask-image: url(../img/kubus-vol.svg); mask-image: url(../img/kubus-vol.svg); }
.tm-mand-aantal { position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #161514; color: #fff; font: 800 11px/18px var(--tm-vet); letter-spacing: 0; text-align: center; box-sizing: border-box; }
html[data-thema="donker"] .tm-kop .tm-mand-aantal, html[data-menu="c"] .tm-menu .tm-mand-aantal { box-shadow: 0 0 0 1.5px #efe6d3; }

/* ---------- header ---------- */
.tm-kop { position: relative; z-index: 20; background: var(--tm-kop-bg); color: var(--tm-inkt); }
.tm-kop-in { width: min(1320px, 100% - 2 * var(--tm-marge)); margin-inline: auto; }
.tm-nav { display: flex; align-items: center; }
.tm-nav a { font: 800 17px/1 var(--tm-vet); letter-spacing: .15em; text-transform: uppercase; padding: 19px 30px 18px; position: relative; }
.tm-nav a + a::before { content: ""; position: absolute; left: 0; top: 50%; height: 20px; margin-top: -10px; border-left: 2px solid currentColor; }
.tm-nav a::after { content: ""; position: absolute; left: 30px; right: 30px; bottom: 11px; height: 3px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .22s ease; }
.tm-nav a:hover::after { transform: scaleX(1); }
.tm-menuknop { display: none; align-items: center; gap: 10px; border: 0; background: none; color: inherit; padding: 12px 0; cursor: pointer; font: 800 16px/1 var(--tm-vet); letter-spacing: .15em; text-transform: uppercase; }
.tm-menuknop i { display: block; width: 26px; height: 16px; border-top: 3px solid currentColor; border-bottom: 3px solid currentColor; position: relative; }
.tm-menuknop i::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; margin-top: -1.5px; border-top: 3px solid currentColor; }

/* a: krantenkop. Logo groot in het midden, daaronder het menu tussen een dikke en een dunne lijn */
.tm-kop .tm-logo { height: 176px; width: max-content; margin: 0 auto; padding: 32px 0 28px; }
.tm-balk { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 5px solid currentColor; border-bottom: 2px solid currentColor; }
.tm-balk .tm-nav { grid-column: 2; }
.tm-balk .tm-mand { grid-column: 3; justify-self: end; }

/* b: één regel. Logo groot links, menu vet rechts, een dikke lijn eronder */
html[data-kop="b"] .tm-kop-in { display: flex; align-items: center; justify-content: space-between; border-bottom: 5px solid currentColor; }
html[data-kop="b"] .tm-kop .tm-logo { height: 142px; margin: 0; padding: 24px 0 22px; }
html[data-kop="b"] .tm-balk { display: flex; border: 0; gap: 16px; }
html[data-kop="b"] .tm-nav a { font-size: 18px; padding-inline: 26px; }
html[data-kop="b"] .tm-nav a::after { left: 26px; right: 26px; }

/* c: zwarte band. Het logo licht in het midden, het menu links, de winkelmand rechts */
html[data-kop="c"] .tm-kop { background: var(--tm-inkt); color: var(--tm-papier); }
html[data-kop="c"] .tm-kop .tm-l-licht { display: none !important; }
html[data-kop="c"] .tm-kop .tm-l-donker { display: block !important; }
html[data-thema="donker"][data-kop="c"] .tm-kop .tm-l-licht { display: block !important; }
html[data-thema="donker"][data-kop="c"] .tm-kop .tm-l-donker { display: none !important; }
html[data-kop="c"] .tm-kop-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
html[data-kop="c"] .tm-kop .tm-logo { grid-column: 2; grid-row: 1; height: 160px; padding: 30px 0 28px; }
html[data-kop="c"] .tm-balk { display: contents; }
html[data-kop="c"] .tm-nav { grid-column: 1; grid-row: 1; margin-left: -24px; }
html[data-kop="c"] .tm-nav a { padding-inline: 24px; font-size: 16px; }
html[data-kop="c"] .tm-nav a::after { left: 24px; right: 24px; }
html[data-kop="c"] .tm-balk .tm-mand { grid-column: 3; grid-row: 1; }

@media (max-width: 767px) {
  .tm-nav { display: none; }
  .tm-menuknop { display: inline-flex; }
  .tm-kop .tm-logo { height: 92px; padding: 18px 0 14px; }
  .tm-balk { grid-template-columns: 1fr auto; border-top-width: 4px; }
  .tm-balk .tm-menuknop { grid-column: 1; justify-self: start; }
  .tm-balk .tm-mand { grid-column: 2; width: 26px; height: 30px; }
  html[data-kop="b"] .tm-kop-in { border-bottom-width: 4px; }
  html[data-kop="b"] .tm-kop .tm-logo { height: 84px; padding: 16px 0 14px; }
  html[data-kop="b"] .tm-balk { gap: 0; }
  html[data-kop="b"] .tm-balk .tm-mand { display: none; }
  html[data-kop="b"] .tm-menuknop span { display: none; }
  html[data-kop="b"] .tm-menuknop i { width: 34px; height: 22px; border-width: 4px; }
  html[data-kop="b"] .tm-menuknop i::before { border-top-width: 4px; margin-top: -2px; }
  html[data-kop="c"] .tm-kop-in { grid-template-columns: auto 1fr auto; column-gap: 14px; }
  html[data-kop="c"] .tm-kop .tm-logo { grid-column: 2; justify-self: center; height: 80px; padding: 17px 0 15px; }
  html[data-kop="c"] .tm-balk .tm-menuknop { grid-column: 1; grid-row: 1; }
  html[data-kop="c"] .tm-menuknop span { display: none; }
  html[data-kop="c"] .tm-balk .tm-mand { width: 26px; height: 30px; }
}

/* ---------- mobiel menu, geopend ---------- */
.tm-menu { display: none; position: fixed; inset: 0; z-index: 60; background: var(--tm-papier); color: var(--tm-inkt); padding: 0 var(--tm-marge) 22px; flex-direction: column; overflow: hidden; }
html.menu-open .tm-menu { display: flex; }
html.menu-open { overflow: hidden; }
.tm-menu-kop { display: flex; align-items: center; justify-content: space-between; border-bottom: 4px solid currentColor; flex: none; }
.tm-menu-kop .tm-logo { height: 84px; padding: 16px 0 14px; }
.tm-sluit i { border: 0; height: 22px; }
.tm-sluit i::before, .tm-sluit i::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; margin-top: -1.5px; border-top: 3px solid currentColor; transform: rotate(45deg); }
.tm-sluit i::after { transform: rotate(-45deg); }
.tm-menu-lijst { display: flex; flex-direction: column; flex: none; }
.tm-menu-lijst a { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid currentColor; }
.tm-menu-lijst svg { width: 34px; height: 14px; flex: none; display: none; }
.tm-menu-voet { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; flex: none; }
.tm-menu-voet .tm-mand { width: 44px; height: 50px; }
.tm-menu-voet .tm-mark { display: none; }
html.menu-open .tm-menu-lijst a { animation: tm-in .42s cubic-bezier(.2, .7, .2, 1) both; }
html.menu-open .tm-menu-lijst a:nth-child(2) { animation-delay: .06s; }
html.menu-open .tm-menu-lijst a:nth-child(3) { animation-delay: .12s; }
@keyframes tm-in { from { opacity: 0; transform: translateY(18px); } }

/* a: drie krantenkoppen in de zware schreefletter */
.tm-menu-lijst a { font: 900 min(16.4vw, 64px)/1 var(--tm-kopletter); letter-spacing: -.015em; padding: 26px 0 30px; }
/* b: de drie woorden in een grote, vette schreefloze letter, met een pijl */
html[data-menu="b"] .tm-menu-lijst a { font: 800 min(15.6vw, 61px)/1 var(--tm-vet); letter-spacing: -.045em; padding: 30px 0 32px; }
html[data-menu="b"] .tm-menu-lijst svg { display: block; }
html[data-menu="b"] .tm-menu-lijst a span { min-width: 0; }
/* c: wit op zwart, met de kubus en zijn draaiende ringen groot in de hoek */
html[data-menu="c"] .tm-menu { background: var(--tm-inkt); color: var(--tm-papier); }
html[data-menu="c"] .tm-menu .tm-l-licht { display: none !important; }
html[data-menu="c"] .tm-menu .tm-l-donker { display: block !important; }
html[data-thema="donker"][data-menu="c"] .tm-menu .tm-l-licht { display: block !important; }
html[data-thema="donker"][data-menu="c"] .tm-menu .tm-l-donker { display: none !important; }
html[data-menu="c"] .tm-menu-voet .tm-mark { display: block; width: 150px; height: 172px; margin: 0 4px 6px 0; color: var(--tm-papier); }

/* ---------- footer ---------- */
.tm-voet { background: var(--tm-papier); color: var(--tm-inkt); padding: 0 0 34px; position: relative; z-index: 2; }
.tm-voet-in { width: min(1320px, 100% - 2 * var(--tm-marge)); margin-inline: auto; border-top: 5px solid currentColor; }
.tm-voet-zin { margin: 0; padding: 54px 0 56px; font: 900 clamp(34px, 5.1vw, 74px)/1.04 var(--tm-kopletter); letter-spacing: -.015em; text-align: center; text-wrap: balance; border-bottom: 2px solid currentColor; }
.tm-voet-grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 56px; align-items: start; padding: 38px 0 34px; }
.tm-voet .tm-logo { height: 76px; }
.tm-voet-nav, .tm-voet-klein { display: flex; flex-direction: column; gap: 14px; }
.tm-voet-nav { justify-self: end; }
.tm-voet-nav a { font: 800 16px/1 var(--tm-vet); letter-spacing: .15em; text-transform: uppercase; }
.tm-voet-klein a { font: 400 17px/1.15 var(--tm-lees); }
.tm-voet a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tm-voet-iconen { display: flex; gap: 14px; }
.tm-voet-iconen svg { display: block; width: 32px; height: 32px; }
.tm-voet-c { margin: 0; padding-top: 18px; border-top: 2px solid currentColor; font: 800 13px/1 var(--tm-vet); letter-spacing: .15em; text-transform: uppercase; }
.tm-voet-c { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.tm-voet-c p { margin: 0; }
/* drie stempels naast de copyright, als rubberstempel: dubbele dunne rand, smalle vette hoofdletters, inkt op 85 procent,
   het drukeffect van de site (blur met contrast terug omhoog, zie style.css) en elk een eigen draaiing. Stempel 1 linkt
   naar de vraag "Is AI involved?" op KickUncover (opdracht Freek, 3 oktober 2026) */
.tm-voet-c .tm-stempels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tm-voet-c .tm-stempel { display: inline-block; padding: 5px 9px 5px calc(9px + .14em); border: 4px double currentColor; border-radius: 2px; background: none;
  font: 400 11px/1 "Anton", "Arial Narrow", Impact, sans-serif; letter-spacing: .14em; text-transform: uppercase; text-align: center; white-space: nowrap;
  text-decoration: none; opacity: .85; filter: blur(.45px) contrast(2.6); }
.tm-voet-c .tm-stempel:nth-child(1) { transform: rotate(-3deg); }
.tm-voet-c .tm-stempel:nth-child(2) { transform: rotate(2deg); }
.tm-voet-c .tm-stempel:nth-child(3) { transform: rotate(-1deg); }
.tm-voet-c a.tm-stempel:hover { text-decoration: none; opacity: 1; }
@media (max-width: 600px) {
  .tm-voet-c .tm-stempels { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1023px) {
  .tm-voet-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .tm-voet .tm-logo { grid-column: 1 / -1; height: 62px; }
  .tm-voet-nav { justify-self: start; }
  .tm-voet-iconen { grid-column: 1 / -1; }
  .tm-voet-zin { padding: 38px 0 40px; }
}

/* ---------- de kubus-animatie van de huidige site (include @kubus) ---------- */
.tm-mark { position: relative; width: 100px; height: 115px; overflow: visible; color: var(--tm-inkt); }
.tm-shapes { position: absolute; inset: 0; }
.tm-layer-rings, .tm-layer-cube { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }
.tm-layer-rings { transform: scale(.8); }
.tm-layer-rings svg, .tm-layer-cube svg { width: 100%; height: 100%; overflow: visible; display: block; }
.tm-layer-rings path, .tm-layer-cube path { fill: currentColor; }

.shot .tm-kop *, .shot .tm-menu *, .shot .tm-voet * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .tm-menu-lijst a { animation: none !important; } .tm-nav a::after { transition: none; } }

/* ---------- focusring (3 oktober 2026): alleen bij bediening met het toetsenbord, 2 px zwart met 2 px ruimte;
   op donkere vlakken licht. Geen blauw. ---------- */
:is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid #161514 !important; outline-offset: 2px !important; }
:is(.strook, .h-leeft, .scherm, .tm-menu) :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible { outline-color: #efe6d3 !important; }
html[data-menu="b"] .tm-menu :is(a, button):focus-visible { outline-color: #161514 !important; }

/* WooCommerce-meldingen krijgen nooit een focusrand, ook niet de monochrome: WooCommerce zet de focus erop voor
   schermlezers, dat blijft, alleen zonder zichtbare rand. Links en knoppen in een melding houden hun ring.
   (:not(#tm-nooit) geeft de zwaarte van een ID, zodat dit voor de algemene focusring gaat) */
:is(.woocommerce-notices-wrapper, .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-NoticeGroup, .wc-block-components-notice-banner):is(:focus, :focus-visible):not(#tm-nooit) { outline: none !important; box-shadow: none !important; }

/* betaallogo's in de onderste balk van de footer (nieuw/winkel-inc.php, tm_betaallogos): midden tussen de copyright en de
   stempels, op dezelfde lijn. Past het niet naast elkaar (onder 1280 px), dan een eigen regel, gecentreerd boven de copyright */
.tm-voet-c .tm-betaal--voet { justify-content: center; }
@media (max-width: 1279px) { .tm-voet-c .tm-betaal--voet { order: -1; flex-basis: 100%; } }
