/* arq-sponsor: the advertising slot of a cluster (kit/arq-sponsor.js). Colours, fonts and the shadow come from
   arq-tokens.css (light and dark); nothing here redefines a token. The house ad (our own offer, written by the page
   builder) and a sponsor fill the same box: its height is reserved with min-height, so the page does not move when the
   script swaps one for the other. Headlines and the house ad's second line are cut at two lines, the sponsor's name line at one. */
.arq-sponsor{display:block;box-sizing:border-box;margin:24px 0 0;padding:12px 16px 11px;background:var(--card);color:var(--ink);border:1px solid var(--soft);border-radius:6px;min-height:132px;max-width:760px;font-family:var(--sans)}
.arq-sponsor p{margin:0;max-width:none}
.arq-sponsor .arq-sponsor-k{font:500 10.5px/16px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.arq-sponsor .arq-sponsor-t{margin-top:6px;font:400 17px/1.3 var(--sans);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:2.6em}
.arq-sponsor-t a{color:var(--blue);text-decoration:none}
.arq-sponsor-t a:hover,.arq-sponsor-t a:focus-visible{text-decoration:underline}
.arq-sponsor .arq-sponsor-s{margin-top:3px;font-size:14px;line-height:1.4;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:2.8em}
.arq-sponsor .arq-sponsor-f{margin-top:8px;font-size:12.5px;line-height:1.45;color:var(--muted)}
.arq-sponsor-f a{color:var(--muted);text-decoration:underline;white-space:nowrap}
.arq-sponsor-f a:hover{color:var(--ink)}
@media (max-width:520px){.arq-sponsor{padding:11px 13px 10px;min-height:164px}.arq-sponsor .arq-sponsor-t{font-size:16px}}
/* the weekly email in miniature inside the house ad that offers the alert (sponsor.py mail_preview, sponsor.ts mailPreview):
   a neutral frame in the site's own tokens, no real mail client's look. Rows are one line each, so the height is fixed. */
.arq-mail{margin-top:12px;border:1px solid var(--soft);border-radius:6px;background:var(--paper);padding:10px 12px 8px;max-width:620px}
.arq-sponsor .arq-mail p{margin:0}
.arq-mail-h{display:grid;grid-template-columns:22px minmax(0,1fr);column-gap:8px;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--soft)}
.arq-mail-a{grid-row:1/span 2;width:22px;height:22px;border-radius:50%;background:var(--blue-soft);border:1px solid var(--blue)}
.arq-mail-f{font:500 10.5px/14px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.arq-mail-s{font:400 14px/1.3 var(--sans);color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arq-mail .arq-mail-o{margin-top:8px;font:300 13px/1.4 var(--sans);color:var(--ink)}
.arq-mail ul{list-style:none;margin:6px 0 0;padding:0}
.arq-mail li{display:grid;gap:0;padding:4px 0;border-top:1px solid var(--soft);height:44px;box-sizing:border-box;align-content:center}
.arq-mail li:first-child{border-top:0}
.arq-mail-r,.arq-mail-m{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arq-mail-r{font:400 13px/1.35 var(--sans);color:var(--ink)}
.arq-mail-m{font:400 12px/1.35 var(--sans);color:var(--muted)}
.arq-mail .arq-mail-x{margin-top:6px;font:500 10px/14px var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* THE LAYERED AD (a sponsor's banner; the twins are ad_card() in sponsor.py, adCard() in sponsor.ts and adCard() in this
   kit's arq-sponsor.js, with identical output). Three layers, as the portal's cards (home.html .face.hasbg): 1 the image
   (cover, lazy, width and height set, so no layout shift), 2 a scrim of the card colour that fades to the right, with the
   text on it (label, one line as the link, advertiser name · domain), 3 the logo as a badge top left. The sponsor gives the
   image, the text and the logo; the text is required. Without an image: a soft gradient from the tokens, a slightly
   different hue per kind of work (data-kind). Without a logo: a monogram of the name. The scrim uses --card, so it reads
   in light and dark. Emails never use this (no remote images by default): the email slot stays text only. */
.arq-ad{--ad-hue:var(--blue);position:relative;display:block;box-sizing:border-box;overflow:hidden;border-radius:inherit;aspect-ratio:16/7;min-height:168px;background:linear-gradient(120deg,color-mix(in srgb,var(--ad-hue) 24%,var(--card)),color-mix(in srgb,var(--ad-hue) 7%,var(--card)));font-family:var(--sans);color:var(--ink)}
.arq-ad[data-kind="transformation"]{--ad-hue:var(--coral)}
.arq-ad[data-kind="platform"]{--ad-hue:var(--green)}
.arq-ad[data-kind="build_run"]{--ad-hue:var(--amber)}
.arq-ad-img{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:right center;display:block}
.arq-ad-x{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;justify-content:space-between;padding:14px 16px 13px;background:linear-gradient(to right,var(--card) 14%,color-mix(in srgb,var(--card) 82%,transparent) 30%,color-mix(in srgb,var(--card) 35%,transparent) 46%,transparent 62%)}
.arq-ad:not(:has(.arq-ad-img)) .arq-ad-x{background:none}
.arq-ad-x p{margin:0;max-width:none}
.arq-ad-m{min-width:0;width:min(54%,390px);text-shadow:0 0 10px var(--card),0 0 2px var(--card)}   /* 10 Nov 2026 (Pablo): the image shows on about 2/3 of the banner; the text keeps the left third, with a soft halo for legibility */
.arq-ad .arq-ad-k{margin-left:50px;font:500 10.5px/36px var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(66% - 49px)}
.arq-ad .arq-ad-t{font:400 16px/1.28 var(--sans);overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;max-height:3.84em}
.arq-ad-t a{color:var(--blue);text-decoration:none}
.arq-ad-t a:hover,.arq-ad-t a:focus-visible{text-decoration:underline}
.arq-ad-t a::after{content:"";position:absolute;inset:0;z-index:1}   /* the whole banner is the link */
.arq-ad .arq-ad-s{margin-top:3px;font-size:13.5px;line-height:1.4;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.arq-ad-logo{position:absolute;z-index:2;top:14px;left:16px;width:36px;height:36px;border-radius:8px;background:var(--card);border:1px solid var(--soft);display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:none}
.arq-ad-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.arq-ad-logo.is-mono{background:var(--blue);border-color:var(--blue);color:var(--paper);font:500 13px/1 var(--mono);letter-spacing:.02em}
@media (max-width:520px){.arq-ad{min-height:176px}.arq-ad-x{padding:12px 13px 11px;background:linear-gradient(to right,var(--card) 30%,color-mix(in srgb,var(--card) 80%,transparent) 50%,color-mix(in srgb,var(--card) 25%,transparent) 78%,transparent 100%)}.arq-ad-m{width:86%}.arq-ad .arq-ad-t{font-size:16px}.arq-ad .arq-ad-k{margin-left:49px}.arq-ad-logo{top:12px;left:13px}}
/* in the slot: the sponsored box is the banner plus the one-line note under it (no padding of its own) */
.arq-sponsor.is-sponsored{padding:0;min-height:0;overflow:hidden}
.arq-sponsor.is-sponsored .arq-ad{aspect-ratio:auto;height:168px;min-height:0;border-radius:0;border-bottom:1px solid var(--soft)}
.arq-sponsor.is-sponsored .arq-sponsor-f{margin:0;padding:8px 16px 9px}
@media (max-width:520px){.arq-sponsor.is-sponsored .arq-ad{height:176px}.arq-sponsor.is-sponsored .arq-sponsor-f{padding:8px 13px 9px}}

/* THE HOUSE AD THAT CARRIES THE SIGN-UP (11 Nov 2026; sponsor.py house_signup, sponsor.ts houseSignup): the slot holds the one
   alert box of the site (kit/arq-alerts.js + arq-alerts.css, the same as on the tender pages), then the weekly email in
   miniature, then the small links. Scoped here: inside the slot the box drops its own card (the slot is the card) and keeps
   a reserved height, the form's height in English (measured 11 Nov 2026 at 1280 and 390 px: 123 / 205, with the region option
   174 / 256; longer languages add one line of the note): no gap under the shortest text, at most a line of shift under the
   longest, and the slot sits far below the fold. A sponsor replaces all of it. */
.arq-sponsor .arq-alerts{margin:6px 0 0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;max-width:none;min-height:123px}
.arq-sponsor .arq-alerts[data-region]{min-height:174px}
.arq-sponsor .arq-alerts .arq-alerts-t{font-size:17px;line-height:1.3}
.arq-sponsor .arq-alerts-t a{color:var(--blue);text-decoration:none}
.arq-sponsor .arq-alerts .arq-alerts-msg:empty{min-height:0;margin-top:0}   /* no blank line before the preview; the answer adds its line under the note */
.arq-sponsor.is-signup .arq-mail{margin-top:12px}
@media (max-width:520px){.arq-sponsor .arq-alerts{padding:0;min-height:205px}.arq-sponsor .arq-alerts[data-region]{min-height:256px}.arq-sponsor .arq-alerts .arq-alerts-t{font-size:16px}}
