/* transromania.com — stiluri comune pentru pagina în engleză (/) și în română (/ro/) */
/* Jost (licență liberă SIL OFL, vezi /fonturi/OFL-Jost.txt): literele mari ale mărcii pe Android și Windows, unde nu există Futura. Se descarcă doar acolo. */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonturi/jost-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonturi/jost-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonturi/jost-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonturi/jost-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  /* Paleta de bază (nu se schimbă) și rolurile ei; varianta întunecată schimbă doar rolurile. */
  :root { --crem: #f4ebd6; --brad: #1b3a2e; --foc: #e04a2b; --soare: #f2b23e; --rosu: #b8361c;
          --fundal: var(--crem); --text: var(--brad); --moale: #52624f; --foc-text: #b8361c; --linie: #d8cdb0; --hartie: #e9e3d4;
          --plin: var(--brad); --pe-plin: var(--crem); --panou: var(--brad); --aprins: rgba(27, 58, 46, .08); --voal: var(--crem); --voal-op: .72; color-scheme: light; }
  @media (prefers-color-scheme: dark) {
    :root { --fundal: #13201a; --text: #f1e8d3; --moale: #a9b8a4; --foc-text: #f08a6c; --linie: #2f4339; --hartie: #1c2c25;
            --plin: #f1e8d3; --pe-plin: #13201a; --panou: #20372c; --aprins: rgba(241, 232, 211, .08); --voal: #13201a; --voal-op: .66; color-scheme: dark; }
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; background: var(--fundal); color: var(--text);
         font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; line-height: 1.55; }
  .titlu { font-family: Futura, "Futura PT", "Jost", "Century Gothic", "Avenir Next", "Trebuchet MS", system-ui, sans-serif; }
  main { max-width: 1100px; margin: 0 auto; padding: clamp(28px, 5vh, 56px) 20px 10vh; }
  .emblema { display: block; width: clamp(92px, 11vw, 128px); height: auto; margin: 0 0 22px; }
  .eticheta { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
              color: var(--crem); background: var(--rosu); padding: 7px 14px; border-radius: 999px; }
  h1 { font-size: min(clamp(1.375rem, 7.2vw, 5.125rem), 8.4vw); line-height: 1; margin: 18px 0 0; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
  h1 .com { color: var(--foc); }
  .bara { width: 120px; height: 6px; background: var(--foc); margin: 18px 0; border: 0; }
  .sub { font-size: clamp(1rem, 2.3vw, 1.4375rem); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; max-width: 26em; margin: 0; }
  .lead { max-width: 34em; margin: 14px 0 0; font-size: clamp(1.0625rem, 1.9vw, 1.25rem); line-height: 1.45; text-wrap: pretty; }
  .cifre { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 26px 0 0; padding: 0; list-style: none; }
  .cifre li { font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--moale); }
  .cifre b { display: block; font-size: clamp(1.625rem, 4vw, 2.5rem); line-height: 1.15; color: var(--text); font-weight: 800; letter-spacing: 0; }
  picture { display: block; }
  figure { margin: 30px 0 0; display: flex; flex-direction: column; }
  figure .cifre { margin: 16px 0 0; }
  .cifre[data-titlu] { flex-wrap: wrap; }
  .cifre[data-titlu]::before { content: attr(data-titlu); flex-basis: 100%; grid-column: 1 / -1; font-family: Futura, "Futura PT", "Jost", system-ui, sans-serif; font-weight: 700; font-size: 0.8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: -6px; }   /* ale cui sunt cifrele, când e ales un tronson */   /* cifrele sunt legenda de sub hartă pe orice ecran, ca harta să urce în primul ecran */
  .harta { position: relative; display: block; border-radius: 10px; border: 1px solid var(--linie); background: var(--hartie); overflow: hidden; }
  figure img { display: block; width: 100%; height: auto; }
  .harta svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .desen .harta img { opacity: 0; animation: tr-arata 0s 8s forwards; }   /* dacă scriptul nu se încarcă (semnal slab), harta apare oricum după 8 s */
  @keyframes tr-arata { to { opacity: 1; } }
  figcaption { font-size: 0.875rem; color: var(--moale); margin-top: 12px; text-wrap: pretty; }
  .capete { margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.45; text-wrap: pretty; }   /* capetele etapelor tronsonului ales */
  .buton { display: inline-block; margin-top: 26px; font-size: 0.875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
           color: var(--pe-plin); background: var(--plin); padding: 14px 22px; border-radius: 999px; text-decoration: none; }
  @media (hover: hover) { .buton:hover { background: var(--rosu); color: var(--crem); } }
  .pdf { margin: 0; }
  .pdf .buton { margin-top: 18px; max-width: 100%; overflow-wrap: break-word; }
  .pdf-nota { margin: 8px 0 0; font-size: 0.8125rem; color: var(--moale); }
  .text { max-width: 65ch; margin: 36px 0 0; font-size: 1.125rem; text-wrap: pretty; }
  .en { color: var(--moale); font-size: 1rem; }
  .cum { list-style: none; padding: 0; margin: 16px 0 0; max-width: 65ch; display: grid; gap: 12px; font-size: 1.0625rem; text-wrap: pretty; }
  .cum b { color: var(--text); }
  figcaption a { color: inherit; text-underline-offset: .18em; }
  figcaption a:hover { color: var(--foc-text); }
  .text a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
  .text a:hover { color: var(--foc-text); }
  .spun { max-width: 40em; margin: 36px 0 0; padding: 18px 22px; background: var(--panou); color: var(--crem); border-radius: 12px; font-size: 1.0625rem; }
  .spun b { display: block; font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soare); margin-bottom: 4px; }
  .spun a { color: var(--crem); }
  .final { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--linie); }   /* rămas-bun: o frază și două butoane, ultimul lucru de pe pagină */
  .final-titlu { margin: 0; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
  .final-butoane { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
  .final-butoane .buton { margin-top: 0; max-width: 100%; }
  .sec { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: 44px 0 0; hyphens: auto; overflow-wrap: break-word; }
  .tronsoane { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 14px 28px; }
  .tronsoane li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; line-height: 1.35; }
  .tronsoane .lit { flex: none; width: 1.9em; height: 1.9em; border-radius: .4em; color: #fff; font-family: Futura, "Jost", "Century Gothic", system-ui, sans-serif; font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; }
  .tronsoane li > span:last-child, .tronsoane .tr > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .tronsoane .tr { display: flex; gap: 14px; align-items: flex-start; width: calc(100% + 20px); margin: -6px -10px; padding: 6px 10px; border: 0; border-radius: 10px;
                  background: none; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; transition: background-color .2s ease-out; }
  .tronsoane b { font-size: 1.1875rem; display: block; }
  .tronsoane small { display: block; font-size: 0.8125rem; color: var(--moale); margin-top: 2px; text-wrap: balance; }
  .limba { position: absolute; top: 18px; right: 20px; font-size: 0.8125rem; font-weight: 700; letter-spacing: .14em; }
  .limba a, .limba span { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 999px; }
  .limba span { background: var(--plin); color: var(--pe-plin); }
  .limba a:hover { color: var(--foc-text); }
  .harta svg.umbra { opacity: 0; transition: opacity .28s cubic-bezier(.2, .7, .2, 1); }
  .harta svg.umbra.vizibil { opacity: 1; }
  .harta svg.umbra .voal { fill: var(--voal); fill-opacity: var(--voal-op); }   /* restul hărții: spre crem pe modul deschis, spre verde-închis pe cel întunecat */
  .tronsoane li.aprins .tr { background: var(--aprins); }
  .tronsoane li.ales .tr { background: var(--aprins); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 0 0 0 2px var(--c), 0 0 0 1px var(--moale); }   /* inel în culoarea tronsonului + linie fină care se vede pe orice fundal */   /* tronsonul ales: chenar întreg în culoarea lui */
  @media (prefers-color-scheme: dark) { .tronsoane .lit { box-shadow: 0 0 0 1px rgba(241, 232, 211, .3); } }   /* pătratele închise (I, J) se văd și pe fundal închis */
  a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
  .spun a:focus-visible { outline-color: var(--crem); }
  .tronsoane .tr:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
  .inapoi:focus-visible { outline-color: var(--brad); }   /* stă pe hartă, care e deschisă la culoare în ambele variante */
  @media (max-width: 560px) {   /* telefon: titlul pe două rânduri (TRANSROMANIA / .COM), mai mare, și crește cu mărimea textului aleasă de om */
    h1 { font-size: calc(8.1vw + 0.125rem); line-height: 1.02; overflow-wrap: anywhere; }
    h1 .com { display: block; }
    .cifre b { font-size: 1.375rem; }
    .eticheta { font-size: 0.75rem; padding: 6px 12px; }
  }
  @media (max-width: 560px) { .cifre { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 100%), 1fr)); gap: 16px 20px; } }
  @media (max-width: 1179px) {   /* telefon și tabletă: lista vine imediat după hartă; după ce alegi, capetele și PDF-ul tronsonului urcă sub hartă */
    .atlas { display: flex; flex-direction: column; }
    .atlas figure { display: contents; }
    .atlas .harta { order: 1; margin-top: 30px; }
    .atlas figure .cifre { order: 2; }
    .atlas figcaption { order: 3; }
    .atlas .capete { order: 4; } .atlas .pdf-nota { order: 6; }
    .atlas.ales .pdf { order: 5; }
    .atlas .sec { order: 7; }
    .atlas .tronsoane { order: 8; }
    .atlas .pdf { order: 9; }
  }
  @media (min-width: 1180px) {
    .atlas { display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: auto 1fr; column-gap: 36px; margin-top: 22px; }
    .atlas figure { grid-row: 1 / span 2; margin: 0; align-self: start; position: sticky; top: 24px; }
    .atlas figure .cifre { flex-wrap: nowrap; justify-content: space-between; gap: 20px; }
    .atlas figure .cifre[data-titlu] { flex-wrap: wrap; row-gap: 10px; }   /* pe ecran lat cifrele sunt legenda de sub hartă, ca harta să urce în primul ecran */
    .atlas figure .cifre b { font-size: 1.75rem; }
    .emblema { width: 88px; margin-bottom: 16px; }
    h1 { font-size: min(clamp(1.375rem, 7.2vw, 5.125rem), 8.4vw, 8.6vh); }   /* titlul ține cont și de înălțimea ecranului */
    .bara { margin: 14px 0; }
    .atlas .sec { margin: 0; font-size: 1.375rem; }
    .atlas .tronsoane { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  }
  .scena { display: block; position: relative; transform-origin: 0 0; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
  .harta.aproape { cursor: zoom-out; }
  @media (max-width: 560px) { .harta.aproape { aspect-ratio: 1 / 1; } }   /* telefon: rama apropiată mai înaltă, ca tronsonul să se poată mări mai mult */
  .inapoi, .pas { min-height: 44px; display: inline-flex; align-items: center; }
  .pas { display: inline-block; line-height: 24px; }   /* inline-block păstrează spațiile din „‹ B · Burebista” */
  .inapoi[hidden], .pas[hidden] { display: none; }
  .placa { position: absolute; z-index: 1; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .harta.aproape .placa, .desen .placa { display: none; }
  /* telefon, hartă apropiată: numerele etapelor și orașele ca text de mărime fixă (harta rămâne deschisă la culoare în ambele moduri) */
  .etichete { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s ease-out .55s; }
  .etichete.vizibil { opacity: 1; }
  .etichete .nr { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; border: 2px solid var(--c, #1b3a2e);
                  font: 800 10px/16px Futura, "Jost", system-ui, sans-serif; text-align: center; color: #26201a; }
  .etichete .nr.start { background: #e04a2b; border-color: #fff; }
  .etichete .loc { position: absolute; transform: translateY(-50%); white-space: nowrap; color: #26201a;
                   font: 600 12.5px/1.15 "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
                   text-shadow: 0 0 3px #fffdf8, 0 0 3px #fffdf8, 0 0 2px #fffdf8, 0 0 1px #fffdf8; }
  .etichete .loc.st { transform: translate(-100%, -50%); }
  @media (prefers-reduced-motion: reduce) { .etichete { transition: none; } }
  @media (prefers-color-scheme: dark) { .harta .inapoi, .harta .pas { box-shadow: 0 0 0 1px rgba(244, 235, 214, .55), 0 2px 10px rgba(0, 0, 0, .35); } }   /* pe voalul verde-închis butoanele de pe hartă primesc contur crem */
  .pas { position: absolute; bottom: 12px; z-index: 2; font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
         color: var(--crem); background: var(--brad); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(20, 34, 28, .25); }
  .pas-st { left: 12px; } .pas-dr { right: 12px; }
  .pas:focus-visible { outline-color: var(--brad); }
  @media (hover: hover) { .pas:hover { background: var(--rosu); } }
  @media (max-width: 560px) { .pas-nume { display: none; } }   /* pe telefon doar litera: ‹ E   G › */
  figure { position: relative; }
  .inapoi { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 0.8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
            color: var(--crem); background: var(--brad); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; box-shadow: 0 2px 10px rgba(20, 34, 28, .25); }
  @media (hover: hover) { .inapoi:hover { background: var(--rosu); } }
  @media (prefers-reduced-motion: reduce) { .harta svg.umbra, .tronsoane .tr, .scena { transition: none; } }
  footer { max-width: 1100px; margin: 0 auto; padding: 22px 20px 44px; font-size: 0.8125rem; line-height: 1.5; color: var(--moale); border-top: 1px solid var(--linie); }
