/* =====================================================================
   Reading pages on the kit: blog (index, category, tag, author, post), resources hub, glossary + terms, guides,
   buyer's checklist, careers, newsletter results. Selectors are scoped to classes only these views use.
   ===================================================================== */

/* Honeypot fields stay off screen (the classic CSS hid .hp; the kit has no rule for it yet) */
:is(.reading-nl, .careers-apply, .checklist) .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Reading sections follow a compact masthead closely */
main > section.section--flow:is(.blog-list, .post-section, .glossary, .term, .checklist, .resources-index, .guides-list) { padding-top: var(--s-6); }

/* ---------- Masthead extras ---------- */
.blog-search { display: grid; gap: var(--s-3); padding: var(--s-6); }
.blog-search__row { display: flex; gap: var(--s-2); }
.blog-search__row .input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 14px; font: 400 16px/1.4 var(--font-text);
  color: var(--ink); background: #fff; border: 1px solid #8a847d; border-radius: var(--r-sm); }
.blog-search__row .input:focus { outline: 2px solid var(--p-accent); outline-offset: 1px; }
.author-photo .hero-photo { aspect-ratio: 1 !important; max-width: 320px; }

/* ---------- Category chips and the search, one row ---------- */
.blog-tools { display: grid; gap: var(--s-5); align-items: center; margin: 0 0 var(--s-7); }
@media (min-width: 1024px) { .blog-tools { grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); column-gap: var(--gutter); } }
.blog-tools .chips-nav ul { margin: 0; }
.blog-search--inline .blog-search__row .btn { min-height: 44px; }
.chips-nav ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s-7); padding: 0; list-style: none; }
.chips-nav .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; }
.chips-nav .chip:hover { border-color: var(--ink); }
.chips-nav .chip.is-active { color: var(--p-inv-ink); background: var(--p-ink); border-color: var(--p-ink); }
.chip__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips-nav .chip.is-active .chip__count { color: var(--p-inv-muted); }
.blog-list__tags { margin-bottom: var(--s-6); }
.blog-list__count { margin: 0 0 var(--s-6); display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: baseline; }
.blog-empty { padding: var(--s-8) 0; }
.blog-empty p { margin: 0; }
.blog-empty__links { display: flex; gap: var(--s-6); }

/* ---------- Post cards ---------- */
.post-grid { display: grid; gap: var(--gutter); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.post-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--p-surface); border-bottom: 1px solid var(--line); }
.post-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1 1 auto; padding: var(--s-6); }
.post-card__meta { margin: 0; }
.post-card__title { margin: 0; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; transition: transform var(--dur, 200ms) var(--ease, ease), border-color var(--dur, 200ms); }
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
  .post-card:hover .post-card__title a { color: var(--red-ink); }
}
.post-card__excerpt { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__date { margin: auto 0 0; padding-top: var(--s-3); font-size: var(--t-small); color: var(--muted); }

/* Drawn covers (blog/partials/cover.php): sunken paper with a small drawing taken from the post (the options it
   compares, its checklist, its document heading, or a flow for its category). Ink and greys only; no red, no words cropped. */
.post-card__media { container-type: inline-size; }
.post-cover { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: var(--p-surface); color: var(--p-ink); }
.post-cover--draw { display: grid; place-items: center; padding: 44px 24px 22px; font-size: clamp(12px, 3.7cqi, 16px); line-height: 1.3; }
.post-cover__label { position: absolute; top: 16px; left: 20px; right: 20px; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv { display: grid; width: 100%; max-width: 30em; }
.cv-ico { width: 1.6em; height: 1.6em; flex: none; object-fit: contain; }
.cv-win, .cv-col, .cv-node { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 2px rgb(22 19 15 / .06), 0 8px 24px -8px rgb(22 19 15 / .12); }
.cv-bars { display: grid; gap: .5em; }
.cv-bars i, .cv-check i { display: block; height: .5em; width: var(--w, 70%); border-radius: 3px; background: var(--line); }
/* compare: the options side by side */
.cv-compare { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: .8em; }
.cv-col { display: grid; gap: .9em; align-content: start; padding: .9em; min-width: 0; }
.cv-col__head { display: grid; gap: .5em; justify-items: start; }
.cv-col__head b { font-weight: 600; font-size: 1.05em; line-height: 1.2; overflow-wrap: anywhere; }
.cv-col:nth-child(2) { transform: translateY(.6em); }
/* checklist and document: a window titled with the post's heading */
.cv-win { display: grid; gap: .7em; padding: 1em 1.1em 1.1em; }
.cv-win__head { display: flex; align-items: center; gap: .6em; min-width: 0; }
.cv-win__head b { font-weight: 600; font-size: 1.05em; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cv-checks { max-width: 24em; }
.cv-progress { display: block; height: .35em; border-radius: 3px; background: var(--line); overflow: hidden; }
.cv-progress i { display: block; height: 100%; width: calc(var(--k, .4) * 100%); background: var(--p-ink); }
.cv-check { display: flex; align-items: center; gap: .6em; }
.cv-check__box { flex: none; display: grid; place-items: center; width: 1.1em; height: 1.1em; border: 1.5px solid var(--grey-400, #8a847d); border-radius: 4px; }
.cv-check__box svg { width: 100%; height: 100%; fill: none; stroke: transparent; stroke-width: 2; }
.cv-check.is-done .cv-check__box { background: var(--p-ink); border-color: var(--p-ink); }
.cv-check.is-done .cv-check__box svg { stroke: #fff; }
.cv-check.is-done i { background: var(--line-strong, #DDD8D2); }
.cv-doc { position: relative; max-width: 24em; }
.cv-doc__back { position: absolute; inset: .7em -.7em -.7em .7em; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.cv-doc__page { position: relative; }
.cv-doc__rule { display: block; height: 1px; background: var(--line); }
/* flow: three steps of the post's topic, the middle one in ink */
.cv-flow { display: flex; align-items: center; justify-content: center; gap: 0; max-width: 22em; }
.cv-node { display: grid; place-items: center; width: 3.6em; height: 3.6em; flex: none; border-radius: 12px; }
.cv-node .cv-ico { width: 1.7em; height: 1.7em; }
.cv-node--core { width: 4.4em; height: 4.4em; background: var(--p-ink); border-color: var(--p-ink); }
.cv-node--core .cv-ico { filter: invert(1); width: 2em; height: 2em; }
.cv-flow__line { flex: 1 1 auto; min-width: 1.5em; height: 0; border-top: 1.5px dashed var(--grey-400, #8a847d); }
/* bigger drawing (featured card, masthead) */
.post-cover--lg { padding: 56px 32px 32px; font-size: clamp(12px, 2.6cqi, 17px); }
.post-cover--lg .post-cover__label { top: 20px; left: 24px; font-size: 13px; }

/* Rows stay full: a six-column grid where a short last row widens (post-grid--r1 / --r2, set by the view) */
@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .post-grid > * { grid-column: span 2; }
  .post-grid--r2 > :nth-last-child(-n+2) { grid-column: span 3; }
  .post-grid--r1 > :last-child { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .post-grid--r1 > :last-child .post-card__media { aspect-ratio: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); }
  .post-grid--r1 > :last-child .post-card__body { justify-content: center; padding: var(--s-7); }
  .post-grid--r1 > :last-child .post-cover--draw { font-size: clamp(12px, 2.4cqi, 16px); }
}

/* The first-screen card (masthead): a big drawn cover above the words */
.post-card--hero .post-card__media { aspect-ratio: 16 / 10; }
.post-card--hero .post-card__title { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; letter-spacing: -0.015em; }
.post-card--hero .post-card__excerpt { -webkit-line-clamp: 2; }
.masthead__visual .post-card { width: 100%; }

/* Featured: cover left, words right */
.blog-featured { margin-bottom: var(--gutter); }
.post-card--lg .post-card__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.02em; }
@media (min-width: 1024px) {
  .post-card--lg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .post-card--lg .post-card__media { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
  .post-card--lg .post-card__body { padding: var(--s-8) var(--s-7); justify-content: center; }
}

/* Pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-8); flex-wrap: wrap; }
.pager__pages { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pager__num { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--r-sm);
  font-weight: 500; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
a.pager__num:hover { background: var(--p-surface); }
.pager__num.is-active { background: var(--p-ink); color: var(--p-inv-ink); }
@media (max-width: 639px) { .pager__pages { order: -1; width: 100%; justify-content: center; } }

/* ---------- Newsletter band ---------- */
.reading-nl .newsletter { align-items: start; row-gap: var(--s-5); }
.newsletter__title { margin: 0; font: 600 clamp(26px, 2.6vw, 36px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.newsletter__text { margin: 0; max-width: 48ch; }
.newsletter__form { display: grid; gap: var(--s-4); }
.newsletter__row { display: flex; gap: var(--s-2); }
.newsletter__row .input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 14px; font: 400 16px/1.4 var(--font-text);
  color: var(--ink); background: #fff; border: 1px solid #8a847d; border-radius: var(--r-sm); }
.newsletter__row .input:focus { outline: 2px solid var(--p-accent); outline-offset: 1px; }
.newsletter__consent { font-size: 14px; color: var(--muted); }
.newsletter__consent a { color: inherit; }
.newsletter__status { margin: 0; font-size: 15px; }
.newsletter__status.is-ok { color: var(--ok); }
.newsletter__status.is-error { color: var(--red-ink); }
@media (max-width: 479px) { .newsletter__row { flex-direction: column; } }

/* ---------- Article ---------- */
.read-progress { position: fixed; top: var(--nav, 68px); left: 0; right: 0; height: 2px; z-index: 40; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--p-ink); transform: scaleX(0); transform-origin: 0 50%; }
.post-layout { align-items: start; row-gap: var(--s-8); }
.post-main { min-width: 0; }
.post-main > * + * { margin-top: var(--s-7); }
.post-main > .prose + .prose { margin-top: 1em; }
.post-prose h2, .post-prose h3 { scroll-margin-top: calc(var(--nav, 68px) + 24px); }
.post-prose > :first-child { margin-top: 0; }

.toc__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc__item a { display: block; padding: 6px 0 6px 12px; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); }
.toc__item--h3 a { padding-left: 24px; font-size: 13px; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--ink); border-left-color: var(--p-ink); font-weight: 500; }
.toc--inline { padding: var(--s-4) var(--s-5); background: var(--p-surface); border-radius: var(--r-sm); }
.toc--inline summary { cursor: pointer; font-weight: 500; }
.toc--inline .toc__list { margin-top: var(--s-3); }
.toc__title { margin: 0 0 var(--s-3); }
@media (min-width: 1024px) { .toc--inline { display: none; } }

.post-side { display: none; }
@media (min-width: 1024px) {
  .post-side { display: block; align-self: stretch; }
  .post-side__sticky { position: sticky; top: calc(var(--nav, 68px) + 32px); display: grid; gap: var(--s-7); }
}
.side-service { padding-top: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.side-service p { margin: 0; }
.side-service__title { font: 600 18px/1.3 var(--font-display); }

.share { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.share__label { margin-right: 6px; }
.share__btn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer; }
.share__btn:hover { border-color: var(--ink); }
.share__btn .icon { width: 16px; height: 16px; }
.share--side { padding-top: var(--s-5); border-top: 1px solid var(--line); }

.takeaways { padding: var(--s-6); background: var(--p-surface); border-radius: var(--r-sm); max-width: 68ch; }
.takeaways__title { margin: 0 0 var(--s-3); font: 600 18px/1.3 var(--font-display); }
.takeaways ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }

.inline-cta { display: grid; gap: var(--s-5); align-items: center; max-width: 68ch; padding: var(--s-6); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (min-width: 640px) { .inline-cta { grid-template-columns: 1fr auto; } }
.inline-cta__title { margin: 0; font: 600 20px/1.3 var(--font-display); }
.inline-cta__text { margin: var(--s-2) 0 0; }

.post-figure { margin-inline: 0; max-width: 68ch; }
.post-figure img { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }

.post-faq { max-width: 68ch; }
.post-faq h2 { margin: 0 0 var(--s-5); font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--font-display); letter-spacing: -0.02em; }

.post-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-5); align-items: center; max-width: 68ch;
  padding-top: var(--s-6); border-top: 1px solid var(--line); }
.tags .tag a, .tags--links .tag a { color: inherit; text-decoration: none; }
.tags--links .tag:hover, .post-foot .tag:hover { background: var(--line); }

.author-box { display: grid; grid-template-columns: 72px 1fr; gap: var(--s-5); max-width: 68ch; align-items: start; }
.author-box__photo, .author-box__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box__avatar { display: grid; place-items: center; background: var(--p-surface); font: 600 24px/1 var(--font-display); }
.author-box__copy { display: grid; gap: var(--s-2); }
.author-box__copy p, .author-box__name { margin: 0; }
.author-box__name a { color: inherit; text-decoration: none; }
.author-box__links { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-2) !important; }

/* ---------- Glossary ---------- */
.gl-bar { position: sticky; top: var(--nav, 68px); z-index: 5; display: grid; gap: var(--s-3); padding: var(--s-4) 0; margin-bottom: var(--s-6);
  background: var(--p-bg); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .gl-bar { grid-template-columns: 320px 1fr; align-items: center; column-gap: var(--s-6); } }
.gl-bar .input { width: 100%; min-height: 44px; padding: 10px 14px; font: 400 16px/1.4 var(--font-text); color: var(--ink);
  background: #fff; border: 1px solid #8a847d; border-radius: var(--r-sm); }
.gl-bar .input:focus { outline: 2px solid var(--p-accent); outline-offset: 1px; }
.az { display: flex; flex-wrap: wrap; gap: 2px; }
.az__l { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
a.az__l:hover { background: var(--p-surface); }
.az__l.is-empty { color: var(--grey-300, #a8a29b); }
.gl-group { display: grid; gap: var(--s-3); padding: var(--s-6) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav, 68px) + 96px); }
.gl-group:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) { .gl-group { grid-template-columns: 2fr 10fr; column-gap: var(--gutter); } }
.gl-group__letter { margin: 0; font: 600 clamp(32px, 3vw, 44px)/1 var(--font-display); letter-spacing: -0.02em; }
.gl-list { margin: 0; padding: 0; list-style: none; }
.gl-list li + li { border-top: 1px solid var(--line); }
.gl-row { display: grid; gap: 2px var(--gutter); padding: var(--s-3) 0; color: inherit; text-decoration: none; }
@media (min-width: 860px) { .gl-row { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); align-items: baseline; } }
.gl-row__term { font-weight: 600; }
.gl-row__def { color: var(--muted); font-size: 15px; }
.gl-row:hover .gl-row__term { color: var(--red-ink); }
.gl-empty { padding: var(--s-6) 0; }

/* Term page */
.term .grid { align-items: start; row-gap: var(--s-8); }
.term-services { margin-top: var(--s-8); }
.term-services h2 { margin: 0 0 var(--s-5); font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--font-display); letter-spacing: -0.02em; }
.term-services__row { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto !important; }
@media (max-width: 859px) { .term-services__row { grid-template-columns: 1fr !important; } }
.term-side { display: grid; gap: var(--s-3); }
.term-side h2 { margin: 0; }
@media (min-width: 1024px) { .term-side { position: sticky; top: calc(var(--nav, 68px) + 32px); } }
.term-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-4); align-items: center; margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.term-nav__link { display: grid; gap: 2px; font-weight: 600; color: var(--ink); text-decoration: none; }
.term-nav__link:hover { color: var(--red-ink); }
.term-nav__link--next { text-align: right; }
@media (max-width: 639px) { .term-nav { grid-template-columns: 1fr 1fr; } .term-nav .btn { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Buyer's checklist ---------- */
.checklist .grid { align-items: start; row-gap: var(--s-8); }
.checklist-preview h2 { margin: 0 0 var(--s-6); }
.checklist-preview__group { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.checklist-preview__name { margin: 0 0 var(--s-3); font: 600 18px/1.3 var(--font-display); }
.checklist-preview ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.checklist-preview li { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-mark { flex: none; width: 16px; height: 16px; margin-top: 4px; border: 1.5px solid var(--grey-400, #8a847d); border-radius: 4px; }
.checklist-preview__more { padding-left: 26px; font-size: var(--t-small); }
@media (min-width: 1024px) { .checklist-get { position: sticky; top: calc(var(--nav, 68px) + 32px); } }
.checklist-get__more { margin: var(--s-4) 0 0; font-size: var(--t-small); }
.checklist-get__more a { color: var(--ink); }
.checklist .tool-lead { display: grid; gap: var(--s-5); }
.checklist .tool-lead__head .icon-tile { display: none; }
.checklist .tool-lead__title { margin: 0 0 var(--s-2); font: 600 var(--t-card)/1.3 var(--font-display); }
.checklist .tool-lead__head p { margin: 0; }
.checklist .tool-lead__row { display: grid; gap: var(--s-4); }
.checklist .tool-lead__actions { display: grid; gap: var(--s-3); justify-items: start; }
.checklist .tool-lead__actions .btn .icon { display: none; }
.checklist .tool-lead__status.is-ok { color: var(--ok); }
.checklist .tool-lead__status.is-error { color: var(--red-ink); }

/* ---------- Forms on reading pages: errors show only once a field is checked ---------- */
:is(.checklist, .careers-apply) .field__error { display: none; }
:is(.checklist, .careers-apply) .field.is-invalid .field__error { display: block; }
:is(.checklist, .careers-apply) .field.is-invalid :is(input, select, textarea) { border-color: var(--red-ink); }
:is(.checklist, .careers-apply) .field__error .icon { display: none; }

/* ---------- Careers ---------- */
.careers-work .grid { row-gap: var(--gutter); }
.careers-work .card p { margin: var(--s-2) 0 0; color: var(--muted); }
.careers-how .rows-list__link, .careers-areas .rows-list__link { padding: var(--s-4) 0; }
.roles { border-top: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); }
.role__head { display: grid; gap: 4px; padding: var(--s-5) 40px var(--s-5) 0; cursor: pointer; list-style: none; position: relative; }
.role__head::-webkit-details-marker { display: none; }
.role__head::after { content: "+"; position: absolute; right: 8px; top: var(--s-5); font-size: 22px; line-height: 1; color: var(--muted); }
.role[open] .role__head::after { content: "\2212"; }
.role__title { font: 600 var(--t-card)/1.3 var(--font-display); }
.role__meta { font-size: var(--t-small); color: var(--muted); }
.role__summary { color: var(--ink-2, #3d3833); }
.role__head:hover .role__title { color: var(--red-ink); }
.role__body { display: grid; gap: var(--s-5); justify-items: start; padding: 0 0 var(--s-6); }
.careers-areas__h { margin: var(--s-7) 0 var(--s-3); }
.careers-steps { margin: 0; padding: 0; list-style: none; row-gap: var(--gutter); }
@media (min-width: 640px) and (max-width: 1023px) { .careers-steps > li { grid-column: span 6; } }
@media (min-width: 1024px) { .careers-steps > li { grid-column: span 3; } }
.careers-steps p { margin: var(--s-2) 0 0; color: var(--muted); }
.careers-life .grid { align-items: start; row-gap: var(--s-7); }
.careers-join { margin: 0; }
.careers-join a { color: var(--red-ink); }
.careers-photos { display: grid; gap: var(--gutter); }
.careers-photos--2 { grid-template-columns: 1fr 1fr; }
.careers-photos .photo { aspect-ratio: 4 / 5; }
.careers-photos--1 .photo { aspect-ratio: 4 / 3; }
.careers-apply .grid { align-items: start; row-gap: var(--s-7); }
.careers-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.careers-checks li { padding-left: 20px; position: relative; }
.careers-checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--p-ink); }
.careers-form { padding: var(--s-7) !important; }
.careers-form .form h3 { margin: 0; }
.careers-form .input--file { padding: 10px 12px; }
.careers-form .alert { display: block; }
.careers-apply .contact__success { display: grid; gap: var(--s-4); }
.careers-apply .contact__success[hidden] { display: none; }
.careers-apply .contact__success p { margin: 0; }
.careers-apply .ticket-slot { display: grid; gap: var(--s-2); padding: var(--s-5); background: var(--p-surface); border-radius: var(--r-sm); }
.careers-apply .ticket-slot[hidden] { display: none; }
.careers-apply .ticket-slot p { margin: 0; }
.careers-apply .ticket-slot__label { font-size: var(--t-small); color: var(--muted); }
.careers-apply .ticket-slot__row { display: flex; align-items: center; gap: var(--s-3); }
.careers-apply .ticket-slot__no { font-size: 20px; }
.careers-apply .ticket-slot__copy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font: 500 14px/1 var(--font-text); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; }
.careers-apply .ticket-slot__text { font-size: var(--t-small); color: var(--muted); }
.careers-faq .grid { align-items: start; row-gap: var(--s-7); }

/* ---------- Newsletter result ---------- */
.nl-result { min-height: 60vh; }
.nl-result form { margin: 0; }

@media (prefers-reduced-motion: reduce) { .post-card, .read-progress span { transition: none; } }

/* Lists inside reading prose keep their markers (the kit resets list-style) */
:is(.post-prose, .term .prose, .role__body .prose) ul { list-style: disc; }
:is(.post-prose, .term .prose, .role__body .prose) ol { list-style: decimal; }
:is(.post-prose, .term .prose, .role__body .prose) li::marker { color: var(--grey-400, #8a847d); }
.takeaways ul { list-style: disc; }

/* The application form stacks its own rows (the kit .form is a two-column grid) */
.careers-form .form { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
.careers-form .form > * { grid-column: 1 / -1; }
.careers-form .form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .careers-form .form__row { grid-template-columns: 1fr 1fr; } }
.careers-form .check { font-size: 14px; color: var(--muted); font-weight: 400; }
.checklist .tool-lead .field { font-weight: 500; }
:is(.careers-form, .checklist .tool-lead) .field :is(input, select, textarea) { background-color: #fff; border: 1px solid #8a847d; }
.term .prose > :first-child { margin-top: 0; }
@media (min-width: 860px) {
  .resources-index .rows-list__link { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) 200px; }
  .resources-index .rows-list__go { justify-self: end; }
  .term-services__row { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) 200px !important; }
  .term-services__row .rows-list__go { justify-self: end; }
}

/* Drawn covers inside a masthead: undo the masthead's photo sizing for their small icons */
.masthead__visual .post-cover .cv-ico { width: 1.6em; height: 1.6em; border-radius: 0; }
.masthead__visual .post-cover .cv-node .cv-ico { width: 1.7em; height: 1.7em; }
.masthead__visual .post-cover .cv-node--core .cv-ico { width: 2em; height: 2em; }

/* Post masthead: the drawn cover when the post has no real photo */
.post-hero-cover { container-type: inline-size; aspect-ratio: 16 / 10; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cv-outline { max-width: 28em; }
.cv-outline__row { display: flex; align-items: center; gap: .7em; padding: .15em 0; color: var(--ink-2, #3D3833); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-outline__mark { flex: none; width: .55em; height: .55em; border-radius: 50%; border: 1.5px solid var(--grey-400, #8a847d); }
.cv-outline__row.is-on { color: var(--ink); font-weight: 500; }
.cv-outline__row.is-on .cv-outline__mark { background: var(--p-ink); border-color: var(--p-ink); }

/* Careers first screen: the team photograph, then the faces of the people you would work with */
.careers-hero { margin: 0; display: grid; gap: var(--s-4); }
.masthead__visual .careers-hero .careers-hero__img { aspect-ratio: 4 / 3; height: auto; }
.careers-hero__team { display: grid; gap: var(--s-3); }
.careers-hero__team p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-size: 15px; }
.careers-hero__team b { font-weight: 600; }
.careers-faces { display: flex; margin: 0; padding: 0; list-style: none; }
.careers-face { width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden; border: 3px solid var(--p-bg, #FAF9F7); background: var(--surface, #fff); }
.careers-face + .careers-face { margin-left: -10px; }
.masthead__visual .careers-face img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.masthead__visual .careers-face--zoom img { transform: scale(3.4); transform-origin: var(--fx, 50%) var(--fy, 35%); }
@media (max-width: 479px) { .careers-face { width: 44px; height: 44px; } }

/* Resources hub first screen: the search window inside a panel */
.resources-search { display: grid; place-items: center; padding: clamp(24px, 3vw, 40px); }
.resources-search > .ui { width: 100%; max-width: 520px; }

/* Glossary first screen: one entry in full, the next terms as index rows */
.gl-page { margin: 0; display: grid; gap: var(--s-5); padding: var(--s-7) !important; }
.gl-page__label { margin: 0; }
.gl-page__entry { display: grid; gap: var(--s-2); color: inherit; text-decoration: none; }
.gl-page__term { font: 600 clamp(28px, 2.6vw, 36px)/1.1 var(--font-display); letter-spacing: -0.02em; }
.gl-page__aka { font-size: 14px; }
.gl-page__def { font-size: 17px; line-height: 1.55; color: var(--ink-2, #3D3833); }
.gl-page__entry .link { margin-top: var(--s-2); justify-self: start; }
.gl-page__next { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); border-top: 1px solid var(--line); }
.gl-page__next a { display: block; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; }
.gl-page__next a:hover, .gl-page__entry:hover .gl-page__term { color: var(--red-ink); }

/* Checklist first screen */
.checklist-hero { margin: 0; display: grid; gap: var(--s-2); }
.checklist-hero .panel { --p-h: 360px; }
.checklist-hero figcaption { font-size: var(--t-small); }
@media (max-width: 639px) { .checklist-hero .panel { --p-h: 300px; } }

/* Term page first screen: the term and its related terms as a hub */
.term-map { margin: 0; display: grid; gap: var(--s-2); }
.term-map .panel--diagram { width: 100%; min-width: 0; height: clamp(320px, 28vw, 400px); overflow: hidden; padding: 20px; }
.term-map figcaption { font-size: var(--t-small); }
.masthead__visual .term-map .dg img { object-fit: contain; border-radius: 0; }
@media (max-width: 639px) { .post-card--hero .post-card__media, .post-hero-cover { aspect-ratio: 4 / 3; } .post-cover--lg { padding: 48px 20px 20px; } }
@media (max-width: 639px) { .gl-page { padding: var(--s-5) !important; } }
/* Wide tables in articles scroll inside the column instead of widening the page on phones */
.post-prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 639px) { .post-hero-cover { aspect-ratio: auto; } .post-hero-cover .post-cover--draw { height: auto; } }
