/* Paginile ajutorului (/help/), făcute de scripts/build-help.py: aceleași culori și fonturi ca site-ul. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/help/assets/fonts/cormorant-extra.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0218, U+0219, U+021A, U+021B, U+201E, U+203A, U+2212;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/help/assets/fonts/hanken-extra.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0218, U+0219, U+021A, U+021B, U+201E, U+203A, U+2212;
}
.hp-hero { padding-bottom: 8px; }
.hp-title { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.08; }
.hp-lead { max-width: 40rem; }
.hp-lead strong { color: var(--ink); font-weight: 600; }
.hp-langs { margin: 26px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; max-width: 42rem; font-size: 13.5px; color: var(--ink-mute); }
.hp-langs > a, .hp-langs > span { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; }
.hp-langs .flag { --f: 16px; }
.hp-langs a { color: var(--ink-soft); }
.hp-langs a .lang-name { border-bottom: 1px solid var(--hairline); transition: border-color 0.2s; }
.hp-langs a:hover { color: var(--ink); }
.hp-langs a:hover .lang-name { border-color: var(--gold-line); }
.hp-langs [aria-current] { color: var(--ink); font-weight: 600; }

.hp-body { padding-top: 28px; padding-bottom: 24px; }
.hp-layout { max-width: calc(46rem + 2 * var(--gutter)); }
.hp-article { min-width: 0; }
.hp-article > :first-child { margin-top: 0; }
.hp-article h2 { margin-top: 46px; font-size: clamp(1.65rem, 3.4vw, 2.15rem); font-weight: 600; line-height: 1.15; scroll-margin-top: 100px; }
.hp-article h3 { margin-top: 30px; font-size: 22px; scroll-margin-top: 100px; }
.hp-article p, .hp-article li { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.hp-article p { margin-top: 16px; }
.hp-article h2 + p, .hp-article h3 + p { margin-top: 10px; }
.hp-article em { font-style: italic; }
.hp-article code, .hp-lead code { padding: 1px 6px; border-radius: 6px; font-size: 0.86em; color: var(--ink); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--hairline); overflow-wrap: anywhere; }
.hp-article a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--gold-line); }
.hp-article a:hover { color: var(--gold-deep); }
.hp-app { color: var(--ink); font-weight: 600; }
.hp-list { margin-top: 14px; padding-left: 26px; display: flex; flex-direction: column; gap: 6px; }
ul.hp-list { list-style: none; padding-left: 22px; }
ul.hp-list li { position: relative; }
ul.hp-list li::before { content: ""; position: absolute; left: -17px; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--gold-deep); }
ol.hp-list { list-style: decimal; }
ol.hp-list li { padding-left: 4px; }
ol.hp-list li::marker { color: var(--gold-deep); font-weight: 600; font-variant-numeric: lining-nums; }

.hp-shot { margin: 26px 0 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hp-shot-frame { display: block; max-width: 100%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--hairline), 0 18px 40px -22px rgba(29, 42, 69, 0.45); }
.hp-shot-frame img { display: block; max-width: 100%; height: auto; }
.hp-shot-caption { position: relative; max-width: 36rem; padding-left: 25px; font-size: 13.5px; line-height: 1.5; color: var(--ink-mute); }
.hp-shot-caption::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 16px; height: 2px; border-radius: 2px; background: var(--gold-line); }

.hp-toc { margin-bottom: 30px; border-radius: 20px; padding: 14px 20px; }
.hp-toc summary { cursor: pointer; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); list-style-position: inside; }
.hp-toc ol { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.hp-toc a { display: block; padding: 5px 0; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); }
.hp-toc a:hover { color: var(--ink); }
/* Coloana de text stă mereu pe mijlocul paginii (pe aceeași axă cu titlul, cu caseta de descărcare și cu subsolul).
   Cuprinsul paginii stă deasupra textului; când fereastra e destul de lată ca să încapă în marginea din dreapta
   fără să împingă textul, trece acolo și rămâne la vedere la derulare. */
@media (min-width: 84rem) {
  .hp-layout.has-toc { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46rem) minmax(0, 1fr); grid-template-areas: ". text toc"; column-gap: 40px; align-items: start; }
  .has-toc .hp-main { grid-area: text; min-width: 0; }
  .has-toc .hp-toc { grid-area: toc; justify-self: start; width: 15rem; max-width: 100%; position: sticky; top: 104px; margin: 0; padding: 18px 20px; max-height: calc(100vh - 140px); overflow: auto; }
  .hp-toc summary { list-style: none; pointer-events: none; }
  .hp-toc summary::-webkit-details-marker { display: none; }
}

.hp-pager { margin-top: 44px; display: grid; gap: 14px; }
@media (min-width: 720px) { .hp-pager { grid-template-columns: 1fr 1fr; } }
.hp-pg { display: flex; flex-direction: column; gap: 4px; border-radius: 20px; padding: 16px 20px; transition: transform 0.2s var(--ease-out); }
.hp-pg:hover { transform: translateY(-2px); }
.hp-pg small { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.hp-pg span { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.hp-pg-next { text-align: right; align-items: flex-end; grid-column: 2; }
@media (max-width: 719px) { .hp-pg-next { grid-column: auto; } }
.hp-all { margin-top: 18px; text-align: center; font-size: 14px; }
.hp-all a { color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.hp-all a:hover { color: var(--ink); border-color: var(--gold-line); }

.hp-get-sec { padding-top: 30px; }
.hp-get { border-radius: 24px; padding: 22px 24px; }
.hp-get-lang { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.hp-get-lang a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--gold-line); white-space: nowrap; }
.hp-get-row { display: flex; flex-direction: column; gap: 14px; }
.hp-get-text { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); min-width: 0; }
.hp-get-text b { color: var(--ink); font-weight: 600; }
.hp-get-act { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; max-width: 100%; }
/* Butonul lung (Linux: numele pachetului și mărimea) rămâne în casetă și pe telefon: trece pe două rânduri. */
.hp-get-act .btn { max-width: 100%; white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; text-align: center; line-height: 1.3; }
.hp-get-fine { font-size: 13px; line-height: 1.55; color: var(--ink-mute); }
.hp-get-fine a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.va-get-size { opacity: .72; font-weight: 500; margin-left: 6px; }
@media (min-width: 760px) {
  .hp-get { padding: 26px 30px; }
  /* Pe Windows butonul și rândul mărunt sunt mai lungi (Microsoft Store, instalatorul clasic): partea din dreapta
     nu are voie să strângă textul din stânga într-o coloană de un cuvânt, nici să iasă din casetă. */
  .hp-get-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
  .hp-get-text { flex: 1 1 260px; min-width: 240px; }
  .hp-get-act { align-items: flex-end; text-align: right; flex: 0 1 auto; min-width: 0; max-width: 100%; }
  .hp-get-fine { max-width: 46ch; }
}

/* cuprinsul /help/ */
.hp-group { margin-top: 10px; }
.hp-group + .hp-group { margin-top: 56px; }
.hp-group h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 500; line-height: 1.12; text-align: center; }
.hp-grid { margin-top: 26px; display: grid; gap: 14px; }
@media (min-width: 720px) { .hp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .hp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hp-card { display: flex; flex-direction: column; gap: 6px; border-radius: 22px; padding: 20px 22px; transition: transform 0.2s var(--ease-out); }
.hp-card:hover { transform: translateY(-2px); }
.hp-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.22; color: var(--ink); }
.hp-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.hp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* scurtăturile: tastele desenate */
.hp-keys { display: inline-flex; gap: 3px; font: inherit; white-space: nowrap; }
.hp-key { display: inline-block; min-width: 1.8em; padding: 0.08em 0.45em 0.1em; border-radius: 6px; font-family: var(--sans); font-size: 0.8em; font-weight: 600; line-height: 1.5; text-align: center; color: var(--ink); background: linear-gradient(180deg, #fffdf8, #f0e9da); box-shadow: inset 0 0 0 1px rgba(29, 42, 69, 0.17), 0 1.5px 0 rgba(29, 42, 69, 0.2); }

/* capturile: rama, mărirea, ziua / noaptea */
.hp-shot { width: -webkit-fit-content; width: fit-content; max-width: 100%; align-items: stretch; }
.hp-shot-frame { position: relative; }
.hp-shot-frame picture { display: block; }
.hp-shot-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.hp-shot-foot .hp-shot-caption { flex: 1 1 15rem; }
.hp-shot-zoom, .hp-theme, .hp-film-btn { display: none; }
.hp-js .can-zoom .hp-shot-zoom { display: block; position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.hp-shot-zoom-ico { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, 0.86); box-shadow: 0 0 0 1px var(--hairline), 0 6px 16px -8px rgba(29, 42, 69, 0.5); opacity: 0; transform: scale(0.92); transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out); }
.hp-shot-zoom:hover .hp-shot-zoom-ico, .hp-shot-zoom:focus-visible .hp-shot-zoom-ico { opacity: 1; transform: none; }
.hp-shot-zoom:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 3px; border-radius: 16px; }
.hp-js .hp-theme { display: inline-flex; flex: none; margin-left: auto; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--hairline); }
.hp-theme button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border: 0; border-radius: 999px; font: 600 12.5px/1 var(--sans); color: var(--ink-mute); background: transparent; cursor: pointer; transition: background-color 0.16s, color 0.16s, box-shadow 0.16s; }
.hp-theme button:hover { color: var(--ink); }
.hp-theme button[data-theme="day"][aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(29, 42, 69, 0.16); }
.hp-theme button[data-theme="night"][aria-pressed="true"] { color: var(--cream); background: var(--ink); }
.hp-theme button:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 2px; }

/* mărirea unei capturi */
.hp-zoomed { overflow: hidden; }
.hp-zoom { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.hp-zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.hp-zoom::backdrop { background: rgba(18, 26, 44, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hp-zoom img { display: block; width: auto; height: auto; max-height: calc(100vh - 120px); border-radius: 12px; background: #fff; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); cursor: zoom-out; }
.hp-zoom-cap { max-width: 40rem; padding: 0 20px; font-size: 14px; line-height: 1.5; text-align: center; color: #efe7d7; }
.hp-zoom-x { position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); cursor: pointer; }
.hp-zoom-x:hover { background: rgba(255, 255, 255, 0.24); }
.hp-zoom-x:focus-visible { outline: 2px solid #e2c48c; outline-offset: 2px; }

/* filmele */
.hp-film { width: 100%; }
.hp-film .hp-shot-frame { background: var(--paper-deep); }
.hp-film video { display: block; width: 100%; height: auto; }
.hp-js .hp-film-btn { display: grid; place-items: center; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, 0.88); box-shadow: 0 0 0 1px var(--hairline), 0 8px 20px -10px rgba(29, 42, 69, 0.55); cursor: pointer; transition: transform 0.16s var(--ease-out), background-color 0.16s; }
.hp-film-btn:hover { transform: scale(1.06); background: #fff; }
.hp-film-btn:focus-visible { outline: 2px solid var(--gold-line); outline-offset: 2px; }
.hp-film-btn .i-pause, .hp-film-btn.is-playing .i-play { display: none; }
.hp-film-btn.is-playing .i-pause { display: block; }

/* tabelul stilurilor de citare */
.hp-ct { margin: 28px 0 30px; padding: 4px 6px 0; border-radius: 22px; }
.hp-ct table { position: relative; z-index: 1; width: 100%; border-collapse: collapse; table-layout: fixed; }
.hp-ct caption { caption-side: bottom; position: relative; padding: 14px 16px 16px 41px; text-align: left; font-size: 13.5px; line-height: 1.5; color: var(--ink-mute); }
.hp-ct caption::before { content: ""; position: absolute; left: 16px; top: calc(14px + 0.7em); width: 16px; height: 2px; border-radius: 2px; background: var(--gold-line); }
.hp-ct th, .hp-ct td { padding: 14px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(29, 42, 69, 0.08); }
.hp-ct thead th { padding-top: 16px; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; color: var(--ink); border-bottom-color: rgba(29, 42, 69, 0.14); }
.hp-ct thead th:first-child, .hp-ct tbody th { width: 24%; }
.hp-ct tbody th { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.hp-ct tbody th small { font-size: 12.5px; font-weight: 500; color: var(--ink-mute); }
.hp-ct-cite, .hp-ct-note, .hp-ct-entry { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.42; color: var(--ink); overflow-wrap: anywhere; }
.hp-ct-entry { padding-left: 1.3em; text-indent: -1.3em; }
.hp-ct-note sup { margin-right: 3px; font-family: var(--sans); font-size: 0.62em; font-weight: 600; color: var(--gold-deep); }
.hp-ct-head, .hp-ct-label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.13em; line-height: 1.4; text-transform: uppercase; }
.hp-ct-head { color: var(--gold-deep); }
.hp-ct-label { color: var(--ink-mute); }
.hp-ct-note + .hp-ct-label { margin-top: 12px; }
@media (max-width: 719px) {
  .hp-ct { padding: 0; }
  .hp-ct table { display: flex; flex-direction: column; }
  .hp-ct tbody, .hp-ct tr, .hp-ct th, .hp-ct td { display: block; }
  .hp-ct tbody th, .hp-ct td { width: auto; }
  .hp-ct thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hp-ct caption { display: block; order: 2; }
  .hp-ct tbody th small { display: inline; font-family: var(--sans); }
  .hp-ct tbody th br { display: none; }
  .hp-ct tbody tr { padding: 16px 18px 8px; border-bottom: 1px solid rgba(29, 42, 69, 0.1); }
  .hp-ct tbody th, .hp-ct td { padding: 0 0 12px; border: 0; }
  .hp-ct tbody th { font-family: var(--serif); font-size: 19px; }
  .hp-ct td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-mute); }
  /* pe telefon titlul listei (References, Works Cited…) și „Ca notă de subsol” spun destul: fără eticheta coloanei */
  .hp-ct td + td::before, .hp-ct td:has(.hp-ct-label)::before { display: none; }
}

/* caseta spre pagina „Story map” a site-ului */
.hp-see { margin-top: 40px; }
.hp-article a.hp-see-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; border-radius: 22px; border: 1px solid var(--glass-brd); font-weight: 400; color: var(--ink); transition: transform 0.16s var(--ease-out); }
.hp-article a.hp-see-card:hover { transform: translateY(-2px); color: var(--ink); }
.hp-see-card > * { position: relative; z-index: 1; }
.hp-see-card img { width: 150px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--hairline); }
.hp-see-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hp-see-body small { font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold-deep); }
.hp-see-body b { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.hp-see-body span { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.hp-see-card > svg { color: var(--gold-deep); }
@media (max-width: 559px) {
  .hp-article a.hp-see-card { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 12px 16px 12px 12px; }
  .hp-see-card img { width: 92px; }
  .hp-see-card > svg { display: none; }
  .hp-see-body b { font-size: 19px; }
}

/* căutarea din cuprins */
.hp-search { max-width: 40rem; margin: 0 auto 48px; }
.hp-search[hidden] { display: none; }
.hp-search-box { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px; border-radius: 999px; color: var(--ink-mute); cursor: text; transition: box-shadow 0.16s; }
.hp-search-box:focus-within { box-shadow: var(--glass-shadow), 0 0 0 2px var(--gold-line); }
.hp-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; font: 17px/1.2 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.hp-search input::placeholder { color: var(--ink-mute); opacity: 1; }
.hp-search-n { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--ink-mute); }
.hp-search-n:empty { display: none; }
.hp-hits { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.hp-hits:empty { display: none; }
.hp-hit { display: flex; flex-direction: column; gap: 4px; padding: 15px 20px; border-radius: 18px; transition: transform 0.16s var(--ease-out); }
.hp-hit:hover { transform: translateY(-2px); }
.hp-hit > * { position: relative; z-index: 1; }
.hp-hit-t { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.hp-hit-s { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); }
.hp-hit-x { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); overflow-wrap: anywhere; }
.hp-hit mark { padding: 0 1px; border-radius: 3px; color: var(--ink); background: rgba(168, 133, 76, 0.24); }
[data-hp-groups][hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hp-shot-zoom-ico, .hp-theme button, .hp-film-btn, .hp-see-card, .hp-hit, .hp-search-box { transition: none !important; }
  .hp-hit:hover, .hp-article a.hp-see-card:hover, .hp-film-btn:hover { transform: none; }
}
