@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');

:root {
	--font-sans: "Google Sans Flex", sans-serif;
  --font-serif: "Google Sans Flex", serif;
}

body { font-family: "Google Sans Flex", sans-serif; }

.path-frontpage .node__meta {
	display:none;
}

.front-latest-contents {
  padding: 1.125em;
  background: #f6f8f8;
}
.front-latest-contents .view-header,
.front-latest-contents .view-header h2 {
	margin:0;
}
.front-latest-contents .view-content {
	font-size:1.25em;
	font-weight:700;
}

.layout--content-narrow.text-content pre, .layout--pass--content-narrow > .text-content pre, .layout--content-narrow .text-content pre, .layout--pass--content-narrow > * .text-content pre,
.wide-content {
	width: 100%;
	margin-inline-start: 0;
}

.views-term-list .view-content .views-row,
.views-node-list .view-content .views-row {
  padding: 1.125em;
  background: #f6f8f8;
  margin:0 0 2em 0;
}


/* ============================================================
   Node List Item — Responsive Card Component
   ============================================================ */

/* --- Base Card --- */
.views-node-list .views-row {
  width: 100%;
  box-sizing: border-box;
}

.node-list-item {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  padding: 16px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.node-list-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

/* --- Feature Image (Left) --- */
.node-list-feature {
  flex-shrink: 0;
  width: 220px;
}

.node-list-img {
  width: 100%;
}

.node-list-img a {
  display: block;
}

.node-list-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: opacity 0.2s ease;
}

.node-list-img a:hover img {
  opacity: 0.9;
}

/* --- Detail (Right) --- */
.node-list-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* --- Title (h3) --- */
.node-list-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

.node-list-title h3 a {
  color: inherit;
  text-decoration: none;
}

.node-list-title h3 a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* --- Summary --- */
.node-list-summary {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Meta: Author + Date on same row --- */
.node-list-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.node-list-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 2px 10px;
}

.node-list-author::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #9ca3af;
  border-radius: 50%;
}

.node-list-created {
  font-size: 12px;
  color: #9ca3af;
}

.node-list-created time {
  color: inherit;
}

/* --- Tags --- */
.node-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.node-list-tags a {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 2px 10px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.node-list-tags a:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

/* ============================================================
   Responsive — Tablet (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .node-list-item {
    gap: 14px;
    padding: 14px;
  }

  .node-list-feature {
    width: 160px;
  }

  .node-list-img img {
    height: 110px;
  }

  .node-list-title h3 {
    font-size: 15px;
  }
}

/* ============================================================
   Responsive — Mobile (≤ 560px)
   Image moves to top, content below
   ============================================================ */
@media (max-width: 560px) {
  .node-list-item {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
  }

  .node-list-feature {
    width: 100%;
  }

  .node-list-img img {
    width: 100%;
    height: 190px;
    border-radius: 6px;
  }

  .node-list-title h3 {
    font-size: 15px;
  }

  .node-list-summary {
    -webkit-line-clamp: 4;
  }

  .node-list-meta {
    gap: 8px;
  }
}

/* ============================================================
   Dark Mode
   ============================================================ */
@media (prefers-color-scheme: dark) {
  .node-list-item {
    background: #1f2937;
    border-color: #374151;
  }

  .node-list-item:hover {
    border-color: #4b5563;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  .node-list-title h3 {
    color: #f9fafb;
  }

  .node-list-title h3 a:hover {
    color: #60a5fa;
  }

  .node-list-summary {
    color: #9ca3af;
  }

  .node-list-author {
    color: #d1d5db;
    background: #374151;
    border-color: #4b5563;
  }

  .node-list-author::before {
    background: #6b7280;
  }

  .node-list-created {
    color: #6b7280;
  }

  .node-list-tags a {
    color: #9ca3af;
    background: #111827;
    border-color: #374151;
  }

  .node-list-tags a:hover {
    background: #1e3a5f;
    border-color: #1d4ed8;
    color: #60a5fa;
  }
}