/* ═══════════════════════════════════════════
   Japan Society Perspective — style.css
   Preset: TRENDS-ANALYTICS (#23)
   Prefix: .jsp-*
   ═══════════════════════════════════════════ */

/* ─── Skip link ─── */
.jsp-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #2B5BAA;
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
}
.jsp-skip-link:focus {
  left: 0;
}

/* ─── H2 accent line (TRENDS-ANALYTICS: vertical border-left) ─── */
.jsp-h2-accent {
  border-left: 3px solid #2B5BAA;
  padding-left: 0.75rem;
}

/* ─── H3 accent (always border-left) ─── */
.jsp-article-body h2 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 2.5rem 0 1rem;
  border-left: 3px solid #2B5BAA;
  padding-left: 0.75rem;
  line-height: 1.4;
}

.jsp-article-body h3 {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #E8654A;
  padding-left: 0.75rem;
  line-height: 1.4;
}

/* ─── Article body prose ─── */
.jsp-article-body p {
  font-size: 0.9375rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  color: #1a1a1a;
}

.jsp-article-body a {
  color: #2B5BAA;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.jsp-article-body a:hover {
  color: #1e3f7a;
}

/* ─── Card system ─── */
.jsp-card {
  background: #fff;
  border: 1px solid #E1E0DC;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.jsp-card:hover {
  border-color: #A4ABB0;
}

.jsp-card-image-wrap {
  display: block;
  overflow: hidden;
}
.jsp-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}
.jsp-card:hover .jsp-card-image {
  transform: scale(1.02);
}
.jsp-card-large .jsp-card-image {
  height: 320px;
}
.jsp-card-small .jsp-card-image {
  height: 140px;
}

.jsp-card-body {
  padding: 1rem;
}
.jsp-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.jsp-card-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: #A4ABB0;
}
.jsp-card-title {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.jsp-card-title a {
  color: inherit;
  text-decoration: none;
}
.jsp-card-title a:hover {
  color: #2B5BAA;
}
.jsp-card-excerpt {
  font-size: 0.8125rem;
  color: #5a5a55;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jsp-card-footer {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid #E1E0DC;
}
.jsp-card-reading-time {
  font-size: 0.75rem;
  color: #A4ABB0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Horizontal card variant */
.jsp-card-horizontal {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.jsp-card-horizontal .jsp-card-image {
  height: 100%;
  min-height: 160px;
}
@media (max-width: 640px) {
  .jsp-card-horizontal {
    grid-template-columns: 1fr;
  }
}

/* ─── Pills / badges ─── */
.jsp-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

/* ─── Pullquote ─── */
.jsp-pullquote {
  border-left: 3px solid #2B5BAA;
  padding: 1rem 0 1rem 1.25rem;
  margin: 2rem 0;
  font-family: 'Noto Serif JP', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: #1a1a1a;
  line-height: 1.7;
}

/* ─── Sidebar fact / DATA strip ─── */
.jsp-sidebar-fact {
  background: #f8f8f5;
  border: 1px solid #E1E0DC;
  border-radius: 4px;
  padding: 1rem;
  margin: 1.5rem 0;
}
.jsp-sidebar-fact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2B5BAA;
  margin-bottom: 0.5rem;
}
.jsp-sidebar-fact p {
  font-size: 0.8125rem !important;
  line-height: 1.6;
  margin-bottom: 0 !important;
  color: #3a3a3a;
}

/* ─── Data strip (4 cells) ─── */
.jsp-data-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #E1E0DC;
  border: 1px solid #E1E0DC;
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0;
}
@media (min-width: 640px) {
  .jsp-data-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
.jsp-data-cell {
  background: #fff;
  padding: 0.75rem;
  text-align: center;
}
.jsp-data-cell-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2B5BAA;
  display: block;
}
.jsp-data-cell-label {
  font-size: 0.6875rem;
  color: #A4ABB0;
  margin-top: 0.25rem;
  display: block;
}

/* ─── Callout ─── */
.jsp-callout {
  background: #f0f4fb;
  border-left: 3px solid #2B5BAA;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}
.jsp-callout-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2B5BAA;
  margin-bottom: 0.5rem;
}
.jsp-callout p {
  font-size: 0.8125rem !important;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

/* ─── Spot card ─── */
.jsp-spot-card {
  background: #fff;
  border: 1px solid #E1E0DC;
  border-radius: 4px;
  padding: 1rem;
  margin: 1.5rem 0;
}
.jsp-spot-card-name {
  font-family: 'Noto Serif JP', Georgia, serif;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}
.jsp-spot-card-detail {
  font-size: 0.8125rem;
  color: #5a5a55;
  line-height: 1.6;
}
.jsp-spot-card-footer {
  font-size: 0.6875rem;
  color: #A4ABB0;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── Table ─── */
.jsp-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.8125rem;
}
.jsp-article-body th {
  background: #f8f8f5;
  font-weight: 600;
  text-align: left;
  padding: 0.625rem 0.75rem;
  border: 1px solid #E1E0DC;
  font-size: 0.75rem;
}
.jsp-article-body td {
  padding: 0.625rem 0.75rem;
  border: 1px solid #E1E0DC;
  line-height: 1.5;
}

/* ─── Honeypot ─── */
.jsp-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

/* ─── Ad slots ─── */
.jsp-ad-slot {
  margin: 2rem 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jsp-ad-sidebar {
  min-height: 250px;
}
@media (min-width: 1024px) {
  .jsp-ad-sidebar {
    position: sticky;
    top: 100px;
  }
}
.jsp-ad-footer-banner {
  min-height: 90px;
  padding: 0 1rem;
}

/* ─── FAQ accordion ─── */
.jsp-faq-item {
  border-bottom: 1px solid #E1E0DC;
}
.jsp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: #0C0F12;
}
.jsp-faq-question:hover {
  color: #2B5BAA;
}
.jsp-faq-answer {
  padding-bottom: 1rem;
  font-size: 0.875rem;
  color: #5a5a55;
  line-height: 1.7;
}

/* ─── Legal pages hero ─── */
.jsp-legal-hero {
  background: linear-gradient(135deg, #f0eee8 0%, #FBFAF7 50%, #f5f4ef 100%);
  padding: 2rem 0 3rem;
  text-align: center;
}

/* ─── Line clamp utility ─── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
