/* LaisviDomenai.lt: aukcionu katalogas, loto puslapis ir statymo langai. Tik site.css zetonai ir komponentai. */

/* hidden visada slepia (pvz. .rules li turi display: flex) */
[hidden] { display: none !important; }
.auc-num { font-variant-numeric: tabular-nums; }

/* ---------- /aukcionai/: katalogas ---------- */
.auc-catalog { margin-bottom: clamp(56px, 8vw, 104px); }
.auc-legend { margin: 0 0 clamp(20px, 3vw, 28px); color: var(--ink-2); font-size: 15px; }
.auc-trial { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--paddle); border-radius: 12px; padding: 14px 18px; margin: 0 0 clamp(20px, 3vw, 28px); max-width: 72ch; font-weight: 600; }
.auc-empty { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; margin: 0; max-width: 72ch; }
.auc-group + .auc-group { margin-top: clamp(36px, 5vw, 56px); }
h2.auc-group-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-stretch: 118%; font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.auc-group-title .dot { box-shadow: none; }
.auc-count { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Lotu lentele (savininko prasymas 2026-10-19 vietoj korteliu): katalogo lapas su plonomis linijomis, antraste etiketes sriftu,
   skaiciai lygiuojami desineje (tabular). Placiame ekrane viena eilute lotui; iki 760 px kiekviena eilute tampa ruozu su
   stulpeliu pavadinimais (data-label), todel puslapis i sona nesislenka. */
.auc-lots { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 1px 0 var(--rule), 0 20px 40px -28px rgba(5, 9, 60, 0.5); font-size: 15px; }
.auc-lots th, .auc-lots td { padding: 14px 12px; text-align: left; vertical-align: middle; border-top: 1px solid var(--rule); }
.auc-lots thead th { border-top: 0; padding-block: 12px; background: var(--paper); font-size: 13px; font-weight: 800; font-stretch: 118%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.auc-lots thead th:first-child { border-top-left-radius: 13px; }
.auc-lots thead th:last-child { border-top-right-radius: 13px; }
.auc-lots .num { text-align: right; }
.auc-lots tbody tr:hover > * { background: color-mix(in srgb, var(--paper) 60%, var(--sheet)); }
.auc-lots tbody tr:last-child > *:first-child { border-bottom-left-radius: 13px; }
.auc-lots tbody tr:last-child > *:last-child { border-bottom-right-radius: 13px; }
.auc-lotno { font-size: 13px; font-weight: 800; font-stretch: 118%; letter-spacing: 0.08em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* domenas: pirmenybe plociui, lauzomas tik kai vardas netelpa visas (ne per kiekviena raide) */
th.auc-c-name { font-weight: inherit; min-width: 10em; }
.auc-name { font-weight: 800; font-stretch: 112%; font-size: 19px; line-height: 1.2; color: var(--ink); text-decoration: none; overflow-wrap: break-word; }
.auc-name:hover { text-decoration: underline; }
.auc-strong { display: block; font-weight: 750; font-stretch: 112%; font-size: 17px; color: var(--ink); white-space: nowrap; }
.auc-lots .price-vat, .auc-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.auc-lots .price-vat { white-space: nowrap; }
.auc-c-when { color: var(--ink-2); }
.auc-c-metrics { min-width: 11em; }
.auc-c-left { min-width: 9.5em; }
/* domeno rodikliai: DR su salia esancia "Domain Rating by Ahrefs" nuoroda ir ne slamsto nurodantys domenai, po viena eilute */
.auc-metrics { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.auc-metrics b { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.auc-c-act { text-align: right; white-space: nowrap; }
/* statymo mentele lenteleje mazesne: diskas 36 px, tekstas 15 px; lip ir seselis tie patys */
.auc-lots .auc-bid { gap: 10px; padding: 6px 18px 6px 6px; font-size: 15px; }
.auc-lots .auc-bid .paddle-num { height: 36px; min-width: 36px; font-size: 14px; }

/* ---------- /aukcionai/lotas/: loto puslapis ---------- */
.lot-head .sale-line a { color: inherit; text-decoration: none; }
.lot-head .sale-line a:hover { text-decoration: underline; }
.lot-state { display: inline-flex; align-items: center; gap: 8px; }
.lot-title { overflow-wrap: anywhere; }
.lot-head .paddle { margin-top: 24px; }
.lot-page { padding-block: clamp(32px, 5vw, 56px) 0; }
.lot-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.lot-side { grid-column: 2; grid-row: 1; display: grid; gap: 20px; }
.lot-main { grid-column: 1; grid-row: 1; display: grid; gap: clamp(32px, 4vw, 44px); min-width: 0; }

.lot-board .board-row { padding: 12px 0; }
/* po LED kaina: "+ PVM" ir galutine kaina su PVM */
.board-vat { margin: -6px 0 6px; font-size: 13px; color: var(--board-muted); text-align: right; }
.board-vat:empty { display: none; }
.lot-board .board-live .dot { box-shadow: none; width: 10px; height: 10px; }

.lot-page .bidform-head h2, .auc-dialog .bidform-head h2 { margin: 0; font-stretch: 122%; font-weight: 820; font-size: clamp(24px, 3vw, 32px); line-height: 1.02; letter-spacing: -0.02em; }
.bidform-head span { font-variant-numeric: tabular-nums; }
.lot-mine { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.lot-mine b { display: block; font-size: 17px; font-weight: 750; color: var(--ink); }
.lot-mine.is-leading b { color: var(--ok-text); }
.lot-mine.is-outbid b { color: var(--sold); }
.lot-bid-note p { margin: 0 0 14px; }
.lot-bid .field input { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; max-width: 240px; }
.bid-btn { width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.25; }
.lot-bid .lot-fine { margin-top: 14px; }
/* tuscias pranesimu laukas suskleidziamas, bet lieka prieinamumo medyje (role=status turi buti pries pranesima) */
.lot-bid .form-msg:empty, .auc-catalog .form-msg:empty { min-height: 0; margin: 0; }

.lot-sheet { border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 20px 40px -28px rgba(5, 9, 60, 0.5); }
.lot-top h2.lot-no { margin: 0; line-height: 1.2; }
.lot-sheet .lot-facts { margin-bottom: 0; }
.lot-sheet .lot-facts dd { font-variant-numeric: tabular-nums; }

/* domeno rodikliai: verte, salia jos saltinis (Ahrefs priskyrimas matomas visada) ir patikros data */
.lot-metrics .h3 { margin-bottom: 10px; }
.lm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px 24px; margin: 0 0 16px; }
.lm-list > div { border-top: 1px solid var(--rule); padding-top: 10px; min-width: 0; }
.lm-list dt { font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.lm-list dd { margin: 0; overflow-wrap: anywhere; }
.lm-val { font-weight: 750; font-size: 19px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.lm-attr, .lm-src { font-size: 14px; }
.lm-date { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.lm-own { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--paddle); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; max-width: 72ch; }
.lm-own-title { margin: 0 0 6px; font-size: 17px; font-weight: 750; }
.lm-own p { margin: 0; }
.lm-own .lot-fine { margin-top: 8px; }
.lot-metrics > .lot-fine { max-width: 72ch; }

.lot-history .h3, .lot-terms .h3 { margin-bottom: 10px; }
.lot-terms .h3 + p, .lot-terms p { max-width: 72ch; }
.lot-terms .h3:not(:first-child) { margin-top: 28px; }
.lot-list { margin: 0; padding-left: 1.2em; max-width: 72ch; }
.lot-list li { margin: 8px 0; }
.auc-table-wrap { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; overflow-x: auto; margin-top: 14px; }
.auc-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.auc-table th, .auc-table td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--rule); }
.auc-table thead th { border-top: 0; background: var(--paper); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.auc-table td:nth-child(2) { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.auc-table td:nth-child(3) { color: var(--ink-2); }

/* ---------- statymo langai ---------- */
.auc-dialog { width: min(680px, calc(100% - 2 * var(--gutter))); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; background: var(--sheet); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(5, 9, 60, 0.85); }
.auc-dialog::backdrop { background: rgba(5, 9, 60, 0.6); }
.auc-dialog form { padding: clamp(22px, 3.5vw, 36px); }
.auc-dialog .bidform-head { margin-bottom: 18px; }
.auc-dialog h2:focus { outline: none; } /* antraste fokusuojama tik tam, kad skaitytuvas pradetu nuo lango pradzios */
.auc-sum { margin: 0 0 8px; font-size: 19px; overflow-wrap: anywhere; }
.auc-sum b { font-stretch: 118%; font-weight: 820; font-variant-numeric: tabular-nums; white-space: nowrap; }
.auc-intro { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.auc-terms { margin: 0 0 16px; }
.auc-terms > div { display: grid; grid-template-columns: 10.5em minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-top: 1px solid var(--rule); }
.auc-terms dt { font-weight: 700; font-size: 15px; }
.auc-terms dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.auc-words b { font-weight: 750; }
.auc-binding { margin: 0 0 18px; font-weight: 650; }
.auc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* statymo mygtuke suma ir isipareigojimas: ilgas tekstas lauzomas, o ne islenda is lango */
.auc-actions .paddle { white-space: normal; line-height: 1.25; text-align: center; }

/* ---------- prisitaikymas ---------- */
@media (max-width: 960px) {
  .lot-layout { grid-template-columns: minmax(0, 1fr); }
  .lot-side, .lot-main { grid-column: 1; grid-row: auto; }
}
@media (max-width: 600px) {
  .auc-terms > div { grid-template-columns: minmax(0, 1fr); }
  .auc-actions .paddle { flex: 1 1 100%; justify-content: center; }
  .lot-bid .field input { max-width: none; }
}
/* lotu lentele: vidutiniame plotyje loto numeris nerodomas (jis yra loto puslapyje), siaurame eilute tampa ruozu */
@media (max-width: 1100px) {
  .auc-lots .auc-c-lot, .auc-lots thead th:first-child { display: none; }
  .auc-lots thead th:nth-child(2) { border-top-left-radius: 13px; }
  .auc-lots tbody tr:last-child > .auc-c-name { border-bottom-left-radius: 13px; }
  /* mygtukas be kainos disko (kaina jau stulpelyje Kaina): lentele telpa nuo 860 px */
  .auc-lots .auc-bid { padding: 12px 20px; }
  .auc-lots .auc-bid .paddle-num { display: none; }
}
@media (max-width: 860px) {
  .auc-lots, .auc-lots tbody, .auc-lots tr { display: block; }
  .auc-lots thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .auc-lots tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; padding: 16px 18px; border-top: 1px solid var(--rule); }
  .auc-lots tbody tr:first-child { border-top: 0; }
  .auc-lots tbody tr:hover > * { background: none; }
  .auc-lots tbody tr > * { display: block; padding: 0; border: 0; border-radius: 0 !important; text-align: left; }
  .auc-lots th.auc-c-name { grid-column: 1 / -1; }
  .auc-lots td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 400; color: var(--ink-2); }
  .auc-lots td[data-empty] { display: none; }
  .auc-lots .auc-c-metrics, .auc-lots .auc-c-act { grid-column: 1 / -1; }
  .auc-lots .auc-bid { width: 100%; justify-content: center; padding: 6px 18px 6px 6px; }
  .auc-lots .auc-bid .paddle-num { display: inline-grid; }
  .auc-lots .price-vat, .auc-sub, .auc-strong, .auc-c-when { white-space: normal; }
  .auc-lots .num { text-align: left; }
}
