/* Domain-umbrella page (/domein/<domain>) — templates/pages/domein.html.
   Deliberately plainer than the product pages: this is a reference page someone
   lands on from a brand-name search, so it should read like a record, not like a
   pitch. Dense two-column layout, tabular figures, source line under every block.
   Reuses .btn / .buybox / .mono-tag / .cta / .sec-head from base.css + theme.css. */

.dm { --dm-accent: var(--blue); --dm-deep: var(--blue-deep); --dm-tint: var(--blue-tint); }

/* ── header ─────────────────────────────────────────────────────────────── */
.dm-head-sec { padding-top: clamp(1rem, 3vh, 1.8rem); padding-bottom: 0; }
.dm-head { border-bottom: 1px solid var(--line); padding-bottom: 1.4rem; }
.dm-ident { display: flex; align-items: flex-start; gap: 1.1rem; }
.dm-logo { flex: none; width: 3.4rem; height: 3.4rem; display: grid; place-items: center;
  border-radius: 12px; background: var(--dm-tint); color: var(--dm-deep);
  font-family: var(--jbmono); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
/* With a real mark the tile disappears: a favicon carries its own colours and
   its own background, and any tint behind it reads as a second logo. */
.dm-logo--art { background: none; padding: .2rem; }
.dm-logo--art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dm-logo-ico { width: 20px; height: 20px; }
.dm-cat { font-family: var(--jbmono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--dm-deep); text-decoration: none; }
.dm-cat:hover { text-decoration: underline; }
.dm-ident h1 { font-family: var(--jbmono); font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.2; margin: .3rem 0 .15rem; overflow-wrap: anywhere; }
.dm-company { font-size: .95rem; color: var(--ink-60); }
.dm-branche { margin-top: .25rem; font-size: .85rem; color: var(--ink-60); }
.dm-branche span { color: var(--ink-40); }

.dm-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.dm-badge { font-family: var(--jbmono); font-size: .7rem; color: var(--ink-60);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; padding: .25rem .6rem; }
.dm-badge--green { color: var(--green); background: var(--green-tint); border-color: transparent; }
.dm-badge--red { color: var(--red); background: var(--red-tint); border-color: transparent; }
.dm-stamp { margin-top: .9rem; font-family: var(--jbmono); font-size: .72rem; color: var(--ink-40); }

/* ── layout ─────────────────────────────────────────────────────────────── */
.dm-what-sec { padding-top: clamp(1.4rem, 3vh, 2rem); }
.dm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.6rem; align-items: start; }
.dm-main { min-width: 0; }
.dm-aside { display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 5.5rem; }

.dm-h2 { font-size: 1.45rem; }
.dm-h3 { font-size: 1.08rem; margin: 2rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.dm-h3:first-of-type { margin-top: 1.6rem; }
.dm-lead { margin-top: .9rem; font-size: 1.05rem; line-height: 1.65; color: var(--ink); }
.dm-lead--empty { color: var(--ink-60); }
/* the provenance line that sits under every block */
.dm-src { margin-top: .7rem; font-size: .8rem; line-height: 1.55; color: var(--ink-40); }
.dm-src a { color: var(--dm-deep); }
.dm-note { margin-top: .5rem; font-size: .9rem; color: var(--ink-60); line-height: 1.6; }

/* ── chips ──────────────────────────────────────────────────────────────── */
.dm-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.dm-chip { font-size: .84rem; color: var(--ink); background: #fff; border: 1px solid var(--line);
  border-radius: 99px; padding: .35rem .8rem; }
.dm-chip--link { text-decoration: none; transition: border-color .12s ease, color .12s ease; }
.dm-chip--link:hover { border-color: var(--dm-accent); color: var(--dm-deep); }

/* ── fact lists ─────────────────────────────────────────────────────────── */
.dm-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.6rem; }
.dm-facts > div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: .6rem 0; border-bottom: 1px solid var(--line); }
.dm-facts dt { font-size: .88rem; color: var(--ink-60); }
.dm-facts dd { font-size: .92rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.dm-facts dd a { color: var(--dm-deep); }
.dm-facts--tight { margin-top: .9rem; }
@media (max-width: 44rem) { .dm-facts { grid-template-columns: 1fr; } }

/* ── withheld address — the AVG block. Stated, not hidden. ──────────────── */
.dm-withheld { background: var(--bg-soft); border-left: 3px solid var(--ink-40);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.dm-withheld b { font-size: .95rem; }
.dm-withheld p { margin-top: .45rem; font-size: .9rem; line-height: 1.6; color: var(--ink-60); }

/* ── vestigingen ────────────────────────────────────────────────────────── */
.dm-locs { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.dm-locs li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .9rem; }
.dm-locs b { font-size: .93rem; }
.dm-locs span { font-size: .82rem; color: var(--ink-60); text-align: right; }

/* Kopje boven een chiprij binnen een blok — kleiner dan een h3, zodat "Rollen in
   de vacatures" een label blijft en geen tweede kop wordt. */
.dm-sublabel { font-family: var(--jbmono); font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-60); margin: 1rem 0 .45rem; }

.dm-hours { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.dm-hours > div { background: var(--bg-soft); border-radius: 8px; padding: .55rem .8rem; }
.dm-hours dt { font-family: var(--jbmono); font-size: .7rem; color: var(--ink-60); text-transform: uppercase; }
.dm-hours dd { font-size: .9rem; font-weight: 600; margin-top: .15rem; }
@media (max-width: 44rem) { .dm-hours { grid-template-columns: 1fr 1fr; } }

/* ── scores ─────────────────────────────────────────────────────────────── */
.dm-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.dm-score { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem 1rem; text-align: center; }
.dm-score b { display: block; font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--dm-deep); }
.dm-score span { font-size: .76rem; color: var(--ink-60); }
@media (max-width: 44rem) { .dm-scores { grid-template-columns: 1fr 1fr; } }

/* ── reviews: aggregate only, no source, no markup ──────────────────────── */
.dm-reviews { display: flex; align-items: baseline; gap: .8rem; background: var(--bg-soft);
  border-radius: var(--radius); padding: 1rem 1.2rem; }
.dm-reviews b { font-size: 2rem; font-variant-numeric: tabular-nums; color: var(--dm-deep); }
.dm-reviews span { font-size: .9rem; color: var(--ink-60); }

/* ── benchmark table ────────────────────────────────────────────────────── */
.dm-bench { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dm-bench th { text-align: left; font-family: var(--jbmono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-60); padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
.dm-bench th:not(:first-child), .dm-bench td:not(:first-child) { text-align: right; }
.dm-bench td { padding: .6rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.dm-bench .dm-better { color: var(--green); font-weight: 600; }

/* ── aside ──────────────────────────────────────────────────────────────── */
.dm-kv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.3rem; }
.dm-kv h3 { font-size: .96rem; margin-bottom: .5rem; }
.dm-kv dl > div { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline;
  padding: .5rem 0; border-bottom: 1px solid var(--line); }
.dm-kv dl > div:last-child { border-bottom: 0; }
.dm-kv dt { font-size: .82rem; color: var(--ink-60); }
.dm-kv dd { font-size: .85rem; font-weight: 600; text-align: right; word-break: break-word;
  font-variant-numeric: tabular-nums; }
.dm-kv-foot { margin-top: .8rem; font-size: .74rem; color: var(--ink-40); line-height: 1.5; }

/* ── related (the mesh) ─────────────────────────────────────────────────── */
.dm-rel-sec { background: var(--bg-soft); }
.dm-rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.dm-relcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease; }
.dm-relcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dm-relcard b { display: block; font-size: .96rem; line-height: 1.35; }
.dm-relsub { display: block; margin-top: .35rem; font-size: .82rem; color: var(--ink-60); }
.dm-relwhy { display: block; margin-top: .6rem; font-family: var(--jbmono); font-size: .68rem;
  color: var(--dm-deep); }
@media (max-width: 72rem) { .dm-rel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .dm-rel { grid-template-columns: 1fr; } }

/* ── stack the aside under the body on narrow screens ───────────────────── */
@media (max-width: 62rem) {
  .dm-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .dm-aside { position: static; }
}

/* ── parent pages: referring-domain chart ───────────────────────────────────
   Single-series magnitude bars. One hue (no categorical palette needed — there is
   only one series), thin marks, pill ends, recessive track. Geometry deliberately
   matches .ond-bar-* in onderzoek.css so the two chart surfaces read as one
   system; kept local because every page stylesheet here is self-contained. */

.dm-linkstats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.dm-linkstats > div { display: flex; flex-direction: column; }
.dm-linkstats b { font-size: 1.7rem; line-height: 1.1; color: var(--dm-deep);
  font-variant-numeric: tabular-nums; }
.dm-linkstats span { font-size: .82rem; color: var(--ink-60); }

.dm-chart { margin: 0; }
.dm-chart figcaption { font-family: var(--jbmono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-40); margin-bottom: .7rem; }
.dm-bars { display: flex; flex-direction: column; gap: .5rem; }
.dm-bar-row { display: grid; grid-template-columns: minmax(7rem, 13rem) 1fr auto;
  align-items: center; gap: .9rem; }
.dm-bar-label { font-size: .87rem; color: var(--ink); overflow-wrap: anywhere; }
.dm-bar-label a { color: var(--dm-deep); }
.dm-bar-track { background: var(--bg-soft); border-radius: 99px; height: .8rem; overflow: hidden; }
.dm-bar-fill { height: 100%; background: var(--dm-accent); border-radius: 99px; }
/* Values are direct-labelled on every row — a six-row bar chart needs no tooltip,
   and the numbers must survive with JS off anyway. */
.dm-bar-val { font-family: var(--jbmono); font-size: .78rem; color: var(--ink-60);
  white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

.dm-table-toggle { margin-top: 1rem; }
.dm-table-toggle summary { font-size: .82rem; color: var(--dm-deep); cursor: pointer; }
.dm-table-toggle table { margin-top: .7rem; }

@media (max-width: 44rem) {
  .dm-bar-row { grid-template-columns: minmax(5.5rem, 9rem) 1fr auto; gap: .6rem; }
  .dm-linkstats { gap: 1.4rem; }
}

/* ── concernstructuur tree ──────────────────────────────────────────────────
   Connector lines drawn with borders on the nested <ul>, so the visual hierarchy
   comes from the same nesting a screen reader reads. The current company is
   marked by weight + tint + a label, never by colour alone. */

.dm-tree ul { list-style: none; margin: 0; padding: 0; }
.dm-tree > ul > li > ul { margin-left: .75rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.dm-tree ul ul ul { margin-left: .75rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.dm-tree li { position: relative; }
/* the little elbow into each nested node */
.dm-tree ul ul > li::before { content: ""; position: absolute; left: -1rem; top: 1.25rem;
  width: .75rem; height: 1px; background: var(--line); }

.dm-node { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem .9rem; margin: .35rem 0; }
.dm-node--self { background: var(--dm-tint); border-color: transparent; }
.dm-node-name { font-size: .93rem; font-weight: 600; }
.dm-node-name a { color: var(--dm-deep); }
.dm-node--self .dm-node-name { color: var(--dm-deep); }
/* "deze pagina" — so identity isn't carried by the tint alone */
.dm-node-name i { font-style: normal; font-family: var(--jbmono); font-size: .62rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--dm-deep);
  background: #fff; border-radius: 99px; padding: .18rem .5rem; margin-left: .35rem; }
.dm-node-meta { font-size: .78rem; color: var(--ink-60); margin-left: auto; text-align: right; }

@media (max-width: 44rem) {
  .dm-node-meta { margin-left: 0; text-align: left; flex-basis: 100%; }
}

/* ── the two groups: Bedrijf / Website ──────────────────────────────────────
   A reader is normally here for one of the two, so they get a visible break and
   a label rather than being one long run of h3s. */

.dm-group + .dm-group { margin-top: 3.2rem; padding-top: 2.2rem; border-top: 2px solid var(--line); }
.dm-group-label { display: inline-block; font-family: var(--jbmono); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dm-deep);
  background: var(--dm-tint); border-radius: 99px; padding: .3rem .75rem; margin-bottom: .7rem; }
.dm-group .dm-h2 { margin-bottom: .2rem; }
/* first block inside a group shouldn't carry the h3 divider rule */
.dm-group > .dm-h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.6rem; }

/* ── tech chips with logos ──────────────────────────────────────────────────
   alt="" on purpose: the label sits right beside the mark, so an alt would be
   read out twice. Generic icons are dimmed so the real brand marks lead. */
.dm-chip-logo { width: 1rem; height: 1rem; margin-right: .45rem; vertical-align: -.16rem;
  display: inline-block; }
.dm-chip-logo--gen { opacity: .4; }

/* ── trackers ───────────────────────────────────────────────────────────────
   Stated flatly: what loaded, what for, from where. No scoring, no judgement. */
.dm-trackers { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.dm-trackers li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; }
.dm-trackers b { font-size: .91rem; }
.dm-tracker-kind { font-family: var(--jbmono); font-size: .64rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-60); background: var(--bg-soft);
  border-radius: 99px; padding: .18rem .5rem; }
.dm-trackers i { font-style: normal; font-family: var(--jbmono); font-size: .74rem;
  color: var(--ink-40); margin-left: auto; }
@media (max-width: 44rem) { .dm-trackers i { margin-left: 0; flex-basis: 100%; } }

