/* Photo tips (flow v2), ported from explore/2026-10-23-good-photo/demo-v3 (Vince copy, Oct 23). All text >= 18px. */
:root { --good-bg: #E2EADB; --good-ink: #2F4A22; --bad-bg: #F3DDD8; --bad-ink: #7A2A1E; --mid-bg: #F4E6CC; --mid-ink: #6B4512; }
    .tips-link { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--ink); font-size: 18px; font-weight: 600;
      text-decoration: underline; text-underline-offset: 4px; min-height: 48px; padding: 8px 12px; margin: -8px 0 8px; }
    .tips-link .q { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); align-items: center; justify-content: center;
      text-decoration: none; font-size: 16px; font-weight: 700; }

    /* ——— Good-photo shared parts ——— */
    .tips-title { text-align: center; }
    .tip-text, .tip-text p, .tip-sub p, details p, .ex figcaption, .mnote { font-size: 18px; line-height: 1.5; }
    .tip-text strong, .tip-sub strong { font-weight: 700; color: var(--ink); }
    .soft { color: var(--soft); }
    .inline-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
      display: inline-block; padding: 11px 2px; margin: -11px 0; min-width: 48px; text-align: center; word-break: break-all; }
    .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
    .badge.good { background: var(--good-bg); color: var(--good-ink); }
    .badge.bad { background: var(--bad-bg); color: var(--bad-ink); }
    .badge.mid { background: var(--mid-bg); color: var(--mid-ink); }
    .ex { margin: 0; }
    .ex .frame { position: relative; border-radius: 12px; overflow: hidden; background: #e8e0d4; aspect-ratio: 1; }
    .ex .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .ex .frame .badge { position: absolute; left: 8px; top: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
    .ex figcaption { margin-top: 8px; color: var(--ink); text-align: left; }
    .ex .mnote { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--mid-bg); color: var(--mid-ink); text-align: left; }
    /* Fallback tile — neutral grey, shown only if an example photo fails to load (no fake photo). */
    .ph { position: absolute; inset: 0; background: #CFCBC5; display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 4px; color: #3F3C38; text-align: center; padding: 46px 8px 8px; font-size: 18px; line-height: 1.2;
      background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 12px, transparent 12px 24px); }
    .ph b { letter-spacing: 0.08em; text-transform: uppercase; font-size: 18px; }
    .ph code { font-size: 18px; }
    .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 6px; }
    .pair.one { grid-template-columns: 1fr 1fr; }
    .C-grid .mnote { grid-column: 1 / -1; margin-top: -4px; padding: 10px 12px; border-radius: 10px; background: var(--mid-bg); color: var(--mid-ink); font-size: 18px; line-height: 1.5; }
    .start-over { align-self: center; margin-top: 18px; }
    .size-note { margin-top: 10px; font-size: 18px; line-height: 1.5; color: var(--ink); }
    .size-note .badge { margin-right: 6px; vertical-align: 2px; }

    #s-tips .screen-body { padding-left: 0; padding-right: 0; }
    .B-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; -webkit-overflow-scrolling: touch; }
    .B-track::-webkit-scrollbar { display: none; }
    .B-card { flex: 0 0 100%; scroll-snap-align: start; padding: 4px var(--pad-x) 8px; overflow-y: auto; }
    .B-kicker { font-size: 18px; color: var(--soft); font-weight: 600; margin-bottom: 4px; }
    .B-head { font-size: 22px; line-height: 1.3; font-weight: 700; margin-bottom: 8px; }
    .B-nav { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 334px; }
    .B-count { font-size: 18px; color: var(--soft); }
    /* Vince 2026-11-09 4:32 PM CT (t403u): dots gone; the footer boundary (top of #tips-cta, where the tip card clips) sits a few px above
       the "N of 7" text. Body padding-bottom 0, footer padding-top 0 + nav row pulled up 4px puts the counter text 6px under the boundary at 390.
       padding-bottom/min-height untouched, so Next tip keeps the shared primary CTA Y. */
    #s-tips .screen-body { padding-bottom: 0; }   /* tip card runs right to the footer boundary: no empty band where the dots were */
    #s-tips #tips-cta { padding-top: 0; }
    #s-tips .B-nav { margin-top: -4px; }
.tips-link .q { font-size: 18px !important; }
.tips-link[hidden] { display: none !important; }
#s-tips .topbar .nav-link { min-height: 48px; min-width: 48px; display: inline-flex; align-items: center; justify-content: center; }
#s-tips .screen-body { display: flex; flex-direction: column; }
#s-tips .B-nav .btn-ghost, #s-tips .B-count { font-size: 18px; }

/* QL-23 Good/Bad tip photos (mock 2026-10-30 10:30 AM CT, built with QL-28) */
#s-tips .q23g { margin: 12px 0; }
#s-tips .q23-img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; background: #eee; display: block; }
#s-tips .q23-img[hidden], #s-tips .q23-cap[hidden] { display: none; }
#s-tips .q23-tog { display: flex; gap: 10px; justify-content: center; margin: 10px 0 0; }
#s-tips .q23-tog button { min-height: 48px; min-width: 96px; border-radius: 24px; border: 2px solid #2b241c; font-size: 18px; font-weight: 600; background: #fff; color: #2b241c; cursor: pointer; }
#s-tips .q23-tog button[aria-pressed="true"] { background: #2b241c; color: #fff; }
#s-tips .q23-cap { font-size: 18px; line-height: 1.35; margin: 8px 0 0; }

/* QL-29 explainer accordion (Tip 2, Tip 3): collapsed = 2-line lead of the same text, 48px caret */
#s-tips .tip-acc { display: flex; align-items: flex-start; gap: 4px; }
#s-tips .tip-acc-body { flex: 1 1 auto; min-width: 0; max-height: 3em; overflow: hidden; position: relative; }
#s-tips .tip-acc-body > p:first-child { margin-top: 0; }
#s-tips .tip-acc:not(.is-open) .tip-acc-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5em; background: linear-gradient(rgba(243,238,230,0), var(--bg, #F3EEE6)); }
#s-tips .tip-acc.is-open .tip-acc-body { max-height: none; }
#s-tips .tip-acc-caret { flex: 0 0 48px; width: 48px; height: 48px; margin-top: -6px; border: 0; background: none; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; border-radius: 12px; transition: transform .2s; }
#s-tips .tip-acc.is-open .tip-acc-caret { transform: rotate(180deg); }
#s-tips .tip-acc-caret:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* QL-29: cap each tip photo so photo + Good/Bad pills sit in the card at 390 with the explainer collapsed (centered, real aspect kept) */
#s-tips .q23-img { width: auto; max-width: 100%; max-height: 30vh; margin: 0 auto; }

/* QL-30 (Vince 2026-10-31 9:17 AM CT): bullets replace a./b./c./d. */
.tip-bullets{list-style:disc;margin:0;padding-left:1.25em}.tip-bullets>li{margin:0 0 12px}.tip-bullets>li::marker{font-size:18px;color:var(--ink)}
