/* ============================================================
   ronde-resume-2.css: the Ronde resume's content, resume-ronde.html
   ------------------------------------------------------------
   Loaded after ronde-resume.css, which gives this page its tokens,
   the fixed header, the white page that scrolls on its own
   (.resume-paper) and the pull-up PDF tab. This file is only the
   content inside that page (.r2-*): a main column of two thirds and
   a margin column of one third, the contact page's dark tile with
   its halftone sphere, work history as a ledger of rows that open,
   education as white cards that open, and skills as two widget cards
   of pills. Drawings:
   js/rondeResume2.js.
   Rules: docs/rondeDesignRules.md and docs/halftoneInkElement.md.
   Nothing here animates on load.
   ============================================================ */

/* Tokens the contact page has and ronde-resume.css does not. */
:root {
    --rh-card: #fff;
    --rh-primary-hover: #34363b;
    --rh-on-ink-line: rgba(255, 255, 255, .26);
    --rh-ultramarine: #3B2E9E;
    --rh-lift-shadow: 0 6px 14px rgba(17, 18, 20, .04), 0 18px 36px rgba(17, 18, 20, .08);
}

.r2-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px 32px calc(72px + var(--corner));
}

/* The page's grid: every block is two columns of main and one of margin,
   the same thirds as the contact page's cards. */
.r2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 14px;
}

.r2-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ── Hero: title and summary, with two facts in the margin ── */
.r2-hero { align-items: end; }
.r2-hero__main { grid-column: 1 / 3; }

.r2-title {
    margin-top: 8px;
    font-size: clamp(46px, 5.6vw, 68px);
    font-weight: 400;
    line-height: 1.04;
}

/* The page's one accent, as on the home page's name and the contact title. */
.r2-title b { font-weight: 400; color: var(--rh-ultramarine); }

.r2-sub {
    max-width: 540px;
    margin-top: 16px;
    color: var(--rh-text-2);
    font-size: 17px;
    line-height: 1.6;
}

.r2-facts { grid-column: 3; }

.r2-fact {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.r2-fact + .r2-fact { border-top: 1px solid var(--rh-line); }

.r2-fact dt {
    color: var(--rh-text-2);
    font-size: 14px;
}

.r2-fact dd {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.r2-fact svg { flex: 0 0 auto; }

.r2-fact__link {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .2s;
}

.r2-fact__link:hover { opacity: .7; }

/* ── Second row: the contact page's dark tile and resume card. The tile
   is 40px taller than there, all of it added at the top: the sphere is
   placed from the bottom edge, so it is cut off exactly as on the contact
   page and has more room above it. ── */
.r2-more { margin-top: 40px; }

/* The dark tile: ink background, so it turns light in dark mode like the
   current tab. Label on top, question and pills at the bottom, and a
   halftone sphere running off its right and bottom edges. */
.r2-ask {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 224px;
    grid-column: span 2;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 20px 22px 22px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--rh-ink);
    color: var(--rh-bg);
    box-shadow: var(--rh-panel-shadow);
}

.r2-ask :focus-visible { outline-color: var(--rh-bg); }

/* rondeResume2.js draws the sphere to fill this box, in its text colour. */
.r2-ask__orb {
    position: absolute;
    right: -46px;
    bottom: -102px;
    width: 268px;
    height: 268px;
    opacity: .8;
    pointer-events: none;
}

.r2-ask__orb canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.r2-ask__label {
    position: relative;
    color: var(--rh-on-ink-2);
    font-size: 14px;
}

.r2-ask__body { position: relative; }

.r2-ask__title {
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: 1.15;
}

.r2-ask__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    list-style: none;
}

/* Pills: outlines that fill on hover. Each jumps to a section below, so
   its arrow points down. */
.r2-topic {
    display: inline-flex;
    height: 40px;
    align-items: center;
    gap: 9px;
    padding: 0 15px 0 18px;
    border: 1px solid var(--rh-on-ink-line);
    border-radius: 999px;
    font-size: 15px;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.r2-topic .icon {
    font-size: 13px;
    opacity: .7;
    transform: rotate(90deg);
    transition: transform .3s var(--rh-ease), opacity .2s;
}

body.rh .r2-topic:hover {
    border-color: var(--rh-bg);
    background: var(--rh-bg);
    color: var(--rh-ink);
}

.r2-topic:hover .icon { opacity: 1; transform: translateY(2px) rotate(90deg); }
.r2-topic:active { transform: scale(.96); }

/* The resume card (RDL widget: icon circle top left, action circles top
   right, label and value at the bottom). The link's ::after covers the
   whole card, so a click anywhere raises the PDF; the download circle sits
   above that layer. The link comes first in the HTML; order puts the icon
   row on top. */
.r2-card {
    --r2-radius: 28px;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 184px;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 20px 22px 22px;
    border: 1px solid var(--rh-line);
    border-radius: var(--r2-radius);
    background: var(--rh-card);
    box-shadow: var(--rh-panel-shadow);
    transition: transform .25s var(--rh-ease), box-shadow .25s var(--rh-ease);
}

.r2-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rh-lift-shadow);
}

.r2-card__top {
    display: flex;
    order: -1;
    align-items: center;
    gap: 8px;
}

.r2-card__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-right: auto;
    border: 1px solid var(--rh-line-strong);
    border-radius: 50%;
    font-size: 18px;
}

.r2-card__link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.r2-card__link::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: var(--r2-radius);
    content: '';
}

.r2-card__link:focus-visible { outline: none; }

.r2-card__link:focus-visible::after {
    outline: 2px solid var(--rh-ink);
    outline-offset: 3px;
}

.r2-card__label {
    color: var(--rh-text-2);
    font-size: 14px;
}

.r2-card__value {
    font-size: clamp(17px, 1.65vw, 20px);
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.25;
}

/* The year beside "Full resume": smaller and greyer, like a unit. */
.r2-card__value small {
    margin-left: 2px;
    color: var(--rh-muted);
    font-size: .7em;
    font-weight: 400;
    letter-spacing: 0;
}

/* An outline action circle that fills on hover. */
body.rh .r2-card__go {
    width: 40px;
    height: 40px;
    border: 1px solid var(--rh-line-strong);
    background: var(--rh-card);
    color: var(--rh-ink);
    font-size: 15px;
    transition: background .2s, color .2s, border-color .2s;
}

body.rh .r2-card__go .icon { transition: transform .3s var(--rh-ease); }
.r2-card:hover .r2-card__go .icon { transform: translateY(-2px); }

body.rh .r2-card:hover .r2-card__go {
    border-color: var(--rh-ink);
    background: var(--rh-ink);
    color: var(--rh-bg);
}

/* Small circle buttons: download the PDF, copy the email. */
.r2-copy {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rh-line-strong);
    border-radius: 50%;
    background: var(--rh-card);
    font-size: 15px;
    transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.r2-copy--small {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

body.rh .r2-copy:hover {
    border-color: var(--rh-ink);
    background: var(--rh-ink);
    color: var(--rh-bg);
}

.r2-copy:active { transform: scale(.94); }
.r2-copy[hidden] { display: none; }
.r2-copy.is-done .icon { --icon: var(--icon-check); }

/* ── Sections: heading and content in the main column, a count and a
   figure in the margin. ── */
.r2-section { margin-top: 96px; }
.r2-section:focus { outline: none; }

.r2-section__head {
    display: flex;
    grid-column: 1 / 3;
    grid-row: 1;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 22px;
}

.r2-h2 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.r2-caption {
    max-width: 370px;
    color: var(--rh-text-2);
    font-size: 15px;
    line-height: 1.55;
}

.r2-ledger,
.r2-kit {
    grid-column: 1 / 3;
    grid-row: 2;
}

/* The margin column lines up with the text inside the resume card above. */
.r2-side {
    grid-column: 3;
    grid-row: 1 / 3;
    padding-left: 22px;
}

/* A flipped section (skills) mirrors the others: its count and figure in
   the first column, its heading and content in the other two, the same 22px
   kept clear on the side facing the content. */
.r2-section--flip .r2-section__head,
.r2-section--flip .r2-ledger,
.r2-section--flip .r2-kit { grid-column: 2 / 4; }
.r2-section--flip .r2-side { grid-column: 1; padding: 0 22px 0 0; }

/* Work history's count and solar system stay in view while its rows
   scroll by. */
#r2-work .r2-side__pin {
    position: sticky;
    top: 32px;
}

/* A number as the headline, with a short grey label beside it. */
.r2-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.r2-count strong {
    font-size: clamp(40px, 4.4vw, 52px);
    font-weight: 400;
    line-height: .86;
    letter-spacing: -.02em;
}

.r2-count span {
    color: var(--rh-text-2);
    font-size: 14px;
}

/* The count again as a halftone figure, one ball per item, drawn by
   rondeResume2.js to fill the box in its text colour (the same painter as
   the sphere and the solar system). Skills: the languages in a ring round
   a trefoil of the AI and tools, three balls melted together. Education:
   the two schools melted into a pair on a slanted orbit, the open one
   larger with its bullets as moons round it (it needs the taller box).
   --r2-accent: the ink a ball takes while its chip, row or bullet is under
   the pointer, the figure's only colour. */
.r2-motif {
    --r2-accent: var(--rh-ultramarine);
    position: relative;
    margin-top: 22px;
    color: var(--rh-ink);
}

.r2-motif canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.r2-motif--skills { width: min(100%, 236px); aspect-ratio: 1; }

/* The skills canvas runs --r2-bleed past its box on every side, so a
   hovered ball's smoke isn't cut off at the edges; rondeResume2.js still
   lays the figure out by the box. Whole pixels, so the dots land as they
   would in the box. (A canvas doesn't stretch between insets, hence the
   sizes.) */
.r2-motif--skills { --r2-bleed: 28px; }

.r2-motif--skills canvas {
    inset: calc(var(--r2-bleed) * -1);
    width: calc(100% + 2 * var(--r2-bleed));
    height: calc(100% + 2 * var(--r2-bleed));
    pointer-events: none;
}

/* Each skill's colour, one per ball in the chips' order, shown while its
   chip is hovered (and on the chip's dot). A language's ball
   (--r2-lang-N) takes tiger streaks in a darker shade of it
   (rondeResume2.js works that out): deep mystical stones, emerald, ember,
   sapphire, moonstone, amethyst, alchemist's gold, orchid. An AI and tools
   ball (--r2-tool-N: red, green, blue) becomes a small intro ball, its
   highlights in gold (--r2-tool-glint). */
#r2-skills {
    --r2-lang-1: #137A57;
    --r2-lang-2: #B8441A;
    --r2-lang-3: #2A4FB8;
    --r2-lang-4: #1B7F8C;
    --r2-lang-5: #6A3FD0;
    --r2-lang-6: #B07F0E;
    --r2-lang-7: #A8337A;
    --r2-tool-1: #B3202E;
    --r2-tool-2: #1D8040;
    --r2-tool-3: #2443B8;
    --r2-tool-glint: #E0AA1A;
}

#r2-skills .r2-kit__group:first-child .r2-chip:nth-child(1) { --r2-chip-ink: var(--r2-lang-1); }
#r2-skills .r2-kit__group:first-child .r2-chip:nth-child(2) { --r2-chip-ink: var(--r2-lang-2); }
#r2-skills .r2-kit__group:first-child .r2-chip:nth-child(3) { --r2-chip-ink: var(--r2-lang-3); }
#r2-skills .r2-kit__group:first-child .r2-chip:nth-child(4) { --r2-chip-ink: var(--r2-lang-4); }
#r2-skills .r2-kit__group:first-child .r2-chip:nth-child(5) { --r2-chip-ink: var(--r2-lang-5); }
#r2-skills .r2-kit__group:first-child .r2-chip:nth-child(6) { --r2-chip-ink: var(--r2-lang-6); }
#r2-skills .r2-kit__group:first-child .r2-chip:nth-child(7) { --r2-chip-ink: var(--r2-lang-7); }
#r2-skills .r2-kit__group:nth-child(2) .r2-chip:nth-child(1) { --r2-chip-ink: var(--r2-tool-1); }
#r2-skills .r2-kit__group:nth-child(2) .r2-chip:nth-child(2) { --r2-chip-ink: var(--r2-tool-2); }
#r2-skills .r2-kit__group:nth-child(2) .r2-chip:nth-child(3) { --r2-chip-ink: var(--r2-tool-3); }
.r2-motif--edu { width: min(100%, 268px); aspect-ratio: 1.45; }

/* rondeResume2.js draws the solar system to fill this box, in its text
   colour and all in dots: a halftone sun, a smaller halftone ball per role
   and their six slanted orbits as thin bands of fine dots. aspect-ratio is the
   outermost orbit's box plus room for a planet (the script's layout() has
   the sum; change them together). The box starts a little in from the column's left edge, well clear
   of the rows, and runs right into the page's padding. --r2-ink-1 to 6: the
   ink each role's planet takes while its role is active, the drawing's
   only colour, in the rows' order from the innermost orbit out (the
   halftone palette, docs/halftoneInkElement.md; yellow deepened to show
   on white). */
.r2-orbit {
    --r2-ink-1: #3B2E9E;
    --r2-ink-2: #D9479C;
    --r2-ink-3: #3FB3E3;
    --r2-ink-4: #E0482B;
    --r2-ink-5: #EDBE1C;
    --r2-ink-6: #3DA73C;
    position: relative;
    aspect-ratio: 1.59;
    margin: 22px -28px 0 28px;
    /* 50px further right, eased off on narrower windows so the box keeps
       clear of the window edge (0 once the page fills the window). */
    translate: clamp(0px, 50vw - 580px, 50px) 0;
    color: var(--rh-ink);
}

/* A planet has been picked with the pointer: a click opens its row. */
.r2-orbit.is-live { cursor: pointer; }

.r2-orbit canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Ledger: rows on hairlines. The whole top line of a row is one button
   that opens it. ── */
.r2-ledger {
    border-top: 1px solid var(--rh-line);
    list-style: none;
}

.r2-row { border-bottom: 1px solid var(--rh-line); }
.r2-row__head { font: inherit; }

.r2-row__btn {
    display: grid;
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr) auto 36px;
    align-items: center;
    column-gap: 16px;
    padding: 18px 0;
    border: 0;
    border-radius: 14px;
    background: none;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

/* The ring sits outside the row, clear of its number and circle. */
.r2-row__btn:focus-visible { outline-offset: 4px; }

.r2-row__num {
    color: var(--rh-muted);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    transition: color .2s;
}

.r2-row__main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.r2-row__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.r2-row__org {
    color: var(--rh-text-2);
    font-size: 15px;
}

/* The role's type after its employer, a step greyer, behind a small dot. */
.r2-row__org i {
    color: var(--rh-muted);
    font-style: normal;
}

.r2-row__org i::before {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 8px 0 5px;
    border-radius: 50%;
    background: currentColor;
    content: '';
    vertical-align: middle;
}

.r2-row__date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rh-text-2);
    font-size: 14px;
    white-space: nowrap;
}

/* "Present": the green live signal, used once on the page. */
.r2-live {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--rh-green);
}

/* Plus in a circle; open, its upright bar lies down into a minus and the
   circle goes solid. */
.r2-row__toggle {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--rh-line-strong);
    border-radius: 50%;
    transition: background .2s, color .2s, border-color .2s;
}

.r2-row__toggle::before,
.r2-row__toggle::after {
    position: absolute;
    width: 12px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    content: '';
    transition: transform .3s var(--rh-ease);
}

.r2-row__toggle::after { transform: rotate(90deg); }
.r2-row.is-open .r2-row__toggle::after { transform: none; }

/* .is-lit: the row's planet is the one picked in the drawing. */
.r2-row__btn:hover .r2-row__num,
.r2-row.is-lit .r2-row__num,
.r2-row.is-open .r2-row__num { color: var(--rh-ink); }

.r2-row__btn:hover .r2-row__toggle,
.r2-row.is-lit .r2-row__toggle,
.r2-row.is-open .r2-row__toggle {
    border-color: var(--rh-ink);
    background: var(--rh-ink);
    color: var(--rh-bg);
}

/* The body opens by growing its one grid row. Closed rows are collapsed
   only with scripts on (html.js, set in the head by homeDesign.js), so the
   closed state is there on first paint and nothing moves on load; without
   scripts every row is simply open. */
.r2-row__body {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows .35s var(--rh-ease), visibility 0s;
}

.r2-row__clip {
    min-height: 0;
    overflow: hidden;
}

.r2-row__content { padding: 2px 52px 26px 50px; }

html.js .r2-row:not(.is-open) .r2-row__body {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .35s var(--rh-ease), visibility 0s .35s;
}

.r2-points {
    display: grid;
    gap: 8px;
    color: var(--rh-text-2);
    font-size: 16px;
    line-height: 1.6;
    list-style: none;
}

.r2-points li {
    position: relative;
    padding-left: 20px;
}

.r2-points li::before {
    position: absolute;
    top: .7em;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rh-line-strong);
    content: '';
}

.r2-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 20px;
    padding-left: 20px;
}

.r2-stat strong {
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
}

.r2-stat span {
    color: var(--rh-text-2);
    font-size: 14px;
}

/* ── Skills: two widget cards side by side (RDL bento), each a label
   and its count over its skills as soft filled pills. A pill's dot is its
   ball in the margin's figure. ── */
.r2-kit {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
}

.r2-kit__group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 22px;
    padding: 20px 22px 22px;
    border: 1px solid var(--rh-line);
    border-radius: 28px;
    background: var(--rh-card);
    box-shadow: var(--rh-panel-shadow);
}

/* Label top left, the count large top right, like the resume card's
   label and value. */
.r2-kit__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.r2-kit__label {
    padding-top: 4px;
    color: var(--rh-text-2);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.r2-kit__count {
    font-size: 40px;
    line-height: .86;
    letter-spacing: -.02em;
}

/* "of 10" beside the count: smaller and greyer, like a unit. */
.r2-kit__count small {
    margin-left: 4px;
    color: var(--rh-muted);
    font-size: 14px;
    letter-spacing: 0;
}

.r2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

/* Soft filled pills, no outline: white on off-white, inverted. Hover
   darkens the fill and the dot takes its ball's colour (--r2-chip-ink,
   each skill's own; otherwise the accent). */
.r2-chip {
    display: inline-flex;
    height: 40px;
    align-items: center;
    gap: 9px;
    padding: 0 16px 0 13px;
    border-radius: 999px;
    background: var(--rh-fill);
    font-size: 15px;
    white-space: nowrap;
    transition: background .2s;
}

.r2-chip::before {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--rh-ink);
    content: '';
    transition: background .2s, scale .25s var(--rh-ease);
}

@media (hover: hover) {
    .r2-chip:hover { background: var(--rh-line-strong); }

    .r2-chip:hover::before {
        background: var(--r2-chip-ink, var(--rh-ultramarine));
        scale: 1.35;
    }
}

/* ── Education: the RDL resume pattern, a vertical list of white cards.
   Each is a number in a circle, the school and its town, the date as a
   small grey pill and the open circle; it opens inside its card. ── */
.r2-ledger--cards {
    display: grid;
    gap: 12px;
    border-top: 0;
}

.r2-ledger--cards .r2-row {
    border: 1px solid var(--rh-line);
    border-radius: 24px;
    background: var(--rh-card);
    box-shadow: var(--rh-panel-shadow);
    transition: box-shadow .25s var(--rh-ease), transform .25s var(--rh-ease);
}

@media (hover: hover) {
    .r2-ledger--cards .r2-row:hover {
        transform: translateY(-2px);
        box-shadow: var(--rh-lift-shadow);
    }
}

.r2-ledger--cards .r2-row__btn {
    grid-template-columns: 40px minmax(0, 1fr) auto 36px;
    column-gap: 16px;
    padding: 16px 16px 16px 18px;
    border-radius: 24px;
}

.r2-ledger--cards .r2-row__num {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--rh-line-strong);
    border-radius: 50%;
    font-size: 13px;
    transition: color .2s, border-color .2s;
}

.r2-ledger--cards .r2-row__btn:hover .r2-row__num,
.r2-ledger--cards .r2-row.is-open .r2-row__num { border-color: var(--rh-ink); }

.r2-ledger--cards .r2-row__date {
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--rh-fill);
    color: var(--rh-text-2);
    font-size: 13px;
}

/* The points line up with the school's name, over a hairline. */
.r2-ledger--cards .r2-row__content { padding: 0 24px 22px 74px; }

.r2-ledger--cards .r2-points {
    padding-top: 16px;
    border-top: 1px solid var(--rh-line);
}

/* ── Narrower than the three columns need. The hero and the second row
   stack. Sections keep their two columns, with a fixed margin column, and
   a row's date moves under its employer to leave the title room. ── */
@media (max-width: 1020px) {
    .r2-hero,
    .r2-more { grid-template-columns: minmax(0, 1fr); }

    .r2-hero__main,
    .r2-facts { grid-column: auto; }

    .r2-facts { margin-top: 20px; }
    .r2-more { row-gap: 14px; }
    .r2-ask { min-height: 208px; grid-column: auto; }
    .r2-card { min-height: 0; gap: 20px; }

    .r2-section {
        grid-template-columns: minmax(0, 1fr) 280px;
        column-gap: 32px;
    }

    .r2-section__head {
        grid-column: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .r2-ledger,
    .r2-kit { grid-column: 1; }

    .r2-side { grid-column: 2; padding-left: 0; }
    .r2-orbit { margin: 22px -24px 0 20px; translate: none; }

    .r2-section--flip { grid-template-columns: 280px minmax(0, 1fr); }
    .r2-section--flip .r2-section__head,
    .r2-section--flip .r2-ledger,
    .r2-section--flip .r2-kit { grid-column: 2; }
    .r2-section--flip .r2-side { grid-column: 1; padding: 0; }
    .r2-kit { grid-template-columns: minmax(0, 1fr); gap: 12px; }

    .r2-row__btn {
        grid-template-columns: 30px minmax(0, 1fr) 36px;
        grid-template-areas:
            "num main toggle"
            ".   date .";
        row-gap: 6px;
    }

    .r2-row__num { grid-area: num; align-self: start; padding-top: 5px; }
    .r2-row__main { grid-area: main; }
    .r2-row__date { grid-area: date; }
    .r2-row__toggle { grid-area: toggle; align-self: start; }
    .r2-row__content { padding: 0 0 24px 46px; }

    /* Cards: the date pill moves under the town, the points stay in line
       with the name. */
    .r2-ledger--cards .r2-row__btn { grid-template-columns: 40px minmax(0, 1fr) 36px; }
    .r2-ledger--cards .r2-row__num { padding-top: 0; }
    .r2-ledger--cards .r2-row__date { justify-self: start; margin-top: 4px; }
    .r2-ledger--cards .r2-row__content { padding: 0 20px 22px 74px; }
}

/* ── Phones: one column. A section is its heading, then its count beside
   its figure, then its content. ── */
@media (max-width: 760px) {
    .r2-page { padding: 24px 16px calc(56px + var(--corner)); }
    .r2-sub { font-size: 16px; }
    .r2-more { row-gap: 12px; margin-top: 28px; }
    .r2-ask { min-height: 0; gap: 84px; padding: 18px 18px 20px; border-radius: 24px; }
    /* The sphere moves up into the top right corner, clear of the pills. */
    .r2-ask__orb { top: -58px; right: -52px; bottom: auto; width: 190px; height: 190px; }
    .r2-card { --r2-radius: 24px; padding: 18px 18px 20px; }
    .r2-card__value { font-size: 18px; }

    .r2-section { grid-template-columns: minmax(0, 1fr); margin-top: 72px; }
    .r2-section__head { grid-column: auto; grid-row: auto; order: -2; gap: 10px; margin-bottom: 18px; }
    .r2-side { grid-column: auto; grid-row: auto; order: -1; margin-bottom: 22px; }
    .r2-ledger, .r2-kit { grid-column: auto; grid-row: auto; }
    .r2-section--flip .r2-section__head,
    .r2-section--flip .r2-ledger,
    .r2-section--flip .r2-kit,
    .r2-section--flip .r2-side { grid-column: auto; }

    .r2-side__pin,
    #r2-work .r2-side__pin {
        position: static;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
    }

    .r2-motif { margin-top: 0; }
    .r2-motif--skills { --r2-bleed: 16px; width: 132px; }
    .r2-motif--edu { width: 176px; }
    .r2-orbit { width: min(320px, 72%); margin: 0 -8px 0 0; translate: none; }

    .r2-row__btn { grid-template-columns: 26px minmax(0, 1fr) 36px; column-gap: 12px; padding: 16px 0; }
    .r2-row__num { padding-top: 4px; }
    .r2-row__title { font-size: 18px; }
    .r2-row__content { padding: 0 0 22px 38px; }
    .r2-points { font-size: 15px; }

    .r2-kit__group { gap: 18px; padding: 18px 18px 20px; border-radius: 24px; }
    .r2-kit__count { font-size: 32px; }

    .r2-ledger--cards { gap: 10px; }
    .r2-ledger--cards .r2-row { border-radius: 22px; }
    .r2-ledger--cards .r2-row__btn { grid-template-columns: 36px minmax(0, 1fr) 36px; column-gap: 12px; padding: 14px; border-radius: 22px; }
    .r2-ledger--cards .r2-row__num { width: 36px; height: 36px; }
    .r2-ledger--cards .r2-row__content { padding: 0 16px 20px 62px; }
}

@media (prefers-reduced-motion: reduce) {
    .r2-topic,
    .r2-topic .icon,
    .r2-card,
    .r2-copy,
    .r2-fact__link,
    .r2-row__num,
    .r2-row__toggle,
    .r2-row__toggle::before,
    .r2-row__toggle::after,
    .r2-ledger--cards .r2-row,
    .r2-chip,
    .r2-chip::before,
    body.rh .r2-card__go,
    body.rh .r2-card__go .icon { transition: none; }
    .r2-card:hover,
    .r2-ledger--cards .r2-row:hover { transform: none; }
    .r2-row__body,
    html.js .r2-row:not(.is-open) .r2-row__body { transition: none; }
}

/* Dark: the same rules inverted (ronde-resume.css turns its own tokens). */
@media (prefers-color-scheme: dark) {
    :root {
        --rh-card: #17181b;
        --rh-primary-hover: #d9d9dc;
        --rh-on-ink-line: rgba(17, 18, 20, .24);
        --rh-ultramarine: #8f86e8;
        --rh-lift-shadow: 0 8px 22px rgba(0, 0, 0, .4);
    }

    /* On near-black: the skills' colours a little brighter. */
    #r2-skills {
        --r2-lang-1: #1E9469;
        --r2-lang-2: #CC5524;
        --r2-lang-3: #3E66D0;
        --r2-lang-4: #2393A2;
        --r2-lang-5: #7A50DE;
        --r2-lang-6: #C4951F;
        --r2-lang-7: #BD4286;
        --r2-tool-1: #E2414E;
        --r2-tool-2: #34B061;
        --r2-tool-3: #5277F0;
        --r2-tool-glint: #F4C542;
    }

    /* On near-black: ultramarine lightened as elsewhere, yellow as sampled. */
    .r2-orbit {
        --r2-ink-1: #8f86e8;
        --r2-ink-5: #F2E63A;
    }
}
