/* KaiCleaner guide pages (/kaicleaner/find-duplicate-photos-iphone etc.): article layout on
   top of kaitheme.css + kaicleaner.css, same structure as the KaiCam guides (kg-* classes).
   Also styles the "Guides" list on /kaicleaner/ and its vi/ja twins. */
.kg-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 0 64px;
}
.kg-crumbs {
  font-size: 13px;
  color: var(--kc-text-muted);
  margin: 0 0 20px;
}
.kg-crumbs a { color: var(--kai-cyan); text-decoration: none; }
.kg-crumbs a:hover, .kg-crumbs a:focus-visible { text-decoration: underline; }
.kg-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.kg-head h1 { margin: 0 0 18px; }
.kg-lead {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--kc-text-muted);
}
.kg-shot { display: flex; justify-content: center; }
.kg-shot .iphone-mockup { max-width: 250px; }
.kg-shot .duo-mockup { max-width: 300px; }
.kg-shot--mac .mac-mockup { width: 100%; max-width: 520px; }
.kg-shot .mac-mockup-dot { display: block; }
.kg-body {
  max-width: 720px;
  margin: 56px auto 0;
}
.kg-body h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 40px 0 14px;
}
.kg-body p,
.kg-body li {
  font-size: 17px;
  line-height: 1.7;
  color: #d7dceb;
}
.kg-body p { margin: 0; }
.kg-body p + p,
.kg-body ul + p,
.kg-body ol + p { margin-top: 14px; }
.kg-body ul,
.kg-body ol { padding-left: 22px; margin: 12px 0 0; }
.kg-body li + li { margin-top: 8px; }
.kg-body li::marker { color: var(--kai-cyan); }
.kg-body strong { color: var(--kc-text); }
.kg-body a { color: var(--kai-cyan); text-decoration: underline; text-underline-offset: 3px; }
/* kaicleaner.css pads every <section> by 6rem; the CTA card is a section too. */
.kg-main section.kg-cta {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 28px;
  border: 1px solid #ffffff14;
  border-radius: 20px;
  background: #ffffff08;
  box-shadow: 0 3px 12px #00000066;
}
.kg-cta h2 { font-size: 22px; margin: 0 0 10px; }
.kg-cta p { margin: 0; color: var(--kc-text-muted); line-height: 1.6; }
.kg-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.kg-store {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid #ffffff24;
  font-weight: 700;
  color: var(--kc-text);
  text-decoration: none;
}
.kg-store:hover, .kg-store:focus-visible { border-color: var(--kai-cyan); color: var(--kc-text); }
.kg-related {
  max-width: 720px;
  margin: 40px auto 0;
}
.kg-related h2 { font-size: 18px; letter-spacing: -.01em; margin: 0 0 12px; }
.kg-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kg-related a { color: var(--kai-cyan); }

/* "Guides" block on /kaicleaner/ (and its vi/ja twins). */
.kc-guides-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.kc-guides-list a {
  display: block;
  height: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--kc-border);
  background: var(--kc-glass);
  color: var(--kc-text);
  font-weight: 650;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.kc-guides-list a:hover,
.kc-guides-list a:focus-visible { border-color: var(--kai-cyan); background: var(--kc-glass-hover); }
.kc-guides-note { text-align: center; color: var(--kc-text-muted); margin: -1.5rem auto 2rem; max-width: 640px; }

@media (max-width: 760px) {
  .kg-main { padding: 32px 0 48px; }
  .kg-head { grid-template-columns: 1fr; gap: 28px; }
  .kg-shot .iphone-mockup { width: min(52vw, 23vh); border-radius: 1.6rem; }
  .kg-shot .iphone-mockup img { border-radius: calc(1.6rem - 5px); }
  .kg-shot .duo-mockup { width: min(62vw, 30vh); }
  .kg-body { margin-top: 40px; }
  .kc-guides-list { grid-template-columns: 1fr; gap: 8px; }
  .kc-guides-list a { padding: 14px 16px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .kc-guides-list a { transition: none; }
}
