:root {
  --bg: #f2efe7;
  --ink: #182024;
  --muted: #5a646b;
  --panel: #ffffff;
  --line: #d5d9de;
  --brand: #0d9488;
  --brand-2: #f59e0b;
  --ok: #166534;
  --shadow: 0 14px 36px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(13,148,136,.12), transparent 42%),
    radial-gradient(circle at 84% 90%, rgba(245,158,11,.12), transparent 48%),
    var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.head {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
}
.title {
  margin: 0;
  font-size: clamp(30px, 5.1vw, 58px);
  line-height: 1.02;
  font-weight: 900;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 6px 12px;
}
.badge.cat { border-color: #99f6e4; color: #0f766e; }
.badge.status { border-color: #fde68a; color: #92400e; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 980px) {
  .grid { grid-template-columns: minmax(280px, 420px) 1fr; align-items: start; }
  .cardbox {
    position: sticky !important;
    top: 20px;
  }
}
.cardbox, .panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.cardbox {
  overflow: hidden;
  position: static !important;
  top: auto !important;
}
.cardbox img {
  width: 100%;
  display: block;
  background: #f7f7f7;
}
.cardtools {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.cardtools a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.section {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.section h2 {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
}
.section.canonical h2 {
  background: #ecfdf3;
  color: var(--ok);
}
.body {
  padding: 12px;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-line;
}
.q {
  font-style: italic;
  border-left: 4px solid var(--brand);
  padding-left: 10px;
}
.nav {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.nav a {
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, var(--brand), #0f766e);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.nav a.secondary {
  background: linear-gradient(90deg, #374151, #1f2937);
}
.foot {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.brand-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 12px;
  color: var(--muted);
}
.brand-foot-mark { display: block; padding: 10px; margin: -10px; line-height: 0; }
.brand-foot-mark img { width: 140px; height: auto; display: block; }
.brand-foot-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.brand-foot-note { margin: 0; flex-basis: 100%; }
