/* === TEKSTA LAPAS (sikdatnes, pieejamiba, personas-dati, lapas-karte) ===
   Virsraksts, pogas — style.css */

.tx-wrap {
  max-width: 900px;
  margin: 28px auto 56px;
  padding: 0 24px;
}

.tx-wrap.wide { max-width: 1240px; }

.tx-crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.tx-crumbs a { color: var(--muted); }
.tx-crumbs a:hover { color: var(--blue); }
.tx-crumbs span { margin: 0 6px; opacity: .6; }

.tx-head { text-align: center; margin-bottom: 30px; }
.tx-head .page-lead { margin: 14px auto 0; max-width: 640px; }

/* teksts */
.tx-content { font-size: 15px; line-height: 1.75; color: var(--text); }
.tx-content p { margin-bottom: 14px; }
.tx-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 30px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.tx-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.tx-content h3 { font-size: 15.5px; font-weight: 600; color: #111; margin: 18px 0 6px; }
.tx-content ul, .tx-content ol { margin: 0 0 14px 22px; }
.tx-content li { margin-bottom: 6px; }
.tx-content a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tx-content strong { font-weight: 600; }

.tx-box {
  background: var(--light-bg);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 0 0 16px;
}
.tx-box p:last-child { margin-bottom: 0; }

.tx-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 20px;
  padding: 4px 12px;
  background: #fff4e0;
  color: #a35b00;
}

.tx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 16px; }
.tx-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--light-bg);
  padding: 9px 12px;
}
.tx-table td { padding: 10px 12px; border-top: 1px solid #eef0f4; vertical-align: top; }
.tx-table code { font-size: 12.5px; background: #f1f3f6; padding: 1px 6px; border-radius: 4px; }

.tx-updated { font-size: 12.5px; color: var(--muted); margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ── LAPAS KARTE ─────────────────────────────────────── */
.sm-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  break-inside: avoid;
}

.sm-block h2 { font-size: 16px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.sm-block h2 a { color: #111; }
.sm-block h2 a:hover { color: var(--blue); }
.sm-block h2 svg { color: var(--blue); flex-shrink: 0; }

.sm-block ul { list-style: none; }
.sm-block li { font-size: 13.5px; padding: 3px 0; }
.sm-block li a { color: var(--text); }
.sm-block li a:hover { color: var(--blue); text-decoration: underline; }
.sm-block li a::before { content: '›'; color: var(--red); margin-right: 8px; }

.sm-domains { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px 20px; }
.sm-domains h3 { font-size: 13.5px; font-weight: 600; color: var(--blue); margin-bottom: 4px; }
.sm-domains h3 a { color: inherit; }
.sm-domains h3 a:hover { text-decoration: underline; }
.sm-domains li { font-size: 13px; }

.sm-cols { columns: 3; column-gap: 18px; }

@media (max-width: 1000px) {
  .sm-domains { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm-cols { columns: 2; }
}

@media (max-width: 600px) {
  .tx-wrap { padding: 0 16px; }
  .sm-domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-cols { columns: 1; }
  .tx-table { font-size: 12.5px; }
}

/* ── LAPAS KARTE: variants A (režģis izvēlnes secībā) ── */
.sma-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.sma-grid .sm-block { margin-bottom: 0; }

/* ── LAPAS KARTE: variants B (rindas) ──────────────── */
.smb-list {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.smb-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 24px;
  border-top: 1px solid #eef0f4;
}
.smb-row:first-child { border-top: none; }
.smb-row:nth-child(even) { background: #fafbfd; }
.smb-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: #111;
}
.smb-title svg { color: var(--blue); flex-shrink: 0; margin-top: 1px; }
a.smb-title:hover span { color: var(--blue); text-decoration: underline; }
.smb-links, .smb-dom p { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.smb-links a, .smb-dom a { color: var(--text); position: relative; }
.smb-links a:hover, .smb-dom a:hover { color: var(--blue); text-decoration: underline; }
.smb-links a:not(:last-child)::after, .smb-dom a:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -14px;
  color: #b0b7c6;
}
.smb-doms { display: flex; flex-direction: column; gap: 12px; }
.smb-dom { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.smb-dom h3 { font-size: 14px; font-weight: 600; color: var(--blue); }
.smb-dom p { font-size: 13.5px; }

@media (max-width: 1000px) {
  .sma-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smb-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 600px) {
  .sma-grid { grid-template-columns: minmax(0, 1fr); }
  .smb-row { padding: 16px; }
  .smb-dom { grid-template-columns: 1fr; gap: 4px; }
}
/* ── teksts no admin redaktora (Vietnes informācija u.c.) ── */
.tx-content h4 { font-size: 14.5px; font-weight: 600; color: #111; margin: 14px 0 6px; }
.tx-content blockquote { background: var(--light-bg); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 0 0 16px; }
.tx-content blockquote p:last-child { margin-bottom: 0; }
.tx-content hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
.tx-content table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 6px 0 16px; }
.tx-content th, .tx-content td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.tx-content th { background: var(--light-bg); font-weight: 600; }
.tx-content ul.tx-docs { list-style: none; margin: 0 0 16px; }
.tx-docs li { margin-bottom: 8px; }
.tx-content .tx-docs a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tx-doc-ic { min-width: 40px; height: 24px; padding: 0 6px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: #2b5fb4; }
.tx-doc-ic.pdf { background: #d93838; } .tx-doc-ic.xls { background: #1f7a45; } .tx-doc-ic.ppt { background: #d0612b; }
.tx-doc-ic.img { background: #7a4bc4; } .tx-doc-ic.zip { background: #6b7280; } .tx-doc-ic.web { background: var(--navy); }
.tx-docs small { color: var(--muted); }
@media (max-width: 600px) { .tx-content table { display: block; overflow-x: auto; } }