/* Knowledge Center — Makura editorial system */
:root {
  --ink: #062421;
  --ink-soft: #1a3a35;
  --muted: #4d635e;
  --paper: #f4faf8;
  --milk: #f7f5f0;
  --line: rgba(6, 36, 33, 0.1);
  --line-strong: rgba(6, 36, 33, 0.16);
  --accent: #00c9a7;
  --aqua: #2aa8e0;
  --ocean: #0a3d4a;
  --coral: #ff6b3d;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 12px 36px rgba(6, 36, 33, 0.08);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 45% at 8% -8%, rgba(0, 201, 167, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(42, 168, 224, 0.09), transparent 50%),
    var(--paper);
}

a {
  color: var(--ink);
  font-weight: 650;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink-soft);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.45);
  border-radius: 8px;
}

img {
  max-width: 100%;
  display: block;
}

.k-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 96px;
}

.k-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  text-decoration: none;
}

.k-back:hover {
  color: var(--accent);
}

.k-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.8125rem;
}

.k-crumbs a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.k-crumbs a:hover {
  color: var(--ink);
}

.k-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.45;
}

.k-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.k-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.k-lead {
  margin: 0 0 28px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.k-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.875rem;
}

.k-meta time {
  font-weight: 600;
}

/* —— Header / hero —— */
.k-hero {
  display: grid;
  gap: 28px;
  margin-bottom: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .k-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    margin-bottom: 48px;
  }
}

.k-hero__copy .k-title {
  margin-bottom: 12px;
}

/* —— Category nav —— */
.k-cats {
  display: flex;
  gap: 8px;
  margin: 0 0 40px;
  padding: 4px 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.k-cats a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.k-cats a:hover,
.k-cats a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #fff;
}

.k-cats a[aria-current="page"] {
  box-shadow: 0 0 0 1px rgba(0, 201, 167, 0.35);
}

/* —— Section heads —— */
.k-section {
  margin-bottom: 48px;
}

.k-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.k-section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
}

.k-section__more {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.k-section__more:hover {
  color: var(--ink);
}

/* —— Cards —— */
.k-feature {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.k-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

@media (min-width: 800px) {
  .k-feature {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 320px;
  }
}

.k-feature__visual {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: var(--milk);
  padding: 28px;
}

.k-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px;
}

.k-feature__body h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.k-feature__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
  font-weight: 500;
  line-height: 1.5;
}

.k-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.k-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 201, 167, 0.1);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.k-chip--time {
  background: rgba(42, 168, 224, 0.12);
}

.k-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.k-cta-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.k-feature:hover .k-cta-link::after {
  transform: translateX(3px);
}

.k-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 700px) {
  .k-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.k-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.k-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.k-card__visual {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 20px;
  background: var(--milk);
}

.k-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 16px 18px;
}

.k-card__cat {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.k-card__body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.k-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}

.k-card__time {
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

/* —— Contact strip —— */
.k-help {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0, 201, 167, 0.08), rgba(42, 168, 224, 0.06)),
    rgba(255, 255, 255, 0.8);
}

.k-help h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.k-help p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 48ch;
}

.k-help__actions {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .k-help__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.k-help__actions a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.k-help__actions a:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.k-help__actions a.wa {
  border-color: rgba(31, 143, 106, 0.35);
}

.k-help__actions a.tg {
  border-color: rgba(34, 158, 217, 0.35);
}

/* —— Article —— */
.k-article {
  max-width: 720px;
}

.k-article h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.k-article p,
.k-article li {
  color: var(--muted);
}

.k-article p {
  margin: 0 0 1rem;
}

.k-article ul,
.k-article ol {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.k-article li {
  margin-bottom: 0.45rem;
}

.k-answer {
  margin: 0 0 1.5rem;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.5;
}

.k-note {
  margin: 1.5rem 0;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.18);
}

.k-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.k-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.k-related {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.k-related a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.k-related a:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.k-related strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.975rem;
}

.k-related span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.k-article-cta {
  margin-top: 36px;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.k-article-cta h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.k-article-cta p {
  margin: 0 0 14px;
}

.k-article-cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.k-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.k-btn--solid {
  background: var(--ink);
  color: #fff;
}

.k-btn--solid:hover {
  color: #fff;
  background: var(--ink-soft);
}

.k-btn--ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.k-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.k-footer-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.k-footer-nav a:hover {
  color: var(--ink);
}

/* —— Illustrations —— */
.k-illus {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
}

.k-illus--hero {
  width: min(100%, 340px);
}

.k-illus--sm {
  width: min(100%, 160px);
}

.k-illus svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

@media (prefers-reduced-motion: no-preference) {
  .k-illus--float {
    animation: k-float 5.5s ease-in-out infinite;
  }

  .k-illus--drip {
    animation: k-drip 3.8s ease-in-out infinite;
  }

  .k-illus--pulse {
    animation: k-pulse 4.2s ease-in-out infinite;
  }
}

@keyframes k-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes k-drip {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes k-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}
