/* ElitCV content pages: /guide.html, /transformation.html and /how-it-works.html (PAGES2A). A card / box layout on top of site.css:
   every topic is its own card, the page contents are link cards, examples are nested cards.
   Colours, spacing, radii and type come only from theme.css tokens (light + dark). Logical properties only. */

.pv{counter-reset:pvsec}
.pv main{padding-bottom:var(--space-7)}


/* Page head: one calm card */
.pv .page-head{max-width:1040px;margin:0 auto;padding-inline:var(--space-5)}
.pv .page-head h1{margin-inline:auto}

/* Contents: a grid of link cards, numbered in reading order */
.pv .toc{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:var(--space-3);max-width:1040px;
  margin:var(--space-7) auto 0;padding:0;counter-reset:pvtoc}
.pv .toc li{display:flex;min-width:0}
.pv .toc a{flex:1;display:flex;align-items:center;gap:var(--space-3);min-height:56px;padding:var(--space-3) var(--space-4);
  border:1px solid var(--line-2);border-radius:var(--radius-lg);background:var(--paper);color:var(--ink);font-weight:600;
  text-decoration:none;text-align:start;line-height:1.5;transition:border-color .2s}
.pv .toc a::before{counter-increment:pvtoc;content:counter(pvtoc);flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;border-radius:50%;background:var(--accent-pale);color:var(--accent-ink);font-size:13px;font-weight:700;font-family:var(--font-en)}
.pv .toc a:hover{border-color:var(--accent-ink)}
.pv .toc a:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
.pv .toc a:active{transform:scale(.99)}

/* Every topic: its own card with its number */
.pv section.std{max-width:1040px;margin:0 auto var(--space-6);padding:var(--space-7);background:var(--paper);
  border:1px solid var(--line-2);border-radius:var(--radius-xl);min-width:0}
.pv section.std .section-head{margin-bottom:var(--space-6)}
.pv section.std .section-head::before{counter-increment:pvsec;content:counter(pvsec);display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;margin:0 auto var(--space-3);border-radius:50%;background:var(--accent-pale);color:var(--accent-ink);
  font-weight:700;font-family:var(--font-en)}
.pv section.std .learn-row{background:var(--bg)}

/* Nested cards: each example (transformation) and each sub-topic block */
.pv .ex-panel{padding:var(--space-5);border:1px solid var(--line-2);border-radius:var(--radius-lg);background:var(--bg)}
.pv .ex-panel+.ex-panel{margin-top:var(--space-5)}

/* The closing band keeps its own fixed dark look (site.css .cta) */
.pv .cta{max-width:1040px;margin-inline:auto}

/* Cards of the "How it works" page */
.hiw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:var(--space-4);max-width:1040px;margin:0 auto}
.hiw-card{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-6);background:var(--paper);border:1px solid var(--line-2);
  border-radius:var(--radius-xl);min-width:0}
.hiw-card h3{margin:0;font-size:var(--text-h3-size);font-weight:var(--text-h3-weight);line-height:1.5;color:var(--ink)}
.hiw-card p{margin:0;color:var(--text-soft);font-size:15.5px;line-height:1.8}
html[dir="rtl"] .hiw-card p{line-height:2}
.hiw-card ul{margin:0;padding-inline-start:var(--space-5);color:var(--text);font-size:15px;line-height:1.8}
.hiw-step{display:flex;align-items:center;gap:var(--space-3)}
.hiw-num{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;
  background:var(--accent-pale);color:var(--accent-ink);font-weight:700;font-family:var(--font-en)}
.hiw-ico{width:22px;height:22px;color:var(--accent-ink);flex-shrink:0}
.hiw-tag{align-self:flex-start;padding:2px var(--space-3);border-radius:var(--radius-full);border:1px solid var(--line-2);
  background:var(--bg-alt);color:var(--text);font-size:var(--text-label-size);font-weight:600}
.hiw-card a.hiw-link{align-self:flex-start;margin-top:auto;color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.hiw-card a.hiw-link:hover{color:var(--accent-ink)}
.hiw-card li a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}   /* ADMIN2: the Elitport link */
.hiw-card li a:hover{color:var(--accent-ink)}
.hiw-card li a:active{opacity:.8}
.hiw-wide{grid-column:1/-1}

/* The appearance section of the guide (GUIDE2): cards inside the interview card */
.pv .appearance .section-p{margin:0 0 var(--space-4);max-width:none;text-align:start}
.pv section.std .appearance .hiw-grid{padding-inline:0}
.pv section.std .appearance .hiw-card{background:var(--bg);padding:var(--space-5)}
.hiw-card h4{margin:0;font-size:var(--text-h3-size);font-weight:var(--text-h3-weight);line-height:1.5;color:var(--ink)}
html[dir="rtl"] .hiw-card ul{line-height:2}

@media (max-width:700px){
  .pv section.std{padding:var(--space-5) var(--space-4);margin-inline:var(--space-3);border-radius:var(--radius-lg)}
  .pv .ex-panel{padding:var(--space-4) var(--space-3)}
  .hiw-grid{padding-inline:var(--space-3)}
  .hiw-card{padding:var(--space-5)}
}
@media (prefers-reduced-motion:reduce){.pv .toc a{transition:none}}

/* HIW3: How it works ends with the closing band and the footer, no line between them */
.hiw-page footer{border-top:0}
.hiw-tag[hidden]{display:none}
