/* /tailor-resume (src/atlas/seo/templates/tailor_resume.html; owner 21 Nov, design final/tailor-redesign-DESIGN.md T1-T5).
   On top of how-we-match.css's .hwm tokens. Body text is regular weight (400) and only headings and short labels are
   bold (owner). Text is --ink, never grey. Red (--bad / --bad-ink, AA in both themes) only marks refused text. Motion
   is added by tailor-resume.js only when the visitor has not asked for reduced motion; without it every section shows its
   finished state. Phone layout is the base; wide screens add columns. */
.hwm--tr .tr-sec { padding: 36px 0; }
.hwm--tr .tr-sec--a { background: var(--sec-a); }
.hwm--tr .tr-sec--b { background: var(--sec-b); }
.hwm--tr .tr-sec .in { display: block; }
.hwm--tr .tr-lede { max-width: 62ch; margin: 0 0 18px; font-size: var(--t-p); font-weight: 400; }
.hwm--tr .tr-more { margin-top: 16px; font-weight: 400; }

/* T1: hero */
.hwm--tr .tr-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 900px) { .hwm--tr .tr-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; } }
.tr-card { margin: 0; background: var(--surface); }
.tr-card__job { margin: 4px 0 10px !important; }
.tr-card__k, .rw__k, .td__k, .td__jk { display: block; margin-bottom: 4px; font-weight: 700; color: var(--accent-deep); }
.tr-card__tag { margin-top: 12px !important; }
.rw { display: grid; gap: 8px; }
.rw p { padding: 12px 14px; border-radius: var(--r-md); background: var(--sec-b); }
.rw__old { border: 1px dashed var(--accent-ring); background: transparent !important; }
.rw__new mark { background: var(--ok); color: var(--ok-ink); border-radius: 4px; padding: 0 3px; font-weight: 700; box-shadow: inset 0 -3px 0 var(--ok-ink); }
/* Motion: one line rewrites itself (the old words fade, the job's word comes in with an underline). Only with .tr-anim. */
.tr-anim .rw { position: relative; grid-template-areas: "x"; }
.tr-anim .rw p { grid-area: x; transition: opacity .6s ease, transform .6s ease; }
.tr-anim .rw__new { opacity: 0; transform: translateY(6px); }
.tr-anim .rw.is-after .rw__old { opacity: 0; transform: translateY(-6px); }
.tr-anim .rw.is-after .rw__new { opacity: 1; transform: none; }
.tr-anim .rw__new mark { box-shadow: inset 0 0 0 var(--ok-ink); transition: box-shadow .5s ease .5s; }
.tr-anim .rw.is-after .rw__new mark { box-shadow: inset 0 -3px 0 var(--ok-ink); }

/* T3: annotated diff */
.td { margin: 0; }
.td__job { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px !important; }
.td__jk { display: inline; margin: 0 6px 0 0; }
.td__head { display: none; }
.td__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--plate-line); }
.td__cell { padding: 12px 14px; border-radius: var(--r-md); min-width: 0; }
.td__cell p { margin: 0; }
.td__cell--before { border: 1px dashed var(--accent-ring); }
.td__cell--after { background: var(--sec-b); }
.td__cell--kept { border: 1px solid var(--accent-ring); }
.td__cell mark { background: var(--ok); color: var(--ok-ink); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.td__tog { display: none; }
.tr-js .td__tog { display: flex; }
.tr-js .td[data-show="before"] .td__cell--after, .tr-js .td[data-show="after"] .td__cell--before { display: none; }
@media (min-width: 761px) {
  .tr-js .td__tog { display: none; }
  .td__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; font-weight: 700; color: var(--ink-heading); padding: 4px 14px 8px; }
  .td__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .tr-js .td[data-show] .td__cell--before, .tr-js .td[data-show] .td__cell--after { display: block; }
  .td__k { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .td__cell--kept .td__k { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-bottom: 4px; }
}
.tw { font: inherit; font-weight: 700; color: var(--accent-deep); background: transparent; border: 0; border-bottom: 2px dotted var(--accent); border-radius: 0; padding: 0 1px; min-height: 28px; cursor: pointer; }
.tw:hover { background: var(--chip); }
.tw[aria-expanded="true"] { background: var(--chip); color: var(--chip-ink); }
.hwm .tw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pin { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: 13px; font-weight: 800; vertical-align: 1px; }
.why { margin-top: 10px !important; padding: 10px 12px; border-radius: var(--r-md); background: var(--plate); border: 1px solid var(--plate-line); }
.why b { font-weight: 700; }
.tr-js .why { display: none; }
.tr-js .why.is-open { display: block; }
.td__legend { display: grid; gap: 8px; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--plate-line); list-style: none; }
.td__legend li { display: flex; align-items: baseline; gap: 10px; }
.td__legend li .pin { flex-shrink: 0; }
.td__legend del { background: var(--bad); color: var(--bad-ink); text-decoration: line-through; text-decoration-thickness: 2px; border-radius: 4px; padding: 0 3px; font-weight: 700; }

/* T4: score */
.tr-score { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 900px) { .tr-score { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.tr-ring { margin: 0; }
.tr-ring__row { display: flex; align-items: center; gap: 22px; padding: 6px 0 14px; }
.tr-ring__svg { width: 120px; height: 120px; flex-shrink: 0; }
.tr-ring__svg circle { fill: none; stroke-width: 11; }
.tr-ring__svg .bg { stroke: var(--accent-ring); }
.tr-ring__svg .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.tr-ring__n { display: grid; gap: 2px; margin: 0; }
.tr-ring__n > b { font-size: 44px; line-height: 1; font-weight: 800; color: var(--ink-heading); letter-spacing: -.02em; }
.tr-ring__n span b { font-weight: 700; }
.tr-asks { display: grid; gap: 8px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--plate-line); list-style: none; }
.tr-asks li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tr-asks b { font-weight: 700; }

/* Steps as a row */
.hwm--tr .tr-steps--row { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; counter-reset: s; }
@media (min-width: 900px) { .hwm--tr .tr-steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hwm--tr .tr-steps--row li { counter-increment: s; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; line-height: 1.55; border-radius: var(--r-md); background: var(--plate); border: 1px solid var(--plate-line); }
.hwm--tr .tr-steps--row li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-weight: 800; line-height: 1; }
.hwm--tr .tr-steps--row b { display: block; margin: 0; line-height: 1.3; font-weight: 700; color: var(--ink-heading); }

/* T5: closing band */
.tr-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; text-align: left; }
.tr-cta__art { width: 120px; height: 120px; flex-shrink: 0; }
.tr-cta h2 { margin-bottom: 16px; }
@media (max-width: 520px) { .tr-cta { text-align: center; } .tr-cta__art { width: 88px; height: 88px; } }

/* Regular weight for the new body text (the page's rule: only headings and short labels are bold) */
.hwm--tr .tr-card__job, .hwm--tr .rw p, .hwm--tr .td__cell, .hwm--tr .td__job, .hwm--tr .why, .hwm--tr .td__legend li,
.hwm--tr .tr-asks li, .hwm--tr .tr-ring__n span, .hwm--tr .tr-steps--row li, .hwm--tr .cc__src, .hwm--tr .cc__line,
.hwm--tr .cc__pins li, .hwm--tr .cc__more > p { font-weight: 400; }
.hwm--tr .td__head, .hwm--tr .cc__more summary, .hwm--tr .chip { font-weight: 700; }
.hwm--tr .cc__k, .hwm--tr .td__k, .hwm--tr .rw__k, .hwm--tr .tr-card__k, .hwm--tr .td__jk { font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .tr-anim .rw p, .tr-anim .rw__new mark { transition: none; }
}
