/* paneveziotlk.lt — minimalistinis šablonas */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-card: #ffffff;
  --text: #1b1f27;
  --text-muted: #5a6472;
  --border: #e2e5ea;
  --accent: #0f5f4e;
  --accent-soft: #e8f2ef;
  --warn-bg: #fff6e6;
  --warn-border: #e8c27a;
  --radius: 10px;
  --maxw: 880px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171c;
    --bg-soft: #1b1f26;
    --bg-card: #1b1f26;
    --text: #e8eaee;
    --text-muted: #a3acba;
    --border: #2b313a;
    --accent: #58c7ab;
    --accent-soft: #17302b;
    --warn-bg: #2a2317;
    --warn-border: #6b5a34;
  }
}

:root[data-theme="dark"] {
  --bg: #14171c;
  --bg-soft: #1b1f26;
  --bg-card: #1b1f26;
  --text: #e8eaee;
  --text-muted: #a3acba;
  --border: #2b313a;
  --accent: #58c7ab;
  --accent-soft: #17302b;
  --warn-bg: #2a2317;
  --warn-border: #6b5a34;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo img { width: 34px; height: 34px; border-radius: 8px; }

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: 14px;
  color: var(--text-muted);
  padding: 14px 0 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--border);
}

.breadcrumbs a { color: var(--text-muted); }

/* ---------- Content ---------- */

main { padding-bottom: 48px; }

h1 {
  font-size: clamp(27px, 4.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 18px 0 12px;
}

h2 {
  font-size: clamp(22px, 3.2vw, 27px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 4px;
}

h3 {
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.35;
  margin: 30px 0 10px;
}

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }

strong { font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

.lead { font-size: 18px; color: var(--text-muted); }

figure { margin: 24px 0; }

figure img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }

figcaption {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

blockquote, .note {
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p:last-child, .note p:last-child { margin-bottom: 0; }

.warning {
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  font-size: 15px;
}

.warning p:last-child { margin-bottom: 0; }

.source-note { font-size: 14px; color: var(--text-muted); }

/* ---------- Meta line (author + date) ---------- */

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.entry-meta a { font-weight: 600; }

/* ---------- Tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  min-width: 540px;
}

caption {
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th { background: var(--bg-soft); font-weight: 650; }

tbody tr:last-child td { border-bottom: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------- Rating list ---------- */

.rating-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rating-item {
  display: grid;
  grid-template-columns: 30px 94px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0;
}

.rating-pos {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
}

/* logotipai yra horizontalūs (470:250), todėl langelis platus, be apkarpymo */
.rating-item img {
  width: 94px;
  height: 50px;
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: var(--bg-soft);
}

.rating-name {
  font-weight: 650;
  font-size: 17px;
  margin: 0 0 2px;
}

.rating-offer {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.rating-score {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.rating-score b {
  display: block;
  font-size: 20px;
  color: var(--accent);
  line-height: 1.2;
}

/* ---------- CTA mygtukai ---------- */

.btn-cta {
  display: inline-block;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
  border: 1px solid transparent;
  /* mygtukai yra <button>, todėl reikia nunulinti naršyklės stilius */
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.btn-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  filter: brightness(1.08);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-cta { color: #0f1418; }
}

:root[data-theme="dark"] .btn-cta { color: #0f1418; }

.btn-cta-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* komercinio pobūdžio atskleidimas virš reitingo */
.disclosure {
  font-size: 14px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 22px 0;
}

.disclosure p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .rating-item {
    grid-template-columns: 28px 78px 1fr;
    grid-template-areas:
      "pos logo name"
      "score score score"
      "cta cta cta";
    gap: 10px 12px;
  }
  .rating-pos { grid-area: pos; }
  .rating-item img { grid-area: logo; width: 78px; height: 42px; }
  .rating-body { grid-area: name; }
  .rating-score { grid-area: score; text-align: left; }
  .rating-score b { display: inline; font-size: 16px; }
  .rating-cta { grid-area: cta; }
  .rating-cta .btn-cta { display: block; width: 100%; }
}

/* ---------- Author block ---------- */

.author-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  margin: 40px 0;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  scroll-margin-top: 90px;
}

.author-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex: 0 0 auto;
  object-fit: cover;
}

.author-card .author-body { flex: 1 1 260px; }

.author-card h2, .author-card h3 { margin: 0 0 2px; font-size: 20px; }

.author-role {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.author-card p:last-child { margin-bottom: 0; }

/* ---------- Internal link cards ---------- */

.link-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 0;
}

.link-cards li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.link-cards a { font-weight: 650; }

.link-cards span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- 404 ---------- */

.error-page {
  padding: 48px 0 64px;
  text-align: center;
}

.error-code {
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin: 0;
  letter-spacing: -0.03em;
}

.error-page .btn { margin-top: 8px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 650;
}

:root[data-theme="dark"] .btn,
.btn:hover { color: #fff; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { color: #0f1418; }
}

.error-links {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  font-size: 15px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 32px 0;
  font-size: 15px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.site-footer h2 {
  font-size: 15px;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

.footer-author {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.footer-author p { margin: 0 0 6px; font-size: 14px; }

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.age-badge {
  display: inline-block;
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: 13px;
  margin-right: 8px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 10px;
  z-index: 50;
  background: var(--bg);
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
