/* Shared controls and image treatment, active in both review themes. */
.theme-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:38px;min-width:38px;padding:8px 11px;flex-shrink:0;
  border:1px solid #765481;border-radius:7px;background:#251d3e;color:#f5eeff;
  font:700 12px/1.2 Arial,Helvetica,sans-serif;white-space:nowrap;
}
.theme-toggle:hover{background:#39264f;border-color:#ff58a6}
.theme-toggle-icon{font-size:17px;line-height:1;display:inline-block}
:root[data-theme="light"] .theme-toggle{background:#fff;color:#51406c;border-color:#c7b5d9}
:root[data-theme="light"] .theme-toggle:hover{background:#f6ecfa;border-color:#b81768}

/* Product images retain white surroundings even in dark mode. */
.memory-image,.memory-image img,.polaroid,.hero-photo .photo-well,
.collection-art,.collection-art img,.article-illustration,.article-illustration img,
.quiz-picture,.quiz-picture img,.share-preview-visual:has(img),.share-preview-visual img{
  background:#fff!important;
}
.memory-image{flex-direction:column;gap:8px}
.image-caption{color:#605b77;font:10px/1.3 Arial,sans-serif;text-align:center}

/* Keep the theme switch visible while navigation becomes a dropdown. */
@media(max-width:950px){
  .nav-row>.brand{order:0}
  .theme-toggle{order:1;margin-left:auto}
  .nav-toggle{order:2;display:block;margin-left:0;border:1px solid var(--line);border-radius:5px;width:40px;height:38px;font-size:20px}
  .nav-links{
    order:3;display:none;position:absolute;top:70px;left:0;right:0;margin-left:0;
    padding:20px;background:#1b1531;border-bottom:1px solid #84517e;
    flex-direction:column;align-items:stretch;font-size:14px;gap:18px;
  }
  .nav-links.open{display:flex}
  :root[data-theme="light"] .nav-links{background:#fff;border-color:#d1bddc}
}
@media(max-width:560px){.nav-links{top:64px}}
@media(max-width:380px){
  .theme-toggle{padding:8px;width:38px}
  .theme-toggle-label{display:none}
}
@media print{.theme-toggle{display:none!important}}
