/* /cover-letter-templates and /cover-letter-templates/{job}, v3 (2026-10-26): includes/site/v3/pages/cover-letter-templates.php
   and _cl-role.php. Example letters on paper cards, real letter renders (assets/site/v3/letters/), the designs grid, the
   guide cards. Everything else reuses v3.css (bands, lockups, chips, ticks, points, FAQ, the closing card). */

.cl-hero { padding-bottom: clamp(20px, 3vw, 44px); }
.cl-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.cl-hero .v-sub__blob { top: -120px; width: min(48vw, 680px); }
.cl-h1 .v-lk__xl { font-size: clamp(54px, 6.4vw, 96px); }
.cl-hero .v-lede { margin-top: 22px; }
.cl-ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; }
.cl-ticks li { gap: 10px; font-size: 16px; }
.cl-ticks .v-ic { width: 26px; height: 26px; padding: 5px; }
.cl-hero__actions { margin-top: 28px; }

.cl-fan { position: relative; min-height: 440px; }
.cl-fan__disc { position: absolute; inset: 6% 2% 2% 10%; }
.cl-fan__sheet { position: absolute; width: 44%; background: #fff; border-radius: 6px; box-shadow: 0 18px 36px rgba(30, 42, 90, .2); overflow: hidden; }
.cl-fan__sheet img { display: block; width: 100%; height: auto; }
.cl-fan__sheet:nth-of-type(1) { left: 6%; top: 12%; transform: rotate(-7deg); }
.cl-fan__sheet:nth-of-type(2) { left: 29%; top: 0; z-index: 2; transform: rotate(1.5deg); }
.cl-fan__sheet:nth-of-type(3) { right: 0; top: 20%; z-index: 3; transform: rotate(7deg); }
.cl-fan__badge { --bs: 118px; position: absolute; z-index: 4; left: 0; bottom: 0; transform: rotate(-10deg); }
.cl-hero__sheet { justify-self: center; width: min(100%, 380px); margin: 0; background: #fff; border-radius: 6px; box-shadow: 0 22px 44px rgba(30, 42, 90, .2); transform: rotate(2deg); overflow: hidden; }
.cl-hero__sheet picture { display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.cl-hero__sheet img { display: block; width: 100%; height: auto; }

/* Example letters */
.cl-intro { max-width: 780px; margin: 18px auto 0; font-size: 17px; line-height: 1.55; text-align: center; color: var(--text); }
.cl-jump .chips { justify-content: center; margin: 26px 0 clamp(28px, 3.4vw, 40px); }
.cl-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cl-ex { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border-radius: 24px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .11), 0 12px 28px rgba(30, 42, 90, .09); scroll-margin-top: calc(var(--header-h) + 16px); }
.cl-ex:target { box-shadow: 0 0 0 3px var(--navy), 0 20px 40px rgba(30, 42, 90, .16); }
.cl-ex__head { padding: 22px 24px 18px; background: var(--sun-l); }
.cl-list > .cl-ex:nth-child(3n+2) .cl-ex__head { background: #FFD9BF; }
.cl-list > .cl-ex:nth-child(3n+3) .cl-ex__head { background: var(--mint); }
.cl-ex__title { margin: 0; font-family: var(--display); font-size: clamp(30px, 2.8vw, 38px); font-weight: 400; line-height: .95; text-transform: uppercase; color: var(--navy); -webkit-text-stroke: .02em currentColor; }
.cl-ex__when { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.cl-ex__facts { margin: 8px 0 0; font-size: 12px; font-weight: 900; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase; color: var(--tang-t); }
.cl-letter { margin: 20px 20px 0; padding: 22px 24px; font-size: 15px; line-height: 1.6; color: #222; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(30, 42, 90, .12); }
.cl-letter p { margin: 0 0 12px; }
.cl-letter p:last-child { margin-bottom: 0; }
.cl-ex__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 18px 24px 22px; }
.cl-copy[hidden] { display: none; }
.cl-copy { min-height: 44px; cursor: pointer; border: 0; }
.cl-ex__write, .cl-more a, .cl-guide a, .cl-mention a, .cl-why a, .cl-on__links a { font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.cl-ex__write:hover, .cl-more a:hover, .cl-guide a:hover, .cl-mention a:hover, .cl-on__links a:hover { text-decoration-color: var(--tang); }
.cl-copied { font-size: 14.5px; font-weight: 800; color: var(--teal-t); }
.cl-copied:empty { display: none; }
.cl-more { max-width: 900px; margin: 30px auto 0; padding: 14px 18px; font-size: 16px; line-height: 1.55; text-align: center; color: var(--text); background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .11); }

/* The same letter in our designs (the top of each page, where the designs differ). */
.cl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; margin-top: clamp(30px, 4vw, 44px); }
.cl-card { --acc: var(--sun-l); display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border-radius: 22px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .11), 0 12px 28px rgba(30, 42, 90, .09); }
.cl-grid > .cl-card:nth-child(4n+2) { --acc: #FFD9BF; }
.cl-grid > .cl-card:nth-child(4n+3) { --acc: var(--mint); }
.cl-grid > .cl-card:nth-child(4n+4) { --acc: var(--cream); }
.cl-card__img { display: block; padding: 18px 18px 0; background: var(--acc); }
.cl-card__img picture { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 6px 18px rgba(30, 42, 90, .16); }
.cl-card__img img { display: block; width: 100%; height: auto; }
.cl-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.cl-card__name { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: .95; text-transform: uppercase; color: var(--navy); }
.cl-card__desc { margin: 0 0 12px; font-size: 14.5px; line-height: 1.45; color: var(--grey); }
.cl-card__use { align-self: flex-start; min-height: 44px; margin-top: auto; padding: .5em 1em .36em; font-size: 21px; }
.cl-card__cv { align-self: flex-start; margin-top: 8px; font-size: 14px; font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cl-sample { margin: 30px 0 0; font-size: 14.5px; text-align: center; color: var(--grey); }

/* What you get */
.cl-points { margin-top: clamp(30px, 4vw, 44px); }
.cl-get__go { margin-top: 34px; }

/* By job */
.cl-jobs__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: clamp(30px, 4vw, 44px) 0 0; padding: 0; list-style: none; }
.cl-job { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 18px 16px 20px; text-decoration: none; color: var(--navy); background: var(--paper); border-radius: 22px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .1), 0 10px 24px rgba(30, 42, 90, .08); transition: transform .2s ease; }
.cl-job:hover { transform: translateY(-3px) rotate(-.5deg); }
.cl-job__sheet { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-radius: 4px; box-shadow: 0 6px 16px rgba(30, 42, 90, .14); }
.cl-job__sheet img { display: block; width: 100%; height: auto; }
.cl-job__name { font-family: var(--display); font-size: 28px; line-height: .95; text-align: center; text-transform: uppercase; }
.cl-job__go { font-size: 14px; font-weight: 800; color: var(--grey); }

/* The guide */
.cl-guide__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.cl-card2 { padding: clamp(22px, 2.6vw, 32px); background: var(--paper); border-radius: 24px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .1), 0 12px 28px rgba(30, 42, 90, .08); }
.cl-card2--warn { background: #fff; }
.cl-card2--wide { grid-column: 1 / -1; }
.cl-card2 h3 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(30px, 2.8vw, 38px); font-weight: 400; line-height: .95; text-transform: uppercase; color: var(--navy); -webkit-text-stroke: .02em currentColor; }
.cl-card2 p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--text); }
.cl-card2 p:last-child { margin-bottom: 0; }
.cl-card2 .v-list { gap: 10px; font-size: 16px; line-height: 1.5; }
.cl-nots { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cl-nots li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.5; color: var(--text); }
.cl-nots li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 14px; height: 3px; background: var(--tang); border-radius: 2px; }
.cl-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: cl; }
.cl-steps li { position: relative; padding-left: 40px; font-size: 16px; line-height: 1.5; color: var(--text); counter-increment: cl; }
.cl-steps li::before { content: counter(cl); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; font-family: var(--display); font-size: 20px; line-height: 1; color: var(--navy); background: var(--sun); border-radius: 50%; }
.cl-guide__more { max-width: 900px; margin: 28px auto 0; font-size: 16px; line-height: 1.7; text-align: center; color: var(--text); }

/* A job page: the letter beside "Why it works", then what to mention. */
.cl-role__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.cl-why { padding: clamp(22px, 2.6vw, 32px); background: #fff; border-radius: 24px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .1), 0 12px 28px rgba(30, 42, 90, .08); }
.cl-why__title { margin: 0 0 14px; font-family: var(--display); font-size: clamp(32px, 3vw, 42px); font-weight: 400; line-height: .92; text-transform: uppercase; color: var(--navy); -webkit-text-stroke: .02em currentColor; }
.cl-why .v-list { gap: 10px; font-size: 16px; line-height: 1.5; }
.cl-why__note { margin: 18px 0 0; padding: 14px 16px; font-size: 15px; line-height: 1.55; color: var(--text); background: var(--sky-l, #E6F2FA); border-radius: 16px; }
.cl-why__made { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--grey); }
.cl-mention__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cl-mention__lede, .cl-mention__cv { margin: 0 0 16px; font-size: 17.5px; line-height: 1.55; color: var(--text); }
.cl-tips { display: grid; gap: 20px; margin: 0; padding: clamp(24px, 3vw, 36px); list-style: none; background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); }
.cl-tips li { display: flex; align-items: flex-start; gap: 16px; }
.cl-tips__n { position: relative; isolation: isolate; display: grid; flex: 0 0 46px; place-items: center; height: 46px; padding-top: 4px; font-family: var(--display); font-size: 28px; line-height: 1; color: var(--navy); }
.cl-tips__n::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--sun); -webkit-mask: var(--v-blob-a) center / 100% 100% no-repeat; mask: var(--v-blob-a) center / 100% 100% no-repeat; }
.cl-tips li:nth-child(3n+2) .cl-tips__n::before { background: var(--tang); -webkit-mask-image: var(--v-blob-c); mask-image: var(--v-blob-c); }
.cl-tips li:nth-child(3n) .cl-tips__n::before { background: var(--sky); -webkit-mask-image: var(--v-blob-d); mask-image: var(--v-blob-d); }
.cl-tips h3 { margin: 4px 0 4px; font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--navy); }
.cl-tips p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--grey); }

/* Links on */
.cl-on__title { text-align: center; }
.cl-on__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 8px 0 0; padding: 0; list-style: none; }
.cl-on__card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px; text-decoration: none; color: var(--text); background: var(--paper); border-radius: 22px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .1), 0 10px 24px rgba(30, 42, 90, .08); transition: transform .2s ease; }
.cl-on__card:hover { transform: translateY(-3px) rotate(-.5deg); }
.cl-on__card b { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: .95; text-transform: uppercase; color: var(--navy); }
.cl-on__card span:last-child { font-size: 15.5px; line-height: 1.5; color: var(--grey); }
.cl-on__ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; color: var(--navy); background: var(--sun); border-radius: 50%; }
.cl-on__ic .v-ic { width: 26px; height: 26px; }
.cl-on__links { max-width: 900px; margin: 22px auto 0; font-size: 16px; line-height: 1.9; text-align: center; color: var(--text); }
.cl-on__links b { margin-right: 6px; color: var(--navy); }

@media (max-width: 1100px) {
  .cl-list { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-jobs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .cl-hero__grid, .cl-role__grid, .cl-mention__grid { grid-template-columns: minmax(0, 1fr); }
  .cl-hero .v-sub__blob { top: -40px; right: -46vw; width: 100vw; }
  .cl-fan { display: none; }
  .cl-hero__sheet { width: min(70%, 320px); }
  .cl-guide__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .cl-jobs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cl-on__cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cl-h1 .v-lk__xl { font-size: clamp(44px, 12.5vw, 64px); }
  .cl-ticks { gap: 8px 16px; }
  .cl-ticks li { font-size: 15px; }
  .cl-jump .chips { flex-wrap: nowrap; justify-content: flex-start; margin: 22px -24px 24px; padding: 2px 24px 8px; overflow-x: auto; scrollbar-width: none; }
  .cl-jump .chips::-webkit-scrollbar { display: none; }
  .cl-jump .chip { white-space: nowrap; }
  .cl-ex { border-radius: 18px; }
  .cl-ex__head { padding: 18px 18px 14px; }
  .cl-letter { margin: 14px 12px 0; padding: 18px 16px; font-size: 15px; }
  .cl-ex__foot { padding: 14px 16px 18px; }
  .cl-card { border-radius: 16px; }
  .cl-card__img { padding: 10px 10px 0; }
  .cl-card__body { gap: 4px; padding: 10px 12px 14px; }
  .cl-card__name { font-size: 23px; }
  .cl-card__desc { margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
  .cl-card__use { min-height: 38px; padding: .5em .75em .34em; font-size: 17px; }
  .cl-card__cv { font-size: 13px; }
  .cl-job { padding: 12px 10px 14px; border-radius: 16px; }
  .cl-job__name { font-size: 22px; }
  .cl-card2, .cl-why { padding: 22px 18px; }
  .cl-tips { padding: 22px 16px; }
  .cl-tips li { gap: 12px; }
  .cl-tips__n { flex-basis: 40px; height: 40px; font-size: 24px; }
  .cl-hero__sheet { width: min(78%, 300px); }
}
@media (prefers-reduced-motion: reduce) {
  .cl-on__card, .cl-job { transition: none; }
}
