/* === RAKSTS (raksts.html) — ziņa / aktualitāte / pasākums ===
   Virsraksti, pogas, vietturi (.img-slot) — style.css */

.art-wrap {
  max-width: 1180px;
  margin: 24px auto 56px;
  padding: 0 24px;
}

/* ── CEĻŠ + ATPAKAĻ ──────────────────────────────────── */
.art-crumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: var(--muted);
}

.art-crumbs nav a { color: var(--muted); transition: color .15s; }
.art-crumbs nav a:hover { color: var(--blue); }
.art-crumbs nav span { margin: 0 6px; opacity: .6; }

.art-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue);
}

.art-back:hover { text-decoration: underline; }

/* ── IZKĀRTOJUMS ─────────────────────────────────────── */
.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

/* ── RAKSTA GALVA ────────────────────────────────────── */
.art-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--muted);
}

.art-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tag);
}

.art-meta .dot { opacity: .5; }

.art-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: #111;
  margin-bottom: 22px;
}

/* ── ATTĒLS / AFIŠA ──────────────────────────────────── */
.art-figure {
  margin: 0 0 26px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--light-bg);
  border: 1px solid var(--border);
}

.art-figure img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;     /* afišas netiek apgrieztas */
  background: var(--light-bg);
}

.art-figure .img-slot-label {
  height: 320px;
  border: none;
  border-radius: 0;
}

.art-figure figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* ── TEKSTS ──────────────────────────────────────────── */
.art-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

.art-content p { margin-bottom: 16px; }

.art-content .lead {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  color: #111;
}

.art-content h2,
.art-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #111;
  margin: 28px 0 10px;
}

.art-content ul,
.art-content ol { margin: 0 0 16px 22px; }
.art-content li { margin-bottom: 6px; }

.art-content a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.art-content blockquote {
  border-left: 4px solid var(--red);
  background: var(--light-bg);
  padding: 14px 18px;
  margin: 0 0 16px;
  border-radius: 0 8px 8px 0;
}

/* ── PIELIKUMI ───────────────────────────────────────── */
.art-files {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.art-files h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.art-file {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  transition: border-color .15s, box-shadow .15s;
}

.art-file:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(26, 92, 176, .1);
}

.art-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: var(--muted);
}

.art-file-icon.pdf { background: #d93838; }
.art-file-icon.doc { background: #2b5fb4; }
.art-file-icon.img { background: #2e8b57; }
.art-file-icon.xls { background: #1d7a45; }

.art-file-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); }
.art-file-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.art-file svg { color: var(--blue); flex-shrink: 0; }

/* ── SĀNU KARTĪTE ────────────────────────────────────── */
.art-aside {
  position: sticky;
  top: 105px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.art-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.art-card-head {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
}

.art-info { padding: 6px 18px; }

.art-info-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef0f4;
}

.art-info-row:last-child { border-bottom: none; }

.art-info-row svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }

.art-info-row label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.art-info-row span,
.art-info-row a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.art-info-row a:hover { color: var(--blue); }

.art-free { color: var(--tag) !important; }

.art-card-foot { padding: 4px 18px 18px; }

.art-card-foot .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
}

.art-deadline {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.art-deadline strong { color: var(--red); }

/* kontakti */
.art-contacts { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }

.art-contacts a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.art-contacts a:hover { color: var(--blue); }
.art-contacts svg { color: var(--blue); flex-shrink: 0; }

/* dalīties */
.art-share {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 4px;
}

.art-share button,
.art-share a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.art-share button:hover,
.art-share a:hover { border-color: var(--blue); color: var(--blue); }

.art-share .copied { font-size: 12px; color: var(--tag); font-weight: 600; opacity: 0; transition: opacity .2s; }
.art-share .copied.show { opacity: 1; }

/* ── CITAS AKTUALITĀTES ──────────────────────────────── */
.art-more {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.art-more-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.art-more-head h2 { font-size: 22px; font-weight: 600; color: #111; }

.art-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.art-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-mini-img {
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: #c8cdd8;
  overflow: hidden;
  margin-bottom: 4px;
}

.art-mini-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.art-mini:hover .art-mini-img img { transform: scale(1.04); }

.art-mini h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  transition: color .15s;
}

.art-mini:hover h3 { color: var(--blue); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1000px) {
  .art-layout { grid-template-columns: 1fr; gap: 28px; }
  .art-aside { position: static; }
  .art-more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .art-wrap { padding: 0 16px; }
  .art-title { font-size: 23px; }
  .art-content { font-size: 15px; }
  .art-more-grid { grid-template-columns: 1fr; }
}

/* ── PHP versijas papildinājumi (saturs no vecā redaktora, galerija, video) ── */
.art-figure a { display: block; cursor: zoom-in; }
.art-content img { max-width: 100%; height: auto !important; border-radius: 6px; }
.art-content iframe { max-width: 100%; }
.art-content .tbl-wrap { overflow-x: auto; margin: 0 0 16px; }
.art-content table { border-collapse: collapse; font-size: 14px; }
.art-content td, .art-content th { border: 1px solid var(--border); padding: 6px 10px; vertical-align: top; }
.art-info-row div > span { display: block; }

.art-videos { display: grid; gap: 16px; margin: 28px 0; }
.art-video { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: #000; }
.art-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.art-gallery { margin: 32px 0; }
.art-gallery h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.art-gallery h2 svg { color: var(--blue); }
.art-gallery h2 small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.art-gallery .gl-photos { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }

.art-proj { display: block; padding: 0; color: inherit; transition: border-color .15s; }
.art-proj:hover { border-color: var(--blue); }
.art-proj-name { display: block; padding: 14px 18px 16px; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--navy); }
