/* ══════════════════════════════════════════════════════════════
   Looks: fixed designs for page-layout resumes (apps/cv/looks.py).
   ──────────────────────────────────────────────────────────────
   Linked only by the look branch of templates/cv/public_cv.html (a
   layout tree plus a known style_config.look) and by the new
   editor's canvas, so classic resumes and trees without a look load
   exactly the CSS they always have. Plain CSS, no Tailwind classes:
   a change here needs no CSS rebuild. Specs: tickets/p1-page.md
   (Ledger) and tickets/design-presets.md (the other five, p8).

   .lk          what every look shares: page width, the rows (one
                track per column), region and block spacing, the
                painted areas, phones, and the base typography, which
                is Ledger's (p1, ported from the "Ledger look" rules in
                docs/design/page-builder/pb.css).
   .lk--<look>  each look's own rules, after the base: Ledger, then
                Studio, Margin, Column, Split and Mono, ported from
                their look_* functions in docs/design/page-builder/
                build.py (p8).

   The page is white in every look (founder, Nov 21). Colour only
   appears in a painted area (.lk-paint): the sidebar when its fill
   is tint or dark (lk-page--filled), and Column's header band
   (lk-page--band). A painted area sets --lk-paint (its background)
   and the text colours that go on it. No banner, card borders or
   shadows; the rules under headings and Column's vertical rule are
   typography.

   Colours. Text is always one of --lk-ink, --lk-ink-2, --lk-ink-mute,
   --lk-ink-faint, --lk-acc-ink (the accent as text) or --lk-chip-ink
   (on --lk-chip-bg), never a literal colour, and every one passes
   WCAG AA (4.5:1) on the background it sits on, for every look,
   accent and fill: apps/cv/tests/test_look_contrast.py reads the
   custom properties from this file and computes them (color-mix in
   srgb, rgba over the paint). So colour properties are only set
   outside @media blocks, with selectors made of classes. pb.css's
   faint grey #7b818b is 3.9:1 on white, so --lk-ink-faint is
   #6b717b (4.9:1).
   ══════════════════════════════════════════════════════════════ */

.lk {
    --lk-ink: #16181d;
    --lk-ink-2: #30343c;
    --lk-ink-mute: #5b616b;
    --lk-ink-faint: #6b717b;
    --lk-acc: #24395c;
    --lk-acc-ink: var(--lk-acc);
    --lk-chip-bg: #f1f2f4;
    --lk-chip-ink: #30343c;
    --lk-paint: #fff;
    --lk-line: #dfe2e7;
    --lk-cell: #eef0f3;
    --lk-page-width: 860px;
    --lk-pad-x: 32px;
    --lk-pad-top: 64px;
    --lk-pad-bottom: 96px;
    --lk-gap-col: 40px;
    --lk-gap-row: 44px;
    --lk-gap-stack: 30px;
    --lk-text: 13.5px;
    --lk-font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --lk-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    background: #fff;
    color: var(--lk-ink);
    font-family: var(--lk-font-body);
    font-size: 13.5px;
    /* pb.css's base line height: the title, the contact grid, job titles,
       company lines and skill labels inherit it, as in p1. */
    line-height: 1.4;
    letter-spacing: -0.006em;
    font-feature-settings: "cv11";
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* A small reset, so the look doesn't depend on the page's base styles. */
.lk *,
.lk *::before,
.lk *::after {
    box-sizing: border-box;
}

.lk :where(h1, h2, h3, p, ul, ol, dl, dt, dd, figure, figcaption, hr) {
    margin: 0;
    padding: 0;
}

.lk :where(ul, ol) {
    list-style: none;
}

.lk :where(h1, h2, h3) {
    font-size: inherit;
    font-weight: inherit;
}

.lk :where(a) {
    color: inherit;
    text-decoration: none;
}

.lk :where(a):hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lk :where(a):focus-visible {
    outline: 2px solid var(--lk-acc-ink);
    outline-offset: 2px;
    border-radius: 2px;
}

.lk :where(img, iframe, svg) {
    display: block;
    max-width: 100%;
}

.lk-i {
    flex: none;
    width: 14px;
    height: 14px;
}

/* ── Structure ─────────────────────────────────────────────── */

.lk-page {
    max-width: calc(var(--lk-page-width) + 2 * var(--lk-pad-x));
    margin: 0 auto;
    padding: var(--lk-pad-top) var(--lk-pad-x) var(--lk-pad-bottom);
}

/* Rows and full-width blocks of a region: 44px apart, as are the header and
   the body. */
.lk-region > * + *,
.lk-region--header + .lk-body {
    margin-top: var(--lk-gap-row);
}

/* A row is a grid with one track per column, sized from the columns' widths
   (--lk-cols, "3fr 1fr" for 75 | 25, as in p1), plus an empty track when
   the row doesn't fill its region: last, or first for a row aligned to the
   end (.lk-row--end). Below 768px the columns stack in DOM order, which is
   the reading order. */
.lk-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--lk-gap-stack);
    align-items: start;
}

.lk-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--lk-gap-stack);
}

.lk-blk {
    position: relative;
    min-width: 0;
}

@media (min-width: 768px) {
    .lk-row {
        grid-template-columns: var(--lk-cols, minmax(0, 1fr));
        column-gap: var(--lk-gap-col);
    }

    /* The empty track comes first; the other columns follow it in order. */
    .lk-row--end > .lk-col:first-child {
        grid-column-start: 2;
    }

    /* Sidebar and main column side by side; grid areas place each region
       wherever it is in the DOM. */
    .lk-page--split .lk-body {
        display: grid;
        column-gap: var(--lk-gap-col);
        align-items: start;
        grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
        grid-template-areas: "main side";
    }

    .lk-page--split.lk-page--side-left .lk-body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
        grid-template-areas: "side main";
    }

    .lk-page--split.lk-page--w33 .lk-body {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }

    .lk-page--split.lk-page--side-left.lk-page--w33 .lk-body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .lk-page--split.lk-page--w50 .lk-body {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .lk-page--split .lk-region--main {
        grid-area: main;
    }

    .lk-page--split .lk-region--side {
        grid-area: side;
    }

    /* A filled sidebar (look_side_fill tint or dark) runs the page's full
       height, from its top edge to its bottom edge, out to the page box's
       own edge; the header sits beside it, at the top of the main column
       (lk_page's header_in_main). The regions pad themselves instead of
       the page. */
    .lk-page--filled {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        padding: 0;
    }

    .lk-page--filled > .lk-body {
        flex: 1 0 auto;
        align-items: stretch;
        column-gap: 0;
    }

    .lk-page--filled .lk-region--side {
        padding: var(--lk-side-pad, 44px 30px 64px);
    }

    .lk-page--filled .lk-region--main {
        padding: var(--lk-main-pad, 44px 44px 64px);
    }

    /* Beside a filled sidebar the header has less room: the contact items
       wrap as whole items instead of being cut short. */
    .lk-page--filled .lk-region--header .lk-ct {
        display: flex;
        flex-wrap: wrap;
    }
}

/* ── Painted areas ─────────────────────────────────────────── */

/* The sidebar when its fill is on, and the header band. --lk-paint and the
   text colours on it come from the fill. */
.lk-paint {
    background: var(--lk-paint);
    color: var(--lk-ink);
}

/* Tint: a pale wash of the accent. The faint grey goes a step darker to keep
   4.5:1 on it. */
.lk-paint--tint {
    --lk-paint: color-mix(in srgb, var(--lk-acc) 8%, #fff);
    --lk-ink-faint: #5d636c;
    --lk-chip-bg: color-mix(in srgb, var(--lk-acc) 14%, #fff);
}

/* Dark: a dark slate made from the accent, light text on it. Split paints
   the accent itself (its accents are dark). --cv-text-colour is read by the
   new editor's empty-section placeholder (builder_v2.css), so it stays
   legible on the dark fill. */
.lk-paint--dark {
    --lk-paint: color-mix(in srgb, var(--lk-acc) 16%, #282b31);
    --lk-ink: #fff;
    --lk-ink-2: rgba(255, 255, 255, 0.84);
    --lk-ink-mute: rgba(255, 255, 255, 0.74);
    --lk-ink-faint: rgba(255, 255, 255, 0.66);
    --lk-acc-ink: color-mix(in srgb, var(--lk-acc) 30%, #fff);
    --lk-chip-bg: rgba(255, 255, 255, 0.1);
    --lk-chip-ink: #fff;
    --lk-line: rgba(255, 255, 255, 0.18);
    --lk-cell: rgba(255, 255, 255, 0.1);
    --cv-text-colour: #fff;
}

/* Split's accents are dark, so its dark half is the accent itself, with its
   gold (--lk-gold, set with the look) for the accent text. */
.lk--split .lk-paint--dark {
    --lk-paint: var(--lk-acc);
    --lk-acc-ink: var(--lk-gold, #c9a24a);
}

/* The header band (look_header_fill tint): edge to edge across the page box,
   from its top edge. */
.lk-page--band {
    padding-top: 0;
}

.lk-page--band > .lk-region--header {
    margin-inline: calc(-1 * var(--lk-pad-x));
    padding: var(--lk-band-pad, 34px) var(--lk-pad-x);
}

/* ── The profile header ────────────────────────────────────── */

.lk-profile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--lk-gap-col);
}

.lk-profile-text {
    flex: 1 1 auto;
    min-width: 0;
}

.lk-photo {
    flex: none;
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 50%;
}

.lk-photo--square {
    border-radius: 14px;
}

/* In a column under half the page: the photo above the name. */
.lk-profile--narrow {
    flex-direction: column;
    gap: 20px;
}

.lk-profile--narrow .lk-photo {
    order: -1;
}

.lk-ct {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: start;
}

.lk-ct li {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

.lk-ct li > a,
.lk-ct li > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lk-ct--list,
.lk-profile--narrow .lk-ct {
    grid-template-columns: minmax(0, 1fr);
}

.lk-profile--narrow .lk-ct li {
    white-space: normal;
}

/* ── Blocks ────────────────────────────────────────────────── */

.lk-ih {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
}

.lk-ih .lk-d {
    margin-left: auto;
}

.lk-fig {
    overflow: hidden;
}

.lk-fig img {
    width: 100%;
    height: auto;
}

.lk-fig--rounded {
    border-radius: 8px;
}

.lk-fig--round {
    aspect-ratio: 1;
    border-radius: 50%;
}

.lk-fig--round img {
    height: 100%;
    object-fit: cover;
}

.lk-fig--round.lk-fig--fit img {
    object-fit: contain;
}

/* "fit": the image at its own size (never upscaled), centred. */
.lk-fig--fit:not(.lk-fig--round) {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.lk-fig--fit:not(.lk-fig--round) img {
    width: auto;
}

.lk-pf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    align-items: start;
    gap: 24px;
}

.lk-pf-item {
    min-width: 0;
}

.lk-pf-item > .lk-fig,
.lk-pf-item > .lk-embed {
    margin-bottom: 10px;
}

.lk-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f5f7;
}

.lk-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}

/* The newest weeks on the right; a column too narrow for a year shows the
   most recent whole weeks only. The box is as wide as the weeks that fit
   (a week is one cell and one gap, the last without its gap), kept at the
   column's right edge, so the leftmost week shown is never cut in half
   (QA, phones). Browsers without round() clip at the column's edge. */
.lk-gh-grid {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
    overflow: hidden;
    width: calc(round(down, 100% + 3px, var(--lk-cell-size, 10px) + 3px) - 3px);
    margin-left: auto;
}

.lk-gh-grid span {
    flex: none;
    display: grid;
    grid-template-rows: repeat(7, var(--lk-cell-size, 10px));
    gap: 3px;
}

.lk-gh-grid i {
    width: var(--lk-cell-size, 10px);
    height: var(--lk-cell-size, 10px);
    border-radius: 2px;
    background: var(--lk-cell);
}

.lk-gh-grid i[data-l="1"] { background: color-mix(in srgb, var(--lk-acc-ink) 25%, var(--lk-paint)); }
.lk-gh-grid i[data-l="2"] { background: color-mix(in srgb, var(--lk-acc-ink) 45%, var(--lk-paint)); }
.lk-gh-grid i[data-l="3"] { background: color-mix(in srgb, var(--lk-acc-ink) 70%, var(--lk-paint)); }
.lk-gh-grid i[data-l="4"] { background: var(--lk-acc-ink); }

.lk-rule {
    height: 0;
    border: 0;
    border-top: 1px solid var(--lk-line);
}

.lk-space {
    height: 8px;
}

/* Skills one at a time (_skill_items.html): chips in a row, or a stack. */
.lk-skl--chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 6px;
}

.lk-skl--stack .lk-sk + .lk-sk {
    margin-top: 6px;
}

.lk-skgi + .lk-skgi {
    margin-top: 12px;
}

.lk-skgi > .lk-k {
    margin-bottom: 6px;
}

/* ── The base typography (Ledger's, p1) ────────────────────── */

.lk .lk-h {
    margin-bottom: 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--lk-line);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lk-acc-ink);
}

.lk .lk-name {
    font-family: var(--lk-font-head);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--lk-ink);
}

.lk .lk-title {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--lk-acc-ink);
}

.lk .lk-ct {
    gap: 8px 30px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--lk-ink-mute);
}

.lk .lk-ct--list {
    margin-top: 0;
}

.lk .lk-ct li {
    gap: 8px;
}

.lk .lk-ct .lk-i {
    color: var(--lk-ink-faint);
}

.lk .lk-a {
    color: var(--lk-acc-ink);
    font-weight: 500;
}

.lk .lk-bio {
    max-width: 62ch;
    margin-top: 16px;
    font-size: var(--lk-text);
    line-height: 1.62;
    color: var(--lk-ink-2);
}

.lk .lk-prose,
.lk .lk-p {
    font-size: var(--lk-text);
    line-height: 1.62;
    color: var(--lk-ink-2);
}

.lk .lk-prose p + p {
    margin-top: 0.7em;
}

.lk .lk-list > * + * {
    margin-top: 18px;
}

.lk .lk-list > .lk-edu + .lk-edu,
.lk .lk-list > .lk-cert + .lk-cert {
    margin-top: 12px;
}

.lk .lk-it {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--lk-ink);
}

.lk .lk-edu .lk-it,
.lk .lk-cert .lk-it,
.lk .lk-pf .lk-it {
    font-size: 14px;
}

.lk .lk-d {
    font-size: 12.5px;
    color: var(--lk-ink-faint);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.lk a.lk-d {
    color: var(--lk-acc-ink);
}

.lk .lk-sub {
    margin-top: 2px;
    font-size: 13px;
    color: var(--lk-ink-mute);
}

.lk .lk-co {
    color: var(--lk-acc-ink);
    font-weight: 500;
}

.lk .lk-ul {
    margin-top: 7px;
}

.lk .lk-ul li {
    position: relative;
    padding-left: 15px;
    font-size: var(--lk-text);
    line-height: 1.58;
    color: var(--lk-ink-2);
}

.lk .lk-ul li + li {
    margin-top: 3px;
}

.lk .lk-ul li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--lk-ink-faint);
}

.lk .lk-ih + .lk-p,
.lk .lk-sub + .lk-p {
    margin-top: 7px;
}

.lk .lk-meta {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--lk-ink-faint);
}

.lk .lk-more {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--lk-acc-ink);
}

.lk .lk-actions {
    margin-top: 6px;
}

.lk .lk-actions .lk-more {
    margin-top: 0;
}

.lk .lk-skg + .lk-skg {
    margin-top: 11px;
}

.lk .lk-k {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--lk-ink);
}

.lk .lk-v {
    font-size: var(--lk-text);
    line-height: 1.6;
    color: var(--lk-ink-2);
}

.lk .lk-lg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 27px;
    font-size: var(--lk-text);
    color: var(--lk-ink-2);
}

.lk .lk-lg dd {
    font-size: 12.5px;
    color: var(--lk-ink-faint);
    text-align: right;
}

.lk .lk-lnk {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
    min-width: 0;
    font-size: var(--lk-text);
    font-weight: 500;
    color: var(--lk-acc-ink);
}

.lk .lk-lnk .lk-i {
    width: 16px;
    height: 16px;
    color: var(--lk-ink-faint);
}

.lk .lk-lnk-t,
.lk .lk-lnk small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The label keeps its width; the address after it gives way first. */
.lk .lk-lnk-t {
    flex: 0 0 auto;
    max-width: calc(100% - 25px);
}

.lk .lk-lnk small {
    flex: 0 1 auto;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--lk-ink-faint);
}

.lk .lk-figcap {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--lk-ink-faint);
}

.lk .lk-gh .lk-meta {
    margin-top: 10px;
}

.lk .lk-sk {
    font-size: 12.5px;
    color: var(--lk-ink-2);
}

.lk .lk-skl--chips .lk-sk {
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--lk-chip-bg);
    color: var(--lk-chip-ink);
}

/* ── Ledger (p8: classic single column) ────────────────────── */

/* Ledger is the base above, with p8's header (look_ledger in build.py): the
   serif name centred (the optical-size cut, source-serif-4-opsz), the title
   in the accent, one centred contact line (cv/look/ledger/_profile.html),
   then a 1.5px accent rule across the page and the ruled headings. */
.lk--ledger {
    --lk-font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
    --lk-pad-top: 52px;
}

.lk--ledger .lk-profile {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.lk--ledger .lk-profile-text {
    width: 100%;
}

/* A photo someone keeps on: centred above the name. */
.lk--ledger .lk-profile .lk-photo {
    order: -1;
    width: 104px;
    height: 104px;
}

.lk--ledger .lk-name {
    font-size: 42px;
}

.lk--ledger .lk-title {
    margin-top: 6px;
}

.lk--ledger .lk-ct--line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 0;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--lk-ink-mute);
}

.lk--ledger .lk-ct--line li {
    gap: 0;
}

/* The dot ends an item, so a line that wraps never starts with one. */
.lk--ledger .lk-ct--line li:not(:last-child)::after {
    content: "·";
    content: "·" / "";
    margin-inline: 0.45em;
}

.lk--ledger .lk-profile .lk-bio {
    margin-inline: auto;
}

/* The rule under the header (a header band, look_header_fill, replaces it). */
.lk--ledger .lk-page:not(.lk-page--band) .lk-region--header {
    padding-bottom: 22px;
    border-bottom: 1.5px solid var(--lk-acc-ink);
}

.lk--ledger .lk-region--header + .lk-body {
    margin-top: 28px;
}

/* ── Studio (p8: two columns, round photo) ─────────────────── */

.lk--studio {
    --lk-font-head: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --lk-pad-top: 52px;
    --lk-gap-col: 44px;
    --lk-gap-row: 30px;
    --lk-text: 13px;
}

.lk--studio .lk-region--header + .lk-body {
    margin-top: 34px;
}

.lk--studio .lk-name {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.lk--studio .lk-title {
    font-size: 17px;
    font-weight: 600;
}

.lk--studio .lk-ct {
    margin-top: 16px;
    font-size: 12.5px;
}

.lk--studio .lk-ct .lk-i,
.lk--studio .lk-when .lk-i {
    color: var(--lk-acc-ink);
}

.lk--studio .lk-photo {
    width: 124px;
    height: 124px;
}

.lk--studio .lk-h {
    padding-bottom: 5px;
    border-bottom: 3px solid var(--lk-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--lk-ink);
}

.lk--studio .lk-list > * + * {
    margin-top: 16px;
}

.lk--studio .lk-job .lk-it {
    font-size: 15px;
    font-weight: 700;
}

.lk--studio .lk-co {
    margin-top: 2px;
    font-size: 13.5px;
    font-weight: 600;
}

.lk--studio .lk-when {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 3px;
    font-size: 12px;
    color: var(--lk-ink-faint);
}

.lk--studio .lk-when > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lk--studio .lk-when .lk-i {
    width: 12px;
    height: 12px;
}

.lk--studio .lk-when .lk-d {
    font-size: inherit;
}

.lk--studio .lk-when + .lk-ul,
.lk--studio .lk-when + .lk-p {
    margin-top: 6px;
}

/* Skills as underlined chips. */
.lk--studio .lk-skl--chips {
    gap: 10px 14px;
}

.lk--studio .lk-skl--chips .lk-sk {
    padding: 0 0 3px;
    border-radius: 0;
    border-bottom: 1.5px solid color-mix(in srgb, var(--lk-ink) 22%, transparent);
    background: none;
    color: var(--lk-ink-2);
}

/* Languages: the name, the level, five dots. */
/* Name, level and dots on one line while they fit. In a narrow sidebar (25 %)
   the level and the dots wrap under the name instead of the name breaking
   mid-word ("Spanis / h"): the name never shrinks below its longest word. */
.lk--studio .lk-lg {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    color: var(--lk-ink);
}

.lk--studio .lk-lg dt {
    flex: 1 1 auto;
    min-width: min-content;
    overflow-wrap: normal;
}

.lk--studio .lk-lg dd {
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
}

/* Where a whole row barely fits (a 25 % sidebar with a fill), every row puts
   its dots on a line of their own, so the rows stay alike. */
.lk--studio .lk-levels {
    container-type: inline-size;
}

@container (max-width: 199px) {
    .lk--studio .lk-lg .lk-dots {
        flex-basis: 100%;
    }

    .lk--studio .lk-lg + .lk-lg {
        margin-top: 10px;
    }
}

.lk--studio .lk-dots {
    display: flex;
    gap: 4px;
}

.lk--studio .lk-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lk-line);
}

.lk--studio .lk-dots i[data-on] {
    background: var(--lk-acc-ink);
}

/* ── Margin (p8: tinted sidebar, timeline) ─────────────────── */

.lk--margin {
    --lk-font-head: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --lk-gap-row: 28px;
    --lk-gap-col: 44px;
    --lk-text: 13px;
    --lk-side-pad: 44px 30px 64px;
    --lk-main-pad: 40px 44px 64px;
}

.lk--margin .lk-h {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: 0;
    font-weight: 700;
    letter-spacing: 0.14em;
}

/* The profile at the top of the sidebar: the photo centred above the name. */
.lk--margin .lk-profile--narrow {
    align-items: center;
    gap: 16px;
    text-align: center;
}

.lk--margin .lk-profile--narrow .lk-profile-text {
    width: 100%;
}

.lk--margin .lk-photo {
    width: 118px;
    height: 118px;
}

.lk--margin .lk-name {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
}

.lk--margin .lk-title {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
    color: var(--lk-ink-mute);
}

.lk--margin .lk-profile--narrow .lk-ct {
    justify-items: center;
}

.lk--margin .lk-ct {
    gap: 8px;
    font-size: 12px;
}

.lk--margin .lk-ct li {
    gap: 9px;
}

.lk--margin .lk-ct .lk-i {
    color: var(--lk-acc-ink);
}

.lk--margin .lk-list > * + *,
.lk--margin .lk-list > .lk-edu + .lk-edu,
.lk--margin .lk-list > .lk-cert + .lk-cert {
    margin-top: 12px;
}

.lk--margin .lk-edu .lk-it,
.lk--margin .lk-cert .lk-it {
    font-size: 13px;
}

.lk--margin .lk-edu .lk-sub {
    margin-top: 1px;
    font-size: 12px;
}

.lk--margin .lk-skl--stack .lk-sk {
    color: var(--lk-ink-mute);
}

/* Experience as a timeline: a line down the left, a ring for each job. */
.lk--margin .lk-job {
    position: relative;
    padding-left: 26px;
}

.lk--margin .lk-blk--work_experience .lk-list > * + * {
    margin-top: 16px;
}

.lk--margin .lk-blk--work_experience .lk-list {
    position: relative;
}

.lk--margin .lk-blk--work_experience .lk-list::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 0;
    width: 1.5px;
    background: var(--lk-timeline, var(--lk-line));
}

.lk--margin .lk-job::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 11px;
    height: 11px;
    border: 2.5px solid var(--lk-acc-ink);
    border-radius: 50%;
    background: var(--lk-paint);
}

.lk--margin .lk-job .lk-d {
    font-style: italic;
}

.lk--margin .lk-job .lk-sub {
    font-size: 13px;
}

/* ── Column (p8: header band, year blocks) ─────────────────── */

.lk--column {
    --lk-font-head: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --lk-pad-x: 48px;
    --lk-pad-top: 34px;
    --lk-gap-row: 24px;
    --lk-text: 13px;
}

.lk--column .lk-region--header + .lk-body {
    margin-top: 34px;
}

.lk--column .lk-h {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--lk-ink);
}

/* The profile on the band: photo, name and title, contact on the right. */
.lk--column .lk-profile {
    align-items: center;
    gap: 26px;
}

.lk--column .lk-photo {
    width: 104px;
    height: 104px;
}

.lk--column .lk-photo--square {
    border-radius: 4px;
}

.lk--column .lk-name {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.lk--column .lk-title {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--lk-ink-mute);
}

.lk--column .lk-profile > .lk-ct {
    flex: none;
    max-width: 45%;
    margin-top: 0;
    grid-template-columns: minmax(0, auto);
    justify-items: end;
    gap: 6px;
    font-size: 12px;
}

.lk--column .lk-ct .lk-i {
    color: var(--lk-acc-ink);
}

.lk--column .lk-profile--narrow > .lk-ct {
    max-width: none;
    justify-items: start;
}

.lk--column .lk-list > * + *,
.lk--column .lk-list > .lk-edu + .lk-edu,
.lk--column .lk-list > .lk-cert + .lk-cert {
    margin-top: 10px;
}

.lk--column .lk-edu .lk-it,
.lk--column .lk-cert .lk-it {
    font-size: 13px;
    font-weight: 700;
}

.lk--column .lk-edu .lk-sub,
.lk--column .lk-cert .lk-sub {
    margin-top: 1px;
    font-size: 12px;
}

.lk--column .lk-edu .lk-sd {
    display: block;
    font-size: 11.5px;
    color: var(--lk-ink-faint);
}

.lk--column .lk-edu .lk-sd .lk-sep {
    display: none;
}

.lk--column .lk-skl--stack .lk-sk + .lk-sk {
    margin-top: 5px;
}

/* Year blocks: the years in bold in a gutter, the job beside them. */
.lk--column .lk-blk--work_experience .lk-list > * + * {
    margin-top: 16px;
}

.lk--column .lk-yb {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 16px;
}

.lk--column .lk-yr {
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--lk-acc-ink);
    font-variant-numeric: tabular-nums;
}

.lk--column .lk-yr span {
    display: block;
}

.lk--column .lk-job .lk-it {
    font-size: 14px;
}

.lk--column .lk-job .lk-sub {
    font-size: 12.5px;
}

.lk--column .lk-co {
    color: inherit;
    font-weight: inherit;
}

@media (min-width: 768px) {
    /* The vertical rule between the columns, with a dot beside each heading
       of the narrow column (p8). Typography, so it stays on white pages;
       a filled sidebar doesn't need it. */
    .lk--column .lk-page--split:not(.lk-page--filled) .lk-body {
        align-items: stretch;
        column-gap: 32px;
    }

    .lk--column .lk-page--split:not(.lk-page--filled) .lk-region--side {
        padding-right: 32px;
        border-right: 1px solid var(--lk-line);
    }

    .lk--column .lk-page--split.lk-page--side-right:not(.lk-page--filled) .lk-region--side {
        padding-right: 0;
        padding-left: 32px;
        border-right: 0;
        border-left: 1px solid var(--lk-line);
    }

    .lk--column .lk-page--split:not(.lk-page--filled) .lk-region--side > .lk-blk > .lk-h::after {
        content: "";
        position: absolute;
        top: 2px;
        right: -37px;
        width: 9px;
        height: 9px;
        border: 2px solid #9aa3b0;
        border-radius: 50%;
        background: var(--lk-paint);
    }

    .lk--column .lk-page--split.lk-page--side-right:not(.lk-page--filled) .lk-region--side > .lk-blk > .lk-h::after {
        right: auto;
        left: -37px;
    }

    /* Beside a filled sidebar the band's three parts don't fit in one line:
       the contact lines go under the name, icons first. */
    .lk--column .lk-page--filled .lk-profile {
        flex-wrap: wrap;
        row-gap: 18px;
    }

    .lk--column .lk-page--filled .lk-profile > .lk-ct {
        display: flex;
        flex-wrap: wrap;
        flex-basis: 100%;
        max-width: none;
        gap: 6px 24px;
    }

    .lk--column .lk-page--filled .lk-profile > .lk-ct li {
        flex-direction: row-reverse;
    }
}

/* ── Split (p8: two-tone, gold rules) ──────────────────────── */

.lk--split {
    --lk-gold: #c9a24a;
    --lk-acc-ink: #7a5e24;
    --lk-chip-bg: #f1e7d3;
    --lk-chip-ink: #5c4718;
    --lk-gap-row: 26px;
    --lk-text: 13px;
    --lk-side-pad: 52px 40px 48px 48px;
    --lk-main-pad: 44px 48px 48px 40px;
}

/* The thin gold rule across the very top of the page. */
.lk--split .lk-page {
    position: relative;
}

.lk--split .lk-page::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    height: 4px;
    background: var(--lk-gold);
}

.lk--split .lk-h {
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: 0;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.lk--split .lk-name {
    font-size: 46px;
    line-height: 1.02;
}

.lk--split .lk-name-w {
    display: block;
}

.lk--split .lk-photo {
    width: 96px;
    height: 96px;
}

.lk--split .lk-title {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--lk-ink-mute);
}

.lk--split .lk-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin-top: 18px;
    background: var(--lk-gold);
}

.lk--split .lk-region--header + .lk-body {
    margin-top: 34px;
}

.lk--split .lk-region > .lk-blk--profile_header + * {
    margin-top: 20px;
}

.lk--split .lk-job .lk-it {
    font-size: 14px;
}

.lk--split .lk-job .lk-d {
    font-size: 11.5px;
}

.lk--split .lk-job .lk-sub {
    font-size: 12.5px;
}

.lk--split .lk-list > .lk-edu + .lk-edu,
.lk--split .lk-list > .lk-cert + .lk-cert {
    margin-top: 8px;
}

.lk--split .lk-edu .lk-it,
.lk--split .lk-cert .lk-it {
    font-size: 13px;
    font-weight: 700;
}

.lk--split .lk-edu .lk-sub,
.lk--split .lk-cert .lk-sub {
    margin-top: 1px;
    font-size: 12px;
}

/* As in p8, two headings give way when their block sits where p8 has it:
   the summary right under the name (it reads on from the gold rule), and the
   contact lines at the top of the white half, right-aligned with their icons
   on the right. Anywhere else they keep their heading. */
.lk--split .lk-blk--profile_header + .lk-blk--professional_summary > .lk-h,
.lk--split .lk-region--main > .lk-blk--contact_details:first-child > .lk-h {
    display: none;
}

.lk--split .lk-blk--contact_details .lk-ct {
    gap: 5px;
    font-size: 12px;
}

.lk--split .lk-region--main > .lk-blk--contact_details:first-child .lk-ct {
    justify-items: end;
}

.lk--split .lk-region--main > .lk-blk--contact_details:first-child .lk-ct li {
    flex-direction: row-reverse;
}

.lk--split .lk-ct .lk-i {
    color: var(--lk-acc-ink);
}

.lk--split .lk-skl--chips .lk-sk {
    padding: 4px 11px;
    font-size: 12px;
}

/* ── Mono (p8: for engineers and analysts) ─────────────────── */

.lk--mono {
    --lk-font-head: var(--lk-font-mono);
    --lk-chip-bg: color-mix(in srgb, var(--lk-acc) 8%, #fff);
    --lk-chip-ink: #22313a;
    --lk-pad-top: 52px;
    --lk-gap-row: 28px;
    --lk-text: 13px;
    --lk-cell-size: 9px;
}

.lk--mono .lk-region--header + .lk-body {
    margin-top: 30px;
}

/* elena_ruiz: the words of the name (spans) joined by underscores. */
.lk--mono .lk-name {
    display: flex;
    flex-wrap: wrap;
    font-size: 36px;
    line-height: 1.15;
    text-transform: lowercase;
}

.lk--mono .lk-name-w + .lk-name-w::before {
    content: "_";
    content: "_" / "";
}

.lk--mono .lk-title {
    font-size: 15px;
    font-weight: 400;
    color: var(--lk-ink-2);
}

.lk--mono .lk-title .lk-sep {
    color: var(--lk-ink-faint);
}

.lk--mono .lk-profile .lk-ct {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 12px;
    font-family: var(--lk-font-mono);
    font-size: 12px;
    letter-spacing: 0;
    color: var(--lk-acc-ink);
}

.lk--mono .lk-photo {
    width: 104px;
    height: 104px;
}

/* "## summary", then a dashed rule to the end of the column. */
.lk--mono .lk-h {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: 0;
    font-family: var(--lk-font-mono);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: lowercase;
}

.lk--mono .lk-h::before {
    content: "## ";
    content: "## " / "";
    white-space: pre;
}

.lk--mono .lk-h::after {
    content: "";
    flex: 1;
    margin-left: 10px;
    border-top: 1px dashed var(--lk-line);
}

.lk--mono .lk-list > * + * {
    margin-top: 16px;
}

.lk--mono .lk-job .lk-it {
    font-size: 14px;
}

.lk--mono .lk-d,
.lk--mono .lk-meta,
.lk--mono .lk-skl--chips .lk-sk {
    font-family: var(--lk-font-mono);
    letter-spacing: 0;
}

.lk--mono .lk-d {
    font-size: 11.5px;
}

.lk--mono .lk-co {
    color: var(--lk-ink-mute);
    font-weight: 400;
}

.lk--mono .lk-skl--chips .lk-sk {
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11.5px;
    text-transform: lowercase;
}

.lk--mono .lk-skgi > .lk-k {
    font-family: var(--lk-font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    color: var(--lk-ink-mute);
}

.lk--mono .lk-skgi > .lk-k::after {
    content: ":";
}

.lk--mono .lk-gh .lk-meta {
    margin-top: 8px;
    font-size: 11px;
}

/* ── Phones: one column in reading order ───────────────────── */

@media (max-width: 767px) {
    .lk {
        --lk-gap-stack: 28px;
        --lk-pad-x: 20px;
        --lk-pad-top: 40px;
        --lk-pad-bottom: 64px;
    }

    .lk--ledger {
        --lk-gap-row: 36px;
    }

    /* An empty column only holds tracks on the grid; stacked it would add a gap. */
    .lk-col:empty {
        display: none;
    }

    .lk-page--split .lk-region + .lk-region {
        margin-top: var(--lk-gap-row);
    }

    /* A filled sidebar is a painted block in reading order, edge to edge. */
    .lk-page--filled {
        padding: 0;
    }

    .lk-page--filled .lk-region--main,
    .lk-page--filled .lk-region--side {
        padding: 36px 20px 40px;
    }

    .lk-page--filled .lk-region + .lk-region {
        margin-top: 0;
    }

    .lk-page--band > .lk-region--header {
        padding-block: 28px;
    }

    .lk-profile {
        flex-direction: column;
        gap: 20px;
    }

    .lk-profile .lk-photo {
        order: -1;
        width: 96px;
        height: 96px;
    }

    .lk-ct {
        grid-template-columns: minmax(0, 1fr);
    }

    .lk-ct li {
        white-space: normal;
    }

    .lk-ct li > a,
    .lk-ct li > span {
        overflow-wrap: anywhere;
    }

    .lk .lk-name {
        font-size: 32px;
    }

    .lk--studio .lk-name {
        font-size: 34px;
    }

    .lk--margin .lk-name {
        font-size: 24px;
    }

    .lk--column .lk-name {
        font-size: 22px;
        letter-spacing: 0.24em;
    }

    .lk--column .lk-profile {
        align-items: flex-start;
    }

    .lk--column .lk-profile > .lk-ct {
        max-width: none;
        justify-items: start;
    }

    .lk--column .lk-profile > .lk-ct li {
        flex-direction: row-reverse;
    }

    .lk--column .lk-yb {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 12px;
    }

    .lk--split .lk-name {
        font-size: 38px;
    }

    .lk--split .lk-region--main > .lk-blk--contact_details:first-child .lk-ct {
        justify-items: start;
    }

    .lk--split .lk-region--main > .lk-blk--contact_details:first-child .lk-ct li {
        flex-direction: row;
    }

    .lk--mono .lk-name {
        font-size: 28px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Style settings (apps/cv/looks.py STYLE_SETTINGS;
   tickets/look-style-tokens.md). The page (.lk-page) carries a
   data-lk-<setting> attribute only for a value the look doesn't
   draw itself: one someone picked in Customize, or every value of a
   look made of settings (Bold, Noir, Care, Editorial). So these
   rules come last, are written to win over the looks' own, and an
   unchanged look of the six never meets them.

   Colours: --lk-fill and --lk-fill-ink (black or white, whichever
   passes AA on the fill, looks.fill_ink) and --lk-fill-soft (the
   fill a step towards the other ink) sit in .lk-page's style
   attribute. --lk-mark is decoration (rules, timeline dots, the
   photo ring): the accent, or the fill on a look with mark "fill".
   Meters draw in --lk-acc-ink, a checked text colour.
   ══════════════════════════════════════════════════════════════ */

.lk-page,
.lk-paint {
    --lk-mark: var(--lk-acc-ink);
}

.lk-page--mark-fill,
.lk-page--mark-fill .lk-paint {
    --lk-mark: var(--lk-fill);
}

/* On a dark area of a look with mark "fill", the accent text and the chips
   take the fill (Bold's yellow, Noir's gold). */
.lk-page--mark-fill .lk-paint--dark {
    --lk-acc-ink: var(--lk-fill);
    --lk-chip-bg: var(--lk-fill);
    --lk-chip-ink: var(--lk-fill-ink);
}

.lk-page--mark-fill .lk-paint--dark .lk-name {
    color: var(--lk-acc-ink);
}

/* Solid: the look's fill colour, with its own ink for every text colour. */
.lk-page .lk-paint--solid {
    --lk-paint: var(--lk-fill);
    --lk-ink: var(--lk-fill-ink);
    --lk-ink-2: var(--lk-fill-ink);
    --lk-ink-mute: var(--lk-fill-ink);
    --lk-ink-faint: var(--lk-fill-ink);
    --lk-acc-ink: var(--lk-fill-ink);
    --lk-chip-bg: var(--lk-fill-soft);
    --lk-chip-ink: var(--lk-fill-ink);
    --lk-line: var(--lk-fill-soft);
    --lk-mark: var(--lk-fill-ink);
    --cv-text-colour: var(--lk-fill-ink);
}

/* The header band beside a filled sidebar: painted at the top of the main
   column, out to its edges. */
.lk-page--band-main .lk-region--main > .lk-region--header.lk-paint {
    margin: -44px -44px 40px;
    padding: 40px 44px;
}

/* Across (look_header_span): the band runs over the full width, above the
   filled sidebar. The filled page has no padding of its own. */
.lk-page--across > .lk-region--header {
    padding: 40px 44px;
}

.lk-page--across.lk-page--band > .lk-region--header {
    margin-inline: 0;
}

.lk-page--across > .lk-region--header + .lk-body {
    margin-top: 0;
}

/* Settings that place things beside each other ask their column how wide
   it is (a 33 % sidebar keeps the stacked layout). */
.lk .lk-page[data-lk-entry] :is(.lk-region, .lk-col),
.lk .lk-page[data-lk-heading="margin"] :is(.lk-region, .lk-col) {
    container-type: inline-size;
}

/* ── Headings (look_heading) ──────────────────────────────── */

.lk .lk-page[data-lk-heading] .lk-blk > .lk-h {
    display: block;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--lk-font-head);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lk-acc-ink);
}

.lk .lk-page[data-lk-heading] .lk-region .lk-blk > .lk-h::before,
.lk .lk-page[data-lk-heading] .lk-region .lk-blk > .lk-h::after {
    content: none;
}

.lk .lk-page[data-lk-heading="rule"] .lk-blk > .lk-h {
    padding-bottom: 7px;
    border-bottom: 1.5px solid var(--lk-rule, var(--lk-line));
}

.lk-page--mark-fill {
    --lk-rule: var(--lk-mark);
}

.lk .lk-page[data-lk-heading="underline"] .lk-blk > .lk-h {
    font-size: 15px;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--lk-ink);
}

.lk .lk-page[data-lk-heading="underline"] .lk-region .lk-blk > .lk-h::after {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 6px;
    border-radius: 2px;
    background: var(--lk-mark);
}

.lk .lk-page[data-lk-heading="bar"] .lk-blk > .lk-h,
.lk .lk-page[data-lk-heading="pill"] .lk-blk > .lk-h {
    padding: 6px 12px;
    border-radius: 3px;
    background: var(--lk-tab-bg, var(--lk-chip-bg));
    color: var(--lk-tab-ink, var(--lk-chip-ink));
}

.lk .lk-page[data-lk-heading="pill"] .lk-blk > .lk-h {
    display: block;
    width: fit-content;
    min-width: min(100%, 14em);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* With a fill, bars and pills are the fill (Care's purple tabs). */
.lk .lk-page[style][data-lk-heading="bar"] .lk-region:not(.lk-paint) .lk-blk > .lk-h,
.lk .lk-page[style][data-lk-heading="pill"] .lk-region:not(.lk-paint) .lk-blk > .lk-h {
    --lk-chip-bg: var(--lk-fill);
    --lk-chip-ink: var(--lk-fill-ink);
}

.lk .lk-page[data-lk-heading="caps"] .lk-blk > .lk-h {
    letter-spacing: 0.22em;
    color: var(--lk-ink);
}

.lk .lk-page[data-lk-heading="margin"] .lk-blk > .lk-h {
    letter-spacing: 0.14em;
}

@container (min-width: 520px) {
    .lk .lk-page[data-lk-heading="margin"] .lk-blk:has(> .lk-h) {
        display: grid;
        grid-template-columns: 9em minmax(0, 1fr);
        column-gap: 24px;
        align-items: start;
    }

    .lk .lk-page[data-lk-heading="margin"] .lk-blk:has(> .lk-h) > .lk-h {
        grid-column: 1;
        grid-row: 1 / span 4;
        margin: 0;
        padding-top: 2px;
    }

    .lk .lk-page[data-lk-heading="margin"] .lk-blk:has(> .lk-h) > :not(.lk-h) {
        grid-column: 2;
    }
}

/* ── Jobs and schools (look_entry) ────────────────────────── */

.lk .lk-page[data-lk-entry] .lk-region .lk-item {
    position: relative;
    padding-left: 0;
    border: 0;
}

.lk .lk-page[data-lk-entry] .lk-region .lk-item::before,
.lk .lk-page[data-lk-entry] .lk-region .lk-list::before {
    content: none;
}

.lk .lk-page[data-lk-entry] .lk-item .lk-d {
    font-style: normal;
}

.lk .lk-page[data-lk-entry="years"] .lk-item .lk-d {
    font-weight: 700;
    color: var(--lk-ink);
}

@container (min-width: 440px) {
    .lk .lk-page:is([data-lk-entry="left"], [data-lk-entry="years"]) .lk-item {
        display: grid;
        grid-template-columns: 8.5em minmax(0, 1fr);
        column-gap: 20px;
    }

    .lk .lk-page:is([data-lk-entry="left"], [data-lk-entry="years"]) .lk-item > * {
        grid-column: 2;
    }

    .lk .lk-page:is([data-lk-entry="left"], [data-lk-entry="years"]) .lk-item > .lk-ih {
        display: contents;
    }

    .lk .lk-page:is([data-lk-entry="left"], [data-lk-entry="years"]) .lk-ih > .lk-it {
        grid-column: 2;
        grid-row: 1;
    }

    .lk .lk-page:is([data-lk-entry="left"], [data-lk-entry="years"]) .lk-ih > .lk-d {
        grid-column: 1;
        grid-row: 1 / span 6;
        margin-left: 0;
        padding-top: 2px;
        white-space: normal;
    }
}

.lk .lk-page[data-lk-entry="timeline"] .lk-list {
    position: relative;
}

.lk .lk-page[data-lk-entry="timeline"] .lk-region .lk-list::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 4px;
    width: 1.5px;
    background: var(--lk-timeline, var(--lk-mark));
    opacity: var(--lk-timeline-alpha, 0.45);
}

.lk .lk-page[data-lk-entry="timeline"] .lk-region .lk-item {
    padding-left: 24px;
}

.lk .lk-page[data-lk-entry="timeline"] .lk-region .lk-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lk-mark);
}

.lk .lk-page[data-lk-entry="titlebar"] .lk-item > .lk-ih {
    padding: 5px 10px;
    border-radius: 3px;
    background: var(--lk-chip-bg);
}

.lk .lk-page[data-lk-entry="titlebar"] .lk-item > .lk-ih > * {
    color: var(--lk-chip-ink);
}

.lk .lk-page[data-lk-entry="titlebar"] .lk-item > .lk-sub {
    margin-top: 6px;
}

/* ── Bullets (look_marker) and bold lead-ins ──────────────── */

.lk .lk-md {
    display: none;
}

.lk .lk-ul strong {
    font-weight: 650;
    color: var(--lk-ink);
}

.lk .lk-page[data-lk-marker] .lk-ul li {
    padding-left: 15px;
}

.lk .lk-page[data-lk-marker] .lk-region .lk-ul li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.72em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--lk-ink-faint);
    font-size: inherit;
    line-height: inherit;
}

.lk .lk-page[data-lk-marker="dash"] .lk-region .lk-ul li::before,
.lk .lk-page[data-lk-marker="slash"] .lk-region .lk-ul li::before {
    content: "–";
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--lk-ink-faint);
}

.lk .lk-page[data-lk-marker="slash"] .lk-ul li {
    padding-left: 22px;
}

.lk .lk-page[data-lk-marker="slash"] .lk-region .lk-ul li::before {
    content: "//";
    font-weight: 700;
    color: var(--lk-acc-ink);
}

.lk .lk-page[data-lk-marker="square"] .lk-region .lk-ul li::before {
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--lk-mark);
}

.lk .lk-page[data-lk-marker="none"] .lk-ul li {
    padding-left: 0;
}

.lk .lk-page[data-lk-marker="none"] .lk-region .lk-ul li::before {
    content: none;
}

/* ── Skills (look_skills; _skills_set.html) ───────────────── */

.lk .lk-skl--columns {
    columns: 2;
    column-gap: 24px;
}

.lk .lk-skl--columns .lk-sk {
    position: relative;
    padding-left: 14px;
    break-inside: avoid;
    font-size: var(--lk-text);
    line-height: 1.6;
}

.lk .lk-skl--columns .lk-sk::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--lk-mark);
}

.lk .lk-page[data-lk-skills="stack"] .lk-skl--stack .lk-sk {
    font-size: var(--lk-text);
}

.lk .lk-mt {
    display: grid;
    gap: 9px;
}

.lk .lk-mt-i {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    font-size: var(--lk-text);
    color: var(--lk-ink-2);
}

.lk .lk-mt-n {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lk .lk-mt-v {
    flex: none;
    display: flex;
    gap: 4px;
}

.lk .lk-mt--dots .lk-mt-v i,
.lk .lk-mt--squares .lk-mt-v i {
    width: 10px;
    height: 10px;
    border: 1.5px solid var(--lk-meter-edge, var(--lk-acc-ink));
    border-radius: 50%;
}

.lk .lk-mt--squares .lk-mt-v i {
    border-radius: 1px;
}

.lk .lk-mt--dots .lk-mt-v i.lk-on,
.lk .lk-mt--squares .lk-mt-v i.lk-on {
    background: var(--lk-meter-on, var(--lk-acc-ink));
}

/* A bar is as wide as its row on every look, so its fill is the rating's
   share (the flex row's space-between would size the grid's track to the
   name; items 45 and 50). */
.lk .lk-mt--bars .lk-mt-i {
    display: grid;
    justify-content: normal;
    gap: 5px;
}

.lk .lk-mt--bars .lk-mt-v {
    height: 7px;
    border-radius: 999px;
    background-color: var(--lk-meter-track, var(--lk-cell));
    background-image: linear-gradient(var(--lk-meter-on, var(--lk-acc-ink)), var(--lk-meter-on, var(--lk-acc-ink)));
    background-repeat: no-repeat;
    background-size: var(--lk-v) 100%;
    box-shadow: inset 0 0 0 1px var(--lk-meter-edge, var(--lk-acc-ink));
}

.lk .lk-mt--rings {
    grid-template-columns: repeat(auto-fill, minmax(7.5em, 1fr));
    gap: 14px 12px;
}

.lk .lk-mt--rings .lk-mt-i {
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    text-align: center;
}

.lk .lk-mt--rings .lk-mt-v {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(var(--lk-meter-on, var(--lk-acc-ink)) var(--lk-v), transparent 0),
        radial-gradient(circle, transparent 59.5%, var(--lk-meter-edge, transparent) 60%, var(--lk-meter-edge, transparent) 64.5%, transparent 65%)
        var(--lk-meter-track, var(--lk-cell));
    -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
    mask: radial-gradient(circle, transparent 52%, #000 54%);
}

/* ── Contact details (look_contact) ───────────────────────── */

.lk .lk-page[data-lk-contact] .lk-ct {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 22px;
}

.lk .lk-page[data-lk-contact] .lk-ct li {
    flex-direction: row;
    gap: 8px;
    white-space: normal;
}

.lk .lk-page[data-lk-contact] .lk-ct li::after {
    content: none;
}

.lk .lk-page:is([data-lk-contact="stacked"], [data-lk-contact="badges"]) .lk-ct {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 9px;
}

.lk .lk-page[data-lk-contact="stacked"] .lk-ct .lk-i {
    width: 15px;
    height: 15px;
}

.lk .lk-page[data-lk-contact="badges"] .lk-ct li {
    gap: 12px;
}

.lk .lk-page[data-lk-contact="badges"] .lk-ct .lk-i {
    width: 28px;
    height: 24px;
    padding: 5px 7px;
    border-radius: 2px;
    background: var(--lk-chip-bg);
    color: var(--lk-chip-ink);
}

.lk .lk-page[data-lk-contact="strip"] .lk-ct {
    justify-content: space-between;
    padding-block: 10px;
    border-block: 1px solid var(--lk-line);
}

/* ── The name (look_name_*) ───────────────────────────────── */

.lk .lk-page[data-lk-name-size] .lk-name {
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.lk .lk-page[data-lk-name-size="regular"] .lk-name {
    font-size: 28px;
}

.lk .lk-page[data-lk-name-size="large"] .lk-name {
    font-size: 40px;
}

.lk .lk-page[data-lk-name-size="display"] .lk-name {
    font-size: 60px;
    font-weight: 800;
    line-height: 0.96;
}

.lk .lk-page[data-lk-name-case="caps"] .lk-name {
    text-transform: uppercase;
}

.lk .lk-page[data-lk-name-case="typed"] .lk-name {
    text-transform: none;
}

.lk .lk-page[data-lk-name-spacing="wide"] .lk-name {
    letter-spacing: 0.14em;
}

.lk .lk-page[data-lk-name-spacing="normal"] .lk-name {
    letter-spacing: -0.015em;
}

.lk .lk-page[data-lk-name-align="center"] .lk-profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lk .lk-page[data-lk-name-align="center"] .lk-profile .lk-photo {
    order: -1;
}

.lk .lk-page[data-lk-name-align="center"] .lk-profile-text {
    width: 100%;
}

.lk .lk-page[data-lk-name-align="center"] .lk-profile .lk-ct {
    justify-content: center;
    justify-items: center;
}

.lk .lk-page[data-lk-name-align="center"] .lk-profile .lk-bio {
    margin-inline: auto;
}

.lk .lk-page[data-lk-name-align="left"] .lk-profile:not(.lk-profile--narrow) {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
}

/* ── The photo (look_photo_*) ─────────────────────────────── */

.lk .lk-profile .lk-photo.lk-photo--rounded {
    border-radius: 22%;
}

.lk .lk-profile .lk-photo.lk-photo--arch {
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 0 0;
}

.lk .lk-page[data-lk-photo-ring="accent"] .lk-photo {
    outline: 3px solid var(--lk-mark);
    outline-offset: 4px;
}

.lk .lk-page[data-lk-photo-size="small"] .lk-profile .lk-photo {
    width: 88px;
    height: 88px;
}

.lk .lk-page[data-lk-photo-size="medium"] .lk-profile .lk-photo {
    width: 128px;
    height: 128px;
}

.lk .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
    width: 168px;
    height: 168px;
}

.lk .lk-page[data-lk-photo-size] .lk-profile .lk-photo.lk-photo--arch {
    height: auto;
}

/* ── The looks made of settings: fonts and spacing only ───── */

.lk--bold {
    --lk-font-head: Outfit, Inter, system-ui, sans-serif;
}

.lk--noir {
    --lk-font-head: Manrope, Inter, system-ui, sans-serif;
}

.lk--care {
    --lk-font-head: "DM Sans", Inter, system-ui, sans-serif;
}

.lk--editorial {
    --lk-font-head: Syne, Inter, system-ui, sans-serif;
    --lk-font-body: "DM Sans", Inter, system-ui, sans-serif;
}

.lk--bold .lk-name,
.lk--noir .lk-name,
.lk--care .lk-name,
.lk--editorial .lk-name {
    font-weight: 800;
}

@media (max-width: 767px) {
    .lk-page--band-main .lk-region--main > .lk-region--header.lk-paint {
        margin: -36px -20px 28px;
        padding: 28px 20px;
    }

    .lk-page--across > .lk-region--header {
        padding: 28px 20px;
    }

    .lk .lk-page[data-lk-name-size="regular"] .lk-name {
        font-size: 24px;
    }

    .lk .lk-page[data-lk-name-size="large"] .lk-name {
        font-size: 32px;
    }

    .lk .lk-page[data-lk-name-size="display"] .lk-name {
        font-size: 42px;
    }

    .lk .lk-page[data-lk-name-spacing="wide"] .lk-name {
        letter-spacing: 0.08em;
    }

    .lk .lk-page[data-lk-name-align="left"] .lk-profile:not(.lk-profile--narrow) {
        flex-direction: column;
    }

    .lk .lk-page[data-lk-photo-size] .lk-profile .lk-photo {
        width: 96px;
        height: 96px;
    }

    .lk .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
        width: 120px;
        height: 120px;
    }

    .lk .lk-page[data-lk-photo-size] .lk-profile .lk-photo.lk-photo--arch {
        height: auto;
    }

    .lk .lk-page[data-lk-contact="strip"] .lk-ct {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ══════════════════════════════════════════════════════════════
   Looks v3 (tickets/looks-v3.md): page tones, font pairs, cards,
   shapes and the new heading, job, skills, contact, name and photo
   values. Like the settings above, the page carries these only for a
   value other than the setting's first, so a look that doesn't use
   them never meets them.

   Colour settings are classes on .lk-page (lk-page--tone-<tone>,
   lk-page--card-<card>), so test_look_contrast computes them: the
   tone sets the page's paint and every text colour on it. A shape is
   --lk-shape, the fill mixed into the paint, light enough that every
   text colour keeps 4.5:1 over it (also tested).
   ══════════════════════════════════════════════════════════════ */

/* ── Page tones (look_tone) ───────────────────────────────── */

.lk-page--tone-paper,
.lk-page--tone-cream,
.lk-page--tone-grey,
.lk-page--tone-gradient,
.lk-page--tone-texture {
    --lk-acc-ink: color-mix(in srgb, var(--lk-acc) 86%, #000000);
    --lk-ink-2: #2b2f36;
    --lk-ink-mute: #4f555e;
    --lk-ink-faint: #575d66;
    --lk-chip-bg: rgba(22, 24, 29, 0.07);
    --lk-chip-ink: #2b2f36;
    --lk-line: rgba(22, 24, 29, 0.16);
    --lk-cell: rgba(22, 24, 29, 0.09);
    background: var(--lk-paint);
    color: var(--lk-ink);
}

.lk-page--tone-paper {
    --lk-paint: #f7f5f0;
}

.lk-page--tone-cream {
    --lk-paint: #f3ece0;
}

.lk-page--tone-grey {
    --lk-paint: #eef0f2;
}

/* The gradient's darkest stop is its paint (the text is checked on it):
   blue, pink and peach, as Karl Hallman's (looks v3 polish). */
.lk-page--tone-gradient {
    --lk-paint: #f3dcea;
    background: linear-gradient(155deg, #dce4fa 0%, #f3dcea 50%, #fadfca 100%);
}

/* Texture: a grey page with a faint paper grain (Sarah Wilson). The grain
   darkens the paint by 3 % at most; the text is checked on the paint. */
.lk-page--tone-texture {
    --lk-paint: #e4e3df;
    background-color: var(--lk-paint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.lk-page--tone-dark {
    --lk-paint: color-mix(in srgb, var(--lk-acc) 18%, #1b1917);
    --lk-ink: #ffffff;
    --lk-ink-2: rgba(255, 255, 255, 0.86);
    --lk-ink-mute: rgba(255, 255, 255, 0.76);
    --lk-ink-faint: rgba(255, 255, 255, 0.7);
    --lk-acc-ink: var(--lk-acc-light, color-mix(in srgb, var(--lk-acc) 30%, #ffffff));
    --lk-chip-bg: rgba(255, 255, 255, 0.1);
    --lk-chip-ink: #ffffff;
    --lk-line: rgba(255, 255, 255, 0.22);
    --lk-cell: rgba(255, 255, 255, 0.14);
    --cv-text-colour: #ffffff;
    background: var(--lk-paint);
    color: var(--lk-ink);
}

/* A shape behind the text (lk-page--shaped, look_shape; its colour is
   looks.shape_colour, in the page's style attribute): the text a step
   darker, so every text colour keeps 4.5:1 over it. */
.lk-page--shaped {
    --lk-ink-2: #2b2f36;
    --lk-ink-mute: #434851;
    --lk-ink-faint: #4a5059;
    --lk-acc-ink: color-mix(in srgb, var(--lk-acc) 70%, #000000);
}

.lk-page--tone-dark.lk-page--shaped {
    --lk-ink-2: rgba(255, 255, 255, 0.88);
    --lk-ink-mute: rgba(255, 255, 255, 0.8);
    --lk-ink-faint: rgba(255, 255, 255, 0.76);
    --lk-acc-ink: var(--lk-acc-light, color-mix(in srgb, var(--lk-acc) 30%, #ffffff));
}

/* A tinted sidebar or band on the dark page: a lighter shade of the dark,
   so the light text stays on it. */
.lk-page--tone-dark .lk-paint--tint {
    --lk-paint: color-mix(in srgb, var(--lk-acc) 30%, #2a2724);
    --lk-ink: #ffffff;
    --lk-ink-2: rgba(255, 255, 255, 0.86);
    --lk-ink-mute: rgba(255, 255, 255, 0.78);
    --lk-ink-faint: rgba(255, 255, 255, 0.72);
    --lk-acc-ink: var(--lk-acc-light, color-mix(in srgb, var(--lk-acc) 30%, #ffffff));
    --lk-chip-bg: rgba(255, 255, 255, 0.12);
    --lk-chip-ink: #ffffff;
    --lk-line: rgba(255, 255, 255, 0.22);
    --lk-cell: rgba(255, 255, 255, 0.14);
    --cv-text-colour: #ffffff;
}

/* The tone reaches the page's edges on the public page too. */
.lk:has(> .lk-page[class*="lk-page--tone-"]) {
    background: #eceae6;
}

/* ── Font pairs (look_font; looks.FONT_PAIRS) ─────────────── */

.lk .lk-page[data-lk-font] {
    font-family: var(--lk-font-body);
}

.lk .lk-page[data-lk-font="classic"] {
    --lk-font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lk .lk-page[data-lk-font="modern"] {
    --lk-font-head: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lk .lk-page[data-lk-font="poster"] {
    --lk-font-head: Anton, Impact, "Arial Narrow", sans-serif;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lk .lk-page[data-lk-font="grotesk"] {
    --lk-font-head: Archivo, Inter, system-ui, sans-serif;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lk .lk-page[data-lk-font="didone"] {
    --lk-font-head: "DM Serif Display", Georgia, serif;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lk .lk-page[data-lk-font="fatface"] {
    --lk-font-head: "Abril Fatface", "DM Serif Display", Georgia, serif;
    --lk-font-body: "DM Sans", Inter, system-ui, sans-serif;
}

.lk .lk-page[data-lk-font="geometric"] {
    --lk-font-head: Montserrat, Inter, system-ui, sans-serif;
    --lk-font-body: Montserrat, Inter, system-ui, sans-serif;
}

.lk .lk-page[data-lk-font="editorial"] {
    --lk-font-head: Syne, Inter, system-ui, sans-serif;
    --lk-font-body: "DM Sans", Inter, system-ui, sans-serif;
}

.lk .lk-page[data-lk-font="mono"] {
    --lk-font-head: "JetBrains Mono", ui-monospace, Menlo, monospace;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Faces with one weight are never drawn in a fake bold. */
.lk .lk-page:is([data-lk-font="poster"], [data-lk-font="didone"], [data-lk-font="fatface"]) :is(.lk-name, .lk-h) {
    font-weight: 400;
    font-synthesis: none;
}

.lk .lk-page:is([data-lk-font="poster"]) .lk-name {
    line-height: 0.92;
    letter-spacing: 0.005em;
}

/* ── Section cards (look_card) ────────────────────────────── */

/* The card's tint is looks.card_tint (the page's style attribute). */
.lk-page--card-tint .lk-blk {
    --lk-card-bg: var(--lk-card-tint);
}

/* In a painted sidebar or band the card keeps the paint and gets a line. */
.lk-page--card-tint .lk-paint .lk-blk {
    --lk-card-bg: var(--lk-paint);
}

.lk .lk-page.lk-page--card-tint .lk-paint .lk-blk:not(.lk-blk--profile_header, .lk-blk--line_break, .lk-blk--image) {
    box-shadow: inset 0 0 0 1.5px var(--lk-line);
}

.lk .lk-page:is(.lk-page--card-outline, .lk-page--card-tint) .lk-blk:not(.lk-blk--profile_header, .lk-blk--line_break, .lk-blk--image) {
    padding: 22px 24px;
    border-radius: 12px;
}

.lk .lk-page.lk-page--card-outline .lk-blk:not(.lk-blk--profile_header, .lk-blk--line_break, .lk-blk--image) {
    border: 1.5px solid var(--lk-line);
    box-shadow: inset 0 0 0 0.5px var(--lk-line);
}

.lk .lk-page.lk-page--card-tint .lk-blk:not(.lk-blk--profile_header, .lk-blk--line_break, .lk-blk--image) {
    background: var(--lk-card-bg);
}

/* ── Shapes (look_shape): behind the content, never over it ─
   The shape is an SVG image in its colour (--lk-shape-img and
   --lk-shape in .lk-page's style attribute, from looks.shape_colour), so
   the PDF prints it too. */

.lk .lk-page[data-lk-shape] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.lk .lk-page[data-lk-shape]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--lk-shape-img);
    background-repeat: no-repeat;
}

.lk .lk-page[data-lk-shape="circle"]::after {
    background-size: 420px 420px;
    background-position: right -110px top -90px;
}

.lk .lk-page[data-lk-shape="half"]::after {
    background-size: 640px 640px;
    background-position: left 20% top 150px;
}

.lk .lk-page[data-lk-shape="quarter"]::after {
    background-size: 480px 480px;
    background-position: right -240px bottom -240px;
}

.lk .lk-page[data-lk-shape="petals"]::after {
    background-image: var(--lk-shape-img), var(--lk-shape-img);
    background-size: 210px 210px, 240px 240px;
    background-position: left -70px top -70px, right -90px top -80px;
}

.lk .lk-page[data-lk-shape="bloom"]::after {
    background-size: 420px 420px;
    background-position: left -150px bottom -150px;
}

.lk .lk-page[data-lk-shape="burst"]::after {
    background-size: 300px 300px;
    background-position: right -60px top -60px;
}

/* ── Headings: highlight, icon, lower case ────────────────── */

.lk .lk-page[data-lk-heading="highlight"] .lk-blk > .lk-h {
    display: block;
    width: fit-content;
    padding: 3px 12px 2px;
    background: var(--lk-tab-bg, var(--lk-fill));
    color: var(--lk-tab-ink, var(--lk-fill-ink));
    font-size: 12px;
    letter-spacing: 0.28em;
}

.lk .lk-page[data-lk-heading="highlight"] .lk-paint .lk-blk > .lk-h {
    background: var(--lk-tab-bg, var(--lk-chip-bg));
    color: var(--lk-tab-ink, var(--lk-chip-ink));
}

.lk .lk-page[data-lk-heading="icon"] .lk-blk > .lk-h {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--lk-ink);
}

.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk > .lk-h::before {
    content: "";
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--lk-mark);
    background-image: var(--lk-ic-star);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk--work_experience > .lk-h::before {
    background-image: var(--lk-ic-case);
}

.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk--education > .lk-h::before {
    background-image: var(--lk-ic-cap);
}

.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk--professional_summary > .lk-h::before {
    background-image: var(--lk-ic-person);
}

.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk--contact_details > .lk-h::before,
.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk--links > .lk-h::before,
.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk--social_links > .lk-h::before {
    background-image: var(--lk-ic-link);
}

.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk--side_projects > .lk-h::before,
.lk .lk-page[data-lk-heading="icon"] .lk-region .lk-blk--certifications > .lk-h::before {
    background-image: var(--lk-ic-medal);
}

.lk .lk-page[data-lk-heading-case="lower"] .lk-region .lk-blk > .lk-h {
    text-transform: lowercase;
    letter-spacing: 0;
}

/* ── Jobs: dividers, date and place icons, the company ────── */

.lk .lk-page[data-lk-divider="line"] .lk-region .lk-list > .lk-item + .lk-item,
.lk .lk-page[data-lk-divider="dashed"] .lk-region .lk-list > .lk-item + .lk-item {
    padding-top: 16px;
    border-top: 1px solid var(--lk-line);
}

.lk .lk-page[data-lk-divider="dashed"] .lk-region .lk-list > .lk-item + .lk-item {
    border-top: 1.5px dashed var(--lk-line);
}

.lk .lk-page[data-lk-entry-icons="on"] :is(.lk-d, .lk-loc) .lk-i {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
    vertical-align: -1px;
}

.lk .lk-page[data-lk-entry-icons="on"] .lk-loc {
    white-space: nowrap;
}

.lk .lk-page[data-lk-company="accent"] .lk-region :is(.lk-co, .lk-edu > .lk-sub:first-of-type) {
    font-weight: 600;
    color: var(--lk-acc-ink);
}

/* ── Bullets: numbers ─────────────────────────────────────── */

.lk .lk-page[data-lk-marker="number"] .lk-ul {
    counter-reset: lk-n;
}

.lk .lk-page[data-lk-marker="number"] .lk-ul li {
    padding-left: 20px;
    counter-increment: lk-n;
}

.lk .lk-page[data-lk-marker="number"] .lk-region .lk-ul li::before {
    content: counter(lk-n) ".";
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    font-variant-numeric: tabular-nums;
    color: var(--lk-ink-mute);
}

/* ── Skills: segments, outlined chips ─────────────────────── */

/* As wide as its row on every look, like the bars. */
.lk .lk-mt--segments .lk-mt-i {
    display: grid;
    justify-content: normal;
    gap: 5px;
}

.lk .lk-mt--segments .lk-mt-v {
    height: 6px;
    background-color: var(--lk-meter-track, var(--lk-cell));
    background-image: linear-gradient(var(--lk-meter-on, var(--lk-acc-ink)), var(--lk-meter-on, var(--lk-acc-ink))),
        linear-gradient(var(--lk-meter-edge, transparent), var(--lk-meter-edge, transparent));
    background-repeat: no-repeat;
    background-position: 0 0, 0 50%;
    background-size: var(--lk-v) 100%, 100% 2px;
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 4px), transparent calc(10% - 4px) 10%);
    mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 4px), transparent calc(10% - 4px) 10%);
}

.lk .lk-page[data-lk-skills="outline"] .lk-region .lk-skl--chips .lk-sk {
    padding: 3px 10px;
    border-radius: 4px;
    background: none;
    box-shadow: inset 0 0 0 1.5px var(--lk-mark);
    font-weight: 600;
    color: var(--lk-ink);
}

/* ── Contact: icons, the foot band ────────────────────────── */

.lk .lk-page[data-lk-contact="icons"] .lk-ct {
    gap: 6px 22px;
}

.lk .lk-page[data-lk-contact="icons"] .lk-ct .lk-i {
    display: block;
    color: var(--lk-acc-ink);
}

.lk-foot {
    margin: var(--lk-gap-row) calc(-1 * var(--lk-pad-x)) calc(-1 * var(--lk-pad-bottom));
    padding: 18px var(--lk-pad-x);
}

.lk-page--filled > .lk-foot {
    margin: 0;
}

.lk .lk-ct--foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 30px;
}

.lk .lk-ct--foot .lk-i {
    color: var(--lk-ink);
}

/* ── The name: two-tone, a full stop ──────────────────────── */

.lk .lk-page[data-lk-name-style="two-tone"] .lk-name .lk-name-2 {
    color: var(--lk-ink-mute);
}

.lk .lk-page[data-lk-name-style="dot"] .lk-name::after {
    content: ".";
    color: var(--lk-acc-ink);
}

/* ── The photo: portrait, filters, frames ─────────────────── */

.lk .lk-profile .lk-photo.lk-photo--portrait,
.lk .lk-page[data-lk-photo-size] .lk-profile .lk-photo.lk-photo--portrait {
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 0;
}

.lk .lk-svgdefs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.lk .lk-page[data-lk-photo-filter="mono"] .lk-photo {
    filter: grayscale(1) contrast(1.05);
}

.lk .lk-page[data-lk-photo-frame="disc"] .lk-profile .lk-photo {
    margin: 26px 34px 0 0;
    box-shadow: 30px -22px 0 26px var(--lk-fill);
}

.lk .lk-page[data-lk-photo-frame="overlap"] .lk-region--header.lk-paint {
    padding-bottom: 0;
}

.lk .lk-page[data-lk-photo-frame="overlap"] .lk-region--header.lk-paint .lk-profile {
    align-items: flex-start;
}

.lk .lk-page[data-lk-photo-frame="overlap"] .lk-region--header.lk-paint .lk-photo {
    position: relative;
    z-index: 1;
    margin-bottom: -110px;
}

.lk .lk-page[data-lk-photo-frame="overlap"] .lk-region--header.lk-paint .lk-profile-text {
    padding-bottom: 34px;
}

.lk .lk-page[data-lk-photo-frame="overlap"] .lk-region--header.lk-paint + .lk-body {
    margin-top: 150px;
}

.lk .lk-photo-box {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lk .lk-photo-box .lk-photo-title {
    margin: 0;
    padding: 7px 16px;
    border-radius: 8px;
    background: var(--lk-fill);
    font-size: 15px;
    text-align: center;
    color: var(--lk-fill-ink);
}

.lk .lk-page[data-lk-name-align="center"] .lk-profile .lk-photo-box,
.lk .lk-profile--narrow .lk-photo-box {
    order: -1;
}

/* ── The eight looks of v3: their fonts and a name rule each ─ */

.lk--campus {
    --lk-font-head: Archivo, Inter, system-ui, sans-serif;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lk--poster {
    --lk-font-head: Anton, Impact, "Arial Narrow", sans-serif;
    --lk-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lk--counsel {
    --lk-font-head: "DM Serif Display", Georgia, serif;
}

.lk--stack {
    --lk-font-head: Archivo, Inter, system-ui, sans-serif;
}

/* Michael Stanford's wide geometric capitals (looks v3 polish). */
.lk--atelier {
    --lk-font-head: Syne, Inter, system-ui, sans-serif;
}

.lk--mocha {
    --lk-font-head: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.lk--bloom {
    --lk-font-head: "Abril Fatface", "DM Serif Display", Georgia, serif;
    --lk-font-body: "DM Sans", Inter, system-ui, sans-serif;
}

.lk--paper {
    --lk-font-head: Montserrat, Inter, system-ui, sans-serif;
    --lk-font-body: Montserrat, Inter, system-ui, sans-serif;
}

.lk:is(.lk--campus, .lk--stack, .lk--atelier) .lk-name {
    font-weight: 800;
}

/* Faces with one weight (Anton, DM Serif Display, Abril Fatface). */
.lk:is(.lk--poster, .lk--counsel, .lk--bloom) .lk-page .lk-region :is(.lk-name, .lk-blk > .lk-h) {
    font-weight: 400;
    font-synthesis: none;
}

.lk--poster .lk-page .lk-name {
    line-height: 0.92;
    color: var(--lk-acc-ink);
}

.lk:is(.lk--paper, .lk--mocha) .lk-page .lk-name {
    font-weight: 300;
}

/* ══════════════════════════════════════════════════════════════
   Looks v3 polish (tickets/looks-v3-polish.md, item 40): the new
   values and settings first, then each of the eight looks' type
   scale and signature, as a block per look (.lk--<look>). The new
   values come after a setting's first one, and the per-look blocks
   name the eight looks only, so the six looks and Bold, Noir, Care
   and Editorial never meet these rules.
   ══════════════════════════════════════════════════════════════ */

/* ── Headings: large, heavy rule ──────────────────────────── */

.lk .lk-page[data-lk-heading="display"] .lk-blk > .lk-h {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--lk-acc-ink);
}

.lk .lk-page[data-lk-heading="heavy"] .lk-blk > .lk-h {
    margin-bottom: 10px;
    padding-bottom: 3px;
    border-bottom: 3px solid var(--lk-ink);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--lk-ink);
}

/* ── Skills: lines, bars beside the names, compact ────────── */

.lk .lk-mt--lines {
    gap: 12px 36px;
}

.lk .lk-mt--lines .lk-mt-i,
.lk .lk-mt--inline .lk-mt-i {
    display: grid;
    justify-content: normal;
    gap: 6px;
}

.lk .lk-mt--lines .lk-mt-v {
    height: 3px;
    background-color: var(--lk-meter-track, var(--lk-cell));
    background-image: linear-gradient(var(--lk-meter-on, var(--lk-ink-2)), var(--lk-meter-on, var(--lk-ink-2))),
        linear-gradient(var(--lk-meter-edge, transparent), var(--lk-meter-edge, transparent));
    background-repeat: no-repeat;
    background-position: 0 0, 0 50%;
    background-size: var(--lk-v) 100%, 100% 1px;
}

.lk .lk-mt--inline .lk-mt-i {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 18px;
}

.lk .lk-mt--inline .lk-mt-v {
    height: 13px;
    padding: 2px;
    border: 1.5px solid var(--lk-meter-edge, var(--lk-ink));
    background-image: linear-gradient(var(--lk-meter-on, var(--lk-ink)), var(--lk-meter-on, var(--lk-ink)));
    background-repeat: no-repeat;
    background-origin: content-box;
    background-clip: content-box;
    background-size: var(--lk-v) 100%;
}

@container (min-width: 420px) {
    .lk .lk-mt--lines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Ten skills or more (lk_compact): two columns and shorter marks. */
.lk .lk-mt--compact:not(.lk-mt--rings) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.lk .lk-mt--compact .lk-mt-i {
    font-size: 12.5px;
}

.lk .lk-mt--compact:is(.lk-mt--dots, .lk-mt--squares) .lk-mt-i {
    display: grid;
    justify-items: start;
    gap: 4px;
}

.lk .lk-mt--compact:is(.lk-mt--bars, .lk-mt--segments) .lk-mt-v {
    height: 5px;
}

.lk .lk-mt--compact.lk-mt--inline .lk-mt-i {
    grid-template-columns: minmax(0, 1fr) 40%;
    gap: 10px;
}

.lk .lk-mt--compact.lk-mt--inline .lk-mt-v {
    height: 9px;
}

/* ── Contact: pills, round badges ─────────────────────────── */

.lk .lk-page[data-lk-contact="pills"] .lk-ct {
    gap: 10px 12px;
    color: var(--lk-ink-2);
}

.lk .lk-page[data-lk-contact="pills"] .lk-ct li {
    padding: 6px 18px;
    border: 1.5px solid var(--lk-ink-mute);
    border-radius: 10px;
}

.lk .lk-page[data-lk-contact="pills"] .lk-ct .lk-i {
    display: none;
}

.lk .lk-page[data-lk-contact="circles"] .lk-ct {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 12px;
}

.lk .lk-page[data-lk-contact="circles"] .lk-ct li {
    gap: 14px;
}

.lk .lk-page[data-lk-contact="circles"] .lk-ct .lk-i {
    width: 32px;
    height: 32px;
    padding: 7px;
    border: 1.5px solid var(--lk-mark);
    border-radius: 50%;
    color: var(--lk-acc-ink);
}

/* The foot band's label (_contact_foot.html). */
.lk .lk-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 40px;
}

.lk .lk-foot-h {
    font-family: var(--lk-font-head);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.lk .lk-foot .lk-ct--foot {
    flex: 1 1 auto;
    justify-content: space-between;
}

/* ── The name: poster size, word a line, colour block, accent ─ */

/* The name's size follows the width it has (its column is a size
   container, so it stretches rather than shrinking to its content). */
.lk .lk-page[data-lk-name-size="poster"] .lk-profile-text {
    container-type: inline-size;
    align-self: stretch;
}

.lk .lk-page[data-lk-name-size="poster"] .lk-name {
    font-size: 128px;
    font-size: clamp(48px, 27cqi, 176px);
    line-height: 0.86;
}

.lk .lk-page[data-lk-name-lines="stack"] .lk-name .lk-name-w {
    display: block;
}

.lk .lk-page[data-lk-name-lines="stack"][data-lk-name-style="dot"] .lk-name::after {
    content: none;
}

.lk .lk-page[data-lk-name-lines="stack"][data-lk-name-style="dot"] .lk-name .lk-name-w:last-child::after {
    content: ".";
    color: var(--lk-acc-ink);
}

/* A block of the fill behind the name's first letters (Sarah Wilson):
   --lk-block is looks.block_colour, under the name's own ink. */
.lk .lk-page[data-lk-name-style="block"] .lk-name {
    position: relative;
    z-index: 0;
    isolation: isolate;
}

.lk .lk-page[data-lk-name-style="block"] .lk-name::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -0.14em;
    top: -0.5em;
    width: 1.3em;
    height: calc(100% + 0.62em);
    background: var(--lk-block, var(--lk-fill));
}

.lk .lk-page[data-lk-name-style="accent"] .lk-name .lk-name-x {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--lk-acc-ink);
}

/* ── Header: right, ruled, title, the line above the name ─── */

/* The contact column is as wide as its longest item and the name and
   title take the rest, so a long title wraps before a contact item folds
   (item 51, resume 815). */
.lk .lk-page[data-lk-name-align="right"] .lk-profile-text {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 36px;
    align-items: center;
}

.lk .lk-page[data-lk-name-align="right"] .lk-profile-text > * {
    grid-column: 1 / -1;
}

.lk .lk-page[data-lk-name-align="right"] .lk-profile-text > :is(.lk-eyebrow, .lk-name, .lk-title) {
    grid-column: 2;
    text-align: right;
}

.lk .lk-page[data-lk-name-align="right"] .lk-profile-text > .lk-ct {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin-top: 0;
}

.lk .lk-page[data-lk-name-align="rule"] .lk-profile-text {
    padding: 2px 0 6px 28px;
    border-left: 1.5px solid var(--lk-ink-2);
}

.lk .lk-page[data-lk-title="caps"] .lk-title {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.lk .lk-eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--lk-acc-ink);
}

/* ── The photo: left, the round badge ─────────────────────── */

.lk .lk-page[data-lk-photo-side="start"]:not([data-lk-name-align="center"]) .lk-profile:not(.lk-profile--narrow) {
    flex-direction: row-reverse;
}

.lk .lk-photo-box--badge {
    position: relative;
    flex: none;
}

.lk .lk-badge {
    position: absolute;
    top: -44px;
    right: -40px;
    width: 128px;
    height: 128px;
    overflow: visible;
    font-family: var(--lk-font-body);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    fill: var(--lk-acc-ink);
    pointer-events: none;
}

/* ── Page: one card on the jobs, a line between the columns ─ */

.lk .lk-page.lk-page--card-jobs .lk-blk--work_experience {
    padding: 26px 28px;
    border: 1.5px solid var(--lk-ink-mute);
    border-radius: 12px;
}

@media (min-width: 768px) {
    .lk .lk-page[data-lk-col-rule="line"].lk-page--split:not(.lk-page--filled).lk-page--side-right .lk-region--side {
        padding-left: 34px;
        border-left: 2px solid var(--lk-mark);
    }

    .lk .lk-page[data-lk-col-rule="line"].lk-page--split:not(.lk-page--filled).lk-page--side-left .lk-region--side {
        padding-right: 34px;
        border-right: 2px solid var(--lk-mark);
    }
}

/* ── The band: soft, half ─────────────────────────────────── */

/* Soft: the fill at a fifth on white, dark text on it (Rachelle
   Beaudry's pink band; --lk-soft is looks.soft_paint). */
.lk-paint--soft {
    --lk-paint: var(--lk-soft, #ffffff);
    --lk-ink: #16181d;
    --lk-ink-2: #2b2f36;
    --lk-ink-mute: #4a5059;
    --lk-ink-faint: #4f555e;
    --lk-acc-ink: color-mix(in srgb, var(--lk-acc) 80%, #000000);
    --lk-chip-bg: rgba(22, 24, 29, 0.07);
    --lk-chip-ink: #2b2f36;
    --lk-line: rgba(22, 24, 29, 0.16);
    --lk-cell: rgba(22, 24, 29, 0.09);
    --cv-text-colour: #16181d;
}

/* Petals on the band too (the page's own are under its paint). */
.lk .lk-page[data-lk-shape="petals"] > .lk-region--header.lk-paint {
    background-image: var(--lk-shape-img), var(--lk-shape-img);
    background-repeat: no-repeat;
    background-size: 250px 250px, 290px 290px;
    background-position: left -96px top -104px, right -112px top -122px;
}

/* Half (Michael Stanford): the band's paint behind the name and title
   only (.lk-namebox), out to the page's top and left edges; the contact
   details on the light half. */
.lk-page--band-half {
    padding-top: 0;
}

.lk .lk-namebox {
    margin: 0 0 0 calc(-1 * var(--lk-pad-x));
    padding: 56px 36px 40px var(--lk-pad-x);
}

.lk .lk-namebox .lk-title {
    margin-top: 12px;
}

@media (min-width: 768px) {
    .lk .lk-page--band-half .lk-profile:not(.lk-profile--narrow) {
        display: grid;
        grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
        gap: 0 32px;
        align-items: start;
    }

    .lk .lk-page--band-half .lk-profile:not(.lk-profile--narrow) > .lk-profile-text {
        display: contents;
    }

    .lk .lk-page--band-half .lk-profile:not(.lk-profile--narrow) .lk-namebox {
        grid-column: 1;
        grid-row: 1;
    }

    .lk .lk-page--band-half .lk-profile:not(.lk-profile--narrow) .lk-ct {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-items: end;
        margin-top: 0;
        text-align: right;
    }

    .lk .lk-page--band-half .lk-profile:not(.lk-profile--narrow) .lk-ct li {
        flex-direction: row-reverse;
    }

    .lk .lk-page--band-half .lk-profile:not(.lk-profile--narrow) .lk-bio {
        grid-column: 1 / -1;
    }

    .lk .lk-page--band-half .lk-profile:not(.lk-profile--narrow) > :is(.lk-photo, .lk-photo-box) {
        grid-column: 1;
        grid-row: 2;
        margin-top: 24px;
    }

    /* The portrait over the block's lower edge, in the sidebar's place: the
       header ends with the block and the sidebar starts under the photo. */
    .lk .lk-page--band-half[data-lk-photo-frame="overlap"] .lk-profile:not(.lk-profile--narrow) > .lk-photo {
        --lk-ph: var(--lk-half-photo, 220px);
        width: var(--lk-ph);
        height: calc(var(--lk-ph) * 4 / 3);
        margin: -30px 0 calc(var(--lk-ph) * -4 / 3 + 30px);
    }

    .lk .lk-page--band-half[data-lk-photo-frame="overlap"].lk-page--side-left:has(.lk-region--header .lk-profile--photo) .lk-region--side,
    .lk .lk-page--band-half[data-lk-photo-frame="overlap"].lk-page--side-right:has(.lk-region--header .lk-profile--photo) .lk-region--main {
        padding-top: calc(var(--lk-half-photo, 220px) * 4 / 3 - 30px - var(--lk-gap-row) + 40px);
    }
}

/* ── Campus (Karl Hallman) ────────────────────────────────── */

.lk--campus {
    --lk-text: 14px;
    --lk-gap-row: 40px;
}

.lk--campus .lk-page[data-lk-name-size] .lk-name {
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--lk-ink-mute);
    font-size: 66px;
    line-height: 0.95;
    letter-spacing: -0.01em;
}

.lk--campus .lk-page .lk-profile-text {
    display: flex;
    flex-direction: column;
}

.lk--campus .lk-page .lk-profile-text > .lk-bio {
    order: 2;
    max-width: 56ch;
    margin-top: 18px;
    font-size: 14.5px;
}

.lk--campus .lk-page .lk-profile-text > .lk-ct {
    order: 3;
    margin-top: 22px;
    font-size: 13.5px;
}

.lk--campus .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
    width: 210px;
    height: 210px;
}
.lk--campus .lk-page .lk-profile .lk-photo.lk-photo--square {
    border-radius: 4px;
}

.lk--campus .lk-page .lk-photo-box .lk-photo-title {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
}

.lk--campus .lk-page[data-lk-heading] .lk-blk > .lk-h {
    font-size: 23px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--lk-ink);
}

.lk--campus .lk-page .lk-it {
    font-size: 16.5px;
    font-weight: 500;
}

.lk--campus .lk-page :is(.lk-sub, .lk-d) {
    font-size: 14px;
    color: var(--lk-ink-2);
}

.lk--campus .lk-page .lk-skl--columns .lk-sk {
    font-size: 14.5px;
}

/* ── Poster (Chris Smithton) ──────────────────────────────── */

.lk--poster {
    --lk-text: 13.5px;
}

/* Every word in the accent, as the reference's one blue. */
.lk--poster .lk-page {
    --lk-ink: var(--lk-acc-ink);
    --lk-ink-2: var(--lk-acc-ink);
    --lk-ink-mute: var(--lk-acc-ink);
    --lk-ink-faint: var(--lk-acc-ink);
}

.lk.lk--poster .lk-page[data-lk-heading] .lk-region .lk-blk > .lk-h {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

.lk--poster .lk-page .lk-it {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lk--poster .lk-page .lk-sub {
    font-size: 12.5px;
    font-style: italic;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.lk--poster .lk-page .lk-d {
    font-size: 13px;
    line-height: 1.3;
}

.lk--poster .lk-page .lk-region--side .lk-prose {
    font-size: 16px;
    line-height: 1.5;
}

.lk--poster .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
    width: 210px;
    height: 210px;
}
.lk--poster .lk-page .lk-profile .lk-photo.lk-photo--square {
    border-radius: 0;
}

.lk--poster .lk-page .lk-mt--bars {
    gap: 14px;
}

.lk--poster .lk-page .lk-mt--bars .lk-mt-v {
    height: 11px;
    background-color: var(--lk-meter-track, rgba(255, 255, 255, 0.9));
    box-shadow: inset 0 0 0 1px var(--lk-meter-edge, transparent);
}

.lk--poster .lk-foot {
    padding-block: 22px;
}

.lk--poster .lk-foot-h {
    font-size: 30px;
    font-weight: 400;
}

/* ── Counsel (Yuna Park) ──────────────────────────────────── */

.lk--counsel {
    --lk-text: 15px;
    --lk-gap-row: 22px;
}

.lk--counsel .lk-page[data-lk-name-size] .lk-name {
    font-size: 68px;
    line-height: 0.98;
    letter-spacing: -0.01em;
}

.lk--counsel .lk-page .lk-title {
    color: var(--lk-ink-2);
}

.lk--counsel .lk-page .lk-ct {
    margin-top: 20px;
    font-size: 13.5px;
}

/* Labels in spaced capitals of the body face, a rule across between
   sections. */
.lk.lk--counsel .lk-page[data-lk-heading] .lk-region .lk-blk > .lk-h {
    font-family: var(--lk-font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.lk--counsel .lk-page .lk-region--main > .lk-blk:not(.lk-blk--profile_header),
.lk--counsel .lk-page .lk-region--main > .lk-row {
    padding-top: 22px;
    border-top: 1px solid var(--lk-line);
}

.lk--counsel .lk-page .lk-region--header + .lk-body {
    margin-top: 34px;
}

.lk--counsel .lk-page .lk-job .lk-it {
    font-family: var(--lk-font-head);
    font-size: 19px;
    font-weight: 400;
}

.lk--counsel .lk-page :is(.lk-sub, .lk-d) {
    font-size: 13.5px;
}

/* Key figures (item 38) as Yuna Park's: serif values in the ink, each
   closed by the name's accent full stop. */
.lk--counsel .lk-page .lk-kf {
    gap: 14px 44px;
}

.lk--counsel .lk-page .lk-kf-i {
    flex: 0 1 auto;
}

.lk--counsel .lk-page .lk-kf-v {
    font-size: 30px;
    font-weight: 400;
    color: var(--lk-ink);
}

.lk--counsel .lk-page[data-lk-name-style="dot"] .lk-kf-v::after {
    content: ".";
    color: var(--lk-acc-ink);
}

.lk--counsel .lk-page[data-lk-photo-frame="disc"] .lk-profile .lk-photo {
    width: 210px;
    height: 210px;
    margin: 78px 100px 0 0;
    box-shadow: 58px -48px 0 56px var(--lk-fill);
}

/* ── Stack (Ruby Gibson) ──────────────────────────────────── */

.lk--stack {
    --lk-text: 13px;
    --lk-gap-row: 26px;
    --lk-gap-stack: 24px;
    --lk-gap-col: 32px;
    --lk-pad-top: 48px;
}

.lk--stack .lk-page[data-lk-name-size] .lk-name {
    font-size: 36px;
    letter-spacing: 0.005em;
}

.lk--stack .lk-page .lk-title {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
}

.lk--stack .lk-page .lk-ct {
    margin-top: 10px;
    font-size: 13px;
}

.lk--stack .lk-page .lk-list > * + * {
    margin-top: 12px;
}

.lk--stack .lk-page .lk-it {
    font-size: 15px;
}

/* Achievements (item 38) as Ruby Gibson's: the icon in the accent, no
   disc, a dashed line between them as between jobs. */
.lk--stack .lk-page .lk-ach-ic {
    width: 22px;
    height: 22px;
    background: none;
}

.lk--stack .lk-page .lk-ach-ic .lk-i {
    width: 20px;
    height: 20px;
}

.lk--stack .lk-page .lk-ach-b {
    padding-top: 1px;
}

.lk--stack .lk-page[data-lk-divider="dashed"] .lk-ach > .lk-ach-i + .lk-ach-i {
    padding-top: 12px;
    border-top: 1.5px dashed color-mix(in srgb, var(--lk-ink) 32%, transparent);
}

.lk--stack .lk-page[data-lk-divider="dashed"] .lk-region .lk-list > .lk-item + .lk-item {
    padding-top: 14px;
    border-top-color: color-mix(in srgb, var(--lk-ink) 32%, transparent);
}

.lk--stack .lk-page .lk-ul li {
    line-height: 1.5;
}

.lk--stack .lk-page .lk-ul li + li {
    margin-top: 1px;
}

/* ── Atelier (Michael Stanford) ───────────────────────────── */

.lk--atelier {
    --lk-text: 13.5px;
    --lk-half-photo: 230px;
}

.lk.lk--atelier .lk-page[data-lk-name-size] .lk-name {
    font-size: 46px;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0.01em;
}

.lk--atelier .lk-page[data-lk-title] .lk-title {
    font-size: 13px;
    letter-spacing: 0.14em;
}

.lk--atelier .lk-page .lk-ct {
    font-size: 13.5px;
    color: var(--lk-ink-2);
}

.lk.lk--atelier .lk-page[data-lk-heading] .lk-region .lk-blk > .lk-h {
    font-size: 13px;
    letter-spacing: 0.06em;
}

.lk--atelier .lk-page .lk-it {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Bloom (Rachelle Beaudry) ─────────────────────────────── */

.lk--bloom {
    --lk-text: 14px;
}

.lk--bloom .lk-page > .lk-region--header.lk-paint {
    padding-block: 120px 48px;
}

.lk--bloom .lk-page[data-lk-name-size] .lk-name {
    font-size: 64px;
    line-height: 0.98;
    letter-spacing: 0;
}

.lk--bloom .lk-page[data-lk-title] .lk-title {
    font-size: 17px;
    letter-spacing: 0.24em;
}

.lk--bloom .lk-page .lk-ct {
    font-size: 14.5px;
}

.lk.lk--bloom .lk-page[data-lk-heading] .lk-region .lk-blk > .lk-h {
    font-size: 21px;
}

/* Flower badges: the round icon cut into a flower. */
.lk--bloom .lk-page[data-lk-heading="icon"] .lk-region .lk-blk > .lk-h::before {
    width: 38px;
    height: 38px;
    background-size: 18px 18px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Ccircle cx='50' cy='22' r='22'/%3E%3Ccircle cx='50' cy='78' r='22'/%3E%3Ccircle cx='22' cy='50' r='22'/%3E%3Ccircle cx='78' cy='50' r='22'/%3E%3Ccircle cx='30' cy='30' r='22'/%3E%3Ccircle cx='70' cy='30' r='22'/%3E%3Ccircle cx='30' cy='70' r='22'/%3E%3Ccircle cx='70' cy='70' r='22'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 100 100'%3E%3Cg%3E%3Ccircle cx='50' cy='22' r='22'/%3E%3Ccircle cx='50' cy='78' r='22'/%3E%3Ccircle cx='22' cy='50' r='22'/%3E%3Ccircle cx='78' cy='50' r='22'/%3E%3Ccircle cx='30' cy='30' r='22'/%3E%3Ccircle cx='70' cy='30' r='22'/%3E%3Ccircle cx='30' cy='70' r='22'/%3E%3Ccircle cx='70' cy='70' r='22'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.lk--bloom .lk-page .lk-it {
    font-size: 15px;
    font-weight: 600;
}

.lk--bloom .lk-page .lk-mt--bars {
    gap: 14px;
}

.lk--bloom .lk-page .lk-mt--bars .lk-mt-i {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 7px;
}

.lk--bloom .lk-page .lk-mt--bars .lk-mt-n {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lk-acc-ink);
}

.lk--bloom .lk-page .lk-mt--bars .lk-mt-v {
    height: 7px;
    background-image: linear-gradient(var(--lk-meter-on, var(--lk-fill, var(--lk-acc-ink))), var(--lk-meter-on, var(--lk-fill, var(--lk-acc-ink))));
    box-shadow: inset 0 0 0 1px var(--lk-meter-edge, transparent);
}

/* ── Paper (Sarah Wilson) ─────────────────────────────────── */

.lk--paper {
    --lk-text: 13.5px;
}

.lk--paper .lk-page {
    box-shadow: inset 0 6px 0 var(--lk-fill, transparent);
}

.lk--paper .lk-page[data-lk-name-size] .lk-name {
    font-size: 60px;
    line-height: 1.04;
    letter-spacing: 0.1em;
}

.lk--paper .lk-page[data-lk-title] .lk-title {
    margin-top: 18px;
    font-size: 14px;
    font-weight: 400;
    color: var(--lk-ink-mute);
}

.lk--paper .lk-page .lk-profile:not(.lk-profile--narrow) {
    justify-content: flex-end;
    align-items: center;
    gap: 56px;
}

.lk--paper .lk-page .lk-profile .lk-profile-text {
    flex: 0 1 60%;
}

.lk--paper .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
    width: 180px;
    height: 180px;
}

.lk--paper .lk-page[data-lk-heading] .lk-blk > .lk-h {
    margin-bottom: 16px;
    padding: 4px 22px 3px 14px;
    font-size: 12.5px;
}

.lk--paper .lk-page .lk-it {
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Mocha (Sophie Bennett) ───────────────────────────────── */

.lk--mocha {
    --lk-text: 14px;
}

.lk--mocha .lk-page[data-lk-name-size] .lk-name {
    font-size: 84px;
    line-height: 0.94;
    letter-spacing: -0.03em;
}

.lk--mocha .lk-page .lk-title {
    margin-top: 14px;
    font-size: 16px;
}

.lk--mocha .lk-page .lk-ct {
    margin-top: 28px;
    font-size: 16px;
    color: var(--lk-ink);
}

.lk--mocha .lk-page[data-lk-heading] .lk-blk > .lk-h {
    margin-bottom: 16px;
    font-size: 27px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--lk-ink);
}

.lk--mocha .lk-page .lk-it {
    font-size: 15.5px;
    font-weight: 500;
}

.lk--mocha .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
    width: 330px;
}

.lk--mocha .lk-page .lk-skl--columns {
    columns: 1;
}

/* ── Phones ───────────────────────────────────────────────── */

@media (max-width: 767px) {
    .lk .lk-page:is([data-lk-photo-frame="badge"], [data-lk-photo-frame="title"]) .lk-profile .lk-photo-box {
        order: -1;
    }

    /* Stacked on a phone: the photo above the name, whichever side. */
    .lk .lk-page[data-lk-photo-side="start"]:not([data-lk-name-align="center"]) .lk-profile:not(.lk-profile--narrow) {
        flex-direction: column;
    }

    /* The half band: the block first, then the photo, then the contact. */
    .lk .lk-page--band-half .lk-profile > .lk-profile-text {
        display: contents;
    }

    .lk .lk-page--band-half .lk-profile > .lk-profile-text > .lk-ct {
        order: 2;
        margin-top: 0;
    }

    .lk .lk-page--band-half .lk-profile > :is(.lk-photo, .lk-photo-box) {
        order: 1;
    }

    .lk .lk-badge {
        top: -24px;
        right: -18px;
        width: 88px;
        height: 88px;
    }

    .lk .lk-page[data-lk-name-align="right"] .lk-profile-text {
        display: block;
    }

    .lk .lk-page[data-lk-name-align="right"] .lk-profile-text > .lk-ct {
        margin-top: 20px;
    }

    .lk .lk-page[data-lk-name-align="rule"] .lk-profile-text {
        padding-left: 18px;
    }

    .lk .lk-page[data-lk-title="caps"] .lk-title {
        letter-spacing: 0.2em;
    }

    .lk .lk-foot .lk-ct--foot {
        justify-content: flex-start;
    }

    .lk .lk-namebox {
        margin-right: calc(-1 * var(--lk-pad-x));
        padding: 40px var(--lk-pad-x) 30px;
    }

    .lk--campus .lk-page[data-lk-name-size] .lk-name {
        font-size: 44px;
    }

    .lk--counsel .lk-page[data-lk-name-size] .lk-name {
        font-size: 48px;
    }

    .lk--counsel .lk-page[data-lk-photo-frame="disc"] .lk-profile .lk-photo {
        width: 120px;
        height: 120px;
        margin: 40px 50px 0 0;
        box-shadow: 30px -26px 0 28px var(--lk-fill);
    }

    .lk.lk--poster .lk-page[data-lk-heading] .lk-region .lk-blk > .lk-h {
        font-size: 24px;
    }

    .lk--poster .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
        width: 150px;
        height: 150px;
    }

    .lk--stack .lk-page[data-lk-name-size] .lk-name {
        font-size: 30px;
    }

    .lk--atelier .lk-page[data-lk-name-size] .lk-name {
        font-size: 38px;
    }

    .lk--bloom .lk-page > .lk-region--header.lk-paint {
        padding-block: 96px 32px;
    }

    .lk--bloom .lk-page[data-lk-name-size] .lk-name {
        font-size: 46px;
    }

    .lk--paper .lk-page[data-lk-name-size] .lk-name {
        font-size: 40px;
    }

    .lk--paper .lk-page .lk-profile .lk-profile-text {
        flex: none;
    }

    .lk--paper .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
        width: 120px;
        height: 120px;
    }

    .lk--mocha .lk-page[data-lk-name-size] .lk-name {
        font-size: 50px;
    }

    .lk--mocha .lk-page[data-lk-photo-size="large"] .lk-profile .lk-photo {
        width: 160px;
    }
}

@media (max-width: 767px) {
    .lk .lk-page[data-lk-shape="circle"]::after {
        background-size: 240px 240px;
        background-position: right -80px top -60px;
    }

    .lk .lk-page[data-lk-shape="half"]::after {
        background-size: 460px 460px;
        background-position: left -10px top 220px;
    }

    .lk .lk-page[data-lk-shape="quarter"]::after {
        background-size: 320px 320px;
        background-position: right -160px bottom -160px;
    }

    .lk .lk-page[data-lk-shape="petals"]::after {
        background-size: 140px 140px, 160px 160px;
        background-position: left -50px top -50px, right -60px top -60px;
    }

    .lk .lk-page:is(.lk-page--card-outline, .lk-page--card-tint) .lk-blk:not(.lk-blk--profile_header, .lk-blk--line_break, .lk-blk--image) {
        padding: 18px;
    }

    .lk .lk-page[data-lk-photo-frame="disc"] .lk-profile .lk-photo {
        margin: 18px 24px 0 0;
        box-shadow: 18px -14px 0 16px var(--lk-fill);
    }

    .lk .lk-page[data-lk-photo-frame="overlap"] .lk-region--header.lk-paint .lk-photo {
        margin-bottom: -60px;
    }

    .lk .lk-page[data-lk-photo-frame="overlap"] .lk-region--header.lk-paint + .lk-body {
        margin-top: 90px;
    }

    .lk .lk-ct--foot {
        justify-content: flex-start;
        gap: 8px 20px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Marks on dark and coloured areas (tickets/look-editor-glitches.md,
   item 51). Everything drawn on a dark area (a dark sidebar or band,
   the dark page tone) or a solid one (the fill) reaches 3:1 against
   it: heading rules, the timeline's line, the Bar, Pill and Highlight
   headings (in the area's ink, with the area's paint as their text),
   every meter (the filled part, the empty track and its edge) and the
   icon headings' glyphs. The rules that draw them read these custom
   properties first and fall back to their own colours, so the light
   areas draw as before. apps/cv/tests/test_look_contrast.py computes
   them.
   ══════════════════════════════════════════════════════════════ */

/* The icon headings' glyphs, white and dark; an area picks one set. */
.lk {
    --lk-ic-star-w: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.5 6.7 19.4l1.2-6L3.4 9.3l6-.7z'/%3E%3C/svg%3E");
    --lk-ic-star-d: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.6 6 .7-4.5 4.1 1.2 6L12 16.5 6.7 19.4l1.2-6L3.4 9.3l6-.7z'/%3E%3C/svg%3E");
    --lk-ic-case-w: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V4h6v3M3 12h18'/%3E%3C/svg%3E");
    --lk-ic-case-d: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M9 7V4h6v3M3 12h18'/%3E%3C/svg%3E");
    --lk-ic-cap-w: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2.5 9 2.5 12 0v-5'/%3E%3C/svg%3E");
    --lk-ic-cap-d: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2.5 9 2.5 12 0v-5'/%3E%3C/svg%3E");
    --lk-ic-person-w: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
    --lk-ic-person-d: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
    --lk-ic-link-w: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E");
    --lk-ic-link-d: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4.5 4.5 0 0 0 6.4 0l3-3a4.5 4.5 0 0 0-6.4-6.4l-1 1M14 10a4.5 4.5 0 0 0-6.4 0l-3 3a4.5 4.5 0 0 0 6.4 6.4l1-1'/%3E%3C/svg%3E");
    --lk-ic-medal-w: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5'/%3E%3Cpath d='M9 13.5L7.5 21l4.5-2.5 4.5 2.5L15 13.5'/%3E%3C/svg%3E");
    --lk-ic-medal-d: url("data:image/svg+xml,%3Csvg xmlns='http://www%2Ew3%2Eorg/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5'/%3E%3Cpath d='M9 13.5L7.5 21l4.5-2.5 4.5 2.5L15 13.5'/%3E%3C/svg%3E");
}

.lk-page,
.lk-paint {
    --lk-ic-ink: #ffffff;
    --lk-ic-star: var(--lk-ic-star-w);
    --lk-ic-case: var(--lk-ic-case-w);
    --lk-ic-cap: var(--lk-ic-cap-w);
    --lk-ic-person: var(--lk-ic-person-w);
    --lk-ic-link: var(--lk-ic-link-w);
    --lk-ic-medal: var(--lk-ic-medal-w);
}

/* A light badge (the accent's light ink on a dark area, a light fill as
   the marks, a dark fill's white ink on its solid area): dark glyphs. */
.lk-paint--dark,
.lk-page--tone-dark,
.lk-page--tone-dark .lk-paint--tint,
.lk-page--mark-fill:not(.lk-page--ink-white),
.lk-page--mark-fill:not(.lk-page--ink-white) .lk-paint--tint {
    --lk-ic-ink: #16181d;
    --lk-ic-star: var(--lk-ic-star-d);
    --lk-ic-case: var(--lk-ic-case-d);
    --lk-ic-cap: var(--lk-ic-cap-d);
    --lk-ic-person: var(--lk-ic-person-d);
    --lk-ic-link: var(--lk-ic-link-d);
    --lk-ic-medal: var(--lk-ic-medal-d);
}

/* Dark areas: rules and the timeline in the faint ink, meters in the
   accent's ink with an edge on the empty part, bars and pills in the
   accent's ink. */
.lk-paint--dark,
.lk-page--tone-dark,
.lk-page--tone-dark .lk-paint--tint {
    --lk-rule: var(--lk-ink-faint);
    --lk-timeline: var(--lk-ink-faint);
    --lk-timeline-alpha: 1;
    --lk-meter-on: var(--lk-acc-ink);
    --lk-meter-edge: var(--lk-acc-ink);
    --lk-meter-track: var(--lk-cell);
    --lk-tab-bg: var(--lk-acc-ink);
    --lk-tab-ink: var(--lk-paint);
}

/* A look whose marks are its fill keeps them in the fill on a dark area
   (Bold's yellow rules), at full strength. */
.lk-page--mark-fill .lk-paint--dark,
.lk-page--mark-fill.lk-page--tone-dark,
.lk-page--mark-fill.lk-page--tone-dark .lk-paint--tint {
    --lk-rule: var(--lk-mark);
    --lk-timeline: var(--lk-mark);
}

/* Solid: the fill's ink for every mark, its line colour (looks.fill_line,
   3:1) for rules, the soft fill for the tracks. */
.lk-page .lk-paint--solid {
    --lk-line: var(--lk-fill-line, var(--lk-fill-soft));
    --lk-cell: var(--lk-fill-soft);
    --lk-rule: var(--lk-fill-line, var(--lk-fill-ink));
    --lk-timeline: var(--lk-fill-line, var(--lk-fill-ink));
    --lk-timeline-alpha: 1;
    --lk-meter-on: var(--lk-fill-ink);
    --lk-meter-edge: var(--lk-fill-ink);
    --lk-meter-track: var(--lk-fill-soft);
    --lk-tab-bg: var(--lk-fill-ink);
    --lk-tab-ink: var(--lk-fill);
    --lk-ic-ink: #ffffff;
    --lk-ic-star: var(--lk-ic-star-w);
    --lk-ic-case: var(--lk-ic-case-w);
    --lk-ic-cap: var(--lk-ic-cap-w);
    --lk-ic-person: var(--lk-ic-person-w);
    --lk-ic-link: var(--lk-ic-link-w);
    --lk-ic-medal: var(--lk-ic-medal-w);
}

.lk-page--ink-white .lk-paint--solid {
    --lk-ic-ink: #16181d;
    --lk-ic-star: var(--lk-ic-star-d);
    --lk-ic-case: var(--lk-ic-case-d);
    --lk-ic-cap: var(--lk-ic-cap-d);
    --lk-ic-person: var(--lk-ic-person-d);
    --lk-ic-link: var(--lk-ic-link-d);
    --lk-ic-medal: var(--lk-ic-medal-d);
}

/* A soft band is light: on the dark page tone it keeps its own marks,
   and on a look whose marks are its fill they take the accent instead
   (the fill on the fill's own wash would not show). */
.lk-page--tone-dark .lk-paint--soft {
    --lk-rule: initial;
    --lk-timeline: initial;
    --lk-timeline-alpha: initial;
    --lk-meter-edge: initial;
    --lk-meter-track: initial;
    --lk-tab-bg: initial;
    --lk-tab-ink: initial;
}

.lk-paint--soft,
.lk-page--mark-fill .lk-paint--soft {
    --lk-ic-ink: #ffffff;
    --lk-ic-star: var(--lk-ic-star-w);
    --lk-ic-case: var(--lk-ic-case-w);
    --lk-ic-cap: var(--lk-ic-cap-w);
    --lk-ic-person: var(--lk-ic-person-w);
    --lk-ic-link: var(--lk-ic-link-w);
    --lk-ic-medal: var(--lk-ic-medal-w);
}

.lk-page--mark-fill .lk-paint--soft {
    --lk-mark: var(--lk-acc-ink);
    --lk-rule: var(--lk-acc-ink);
}

/* A meter on the soft band fills in the accent's ink (Bloom's bars are
   its fill elsewhere). */
.lk-paint--soft {
    --lk-meter-on: var(--lk-acc-ink);
}

/* On a dark area of a look whose marks are its fill, the chips are the
   fill too: an achievement's icon takes the chip's ink. */
.lk-page--mark-fill .lk-paint--dark {
    --lk-ach-ink: var(--lk-chip-ink);
}

.lk .lk-page .lk-ach-ic {
    color: var(--lk-ach-ink, var(--lk-acc-ink));
}

/* A name wraps at spaces only, never inside a word ("MARCU S"); a word
   wider than its column makes the name smaller (static/js/look_fit.js)
   instead. On screens only: the Multi-column PDF (print) runs no script, so
   there a word too long for its column still breaks. */
@media screen {
    .lk .lk-page .lk-region .lk-name {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }
}

/* Item 38: new section types ─────────────────────────────────
   Key figures, Achievements and References (tickets/new-section-types.md),
   drawn by templates/cv/look/sections/_key_figures.html, _achievements.html
   and _references.html. Track A's block: the rest of this file is the
   looks' own. Colours are the look's custom properties only (the contrast
   test reads them), so the headings, accent, fills and page tone carry over;
   flex, not grid, so the Multi-column PDF (WeasyPrint) prints it the same. */
.lk .lk-kf {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
}
.lk .lk-kf-i {
    flex: 1 1 110px;
    min-width: 0;
}
.lk .lk-kf-v {
    font-family: var(--lk-font-head);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--lk-acc-ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.lk .lk-kf-l {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--lk-ink-mute);
}
.lk .lk-ach > * + * {
    margin-top: 14px;
}
.lk .lk-ach-i {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.lk .lk-ach-ic {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--lk-chip-bg);
    color: var(--lk-acc-ink);
}
.lk .lk-ach-ic .lk-i {
    width: 16px;
    height: 16px;
}
.lk .lk-ach-b {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 4px;
}
.lk .lk-ach .lk-it {
    font-size: 14px;
}
.lk .lk-ach-t {
    margin-top: 2px;
    font-size: var(--lk-text);
    line-height: 1.5;
    color: var(--lk-ink-2);
}
.lk .lk-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
}
.lk .lk-refs > .lk-ref {
    flex: 1 1 200px;
    min-width: 0;
    margin-top: 0;
}
.lk .lk-ref .lk-it {
    font-size: 14px;
}
.lk .lk-ref-c {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--lk-ink-faint);
}
.lk .lk-ref-req {
    font-size: var(--lk-text);
    color: var(--lk-ink-2);
}
