/* ExposedFlow user guide (12-02). Builds on styles.css (site header/footer, colours, .legal typography). */
.guide-wrap { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; display: grid;
              grid-template-columns: 270px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.guide-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding-right: 0.25rem;
              font-size: 0.92rem; scrollbar-width: thin; }
.guide-side h4 { margin: 1.1rem 0 0.35rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
                 color: var(--text-faint); font-weight: 600; }
.guide-side ul { list-style: none; margin: 0; padding: 0; }
.guide-side li a { display: block; padding: 0.28rem 0.6rem; border-radius: 6px; color: var(--text-dim, #b8c0cc);
                   text-decoration: none; line-height: 1.35; }
.guide-side li a:hover { background: #10141a; color: var(--text); }
.guide-side li a[aria-current="page"] { background: #0f1f1c; color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }

.guide-search { position: relative; margin-bottom: 0.4rem; }
.guide-search input { width: 100%; box-sizing: border-box; padding: 0.6rem 0.75rem 0.6rem 2.1rem; border-radius: 8px;
                      border: 1px solid #262c35; background: #0b0d10; color: var(--text); font: inherit; font-size: 0.92rem; }
.guide-search input:focus { outline: none; border-color: var(--accent); }
.guide-search svg { position: absolute; left: 0.65rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px;
                    color: var(--text-faint); pointer-events: none; }
.guide-search kbd { position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%); font: 0.72rem "IBM Plex Mono", monospace;
                    color: var(--text-faint); border: 1px solid #2b313b; border-radius: 4px; padding: 0 0.3rem; }
.guide-results { display: none; margin: 0.35rem 0 0.8rem; border: 1px solid #20252d; border-radius: 8px; background: #0b0d10;
                 max-height: 60vh; overflow-y: auto; }
.guide-results.open { display: block; }
.guide-results a { display: block; padding: 0.55rem 0.75rem; border-bottom: 1px solid #161a20; text-decoration: none; color: var(--text); }
.guide-results a:last-child { border-bottom: 0; }
.guide-results a:hover, .guide-results a.sel { background: #0f1f1c; }
.guide-results .r-t { font-weight: 600; font-size: 0.9rem; }
.guide-results .r-p { font-size: 0.75rem; color: var(--text-faint); margin-top: 0.1rem; }
.guide-results .r-s { font-size: 0.8rem; color: var(--text-dim, #b8c0cc); margin-top: 0.2rem; line-height: 1.4; }
.guide-results mark { background: rgba(45, 212, 191, 0.22); color: inherit; border-radius: 2px; padding: 0 1px; }
.guide-results .r-none { padding: 0.7rem 0.75rem; color: var(--text-faint); font-size: 0.85rem; }

.guide-main { min-width: 0; }
.guide-main.legal { max-width: 820px; margin: 0; padding: 0; }
.guide-crumb { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 0.4rem; }
.guide-crumb a { color: var(--text-faint); }
.guide-main h2 { scroll-margin-top: 1rem; }
.guide-main h3 { scroll-margin-top: 1rem; }
.guide-main h2 .anchor, .guide-main h3 .anchor { margin-left: 0.4rem; color: var(--text-faint); text-decoration: none;
                                                 opacity: 0; font-weight: 400; }
.guide-main h2:hover .anchor, .guide-main h3:hover .anchor { opacity: 1; }
.guide-onpage { border: 1px solid #20252d; border-radius: 10px; background: #0b0d10; padding: 0.8rem 1.1rem; margin: 1rem 0 1.6rem; }
.guide-onpage strong { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.3rem; }
.guide-onpage ul { margin: 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; }
.guide-onpage li { margin: 0.15rem 0; break-inside: avoid; }

/* settings tables */
.g-set { width: 100%; border-collapse: collapse; margin: 0.8rem 0 1.4rem; font-size: 0.9rem; }
.g-set th, .g-set td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid #1b2027; }
.g-set th { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.g-set td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.g-set code { white-space: nowrap; }

/* shared with the setup guide */
.gs-tip { border-left: 3px solid var(--accent); background: #0b1714; padding: 0.7rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; color: #cfeee9; }
.gs-warn { border-left: 3px solid #e6b34a; background: #15110a; padding: 0.7rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; color: #ecdcb6; }
.gs-ui { color: var(--text); font-weight: 600; }
.legal kbd { font-family: "IBM Plex Mono", monospace; font-size: 0.85em; border: 1px solid #2b313b; border-bottom-width: 2px;
             border-radius: 5px; padding: 0.05rem 0.35rem; background: #12161b; color: var(--text); }
.gs-fig { margin: 1rem 0 1.4rem; }
.gs-fig img { display: block; width: 100%; height: auto; border: 1px solid #20252d; border-radius: 10px; background: #000;
              cursor: zoom-in; transition: border-color .15s; }
.gs-fig img:hover, .gs-fig img:focus-visible { border-color: var(--accent); outline: none; }
.gs-fig figcaption { margin-top: 0.45rem; font-size: 0.85rem; color: var(--text-faint); }
.gs-lb { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
         padding: 2.5rem 1rem 1rem; background: rgba(0,0,0,.88); cursor: zoom-out; }
.gs-lb.open { display: flex; }
.gs-lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.gs-lb img { max-width: min(100%, 1920px); max-height: calc(100vh - 6rem); width: auto; height: auto;
             border: 1px solid #2b313b; border-radius: 10px; background: #000; }
.gs-lb figcaption { margin-top: 0.6rem; color: #c9d1d9; font-size: 0.9rem; text-align: center; }
.gs-lb button { position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: 0; color: #c9d1d9;
                font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; }

.guide-pn { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid #1b2027; }
.guide-pn a { flex: 1 1 0; display: block; padding: 0.7rem 0.9rem; border: 1px solid #20252d; border-radius: 10px; text-decoration: none; color: var(--text); }
.guide-pn a:hover { border-color: var(--accent); }
.guide-pn small { display: block; color: var(--text-faint); font-size: 0.75rem; margin-bottom: 0.15rem; }
.guide-pn .next { text-align: right; }

.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.8rem; margin: 0.6rem 0 1.8rem; }
.guide-cards a { display: block; padding: 0.85rem 1rem; border: 1px solid #20252d; border-radius: 10px; background: #0b0d10;
                 text-decoration: none; color: var(--text); }
.guide-cards a:hover { border-color: var(--accent); }
.guide-cards span { display: block; font-size: 0.85rem; color: var(--text-faint); margin-top: 0.25rem; line-height: 1.4; }

@media (max-width: 900px) {
  .guide-wrap { grid-template-columns: 1fr; gap: 1rem; }
  .guide-side { position: static; max-height: none; }
  .guide-side nav { display: none; }
  .guide-side nav.open { display: block; }
  .guide-toggle { display: inline-block !important; }
  .guide-onpage ul { columns: 1; }
  .g-set td:first-child { white-space: normal; }
}
.guide-toggle { display: none; margin: 0.2rem 0 0.4rem; background: #0b0d10; color: var(--text); border: 1px solid #262c35;
                border-radius: 8px; padding: 0.45rem 0.8rem; font: inherit; font-size: 0.88rem; cursor: pointer; }

/* 12-04 /learn articles */
.learn-video { display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0 1.6rem; padding: 0.7rem; border: 1px solid #20252d;
               border-radius: 12px; background: #0b0d10; text-decoration: none; color: var(--text); max-width: 640px; }
.learn-video:hover { border-color: var(--accent); }
.learn-video-thumb { position: relative; flex: 0 0 210px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.learn-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.learn-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
              background: rgba(0, 0, 0, 0.65); border: 1px solid rgba(45, 212, 191, 0.6); color: #7fe9da; display: flex;
              align-items: center; justify-content: center; font-size: 1rem; padding-left: 3px; box-sizing: border-box; }
.learn-video-txt small { display: block; color: var(--text-faint); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.learn-video-txt strong { display: block; margin: 0.15rem 0 0.25rem; }
.learn-video-txt span { font-size: 0.85rem; color: var(--accent); }
.learn-cta { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin: 2.4rem 0 1rem; padding: 1.1rem 1.2rem;
             border: 1px solid rgba(45, 212, 191, 0.35); border-radius: 12px; background: #0b1714; }
.learn-cta strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.learn-cta span { display: block; font-size: 0.9rem; color: var(--text-faint); line-height: 1.45; }
.learn-cta-btn { flex: 0 0 auto; padding: 0.65rem 1.1rem; border-radius: 9px; background: var(--accent); color: #001a16 !important;
                 font-weight: 700; text-decoration: none; white-space: nowrap; }
.learn-cta-btn:hover { filter: brightness(1.08); }
.learn-side-cta { margin-top: 1.2rem; padding: 0.85rem 0.9rem; border: 1px solid rgba(45, 212, 191, 0.3); border-radius: 10px; background: #0b1714; }
.learn-side-cta strong { display: block; font-size: 0.88rem; }
.learn-side-cta span { display: block; font-size: 0.8rem; color: var(--text-faint); margin: 0.15rem 0 0.45rem; }
.learn-side-cta a { font-size: 0.85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.learn-side-cta a:hover { text-decoration: underline; }
.learn-guide { margin-top: 1.8rem; font-size: 0.9rem; color: var(--text-faint); }
.learn-rel-h { margin-top: 2.2rem; }
.learn-disclaimer { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid #1b2027; font-size: 0.78rem; color: var(--text-faint); line-height: 1.5; }
.learn-cards a strong { font-size: 1rem; }
@media (max-width: 640px) {
  .learn-video { flex-direction: column; align-items: stretch; }
  .learn-video-thumb { flex-basis: auto; }
  .learn-cta { flex-direction: column; align-items: flex-start; }
}
.guide-main.learn h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.guide-main.learn h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.guide-main.learn h1 { line-height: 1.15; }
