/*
 * CH-01-B5 — Homepage layout tuned for local cadence.
 *
 * Keep styling minimal and theme-friendly: simple layout + typography helpers.
 * Uses CSS variables exposed by the plugin (see OutletConfig) where available.
 */

.upnc-home__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.upnc-home__layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.upnc-home__main {
  flex: 1 1 640px;
  min-width: 320px;
}

.upnc-home__sidebar {
  flex: 0 1 320px;
  min-width: 280px;
}

.upnc-home__header {
  margin: 0 0 16px;
}

.upnc-home__title {
  margin: 0 0 4px;
}

.upnc-home__subtitle {
  margin: 0;
  opacity: 0.85;
}

.upnc-home__sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.upnc-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.upnc-card__head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.upnc-card__title {
  margin: 0;
}

.upnc-card__link {
  text-decoration: none;
  font-size: 0.95em;
}

.upnc-card__body {
  padding: 12px 14px;
}

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

.upnc-post-list__item {
  margin: 0 0 10px;
}

.upnc-post-list__meta {
  display: inline-block;
  margin-right: 8px;
  opacity: 0.75;
  font-size: 0.92em;
}

.upnc-post-list__title {
  text-decoration: none;
}

.upnc-muted {
  opacity: 0.8;
}

.upnc-button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.12);
}

.upnc-button:hover {
  border-color: rgba(0,0,0,0.25);
}

/* Make the "Tipsa oss" CTA slightly more prominent without clashing with theme styles. */
.upnc-home__tips .upnc-button {
  border-color: rgba(0,0,0,0.25);
}
