/* Shared content styles — matches site-shell (KLIK test) */
:root {
  --ink: #1a2420;
  --muted: #5a6b63;
  --paper: #f3f6f4;
  --panel: #ffffff;
  --brand: #2f7a45;
  --brand-deep: #1e5230;
  --brand-soft: #dceee2;
  --line: #c9d6ce;
  --accent: #b42318;
  --menu-teal: #99cccc;
  --font-display: "Newsreader", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body.content-page {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1rem 1.5rem;
}

.content-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  box-shadow: 0 4px 14px rgba(26, 36, 32, 0.05);
}

.content-toolbar__title {
  margin: 0 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-deep);
  flex: 0 0 auto;
}

.content-toolbar__links {
  flex: 1 1 auto;
  min-width: 0;
}

.content-toolbar__summary {
  display: none;
  cursor: pointer;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
  padding: 0.35rem 0.55rem;
  border-radius: 0.35rem;
  background: var(--brand-soft);
  user-select: none;
}

.content-toolbar__summary::-webkit-details-marker {
  display: none;
}

.content-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.content-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  color: var(--brand-deep);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--brand-soft);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.content-toolbar a:hover {
  background: #c8e3d0;
  color: var(--ink);
}

@media (min-width: 781px) {
  .content-toolbar__summary {
    display: none !important;
  }

  .content-toolbar__row {
    display: flex !important;
  }
}


.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 0.9fr);
  gap: 0.85rem;
  align-items: start;
}

.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 18px rgba(26, 36, 32, 0.06);
}

.content-panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
}

.content-lead {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.link-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.45rem;
  align-items: stretch;
}

.link-grid li {
  margin: 0;
  min-height: 0;
}

.link-grid a {
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  height: 3.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  border: 1px solid transparent;
  word-break: break-word;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.link-grid a:hover {
  background: #c8e3d0;
  border-color: #a9cfb6;
  transform: translateY(-1px);
}

.link-grid a.is-struck {
  text-decoration: line-through;
  opacity: 0.72;
  font-weight: 400;
}

.link-grid--rich {
  grid-template-columns: 1fr;
}

.link-grid__rich {
  padding: 0;
  border-radius: 0.5rem;
  background: transparent;
  border: 0;
  font-size: 0.92rem;
}

.link-grid__rich a {
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  height: 3.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  background: var(--brand-soft);
  border: 1px solid transparent;
  color: var(--brand-deep);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.35;
  word-break: break-word;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.link-grid__rich a:hover {
  background: #c8e3d0;
  border-color: #a9cfb6;
  transform: translateY(-1px);
}

.content-back {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.content-back a {
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 500;
}

.content-back a:hover {
  text-decoration: underline;
}

.content-table-wrap {
  overflow-x: auto;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.content-table th,
.content-table td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

.content-table th {
  background: var(--brand-deep);
  color: #f4faf6;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.content-table tr:nth-child(even) td {
  background: #f7fbf8;
}

.content-table tr:hover td {
  background: var(--brand-soft);
}

.prose-block {
  font-size: 0.95rem;
  line-height: 1.55;
}

.prose-block a {
  color: var(--brand-deep);
}

.prose-block p,
.prose-block div {
  margin: 0.45rem 0;
}

.link-list p,
.link-list hr {
  margin: 0.55rem 0;
}

.link-list hr {
  border: 0;
  border-top: 1px solid var(--line);
}

.link-stack {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.link-stack li {
  margin: 0.4rem 0;
}

.link-stack a {
  color: var(--brand-deep);
  font-weight: 500;
}

.legacy-html img[src*="KLIKLOGO"],
.legacy-html img[src*="kliklogo"],
.legacy-html img[src*="doorin"],
.legacy-html img[src*="dopustl"] {
  display: none;
}

.legacy-html font[color="#FF0000"],
.legacy-html font[color="red"],
.legacy-html font[color="#FF6666"] {
  color: var(--accent) !important;
  font-size: inherit !important;
  font-weight: 600;
}

.search-form {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.search-form fieldset {
  border: 0;
  margin: 0 0 0.65rem;
  padding: 0;
}

.search-form legend {
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 0.35rem;
}

.search-form label {
  display: inline-block;
  margin-right: 0.85rem;
  margin-bottom: 0.35rem;
}

.search-form input[type="text"] {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  min-width: 14rem;
}

.search-form button {
  font: inherit;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--brand-deep);
}

.form-hint {
  font-size: 0.88rem;
  color: var(--muted);
}

.calc-panel {
  overflow-x: auto;
}

.calc-panel table {
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.calc-panel table td,
.calc-panel table th {
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem;
}

.calc-panel input[type="text"],
.calc-panel input[type="number"],
.calc-panel select {
  font: inherit;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  max-width: 100%;
}

.calc-panel input[type="submit"],
.calc-panel input[type="button"],
.calc-panel button {
  font: inherit;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.calc-panel input[type="submit"]:hover,
.calc-panel input[type="button"]:hover,
.calc-panel button:hover {
  background: var(--brand-deep);
}

.calc-panel form table[bgcolor],
.calc-panel table[bgcolor] {
  background: #f7fbf8 !important;
}


.content-side {
  background: #f7fbf8;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
}

.content-side a {
  color: var(--brand-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.content-side a:hover {
  border-bottom-color: var(--brand);
}

.content-side hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.55rem 0;
}

.content-side font[color="red"],
.content-side font[color="RED"] {
  color: var(--accent) !important;
  font-size: 0.86rem;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-year {
  margin: 1.1rem 0 0.45rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--brand-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.news-year:first-child {
  margin-top: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e6eee9;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item__date {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--accent);
  padding-top: 0.1rem;
}

.news-item__text {
  color: var(--ink);
  word-wrap: break-word;
}

.news-item__text a {
  color: var(--brand-deep);
}

.content-foot {
  margin-top: 1rem;
  padding: 0.65rem 0.25rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.content-foot a {
  color: var(--brand-deep);
}

@media (max-width: 780px) {
  .content-wrap {
    padding: 0.65rem 0.7rem 1.25rem;
  }

  .content-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
  }

  .content-toolbar__summary {
    display: block;
    text-align: center;
  }

  .content-toolbar__links:not([open]) .content-toolbar__row {
    display: none;
  }

  .content-toolbar__links[open] .content-toolbar__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0.45rem;
  }

  .content-toolbar__links[open] .content-toolbar__row a {
    justify-content: center;
    padding: 0.45rem 0.55rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
