/* Kategoriside v2 (TASK-264). Markup: scripts/build-category-v2.py, data-lc-template="category-v2". */
.cv2 { --cv2-ink: #111827; --cv2-muted: #4b5563; --cv2-line: var(--color-border, #e5e7eb); --cv2-tint: #eff6ff; color: var(--cv2-ink); }
.cv2 .container { max-width: 1120px; }
/* "Vælg type" ligger uden for .container og sad klistret til skærmkanten (UX 2026-10-06 aften) */
.cv2 .subcategories-list { max-width: 1120px; margin: 2.5rem auto; padding-inline: 1rem; box-sizing: border-box; }
@media (min-width: 1152px) { .cv2 .subcategories-list { padding-inline: 0; } }
.cv2-hero {
    background: radial-gradient(900px 320px at 85% -10%, rgba(37, 99, 235, .14), transparent 70%), linear-gradient(180deg, var(--cv2-tint) 0%, #fff 100%);
    border-bottom: 1px solid var(--cv2-line);
}
.cv2-hero__inner { display: grid; gap: 1.5rem 2.5rem; align-items: center; padding-block: 1rem 1.5rem; }
.cv2-hero--img .cv2-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.category-hero--noimg .cv2-hero__inner { padding-block: 1rem 1.25rem; }
.cv2-hero .breadcrumbs { margin-bottom: .6rem; }
.cv2-hero__title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6rem; text-wrap: balance; }
.cv2-hero__price { margin: 0 0 .9rem; font-size: 1.1rem; line-height: 1.5; }
.cv2-hero__price strong { font-size: 1.35rem; }
.cv2-hero__price small { display: block; color: var(--cv2-muted); font-size: .85rem; margin-top: .15rem; }
.cv2-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cv2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--color-primary); color: #fff; }
.cv2-btn:hover { background: var(--color-primary-hover); color: #fff; }
.cv2-btn--ghost { background: #fff; color: var(--cv2-ink); border: 1px solid #d1d5db; }
.cv2-btn--ghost:hover { color: var(--color-primary); border-color: var(--color-primary); background: #fff; }
.cv2-hero__media { margin: 0; }
.cv2-hero__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(17, 24, 39, .45); }

.cv2-sec { padding-block: 1.5rem; }
.cv2-sec > h2, .cv2-sec .price-facts__title { font-size: 1.45rem; margin: 0 0 .5rem; }
.cv2-lead { margin: 0 0 1rem; color: var(--cv2-muted); max-width: 70ch; }
.cv2-answer dl { margin: 0; display: grid; gap: .9rem 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cv2-qa { margin: 0; }
.cv2-answer dt { font-weight: 600; margin: 0 0 .2rem; }
.cv2-answer dd { margin: 0; color: #1f2937; }

.cv2-tablewrap { overflow-x: auto; border: 1px solid var(--cv2-line); border-radius: 12px; background: #fff; }
.cv2-tablewrap { background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)), linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) 100% 0, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.18), rgba(0,0,0,0)), radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), rgba(0,0,0,0)) 100% 0; background-repeat: no-repeat; background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.cv2-scrollhint { display: none; margin: .4rem 0 0; font-size: .8rem; color: #6b7280; }
@media (max-width: 640px) { .cv2-table .hide-sm { display: none; } .cv2-scrollhint.is-on { display: block; } }
.cv2-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cv2-table th, .cv2-table td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--cv2-line); vertical-align: top; }
.cv2-table th { background: #f9fafb; font-weight: 600; font-size: .85rem; }
.cv2-table tr:last-child td { border-bottom: 0; }
.cv2-table td.num, .cv2-table th.num { text-align: right; white-space: nowrap; }
.cv2-table tfoot td { font-weight: 700; background: #f9fafb; }
.lc-type-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1rem 0 0; }
.lc-type-chips__label { font-size: .9rem; color: var(--cv2-muted); }
.lc-type-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; }
.lc-folded-section { scroll-margin-top: 90px; }
.cv2-note { color: var(--cv2-muted); font-size: .85rem; margin: .6rem 0 0; max-width: 75ch; }
.cv2-sec .price-facts { margin: 1rem 0 0; }

.cv2-vendors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem .75rem; }
.cv2-vendors li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border: 1px solid var(--cv2-line); border-radius: 10px; background: #fff; min-height: 52px; }
.cv2-vendors__name { display: inline-block; padding-block: 2px; font-weight: 600; text-decoration: none; color: var(--cv2-ink); }   /* UX R1 2026-10-04: tryk-maal >= 24 px */
.cv2-vendors__name:hover { color: var(--color-primary); }
.cv2-vendors__city, .cv2-vendors__partner { display: block; font-size: .8rem; color: var(--cv2-muted); font-weight: 400; }
.cv2-vendors__item { display: block; font-size: .8rem; color: var(--cv2-ink); font-weight: 500; }
.cv2-vendors__ask { font-size: .85rem; font-weight: 600; white-space: nowrap; min-height: 44px; min-width: 44px; padding: 0 .85rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--cv2-line); border-radius: 8px; color: var(--cv2-ink); background: #fff; }
.cv2-vendors__ask:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cv2-more { margin-top: .75rem; }
.cv2-more > summary { cursor: pointer; font-weight: 600; color: var(--color-primary); min-height: 44px; display: flex; align-items: center; }
.cv2-more .cv2-vendors { margin-top: .5rem; }
.cv2-links { display: flex; flex-wrap: wrap; gap: .5rem .75rem; list-style: none; margin: 0; padding: 0; }
.cv2-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--cv2-line); border-radius: 999px; text-decoration: none; color: var(--cv2-ink); background: #fff; }
.cv2-links a:hover { border-color: var(--color-primary); color: var(--color-primary); }

@media (max-width: 860px) {
    .cv2-hero--img .cv2-hero__inner { grid-template-columns: 1fr; }
    .cv2-answer dl { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cv2-table { font-size: .875rem; }
    .cv2-table th, .cv2-table td { padding: .5rem .55rem; }
}

.category-hero--noimg .cv2-hero__inner { padding-block: .75rem 1rem; }
.category-hero--noimg .cv2-hero__price { margin-bottom: .6rem; }
.category-hero--noimg .cv2-hero__price small { display: none; }
@media (max-width: 480px) {
    .category-hero--noimg .cv2-hero__title { font-size: 1.35rem; margin-bottom: .4rem; }
    .category-hero--noimg .breadcrumbs { display: none; }
    .category-hero--noimg .cv2-hero__actions .cv2-btn--ghost { display: none; }
    .category-hero--noimg .cv2-hero__price { font-size: 1rem; }
}
.cv2-sec > .container { padding-top: 0; padding-bottom: 0; }

/* ---- Visuelt system (TASK-1320, 2026-10-03): samme aftenhimmel og lyskæde som forsiden.
   Tokens og knapper i energy.css; her kun det, der er særligt for kategorisiden. ---- */
.cv2 { --lc-night: #14224a; --lc-night-2: #1c2f63; --lc-amber: #ffb627; --lc-amber-hover: #ffc54f; --lc-mist: #f3f6fb; --lc-radius: 14px; --lc-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif; }
.cv2 .cv2-hero {
    color: #fff; border-bottom: 0;
    background: radial-gradient(900px 320px at 85% -10%, rgba(255, 182, 39, .22), transparent 65%),
                linear-gradient(180deg, var(--lc-night, #14224a) 0%, var(--lc-night-2, #1c2f63) 100%);
}
.cv2 .cv2-hero__inner { padding-block: 1.75rem 2.25rem; }
.cv2 .cv2-hero__title { color: #fff; font-family: var(--lc-display); font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); line-height: 1.05; }
.cv2 .cv2-hero .breadcrumbs, .cv2 .cv2-hero .breadcrumbs a, .cv2 .cv2-hero .breadcrumbs__link,
.cv2 .cv2-hero .breadcrumbs__current, .cv2 .cv2-hero .breadcrumbs__separator { color: rgba(255, 255, 255, .78); }
.cv2 .cv2-hero__price { color: rgba(255, 255, 255, .9); }
.cv2 .cv2-hero__price strong { color: var(--lc-amber, #ffb627); font-family: var(--lc-display); font-weight: 800; font-size: 1.6rem; }
.cv2 .cv2-hero__price small { color: rgba(255, 255, 255, .7); }
.cv2 .cv2-hero__price a { color: #fff; }
.cv2 .cv2-btn { background: var(--lc-amber, #ffb627); color: var(--lc-night, #14224a); font-weight: 800; box-shadow: 0 6px 18px -8px rgba(255, 182, 39, .9); transition: transform .18s, background-color .18s; }
.cv2 .cv2-btn:hover { background: var(--lc-amber-hover, #ffc54f); color: var(--lc-night, #14224a); transform: translateY(-1px); }
.cv2 .cv2-hero .cv2-btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6); box-shadow: none; }
.cv2 .cv2-hero .cv2-btn--ghost:hover { background: #fff; color: var(--lc-night, #14224a); }
.cv2 .cv2-btn:focus-visible, .cv2 .cv2-hero a:focus-visible { outline: 3px solid var(--lc-amber, #ffb627); outline-offset: 3px; }
.cv2 .cv2-hero__media img { border-radius: var(--lc-radius, 14px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6); }
.cv2 .cv2-sec h2, .cv2 .cv2-sec .price-facts__title, .cv2 .agent-cta__title {
    font-family: var(--lc-display); font-weight: 800; letter-spacing: -.015em; color: var(--lc-night, #14224a);
}
.cv2 .cv2-answer { background: var(--lc-mist, #f3f6fb); }
.cv2 .cv2-answer .container { padding-block: 1.25rem; }
.cv2 .cv2-vendors li { border-radius: 12px; transition: border-color .18s, box-shadow .18s; }
.cv2 .cv2-vendors li:hover { border-color: var(--lc-night, #14224a); box-shadow: 0 10px 24px -18px rgba(20, 34, 74, .5); }
.cv2 .cv2-vendors__ask:hover { background: var(--lc-amber, #ffb627); border-color: var(--lc-amber, #ffb627); color: var(--lc-night, #14224a); }
.cv2 .agent-cta--full { background: var(--lc-night, #14224a); }
.cv2 .agent-cta--full .agent-cta__title { color: #fff; }
.cv2 .agent-cta--full .agent-cta__intro, .cv2 .agent-cta--full .agent-cta__step-text, .cv2 .agent-cta--full .agent-cta__note { color: rgba(255, 255, 255, .85); }
.cv2 .agent-cta--full .agent-cta__step-number { background: var(--lc-amber, #ffb627); color: var(--lc-night, #14224a); }
.cv2 .agent-hero-card__button--primary { background: var(--lc-amber, #ffb627); border-color: var(--lc-amber, #ffb627); color: var(--lc-night, #14224a); font-weight: 800; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .cv2 .cv2-btn, .cv2 .cv2-vendors li { transition: none; } .cv2 .cv2-btn:hover { transform: none; } }

/* ---- TASK-3110 (A-20261007-15, Philip 2026-10-07: "siden er død at se på"): Det kan du leje, priskort, CTA midt på siden, fodnote.
   Priskortene er den samme #prisniveau-tabel (rækkerne står i markup'et for price_facts, fix-scripts og tests); CSS viser hver række som et kort
   med typisk pris som det store tal. Ingen tabelhoved, ingen 'Spænder fra/til'-kolonner. UX-dom 2026-10-07 (B1-B6, R7-R12). ---- */
.cv2-what { list-style: none; margin: .25rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.cv2-what__card { border: 1px solid var(--cv2-line); border-radius: 14px; background: #fff; padding: 1rem 1.1rem; }
.cv2-what__card h3 { margin: 0 0 .15rem; font-size: 1.05rem; line-height: 1.25; }
.cv2-what__meta { margin: 0 0 .35rem; font-size: .85rem; font-weight: 600; color: var(--lc-night, #14224a); }
.cv2-what__ex { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--cv2-muted); }
.cv2-what__line { margin: .5rem 0 0; font-size: .95rem; line-height: 1.55; max-width: 80ch; color: #1f2937; }
.cv2-chip { display: inline-flex; align-items: baseline; gap: .3rem; margin: .15rem .25rem .15rem 0; padding: .1rem .6rem; border: 1px solid var(--cv2-line); border-radius: 999px; background: #fff; font-size: .85rem; color: var(--cv2-ink); }
.cv2-chip b { font-weight: 700; color: var(--lc-night, #14224a); }
.cv2 .cv2-what:has(> li:only-child) { grid-template-columns: minmax(250px, 560px); }
.cv2 .cv2-what--titles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.cv2 .cv2-hero__price strong { white-space: nowrap; }   /* UX B2: a price is never broken inside its figure */
.cv2 .cv2-hero__price small { display: block; margin-top: .25rem; }
.cv2 .cv2-hero__lead { margin: 0 0 .9rem; color: rgba(255, 255, 255, .82); font-size: .95rem; line-height: 1.45; }
.cv2 .cv2-hero__price + .cv2-hero__lead { margin-top: -.45rem; }
@media (max-width: 480px) { .cv2-hero .breadcrumbs__item:nth-last-child(n+3) { display: none; } }   /* UX R7: two levels on a phone */

.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) { border: 0; background: transparent; padding: 0; margin: 0; box-shadow: none; overflow: visible; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table thead { display: none; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table,
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table tbody { display: block; width: 100%; background: transparent; border-radius: 0; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table tr {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; align-content: flex-start;
    border: 1px solid var(--cv2-line); border-radius: 14px; background: #fff; padding: 1rem 1.1rem;
}
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table tr:last-child { border-bottom: 1px solid var(--cv2-line); }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td { display: block; padding: 0; border: 0; min-width: 0; white-space: normal; font-size: .85rem; color: var(--cv2-muted); }
/* UX R9: name, ONE small line 'Typisk pris pr. lejeperiode', the figure, then low/high and the number of prices */
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(1) { flex: 1 0 100%; order: 1; font-weight: 700; font-size: 1rem; color: var(--cv2-ink); }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(1) .price-facts__unit { display: none; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table tr::before {
    content: "Typisk pris " attr(data-lc-unit); flex: 1 0 100%; order: 2; margin-top: .15rem; font-size: .78rem; font-weight: 500; color: var(--cv2-muted);
}
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(3) {
    flex: 1 0 100%; order: 3; margin: 0 0 .15rem; font-family: var(--lc-display); font-size: 1.85rem; font-weight: 800; line-height: 1.1; color: var(--lc-night, #14224a);
}
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(3) strong { font-weight: 800; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(3)::before { content: none; display: none; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(2),
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(4) { order: 4; font-size: .82rem; white-space: nowrap; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(2)::before { content: "Typisk lav "; display: inline; font-size: .82rem; font-weight: 400; color: var(--cv2-muted); }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(4)::before { content: "høj "; display: inline; font-size: .82rem; font-weight: 400; color: var(--cv2-muted); }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table tr:has(.price-facts__span--half) td:nth-child(2)::before { content: "Halvdelen fra "; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table tr:has(.price-facts__span--half) td:nth-child(4)::before { content: "til "; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table td:nth-child(5) { flex: 1 0 100%; order: 5; margin-top: .35rem; font-size: .8rem; color: var(--cv2-muted); min-width: 0; grid-column: auto; }
.cv2 .cv2-pricecards .price-facts:not(.price-facts--winter) .price-facts__table tbody:has(> tr:only-child) { grid-template-columns: minmax(250px, 420px); }
.cv2-pricebasis { display: none; }   /* UX B3: the card says the prices; the vendor number is the list's only */
.cv2 .cv2-pricecards .price-facts__title { margin-bottom: .75rem; }
.cv2 .cv2-pricecards .price-facts__source { margin-top: .75rem; max-width: 90ch; font-size: .8rem; line-height: 1.5; color: var(--cv2-muted); }
.cv2 .container.cv2-sec:has(> .cv2-note.lc-vat-note) { padding-top: 0; margin-top: -.5rem; }   /* UX R9: the VAT line reads as part of the footnote */
.cv2 .cv2-note.lc-vat-note { font-size: .8rem; line-height: 1.5; }

/* TASK-3113: tabel med én pris pr. vare (data-lc-midt-only, tre kolonner: vare, typisk pris, grundlag) som kort */
.cv2 .cv2-pricecards .price-facts[data-lc-midt-only]:not(.price-facts--winter) .price-facts__table td:nth-child(2) { flex: 1 0 100%; order: 3; margin: 0 0 .15rem; font-family: var(--lc-display); font-size: 1.85rem; font-weight: 800; line-height: 1.1; color: var(--lc-night, #14224a); white-space: normal; }
.cv2 .cv2-pricecards .price-facts[data-lc-midt-only]:not(.price-facts--winter) .price-facts__table td:nth-child(2)::before { content: none; display: none; }
.cv2 .cv2-pricecards .price-facts[data-lc-midt-only]:not(.price-facts--winter) .price-facts__table td:nth-child(3) { flex: 1 0 100%; order: 5; margin-top: .35rem; font-family: inherit; font-size: .8rem; font-weight: 400; line-height: 1.4; color: var(--cv2-muted); }
.cv2 .cv2-pricecards .price-facts[data-lc-midt-only]:not(.price-facts--winter) .price-facts__table td:nth-child(3)::before { content: none; }
.cv2 .cv2-pricecards .price-facts__weak { display: block; font-size: .78rem; font-weight: 400; font-family: inherit; color: var(--cv2-muted); }

.cv2-midcta__box {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
    background: var(--lc-night, #14224a); color: #fff; border-radius: 16px; padding: 1.25rem 1.5rem;
}
.cv2 .cv2-midcta__box h2 { color: #fff; font-size: 1.3rem; margin: 0 0 .25rem; }
.cv2-midcta__box p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 60ch; }
.cv2-midcta__box .cv2-btn { flex: 0 0 auto; box-sizing: border-box; }
@media (max-width: 480px) { .cv2-midcta__box { padding: 1rem 1.1rem; } .cv2-midcta__box .cv2-btn { width: 100%; } }
@media (max-width: 480px) { .category-hero--noimg.cv2-hero--two .cv2-hero__actions .cv2-btn--ghost { display: inline-flex; } }
.cv2 .cv2-intro p { margin: 0 0 .5rem; max-width: 75ch; color: #1f2937; }
.cv2 .cv2-vendors__note { margin: -.25rem 0 .75rem; font-size: .85rem; color: var(--cv2-muted); }
.cv2 .cv2-seealso { margin-top: 0; }

/* UX B2 (2026-10-08, dom-cv2-fase1): 'Find X i din region' (regionslinks, sat af build-category-pages) som pillerne i .cv2-links, ikke standardblå understregede links */
.cv2 .lc-region-links p { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 0; font-size: 0; }
.cv2 .lc-region-links p a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--cv2-line); border-radius: 999px; text-decoration: none; color: var(--cv2-ink); background: #fff; font-size: 1rem; }
.cv2 .lc-region-links p a:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* TASK-3690 (CHAT-20261009-1): kortene i 'Det kan du leje' linker til listen filtreret til præcis de udlejere, der har varen.
   Titel og tal = filteret (eller varens egen side), navnene = profilerne. Chips over listen: knapper med aria-pressed, skjult uden JS. */
.cv2 .cv2-what__title { color: inherit; text-decoration: none; }
.cv2 .cv2-what__title:hover, .cv2 .cv2-what__title:focus-visible { color: var(--color-primary, #2563eb); text-decoration: underline; text-underline-offset: 3px; }
.cv2 .cv2-what__count { color: var(--color-primary, #2563eb); text-decoration: underline; text-underline-offset: 2px; }
.cv2 .cv2-what__count:hover { text-decoration-thickness: 2px; }
/* UX 2026-10-09: a title that leaves the page (the item's own page) says so with ›; only the number is bold, the names are plain, with air between the links */
.cv2 .cv2-what__title:not([data-lc-vare])::after { content: " \203A"; color: var(--color-primary, #2563eb); }
/* UX-043 Ret 1 (TASK-4704, CHAT-20261024-2): a number that leaves the page says so the same way. A card whose subpage lists firms this page's list has not has a number without data-lc-vare
   (a plain link to <subpage>#udlejere, no chip), so '›' now means 'on to another page' on title and number. A filter card's number (data-lc-vare) and a whole-list card's (data-lc-vare="") are unchanged.
   The words sit in a span (card_links.count_html), and the underline is the span's, so the arrow after it is not underlined (an underline on the link itself would run under an arrow, and a child cannot switch it off).
   A word joiner (U+2060) in front of the arrow keeps it on the line of the last word: an inline-block arrow could wrap onto a line of its own (measured at 1440 on 'køleskabe og frysere'). The 'alt' text '' keeps a screen reader from reading it. */
.cv2 .cv2-what__count:not([data-lc-vare]) { text-decoration: none; }
.cv2 .cv2-what__count:not([data-lc-vare]) > .cv2-what__linktext { text-decoration: underline; text-underline-offset: 2px; }
.cv2 .cv2-what__count:not([data-lc-vare]):hover > .cv2-what__linktext { text-decoration-thickness: 2px; }
.cv2 .cv2-what__count:not([data-lc-vare])::after { content: "\2060\203A"; content: "\2060\203A" / ""; margin-left: .3em; font-weight: 700; }
/* TASK-4813 (UX spec v3-hub-linkkort-2026-10-31 § 7): on a v3 hub the link card's number is inline-flex (category-v3.css), so a text over ~180 px fell below the floating 120 x 90 image
   (212 px card at 375, cap 145). As flex with the span shrinkable it wraps beside the image and the '›' stands on its last line (141-142 px at 375/390). Here, not in category-v3.css,
   which is at its 25 KB budget (test-category-v3); the :not() makes it outweigh the v3 rule that loads after it. Filter cards are untouched. */
main.cv3 .v3-types .cv2-what__count:not([data-lc-vare]) { display: flex; align-items: last baseline; }
main.cv3 .v3-types .cv2-what__count:not([data-lc-vare]) > .cv2-what__linktext { min-width: 0; }
/* UX-043 'kan vente' (approved with Ret 1): the number's tap area was 16 px high, right under a title that goes to another page. On a phone or a touch screen the number gets a 44 px tall area as an empty
   ::before hit area (it takes no room, so the card does not grow): 2 px above the number (the title above keeps its own taps) and the rest below it, over the 'Fx' line, which is no link. Not on a card whose
   line also carries firm names (their links stand in the same paragraph). */
@media (max-width: 600px), (pointer: coarse) {
    .cv2 .cv2-what__meta:not(:has(.cv2-what__vendor)) > .cv2-what__count { position: relative; }
    .cv2 .cv2-what__meta:not(:has(.cv2-what__vendor)) > .cv2-what__count::before { content: ""; position: absolute; top: -2px; bottom: -27px; left: -6px; right: -6px; }
}
.cv2 .cv2-what__meta:has(.cv2-what__vendor) { line-height: 1.6; }
.cv2 .cv2-what__vendor { color: inherit; font-weight: 400; text-decoration: underline; text-decoration-color: rgba(20, 34, 74, .35); text-underline-offset: 2px; }
.cv2 .cv2-what__vendor:hover { color: var(--color-primary, #2563eb); text-decoration-color: currentColor; }
.cv2 .cv2-what__ex .cv2-what__vendor { font-weight: 500; }
.cv2-filter { margin: 0 0 .75rem; }
.cv2-filter__chips { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.cv2-filter__chips[hidden] { display: none; }
.cv2-filter__chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: .3rem .85rem; border: 1px solid var(--cv2-line); border-radius: 999px;
    background: #fff; color: var(--cv2-ink); font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.25; text-align: left; cursor: pointer; }
.cv2-filter__chip:hover { border-color: var(--lc-night, #14224a); }
.cv2-filter__chip:focus-visible { outline: 2px solid var(--color-primary, #2563eb); outline-offset: 2px; }
.cv2-filter__chip[aria-pressed="true"] { background: var(--lc-night, #14224a); border-color: var(--lc-night, #14224a); color: #fff; }
.cv2-filter__n { font-weight: 400; opacity: .8; }
.cv2-filter__status { margin: .5rem 0 0; font-size: .9rem; color: var(--cv2-ink); }
.cv2-filter__status:empty { margin: 0; }
@media (max-width: 600px) {   /* UX 2026-10-09: nine chips took eight rows on a phone; a tapped card must still show vendors below the chips */
    .cv2-filter__chips { gap: .35rem; }
    .cv2-filter__chip { min-height: 36px; padding: .2rem .7rem; font-size: .8125rem; }
}

/* TASK-3780 (CHAT-20261009-7, Philip 2026-10-09: "nice billeder på underkategorierne ... det ville se elegant ud"): et billede øverst i kortet,
   kant til kant med kortets runde hjørner, 4:3 og object-fit: cover (filen kan være lidt bredere). Kun kort med en post i
   build/images/card-images.json har det (scripts/lib/card_images.py); de andre er uændrede. AI-mærket (C-254) står i billedets hjørne:
   beholderen er altid ankerpunkt, også uden :has, hvor style.css ellers sætter pillen under billedet (og overflow: hidden ville skjule den). */
.cv2-what__media { position: relative; display: block; margin: -1rem -1.1rem .8rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 13px 13px 0 0; background: #eef2f7; }
.cv2-what__img { display: block; width: 100%; height: 100%; object-fit: cover; }
@supports not selector(:has(*)) { .cv2-what__media > .ai-badge { position: absolute; margin: 0; } }
/* CHAT-20261009-7 trin 2 (UX-033 (1), agents/ux/kategoriside-v3.md § 4.5, TASK-3901): paa en telefon (<= 600 px) flyder billedet til hoejre i
   kortet, 120 x 90 (4:3, radius 10), og titel, tal og navne loeber rundt om det. Et billede i fuld bredde gav ca. 233 px ekstra pr. kort. AI-pillen
   staar som altid oeverst til hoejre i billedet (C-254 har ingen mindre variant; 21,5 x 16 px passer). Kortet indeholder floaten (flow-root). */
@media (max-width: 600px) {
    .cv2-what__card { display: flow-root; }
    .cv2-what__media { float: right; width: 120px; height: 90px; aspect-ratio: auto; margin: 0 0 8px 12px; border-radius: 10px; }
}

/* TASK-4690 (Compliance C-293, UX-041): tabellen med cateringfirmaernes egne listepriser (scripts/lib/cited_table.py, section.cv2-kuvert).
   Samme <table> i DOM'en hele vejen (cellerne uændrede, kolonnenavnene i thead og som data-label): under 1024 px ét kort pr. række, fra 1024 px (hvor den
   seks kolonner brede tabel passer uden sidelæns scroll, målt 2026-10-23) sticky thead under headeren. Intet er skjult bag et sidelæns stryg. */
.cv2-kuvert__jump { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: .75rem 0 1rem; }
.cv2-kuvert__jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--cv2-line); border-radius: 999px; text-decoration: none; color: var(--cv2-ink); background: #fff; font-weight: 600; font-size: .875rem; }
.cv2-kuvert__jump a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cv2-kuvert .cv2-kuvert__group { scroll-margin-top: 90px; }
.cv2-kuvert .cv2-tablewrap .cv2-table td a { display: inline-block; padding-block: 2px; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(17, 24, 39, .4); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.cv2-kuvert .cv2-tablewrap .cv2-table td a:hover { color: var(--color-primary); }
.cv2-kuvert .cv2-tablewrap .cv2-table td.cv2-kuvert__price { white-space: nowrap; }
.cv2-kuvert .cv2-kuvert__moms--na { color: #6b7280; font-size: .85em; }   /* 4,8 : 1 på hvid; 'inkl. moms' og 'ekskl. moms' dæmpes aldrig (C-293 j) */
.cv2-kuvert .cv2-tablewrap .cv2-table td.cv2-kuvert__na { color: #6b7280; }
.cv2-kuvert__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.25rem 0 0; padding: 1rem 1.1rem; border: 1px solid var(--cv2-line); border-radius: 12px; background: #fff; }
.cv2-kuvert__cta p { flex: 1 1 20rem; margin: 0; max-width: 60ch; }
.cv2-kuvert__cta .cv2-btn { flex: 0 0 auto; box-sizing: border-box; }
@media (max-width: 480px) { .cv2-kuvert__cta .cv2-btn { width: 100%; } }
@media (min-width: 1024px) {
    .cv2-kuvert .cv2-kuvert__group { scroll-margin-top: 136px; }
    .cv2-kuvert .cv2-tablewrap { overflow: visible; }   /* ellers sidder en sticky thead fast i omslaget */
    .cv2-kuvert .cv2-tablewrap .cv2-table { min-width: 46rem; }
    .cv2-kuvert .cv2-tablewrap .cv2-table thead th { position: sticky; top: calc(var(--header-h, 68px) + 1px); z-index: 3; background: #f9fafb; box-shadow: 0 1px 0 var(--cv2-line); }
    .cv2-kuvert .cv2-tablewrap .cv2-table thead th:first-child { border-top-left-radius: 11px; }
    .cv2-kuvert .cv2-tablewrap .cv2-table thead th:last-child { border-top-right-radius: 11px; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(4) { min-width: 5.5rem; }   /* TASK-4703 (UX-042): 'Mindst' ('20 kuverter', 'ikke oplyst') brydes ikke i to linjer ved 1024-1440 px; kun her, kortene under 1024 px er urørte */
}
@media (max-width: 1023px) {
    .cv2-kuvert .cv2-tablewrap { overflow: visible; border: 0; border-radius: 0; background: none; }
    .cv2-kuvert .cv2-tablewrap .cv2-table { display: block; min-width: 0; font-size: .9rem; }
    .cv2-kuvert .cv2-tablewrap .cv2-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .cv2-kuvert .cv2-tablewrap .cv2-table tbody { display: block; }
    .cv2-kuvert .cv2-tablewrap .cv2-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; margin: 0 0 .5rem; padding: .7rem .85rem; border: 1px solid var(--cv2-line); border-radius: 12px; background: #fff; }
    .cv2-kuvert .cv2-tablewrap .cv2-table tr.cv2-kuvert__group { display: block; margin: 0; padding: 1.1rem 0 .25rem; border: 0; border-radius: 0; background: none; }
    .cv2-kuvert .cv2-tablewrap .cv2-table tr.cv2-kuvert__group th { display: block; padding: 0; border: 0; background: none; font-size: 1.1rem; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td { display: block; min-width: 0; padding: 0; border: 0; font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 1rem; font-weight: 700; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--cv2-muted); }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(3) strong { display: block; font-size: 1.15rem; line-height: 1.25; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(3) br { display: none; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(3) .cv2-kuvert__moms { display: block; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(3)::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--cv2-muted); }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(n+4) { grid-column: 1 / -1; margin-top: .3rem; }
    .cv2-kuvert .cv2-tablewrap .cv2-table td:nth-child(n+4)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--cv2-ink); }
}
@media (min-width: 640px) and (max-width: 1023px) {   /* tablet: to kort ved siden af hinanden i stedet for ét kort på 700-900 px */
    .cv2-kuvert .cv2-tablewrap .cv2-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; }
    .cv2-kuvert .cv2-tablewrap .cv2-table tr { margin: 0; }
    .cv2-kuvert .cv2-tablewrap .cv2-table tr.cv2-kuvert__group { grid-column: 1 / -1; }
}
