/* CV templates (/cv-templates and /cv-templates/{style}) and the homepage design showcase, v3 (2026-10-25).
   Loaded by includes/site/v3/pages/cv-templates.php and includes/site/v3/pages/home.php.
   The previews are real page-one renders of the PDF designs (assets/site/v3/templates/), so they sit on
   tinted panels like paper on a desk; everything else reuses v3.css (bands, lockups, chips, points, FAQ). */

/* Hero: copy on the left, a fan of three real previews on the right. Kept short so the designs show early. */
.tp-hero { padding-bottom: clamp(20px, 3vw, 44px); }
.tp-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.tp-hero .v-sub__blob { top: -120px; width: min(48vw, 680px); }
.tp-h1 .v-lk__xl { font-size: clamp(60px, 7.6vw, 112px); }
.tp-hero .v-lede { margin-top: 22px; }
.tp-ticks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; }
.tp-ticks li { gap: 10px; font-size: 16px; }
.tp-ticks .v-ic { width: 26px; height: 26px; padding: 5px; }

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

/* Style chips and the grid. */
.tp-browse { padding-top: clamp(8px, 2vw, 24px); }
.tp-styles .chips { margin-bottom: clamp(28px, 3.4vw, 40px); }
.tp-group + .tp-group { margin-top: clamp(52px, 6vw, 84px); }
.tp-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 22px; }
.tp-group__title { margin: 0; font-family: var(--display); font-size: clamp(44px, 4.4vw, 60px); font-weight: 400; line-height: .9; text-transform: uppercase; color: var(--navy); -webkit-text-stroke: .02em currentColor; }
.tp-group__head p { margin: 0; font-size: 16.5px; color: var(--grey); }
.tp-group__head .link-arrow { margin-left: auto; padding-top: 0; }

.tp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.tp-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); transition: transform .2s ease, box-shadow .2s ease; scroll-margin-top: calc(var(--header-h) + 16px); }
.tp-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .2), 0 20px 40px rgba(30, 42, 90, .16); }
.tp-card:target { box-shadow: 0 0 0 3px var(--navy), 0 20px 40px rgba(30, 42, 90, .16); }
.tp-grid > .tp-card:nth-child(4n+2) { --acc: #FFD9BF; }
.tp-grid > .tp-card:nth-child(4n+3) { --acc: var(--mint); }
.tp-grid > .tp-card:nth-child(4n+4) { --acc: var(--sky); }
.tp-card__img { display: block; padding: 18px 18px 0; background: var(--acc); }
.tp-card__img img { display: block; width: 100%; height: auto; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 6px 18px rgba(30, 42, 90, .16); transition: transform .25s ease; transform-origin: 50% 100%; }
.tp-card:hover .tp-card__img img { transform: translateY(-3px); }
.tp-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.tp-card__name { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 400; line-height: .95; text-transform: uppercase; color: var(--navy); }
.tp-card__desc { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--grey); }
.tp-card__meta { margin: 0 0 12px; font-size: 11.5px; font-weight: 900; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--tang-t); }
.tp-card__use { align-self: flex-start; min-height: 44px; margin-top: auto; padding: .5em 1em .36em; font-size: 21px; }

.tp-more { margin: 30px 0 0; padding: 14px 18px; font-size: 16px; line-height: 1.45; color: var(--text); background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .11); }
.tp-more a, .tp-guide a, .tp-on__links a, .tp-tips a { font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tp-more a:hover, .tp-guide a:hover, .tp-on__links a:hover, .tp-tips a:hover { text-decoration-color: var(--tang); }
.tp-sample { margin: 30px 0 0; font-size: 14.5px; text-align: center; color: var(--grey); }

/* Numbered tips (style pages and the guide). */
.tp-tips { display: grid; gap: 20px; list-style: none; }
.tp-tips li { display: flex; align-items: flex-start; gap: 16px; }
.tp-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); }
.tp-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; }
.tp-tips li:nth-child(3n+2) .tp-tips__n::before { background: var(--tang); -webkit-mask-image: var(--v-blob-c); mask-image: var(--v-blob-c); }
.tp-tips li:nth-child(3n) .tp-tips__n::before { background: var(--mint); -webkit-mask-image: var(--v-blob-d); mask-image: var(--v-blob-d); }
.tp-tips h3, .tp-tips h4 { margin: 4px 0 4px; font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--navy); }
.tp-tips p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--grey); }

/* Style pages: when to use it, with the tips in a paper card. */
.tp-when__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tp-when__copy p { margin: 0 0 16px; font-size: 17.5px; color: var(--text); }
.tp-when .tp-tips { padding: clamp(24px, 3vw, 36px); background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); }
.tp-when .tp-tips li:nth-child(3n) .tp-tips__n::before { background: var(--sky); }

/* Main page: what you get (on sky, so the mint icon blob becomes paper), the guide and the UK format. */
.tp-points .v-point:nth-child(3n) .v-point__ic { --pc: var(--paper); }
.tp-guide { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 26px; margin-top: clamp(40px, 5vw, 56px); align-items: start; }
.tp-guide__card { padding: clamp(24px, 3vw, 40px); background: var(--paper); border-radius: 26px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .1), 0 12px 28px rgba(30, 42, 90, .08); }
.tp-guide__card > h3 { margin: 0 0 22px; font-family: var(--display); font-size: clamp(34px, 3.2vw, 44px); font-weight: 400; line-height: .92; text-transform: uppercase; color: var(--navy); -webkit-text-stroke: .02em currentColor; }
.tp-guide__card--uk { background: #fff; }
.tp-guide__card--uk .v-list { gap: 12px; font-size: 16px; line-height: 1.5; }
.tp-guide__more { margin: 22px 0 0; font-size: 15.5px; color: var(--text); }

/* Keep going: three link cards, then a line of links. */
.tp-on__title { text-align: center; }
.tp-on__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; list-style: none; }
.tp-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; }
.tp-on__card:hover { transform: translateY(-3px) rotate(-.5deg); }
.tp-on__card b { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: .95; text-transform: uppercase; color: var(--navy); }
.tp-on__card span:last-child { font-size: 15.5px; line-height: 1.5; color: var(--grey); }
.tp-on__ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; color: var(--navy); background: var(--sun); border-radius: 50%; }
.tp-on__ic .v-ic { width: 26px; height: 26px; }
.tp-on__links { max-width: 900px; margin: 22px auto 0; font-size: 16px; line-height: 1.9; text-align: center; color: var(--text); }
.tp-on__links b { margin-right: 6px; color: var(--navy); }

/* Homepage: one band of design previews with style tabs (assets/site/v3/templates.js). ----------------- */
.tph__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.tph__tab { display: inline-flex; align-items: center; padding: 9px 16px; font-size: 15px; font-weight: 800; line-height: 1.2; text-decoration: none; color: var(--navy); background: #fff; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .14); cursor: pointer; font-family: var(--body); }
.tph__tab:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.tph__tab[aria-selected="true"], .tph__tab[aria-current="true"] { color: var(--cream); background: var(--navy); box-shadow: none; }
.tph__tab:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.tph__panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; max-width: 1040px; margin: 34px auto 0; }
.tph__panel[hidden] { display: none; }
.tph__panel--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 780px; }
.tph__card { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.tph__sheet { display: block; width: 100%; background: #fff; border-radius: 6px; box-shadow: 0 14px 30px rgba(30, 42, 90, .16); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.tph__sheet img { display: block; width: 100%; height: auto; }
.tph__card:nth-child(odd) .tph__sheet { transform: rotate(-1.2deg); }
.tph__card:nth-child(even) .tph__sheet { transform: rotate(1.2deg); }
.tph__card:hover .tph__sheet { transform: translateY(-4px) rotate(0); box-shadow: 0 20px 38px rgba(30, 42, 90, .2); }
.tph__name { font-family: var(--display); font-size: 26px; line-height: 1; text-transform: uppercase; }
.tph__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: 38px; }
.tph__foot p { margin: 0; font-size: 15.5px; font-weight: 700; text-align: center; color: var(--text); }

/* Smaller screens ------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .tp-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .tp-hero .v-sub__blob { top: -40px; right: -46vw; width: 100vw; }
  .tp-fan { display: none; }
  .tp-when__grid, .tp-guide { grid-template-columns: minmax(0, 1fr); }
  .tp-group__head .link-arrow { margin-left: 0; }
  .tph__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .tph__panel--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
}
@media (max-width: 760px) {
  .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .tp-on__cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tp-h1 .v-lk__xl { font-size: clamp(54px, 15.5vw, 80px); }
  .tp-ticks { gap: 8px 16px; }
  /* Style chips: one row that scrolls sideways, so the designs start sooner. */
  .tp-styles .chips { flex-wrap: nowrap; margin: 0 -24px 26px; padding: 2px 24px 8px; overflow-x: auto; scrollbar-width: none; }
  .tp-styles .chips::-webkit-scrollbar { display: none; }
  .tp-styles .chip { white-space: nowrap; }
  .tp-ticks li { font-size: 15px; }
  .tp-card { border-radius: 16px; }
  .tp-card__img { padding: 10px 10px 0; }
  .tp-card__body { gap: 4px; padding: 10px 12px 14px; }
  .tp-card__name { font-size: 23px; }
  .tp-card__desc { font-size: 13px; line-height: 1.4; }
  .tp-card__meta { margin-bottom: 8px; font-size: 10px; letter-spacing: .04em; }
  .tp-card__use { min-height: 38px; padding: .5em .75em .34em; font-size: 17px; }
  .tp-group__title { font-size: 44px; }
  .tp-group__head p { font-size: 15px; }
  .tp-guide__card { padding: 22px 18px; }
  .tp-tips li { gap: 12px; }
  .tp-tips__n { flex-basis: 40px; height: 40px; font-size: 24px; }
  .tph__tab { padding: 8px 13px; font-size: 14px; }
  .tph__panel, .tph__panel--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-top: 26px; }
  .tph__panel--3 .tph__card:last-child { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .tph__name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-card, .tp-card__img img, .tph__sheet, .tp-on__card { transition: none; }
}

/* Pages by job and situation (/cv-templates/nurse ..., includes/site/v3/pages/_tpl-role.php) and the "CV templates
   by job" band on /cv-templates, 2026-10-26. ------------------------------------------------------------------- */
.tp-h1--role .v-lk__xl { font-size: clamp(54px, 6.6vw, 100px); }
.tp-hero__actions { margin-top: 26px; }
.tp-hero__job { margin: 20px 0 0; font-size: 16.5px; }
.tp-role-intro { max-width: 760px; margin: 16px auto clamp(28px, 3.4vw, 40px); font-size: 17px; line-height: 1.55; text-align: center; color: var(--text); }
.tp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin: 0 auto; }
.tp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 660px; margin: 0 auto; }
.tp-browse .tp-grid--3 + .tp-more, .tp-browse .tp-grid--2 + .tp-more { max-width: 980px; margin-left: auto; margin-right: auto; }
.tp-when__copy a, .tp-keys__card > p a { font-weight: 800; color: var(--navy); text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.tp-when__copy a:hover, .tp-keys__card > p a:hover { text-decoration-color: var(--tang); }
.tp-when__uk { padding: 16px 20px; font-size: 16px !important; line-height: 1.55; background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .1); }

/* Skills and keywords, beside the CV examples and skills guide. */
.tp-keys__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; align-items: start; }
.tp-keys__card { padding: clamp(24px, 3vw, 36px); background: var(--paper); border-radius: 26px; box-shadow: 0 0 0 1.5px rgba(30, 42, 90, .1), 0 12px 28px rgba(30, 42, 90, .08); }
.tp-keys__card--links { background: #fff; }
.tp-keys__title { margin: 0 0 12px; 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; }
.tp-keys__card > p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }
.tp-keys__chips { margin-top: 18px; gap: 8px; }
.tp-keys__chips li { font-size: 14.5px; }
.tp-keys__card--links .related-list { margin: 4px -10px 0; }
.tp-keys__card > .tp-keys__note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--grey); }

/* /cv-templates: CV templates by job, grouped by sector. */
.tp-jobs__intro { max-width: 760px; margin: 16px auto 0; font-size: 17px; line-height: 1.55; text-align: center; color: var(--text); }
.tp-jobs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(30px, 4vw, 44px); }
.tp-jobs__group { padding: 22px 22px 24px; 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, .07); }
.tp-jobs__title { margin: 0 0 14px; font-family: var(--display); font-size: 28px; font-weight: 400; line-height: .95; text-transform: uppercase; color: var(--navy); }
.tp-jobs__group .chip:hover { box-shadow: inset 0 0 0 2px var(--navy); }

@media (max-width: 980px) {
  .tp-keys__grid { grid-template-columns: minmax(0, 1fr); }
  .tp-jobs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tp-grid--3, .tp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-grid--3 > .tp-card:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
@media (max-width: 640px) {
  .tp-h1--role .v-lk__xl { font-size: clamp(46px, 13vw, 72px); }
  .tp-jobs__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tp-jobs__group { padding: 18px 16px 20px; }
  .tp-keys__card { padding: 22px 18px; }
  .tp-role-intro, .tp-jobs__intro { font-size: 16px; }
}
