/* Reading surfaces use the icon's fresh green hue with dark, readable text.
   Load this stylesheet after styles.css. Only colors and visual surface styling
   are overridden; the existing layouts, type sizes, and spacing are retained. */
.light-page,
.knowledge {
  --paper: #f7faf7;
  --ink: #142218;
  --muted: #53635a;
  --paper-muted: #53635a;
  --line: #d9e5db;
  --wiki-surface: #eef6ef;
  --wiki-border: #d7e5d9;
  --wiki-link: #16732a;
  --wiki-selected: #d4ffc9;
  --wiki-code: #e7f2e8;
  --wiki-strong: #254b2c;
  background: var(--paper);
  color: var(--ink);
}

.light-page button:focus-visible,
.light-page a:focus-visible,
.light-page input:focus-visible,
.light-page summary:focus-visible,
.knowledge button:focus-visible,
.knowledge a:focus-visible,
.knowledge input:focus-visible,
.knowledge summary:focus-visible {
  outline-color: var(--wiki-link);
}

.light-page .eyebrow,
.knowledge .eyebrow,
.light-page .faq-toolbar .eyebrow {
  color: var(--wiki-link);
}

.light-page .live-dot,
.knowledge .live-dot {
  background: #26e81e;
  box-shadow: 0 0 0 4px rgb(38 232 30 / 10%);
}

/* Shared navigation on Wiki and guide pages. */
.light-page #site-header {
  background: rgb(247 250 247 / 93%);
  border-color: var(--wiki-border);
}

.light-page .header-nav,
.light-page .header-nav > a,
.light-page .lang-switch {
  color: var(--muted);
}

.light-page .header-nav > a:hover,
.light-page .header-nav > a.active {
  color: var(--wiki-link);
}

.light-page .header-nav {
  border-color: var(--wiki-border);
}

.light-page .nav-download {
  background: linear-gradient(135deg, #4cfb3d 0%, #26e81e 52%, #0fd00f 100%);
  color: #07210d;
}

.light-page .button-dark,
.knowledge .button-dark,
.knowledge .home-search button {
  background: var(--ink);
  color: #fff;
}

/* Home-page help preview and all FAQ answers. */
.knowledge .section-intro,
.knowledge .quick-links small,
.knowledge .faq-answer,
.light-page .wiki-content .faq-answer,
.light-page .wiki-content .faq-answer p {
  color: var(--muted);
}

.knowledge .home-search {
  background: #fff;
  border-color: var(--wiki-border);
  box-shadow: 0 10px 30px rgb(20 68 27 / 4%);
}

.knowledge .home-search > svg,
.knowledge .guide-number,
.knowledge .quick-links svg,
.knowledge .text-link,
.knowledge .faq-item summary::after,
.light-page .faq-item summary::after {
  color: var(--wiki-link);
}

.knowledge .home-search input,
.light-page .wiki-search-wrap input {
  color: var(--ink);
}

.knowledge .home-search input::placeholder,
.light-page .wiki-search-wrap input::placeholder {
  color: #65756a;
  opacity: 1;
}

.knowledge .home-search:focus-within,
.light-page .wiki-search-wrap:focus-within {
  border-color: var(--wiki-link);
  box-shadow: 0 0 0 3px rgb(38 232 30 / 15%);
}

.knowledge .quick-links > a,
.knowledge .home-faq,
.knowledge .faq-item,
.light-page .faq-item,
.light-page .faq-toolbar {
  border-color: var(--wiki-border);
}

.knowledge .faq-answer a,
.light-page .faq-answer a,
.light-page .wiki-content .faq-answer .text-link,
.light-page .faq-answer .copy-feedback {
  color: var(--wiki-link);
}

.knowledge .text-link:hover,
.light-page .text-link:hover {
  color: #0d5b1c;
  opacity: 1;
}

.knowledge .faq-answer strong,
.light-page .faq-answer strong {
  color: var(--wiki-strong);
}

.knowledge .faq-answer code,
.light-page .faq-answer code {
  background: var(--wiki-code);
  color: var(--wiki-strong);
}

/* Search, topics, and help cards retain their existing geometry. */
.light-page .wiki-hero > p:not(.eyebrow),
.light-page .search-suggestions,
.light-page .sidebar-label,
.light-page .faq-toolbar > span,
.light-page .wiki-guide p,
.light-page .sidebar-help strong,
.light-page .wiki-bottom-help p,
.light-page .empty-state p {
  color: var(--muted);
}

.light-page .wiki-search-wrap {
  background: #fff;
  border-color: var(--wiki-border);
  color: var(--wiki-link);
  box-shadow: 0 6px 25px rgb(20 68 27 / 3%);
}

.light-page .wiki-search-wrap kbd {
  color: var(--muted);
  border-color: var(--wiki-border);
}

.light-page .wiki-search-wrap button,
.light-page .search-suggestions button,
.light-page .category-button,
.light-page .category-button span:last-child {
  color: var(--muted);
}

.light-page .search-suggestions button,
.light-page .category-button,
.light-page .sidebar-help,
.light-page .wiki-guide {
  border-color: var(--wiki-border);
}

.light-page .search-suggestions button:hover,
.light-page .category-button:hover,
.light-page .wiki-guide:hover {
  background: #e3f4e1;
}

.light-page .category-button.active {
  background: var(--wiki-selected);
  color: #135c24;
  border-color: #a9e99a;
}

.light-page .category-button.active span:last-child {
  color: #216c2e;
}

.light-page .sidebar-help > svg,
.light-page .sidebar-help a,
.light-page .wiki-guide > svg,
.light-page .wiki-guide > span svg,
.light-page .faq-group-label,
.light-page .empty-state > svg {
  color: var(--wiki-link);
}

.light-page .wiki-guide,
.light-page .wiki-bottom-help {
  background: var(--wiki-surface);
}

/* Long-form guides and privacy policy. */
.light-page .article-breadcrumb,
.light-page .article-header > p:last-child,
.light-page .article-sidebar nav a,
.light-page .prose,
.light-page .prose summary {
  color: var(--muted);
}

.light-page .article-breadcrumb a,
.light-page .article-faq-link,
.light-page .article-footer .text-link,
.light-page .prose a {
  color: var(--wiki-link);
}

.light-page .article-sidebar,
.light-page .article-sidebar nav a,
.light-page .article-faq-link,
.light-page .article-header,
.light-page .article-footer,
.light-page .prose details {
  border-color: var(--wiki-border);
}

.light-page .article-sidebar nav a:hover {
  color: var(--wiki-link);
  border-color: var(--wiki-link);
}

.light-page .prose h2,
.light-page .prose h3,
.light-page .prose strong {
  color: var(--wiki-strong);
}

.light-page .prose code,
.light-page .prose pre {
  background: var(--wiki-code);
  color: var(--wiki-strong);
  border-color: var(--wiki-border);
}

.light-page .prose blockquote {
  background: var(--wiki-surface);
  border-color: #64c75d;
}

.light-page .notice {
  background: #ecf9e9;
  border-color: #cee8c9;
  color: #37633c;
}

.light-page .load-error {
  background: var(--wiki-surface);
  color: var(--muted);
  border-color: var(--wiki-border);
}

/* Small footer links remain readable on the lighter surface. */
.light-page #site-footer {
  background: #edf5ee;
  border-color: var(--wiki-border);
}

.light-page .footer-brand p,
.light-page .footer-bottom {
  color: var(--muted);
  border-color: var(--wiki-border);
}

.light-page .footer-links,
.light-page .footer-bottom a {
  color: var(--wiki-link);
}

@media (max-width: 680px) {
  .light-page .header-nav {
    background: var(--paper);
  }

  .light-page .header-nav > a {
    color: var(--muted);
  }

  .light-page .header-nav > a:hover,
  .light-page .header-nav > a.active {
    color: var(--wiki-link);
  }
}

/* Keep the wordmark readable on the Wiki’s light surface. */
.light-page .brand-now { color: var(--wiki-link); }

/* Tutorial screenshots keep their original proportions; portrait app screens
   stay readable without stretching across the entire article. */
.guide-figure {
  width: 100%;
  max-width: 100%;
  margin: 28px 0;
}

.guide-figure.is-portrait {
  max-width: 380px;
  margin-inline: auto;
}

.guide-image {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wiki-border, #d5e2d4);
  border-radius: 14px;
  background: var(--wiki-surface, #f1f6ef);
  box-shadow: 0 6px 22px #18341c0a;
  line-height: 0;
}

.guide-image > img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .3s ease;
}

.guide-image:hover > img { transform: scale(1.012); }
.guide-image:focus-visible { outline: 3px solid #64c75d; outline-offset: 4px; }

.guide-image-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #ffffff60;
  border-radius: 50px;
  background: #142018c9;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  pointer-events: none;
}

.guide-image-hint svg { width: 13px; height: 13px; }
.guide-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.image-dialog.is-guide-image > img { max-height: none; }
.faq-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; margin: 22px 0; }
.faq-images .guide-figure { margin: 0; }
.faq-images .guide-figure.is-portrait { max-width: 320px; justify-self: center; }

@media (max-width: 680px) {
  .guide-figure { margin-block: 22px; }
  .guide-image { border-radius: 10px; }
  .guide-figure figcaption { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-image > img { transition: none; }
  .guide-image:hover > img { transform: none; }
}

/* Keep the four-mode overview separate from the two existing sign-in guides. */
.wiki-guide-overview{grid-column:1/-1}
