/* colshare.app's articles for firms (src/acte/site-articole.ts makes the HTML): /firms/'s look (acasa.css, firme.css)
   plus the article's own pieces. Each section opens on a title row (a question a firm searches for, its answer beside
   it, a rule), then the detail beside the product's real screen: the desk in a computer frame, the request page in a
   phone frame, the papers it makes on their own sheet. Night, oat and paper bands, one ochre action, rules over cards;
   only the screens keep the app's rounded corners. */

/* The hero is /firms/'s (firme.css .firme-erou): the words on the left, the cut seal on the right. */
.art-erou .erou-text { display: flex; flex-direction: column; gap: 22px; }
.erou .art-h1 { font-size: clamp(36px, 3.9vw, 56px); line-height: 0.98; max-width: none; text-wrap: balance; margin-bottom: 4px; }
.art-meta { margin: 0; font-size: 12px; color: var(--piatra); letter-spacing: 0.02em; }

/* No character caps on titles or leads: one line where they fit, else even lines. Reading text keeps its measure. */
.h2 { max-width: none; text-wrap: balance; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; }
.lead { max-width: none; text-wrap: balance; }
.s.hartie .lead, .s.ovaz .lead { color: var(--corp-h); }

/* The questions of the article, under the hero: a contents list in two columns. */
.art-cuprins > .cadru { padding-top: 0; padding-bottom: clamp(48px, 6vw, 88px); }
.art-cuprins ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; border-top: 1px solid var(--linie-n); }
@media (min-width: 900px) { .art-cuprins ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.art-cuprins li { border-bottom: 1px solid var(--linie-n); }
.art-cuprins a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 13px 0; text-decoration: none; color: var(--piatra-2); font-size: 15.5px; line-height: 1.45; }
.art-cuprins a:hover { color: var(--ocru); }
.art-cuprins .mono { font-size: 11px; padding-top: 3px; color: var(--ocru); }

/* Every section opens on a title row, as on the home page: the question on the left, the answer beside it (under it on
   a phone), and a rule. Both columns are always filled, so no title sits alone with the line beside it empty. */
.art-cap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 64px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--linie-n); }
@media (min-width: 900px) { .art-cap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } .art-cap .lead { padding-bottom: 4px; } }
.s.hartie .art-cap, .s.ovaz .art-cap { border-bottom-color: var(--linie-h); }

/* The detail: the words on one side, the screen on the other, sides alternating; a wide chapter puts its papers in a
   row under the words. The words stay beside their screen while it scrolls past. */
.art-detaliu { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) {
  .art-detaliu.dreapta { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .art-detaliu.stanga { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .art-detaliu.stanga .art-detaliu-text { order: 2; }
  .art-detaliu:not(.lat) .art-detaliu-text { position: sticky; top: 104px; }
  .art-detaliu.lat .art-detaliu-text { columns: 2; column-gap: 64px; }
  .art-detaliu.lat .art-detaliu-text > * { break-inside: avoid; }
}
.art-detaliu-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.art-detaliu.lat .art-detaliu-text { display: block; }
.art-detaliu.lat .art-detaliu-text > * + * { margin-top: 16px; }
.art-detaliu-text p { margin: 0; font-size: 17px; line-height: 1.62; color: var(--piatra-2); max-width: 60ch; }
.art-detaliu-text ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.art-detaliu-text li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.6; color: var(--piatra-2); max-width: 60ch; }
.art-detaliu-text li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--ocru); }
.s.hartie .art-detaliu-text p, .s.hartie .art-detaliu-text li, .s.ovaz .art-detaliu-text p, .s.ovaz .art-detaliu-text li { color: var(--corp-h); }
.s.hartie .art-detaliu-text li::before, .s.ovaz .art-detaliu-text li::before { background: var(--ocru-text); }
.art-detaliu-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; min-width: 0; }
.art-detaliu-media > * { width: 100%; min-width: 0; }
@media (min-width: 900px) {
  .art-detaliu.lat .art-detaliu-media:has(> :nth-child(2)) { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); align-items: center; }
  .art-detaliu.lat .art-detaliu-media > :only-child { max-width: 860px; }
}

/* the film: portrait, the player's own controls */
.art-film { margin: 0; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.art-film video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; border-radius: 14px; border: 1px solid var(--linie-n); }
.art-film figcaption, .art-foaie figcaption { font-size: 11px; color: var(--piatra); text-align: center; }
.s.hartie .art-foaie figcaption, .s.ovaz .art-foaie figcaption { color: var(--estompat); }

/* a computer screen: a thin bar with the address, the desk under it */
.art-ecran { margin: 0; border: 1px solid var(--contur-n); border-radius: 14px; overflow: hidden; background: #0b0c0c; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.s.hartie .art-ecran, .s.ovaz .art-ecran { box-shadow: 0 30px 70px -36px rgba(18, 19, 19, 0.55); }
.ecran-bara { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--linie-n); background: var(--noapte-2); }
.ecran-bara i { width: 8px; height: 8px; border-radius: 50%; background: var(--contur-n); }
.ecran-bara .mono { margin-left: 10px; font-size: 10.5px; color: var(--piatra); }
.art-ecran video, .art-ecran img, .art-telefon video, .art-telefon img, .art-foaie img { display: block; width: 100%; height: auto; max-width: 100%; }
/* a phone: the page in a dark body */
.art-telefon { margin: 0; max-width: 300px; padding: 9px; border-radius: 46px; background: #050505; border: 1px solid var(--contur-n); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); }
.art-telefon video, .art-telefon img { border-radius: 37px; background: var(--noapte); }
/* a paper the product makes, on its sheet */
.art-foaie { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.art-foaie img { background: #fff; border: 1px solid var(--linie-h); box-shadow: 0 24px 60px -32px rgba(18, 19, 19, 0.5); }

/* the rules, with their sources under each */
.art-reguli { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 40px; }
.art-reguli li { display: flex; flex-direction: column; gap: 10px; padding: 8px 0 28px; }
.art-reguli .mono { font-size: 10.5px; color: var(--ocru-text); }
.art-reguli h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.08 var(--titlu); letter-spacing: -0.02em; }
.art-reguli p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--corp-h); }
.art-reguli .art-surse { font-size: 13px; line-height: 1.7; color: var(--estompat); }
.art-nota { margin: 24px 0 0; font: 12px/1.6 var(--mono); color: var(--estompat); }

/* the other questions: the title on the left, staying in view, the questions on the right */
.art-doua { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 64px; align-items: start; }
@media (min-width: 900px) { .art-doua { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .art-doua-cap { position: sticky; top: 96px; } }
.art-doua-cap { display: flex; flex-direction: column; gap: 14px; }
.art-doua-cap .lead { font-size: 16px; }
.art-intrebari { border-top: 1px solid var(--linie-h); }
.art-intrebari details { border-bottom: 1px solid var(--linie-h); }
.art-intrebari summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font: 600 18px/1.4 var(--text); }
.art-intrebari summary::-webkit-details-marker { display: none; }
.art-intrebari summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--ocru-text); }
.art-intrebari details[open] summary::after { content: "–"; }
.art-intrebari p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--corp-h); max-width: 70ch; }

/* the end, and the way on: three links with the home page's arrow */
.art-final .actiuni { justify-content: center; }
.art-legaturi { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin: 12px 0 0; }
.art-legaturi a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--piatra-2); }
.art-legaturi a:hover { color: var(--ocru); }
.art-legaturi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 160ms var(--usor); }
.art-legaturi a:hover svg { transform: translateX(3px); }

h1, h2, h3, .h2, .eticheta, .btn { text-wrap: balance; }
p, li { text-wrap: pretty; }
