:root {
  --brand: #136f4e;
  --brand-dark: #0c5a40;
  --brand-light: #e7f3ec;
  --ink: #0f1419;
  --body: #3d454d;
  --muted: #6b7280;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 12px 40px rgba(19, 111, 78, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: #f6faf8;
}
a { color: var(--brand-dark); font-weight: 600; }
a:hover { color: var(--brand); }
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.logo strong { display: block; font-size: 1.1rem; color: var(--ink); }
.logo span { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.topnav a {
  margin-left: 14px;
  font-size: 0.88rem;
  text-decoration: none;
}
/* Language picker — see backend/shared/lang-picker.js */
.lang-picker {
  position: fixed;
  top: 14px;
  right: clamp(16px, 3vw, 44px);
  z-index: 300;
}
body:has(.lang-picker) .topbar-inner {
  padding-right: calc(clamp(16px, 3vw, 44px) + 60px);
}
.lang-picker-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(4, 42, 28, 0.94);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 0;
}
.lang-picker-btn:hover { background: rgba(10, 77, 52, 0.98); }
.lang-picker-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lang-picker-icon { width: 22px; height: 22px; display: block; }
.lang-picker-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 152px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #dce5df;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}
.lang-picker-menu[hidden] { display: none; }
.lang-picker-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #0a0f14;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.lang-picker-menu a:hover { background: #eef2f0; text-decoration: none; }
.lang-picker-menu a.is-active {
  background: #e0f2ea;
  color: #064d35;
  pointer-events: none;
}
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.lead { margin: 0 0 20px; color: var(--muted); max-width: 42em; }
.search-box {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.search-box input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
}
.search-box button {
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.section-title {
  margin: 28px 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.cat-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.cat-card h3 { margin: 0 0 4px; font-size: 1rem; color: var(--ink); }
.cat-card p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.link-list li { border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: none; }
.link-list a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.link-list a:hover { background: var(--brand-light); }
.link-list a small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.85rem;
}
.contact-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.contact-grid > * {
  min-width: 0;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}
.contact-card h3 { margin: 0 0 6px; font-size: 1rem; }
.contact-card p { margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); }
.contact-email-hint {
  margin: 0 0 10px !important;
  font-size: 0.82rem !important;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-email-hint a {
  font-weight: 600;
  color: var(--brand-dark);
}
.btn {
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}
.contact-card .btn {
  display: block;
  width: 100%;
}
.btn.secondary {
  background: #fff;
  color: var(--brand-dark) !important;
  border: 1px solid var(--line);
}
.btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.contact-card-soon {
  border-style: dashed;
  border-color: #c9d4ce;
}
.badge-live {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e6f7f1;
  color: #0c8a6a;
  vertical-align: middle;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.article-card h1 { margin: 0 0 8px; font-size: 1.6rem; color: var(--ink); }
.article-card .meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.article-card h2 { margin: 24px 0 10px; font-size: 1.1rem; color: var(--ink); }
.breadcrumb { font-size: 0.88rem; margin-bottom: 16px; color: var(--muted); }
.breadcrumb a { font-weight: 600; }
.footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.footer a { margin: 0 8px; }
.hidden { display: none !important; }
.lang-switch {
  font-weight: 800 !important;
  color: var(--brand) !important;
}
.notice-banner {
  background: #fff8e6;
  border-bottom: 1px solid #f0d998;
  color: #5c4a12;
}
.notice-banner.hidden { display: none !important; }
.notice-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 0.92rem;
}
.notice-inner strong {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: #8a6d1a;
}
.notice-inner a {
  margin-left: auto;
  white-space: nowrap;
}
.search-results { margin-bottom: 20px; }
@media (max-width: 600px) {
  .topbar-inner { flex-wrap: wrap; }
  .topnav { width: 100%; order: 3; }
  .topnav a { margin: 0 12px 0 0; }
}
