/* Kefan additions on top of the GELUTE base styles.
   Scoped where possible so the base layout keeps working unchanged. */

/* ---------- Brand lockup (inline SVG + wordmark) ---------- */
.logo__mark { display: block; width: 38px; height: 38px; flex: none; }
.logo__text { display: flex; flex-direction: column; gap: 3px; line-height: 1.05; }
.logo__text strong { font-size: 1.16rem; font-weight: 700; letter-spacing: 0.14em; color: var(--ink); }
.logo__text em { font-style: normal; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--muted); }
.footer .logo__text strong { color: var(--white); }
.footer .logo__text em { color: rgba(255, 255, 255, 0.45); }

/* ---------- Generic content blocks used by product / compare / single pages ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 40px); }
.two-col h3 { font-family: var(--font-serif); font-size: 1.12rem; margin: 0 0 14px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; font-size: 0.94rem; line-height: 1.7; color: var(--ink-2); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.32em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: inset 0 0 0 2px var(--paper-2);
}
.checklist li::after {
  content: "";
  position: absolute; left: 4px; top: 0.58em;
  width: 8px; height: 4px;
  border-left: 1.6px solid var(--white);
  border-bottom: 1.6px solid var(--white);
  transform: rotate(-45deg);
}
.checklist--x li::before { background: var(--muted-2); }
.checklist--x li::after {
  left: 5px; top: 0.38em;
  width: 7px; height: 7px;
  border: 0;
  background:
    linear-gradient(45deg, transparent 45%, var(--white) 45%, var(--white) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--white) 45%, var(--white) 55%, transparent 55%);
  transform: none;
}

.tag {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
a.tag:hover { border-color: var(--steel); color: var(--steel); }

.standards-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }

.related-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.related-card:hover { border-color: var(--steel); transform: translateY(-2px); }
.related-card b { font-family: var(--font-serif); font-size: 1.02rem; color: var(--ink); }
.related-card span { font-size: 0.86rem; line-height: 1.6; color: var(--muted); }

.callout--warn { border-left: 3px solid var(--orange); background: var(--orange-soft); }
.callout--warn .callout__title { color: var(--orange-deep); }

/* ---------- Single-page content (normalized legacy HTML) ---------- */
.kefan-content { max-width: 960px; }
.kefan-content > :first-child { margin-top: 0; }
.kefan-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.72rem);
  line-height: 1.35;
  margin: 2.2em 0 0.7em;
  padding-top: 0.2em;
  color: var(--ink);
}
.kefan-content h2:first-child { margin-top: 0; }
.kefan-content h3 { font-family: var(--font-serif); font-size: 1.12rem; margin: 1.8em 0 0.6em; }
.kefan-content p { margin: 0 0 1em; line-height: 1.85; color: var(--ink-2); }
.kefan-content ul, .kefan-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.kefan-content li { margin: 0.35em 0; line-height: 1.75; color: var(--ink-2); }
.kefan-content strong { color: var(--ink); }
.kefan-content a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.kefan-content a:hover { color: var(--orange-deep); }
.kefan-content blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: var(--paper);
  color: var(--ink-2);
}
.kefan-content blockquote p:last-child { margin-bottom: 0; }
.kefan-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.92rem; }
.kefan-content th, .kefan-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.kefan-content th { background: var(--paper); font-weight: 600; color: var(--ink); }
.kefan-content td { color: var(--ink-2); }
.kefan-content img { max-width: 100%; height: auto; }
.kefan-content details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.kefan-content details:last-child { border-bottom: 1px solid var(--line); }
.kefan-content summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.kefan-content summary::marker { color: var(--orange); }
.kefan-content details p { margin: 10px 0 0; }
.kefan-content .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.kefan-content section + section { margin-top: 40px; }

/* ---------- Homepage helper blocks ---------- */
.home-lines .product-card__tags span { background: var(--paper); }
.home-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.home-evidence__item { background: var(--paper-2); padding: 22px 20px; }
.home-evidence__item b { display: block; font-family: var(--font-serif); font-size: 1rem; margin-bottom: 8px; }
.home-evidence__item p { margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--muted); }

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .logo__text strong { font-size: 1rem; }
  .logo__mark { width: 32px; height: 32px; }
}
@media (max-width: 600px) {
  .logo__text em { display: none; }
}
