:root {
  --brand: #136f4e;
  --brand-dark: #0c5a40;
  --brand-light: #e7f3ec;
  --mint: #12a06e;
  --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: 1100px;
  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;
}
.topnav a.is-active { color: var(--brand); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.lead { font-size: 1.05rem; color: var(--muted); max-width: 42em; margin: 0 0 28px; }
.section-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 14px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.content-card {
  display: block;
  text-decoration: none !important;
  color: inherit;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(19, 111, 78, 0.14);
}
.content-card__media {
  position: relative;
  height: 152px;
  background: var(--brand-dark);
}
.content-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.content-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
}
.content-card__body { padding: 16px 18px 18px; }
.content-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  margin-bottom: 8px;
}
.badge-ocean { background: #0d7a54; }
.badge-mint { background: var(--mint); }
.badge-update { background: #2563eb; }
.badge-new { background: #ca8a04; }
.badge-tag {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.content-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
}
.content-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.content-card__meta {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* —— Hero backdrop article (matches app news detail) —— */
.hero-article {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  color: #fff;
}
.hero-article__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--brand-dark) center/cover no-repeat;
}
.hero-article__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.62) 35%,
    rgba(0, 0, 0, 0.82) 100%
  );
}
.hero-article__bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
}
.hero-article__back {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-article__bar-title {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-article__main {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 88px 20px 48px;
}
.hero-article__badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.hero-article h1 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-article__prose {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-article__prose h2 {
  font-size: 1.1rem;
  margin: 22px 0 8px;
  color: #fff;
}
.hero-article__prose p { margin: 0 0 14px; }
.hero-article__prose ul, .hero-article__prose ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}
.hero-article__prose a { color: #b8f0d4; }
.hero-article__prose table.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.35);
  border-radius: 10px;
  overflow: hidden;
}
.hero-article__prose table.content-table th,
.hero-article__prose table.content-table td {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  text-align: left;
}
.hero-article__note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
}
.hero-article__faq {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-article__faq h2 { font-size: 1.15rem; margin-bottom: 12px; }
.hero-article__faq details {
  margin-bottom: 10px;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 4px 14px;
}
.hero-article__faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 0;
}
.hero-article__related {
  margin-top: 28px;
  font-size: 0.92rem;
}
.hero-article__related ul { list-style: none; padding: 0; margin: 8px 0 0; }
.hero-article__related li { margin-bottom: 8px; }

.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer a { margin: 0 8px; }

@media (max-width: 640px) {
  .topnav a { margin-left: 10px; font-size: 0.82rem; }
  .card-grid { grid-template-columns: 1fr; }
}
