/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #1a6b3f;
  --accent-lt: #e6f4ec;
  --deadline:  #b45309;
  --text:      #1a1a1a;
  --muted:     #555;
  --border:    #dde3ec;
  --bg:        #ffffff;
  --bg-alt:    #f7f9fc;
  --radius:    6px;
  --max-w:     780px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

/* ── Language Bar ── */
.lang-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
}
.lang-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lang-bar-title { font-weight: 600; letter-spacing: 0.03em; }
.lang-links { display: flex; gap: 0.6rem; align-items: center; }
.lang-links a { color: #fff; text-decoration: none; opacity: 0.85; }
.lang-links a:hover { opacity: 1; text-decoration: underline; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1a6b3f 0%, #2d9458 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.6rem;
}
.hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.2rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ── Main Content ── */
.content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ── Typography ── */
.content h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--accent);
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-lt);
}
.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.6rem;
}

.content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.5rem 0 0.5rem;
}

.content p { margin-bottom: 1rem; }

.content ul, .content ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.content li { margin-bottom: 0.3rem; }

.content strong { color: var(--text); }

.content em { color: var(--muted); }

/* ── Deadline badge ── */
.content strong:has(+ *) { }
/* Highlight July 13 / 7月13日 deadline */
.content p strong,
.content li strong {
  /* General bold: no change */
}

/* ── Deadline callout via surrounding <p> — applied via special class in layout ── */

/* Highlight any bold text that contains "July 13" or "7月13日" */
strong { }

/* Deadline box — wrap key info */
.deadline-box {
  background: #fffbeb;
  border-left: 4px solid var(--deadline);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-weight: 500;
  color: var(--deadline);
}

/* ── Tables ── */
.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 1rem 0 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.content th {
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.content td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.content tr:last-child td { border-bottom: none; }
.content tr:nth-child(even) td { background: #f0f4fa; }

/* ── Horizontal Rule ── */
.content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Links ── */
.content a { color: var(--accent); text-decoration: underline; }
.content a:hover { opacity: 0.75; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .hero { padding: 2rem 1rem 1.8rem; }
  .hero-meta { flex-direction: column; gap: 0.3rem; }
  .content { padding: 1.5rem 1rem 3rem; }
  .lang-bar-inner { flex-direction: column; gap: 0.3rem; align-items: flex-start; }
}
