:root {
  --bg: #f5f8f7;
  --bg-card: #ffffff;
  --text: #0d1b1a;
  --text-soft: #4f5d5a;
  --line: #d7e3df;
  --brand: #0f766e;
  --brand-2: #0ea5e9;
  --accent: #f59e0b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body), 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(14, 165, 233, 0.18), transparent 38%),
    radial-gradient(circle at 90% 20%, rgba(15, 118, 110, 0.15), transparent 36%),
    var(--bg);
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(245, 248, 247, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header-inner,
.site-footer-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-glyph {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-heading), 'Segoe UI', sans-serif;
  font-weight: 700;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
}

.brand-mark strong {
  display: block;
  font-family: var(--font-heading), 'Segoe UI', sans-serif;
  letter-spacing: 0.01em;
}

.brand-mark small {
  color: var(--text-soft);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  transition: all 140ms ease;
}

.site-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.site-main {
  flex: 1;
}

.page-wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 38px 0 54px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98)),
    linear-gradient(160deg, rgba(15, 118, 110, 0.08), rgba(14, 165, 233, 0.05));
  padding: 28px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

h1,
h2,
h3 {
  font-family: var(--font-heading), 'Segoe UI', sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  margin-top: 14px;
}

h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

p {
  color: var(--text-soft);
  line-height: 1.6;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(140deg, var(--brand), #0b9488);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.grid-3 {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.card h3 {
  font-size: 18px;
}

.kpi {
  font-family: var(--font-heading), 'Segoe UI', sans-serif;
  font-size: 28px;
  color: var(--brand);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-inner {
  padding: 16px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.simple-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.blog-controls {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.blog-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.blog-search input[type='search'] {
  flex: 1 1 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.blog-search input[type='search']:focus {
  outline: 2px solid rgba(15, 118, 110, 0.25);
  outline-offset: 2px;
}

.tax-group {
  display: grid;
  gap: 8px;
}

.tax-group strong {
  font-size: 13px;
  color: var(--text-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-link {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.chip-link:hover {
  border-color: #9fb6b0;
  color: var(--text);
}

.chip-link-active {
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.1);
  color: #065f57;
}

.post-card {
  display: grid;
  gap: 10px;
}

.post-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.post-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-soft);
}

.post-meta span::after {
  content: '•';
  margin-left: 8px;
  color: #8fa5a0;
}

.post-meta span:last-child::after {
  content: '';
  margin: 0;
}

.title-link {
  text-decoration: none;
}

.title-link:hover {
  text-decoration: underline;
}

.post-hero {
  display: grid;
  gap: 12px;
}

.post-content {
  margin-top: 18px;
  display: grid;
  gap: 4px;
}

.post-content p {
  margin: 0;
}

.empty-state-card {
  text-align: center;
  padding: 22px;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-wrap {
    padding-top: 22px;
  }
}
