/* ============================================================
   DATING THEMES — each one a different theory of romance.
   tabloid = the base look in dating.css (no overrides needed).

   swipe  — dating-app parody: dark mode, gradient flame, cards
   motel  — neon lovers' motel: vacancy signs, velvet dark
   candy  — saccharine valentine: pink lace, cursive, doilies
   lab    — clinical love trial: graph paper, monospace, mint
   ============================================================ */

/* ---------- theme picker (all themes) ---------- */
.theme-picker {
  position: fixed;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 99;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  background: rgba(20, 15, 18, 0.85);
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  max-width: calc(100vw - 1.5rem);
}
.theme-picker-label {
  font: 0.65rem/1 'Courier New', Courier, monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 0.2rem;
}
.theme-picker button {
  font: 0.7rem/1 'Courier New', Courier, monospace;
  letter-spacing: 0.05em;
  padding: 0.3em 0.6em;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
}
.theme-picker button:hover { color: #fff; border-color: #fff; }
.theme-picker button.active {
  background: #ff2e88;
  border-color: #ff2e88;
  color: #fff;
}

/* ============================================================
   SWIPE — the app made flesh. Dark mode, flame gradients,
   rounded profile cards. It's a match.
   ============================================================ */

[data-theme="swipe"] body {
  background: #16121f;
  background-image: none;
  color: #f3effa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', sans-serif;
}
[data-theme="swipe"] a { color: #ff7854; }
[data-theme="swipe"] a:hover { color: #fd267a; }

[data-theme="swipe"] .masthead {
  border-bottom: none;
  padding-bottom: 3rem;
}
[data-theme="swipe"] .kicker { color: #8a7fa8; }
[data-theme="swipe"] .masthead h1 {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(45deg, #fd267a, #ff7854);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
[data-theme="swipe"] .dek { font-style: normal; color: #c9c0dd; }
[data-theme="swipe"] .stamp {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 999px;
  background: linear-gradient(45deg, #fd267a, #ff7854);
  color: #fff;
  transform: none;
  padding: 0.55rem 1.4rem;
  box-shadow: 0 8px 24px rgba(253, 38, 122, 0.35);
}

[data-theme="swipe"] .filebar { background: #211b30; border-bottom: none; }
[data-theme="swipe"] .filebar a {
  font-family: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.9rem;
  color: #c9c0dd;
}
[data-theme="swipe"] .filebar a:hover { color: #ff7854; }

[data-theme="swipe"] h2 {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #fff;
  border-bottom: 4px solid #fd267a;
  border-radius: 2px;
}
[data-theme="swipe"] .lede { color: #e6dff5; }
[data-theme="swipe"] .lede::first-letter {
  font-size: inherit;
  float: none;
  padding-right: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

[data-theme="swipe"] .photo,
[data-theme="swipe"] .trial-flyer {
  border: none;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
[data-theme="swipe"] .ph-stack .photo { transform: none; }

[data-theme="swipe"] .rule-block {
  background: linear-gradient(135deg, #fd267a, #ff7854);
  color: #fff;
}
[data-theme="swipe"] .rule-block h2 { color: #fff; border-color: #fff; }
[data-theme="swipe"] .rule-block a { color: #ffe3d6; }
[data-theme="swipe"] blockquote.rule {
  font-family: inherit;
  font-weight: 800;
  text-transform: none;
  color: #fff;
  border-left-color: #fff;
}

[data-theme="swipe"] .section-note { color: #8a7fa8; font-family: inherit; }
[data-theme="swipe"] .trial {
  border-top: none;
  background: #211b30;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
[data-theme="swipe"] .trial h3 {
  font-family: inherit;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
}
[data-theme="swipe"] .vol {
  background: linear-gradient(45deg, #fd267a, #ff7854);
  border-radius: 999px;
  color: #fff;
}
[data-theme="swipe"] .trial .meta { color: #ff7854; font-family: inherit; letter-spacing: 0.02em; }
[data-theme="swipe"] .trial-flyer.ph { border: 1px dashed #8a7fa8; color: #8a7fa8; border-radius: 16px; }
[data-theme="swipe"] .trial.has-media:hover {
  background: #2b2340;
  box-shadow: 0 0 0 2px #fd267a, 0 10px 30px rgba(253, 38, 122, 0.25);
}

[data-theme="swipe"] .contact-line { font-family: inherit; }
[data-theme="swipe"] footer {
  border-top: 1px solid #322947;
  color: #8a7fa8;
  font-family: inherit;
  letter-spacing: 0.02em;
}

/* ============================================================
   MOTEL — the neon lovers' motel off the ring road.
   Vacancy. Hourly rates. No questions asked.
   ============================================================ */

[data-theme="motel"] body {
  background: #0c0511;
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(255, 46, 136, 0.14), transparent 55%);
  color: #f0d9e5;
}
[data-theme="motel"] a { color: #ff6fb5; }
[data-theme="motel"] a:hover { color: #7cf5ff; }

[data-theme="motel"] .masthead { border-bottom: 1px solid rgba(255, 46, 136, 0.4); }
[data-theme="motel"] .kicker {
  color: #7cf5ff;
  text-shadow: 0 0 8px rgba(124, 245, 255, 0.7);
}
[data-theme="motel"] .masthead h1 {
  font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #ff2e88;
  text-shadow:
    0 0 6px rgba(255, 46, 136, 0.9),
    0 0 24px rgba(255, 46, 136, 0.6),
    0 0 70px rgba(255, 46, 136, 0.4);
}
[data-theme="motel"] .dek { color: #d9b8ca; }
[data-theme="motel"] .stamp {
  color: #7cff5e;
  border-color: #7cff5e;
  background: transparent;
  text-shadow: 0 0 10px rgba(124, 255, 94, 0.8);
  box-shadow: 0 0 14px rgba(124, 255, 94, 0.35), inset 0 0 14px rgba(124, 255, 94, 0.15);
  transform: rotate(-1deg);
}

[data-theme="motel"] .filebar {
  background: rgba(12, 5, 17, 0.9);
  border-top: 1px solid rgba(255, 46, 136, 0.4);
  border-bottom: 1px solid rgba(255, 46, 136, 0.4);
}
[data-theme="motel"] .filebar a { color: #f0d9e5; }
[data-theme="motel"] .filebar a:hover {
  color: #ff6fb5;
  text-shadow: 0 0 10px rgba(255, 111, 181, 0.9);
}

[data-theme="motel"] h2 {
  font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  font-weight: 400;
  text-transform: none;
  font-size: 2.8rem;
  color: #ff6fb5;
  border-bottom: 1px solid rgba(255, 111, 181, 0.5);
  text-shadow: 0 0 12px rgba(255, 111, 181, 0.6);
}
[data-theme="motel"] .lede::first-letter { color: #ff2e88; text-shadow: 0 0 12px rgba(255, 46, 136, 0.7); }

[data-theme="motel"] .photo,
[data-theme="motel"] .trial-flyer {
  border: 2px solid #ff2e88;
  box-shadow: 0 0 18px rgba(255, 46, 136, 0.45);
}

[data-theme="motel"] .rule-block {
  background: #160a1c;
  border-top: 2px solid #ff2e88;
  border-bottom: 2px solid #ff2e88;
  box-shadow: 0 0 40px rgba(255, 46, 136, 0.25);
  color: #f0d9e5;
}
[data-theme="motel"] .rule-block h2 { color: #7cf5ff; border-color: rgba(124, 245, 255, 0.5); text-shadow: 0 0 12px rgba(124, 245, 255, 0.6); }
[data-theme="motel"] blockquote.rule {
  color: #fff;
  border-left-color: #ff2e88;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

[data-theme="motel"] .section-note { color: #7cf5ff; }
[data-theme="motel"] .trial { border-top: 1px dashed rgba(255, 111, 181, 0.35); }
[data-theme="motel"] .trial h3 { color: #f0d9e5; }
[data-theme="motel"] .vol {
  background: transparent;
  border: 1px solid #ff2e88;
  color: #ff2e88;
  text-shadow: 0 0 8px rgba(255, 46, 136, 0.7);
  box-shadow: 0 0 10px rgba(255, 46, 136, 0.35);
}
[data-theme="motel"] .trial .meta { color: #7cf5ff; }
[data-theme="motel"] .trial-flyer.ph { border-color: rgba(255, 111, 181, 0.5); color: #ff6fb5; }
[data-theme="motel"] .trial.has-media:hover {
  background: rgba(255, 46, 136, 0.07);
  box-shadow: inset 4px 0 0 #ff2e88, 0 0 24px rgba(255, 46, 136, 0.25);
}

[data-theme="motel"] footer {
  border-top: 1px solid rgba(255, 46, 136, 0.4);
  color: #d9b8ca;
}

/* ============================================================
   CANDY — the valentine you got in year 6, weaponised.
   Doilies, dots, devotion.
   ============================================================ */

[data-theme="candy"] body {
  background: #ffe3ee;
  background-image: radial-gradient(#ffc1d9 14%, transparent 15%);
  background-size: 26px 26px;
  color: #6e1e3c;
}
[data-theme="candy"] a { color: #d61c5f; }
[data-theme="candy"] a:hover { color: #ff2e88; }

[data-theme="candy"] .masthead {
  border-bottom: 4px dotted #d61c5f;
  background: rgba(255, 255, 255, 0.55);
}
[data-theme="candy"] .kicker { color: #d61c5f; }
[data-theme="candy"] .masthead h1 {
  font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  font-weight: 400;
  text-transform: none;
  line-height: 1.05;
  color: #d61c5f;
  text-shadow: 2px 2px 0 #fff;
}
[data-theme="candy"] .stamp {
  border: 2px dashed #d61c5f;
  border-radius: 999px;
  background: #fff;
  color: #d61c5f;
  transform: rotate(1.5deg);
}

[data-theme="candy"] .filebar { background: #d61c5f; }
[data-theme="candy"] .filebar a { color: #ffe3ee; }
[data-theme="candy"] .filebar a:hover { color: #fff; background: #ff2e88; }

[data-theme="candy"] h2 {
  font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  font-weight: 400;
  text-transform: none;
  font-size: 2.7rem;
  color: #b5124a;
  border-bottom: 3px dotted #d61c5f;
}
[data-theme="candy"] .lede::first-letter { color: #d61c5f; font-family: 'Snell Roundhand', 'Brush Script MT', cursive; }

[data-theme="candy"] .photo,
[data-theme="candy"] .trial-flyer {
  border: 6px solid #fff;
  box-shadow: 0 6px 18px rgba(214, 28, 95, 0.25);
}

[data-theme="candy"] .rule-block {
  background: #d61c5f;
  color: #fff5f9;
  border-top: 6px dotted #fff;
  border-bottom: 6px dotted #fff;
}
[data-theme="candy"] .rule-block h2 { color: #ffd6e6; border-color: #ffd6e6; }
[data-theme="candy"] .rule-block a { color: #ffd6e6; }
[data-theme="candy"] blockquote.rule { color: #fff; border-left-color: #ffd6e6; }

[data-theme="candy"] .section-note { color: #b5124a; }
[data-theme="candy"] .trial {
  border-top: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #ffb3cf;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
[data-theme="candy"] .vol { background: #d61c5f; border-radius: 999px; }
[data-theme="candy"] .trial .meta { color: #d61c5f; }
[data-theme="candy"] .trial-flyer.ph { border-color: #d61c5f; color: #d61c5f; background: #fff; }
[data-theme="candy"] .trial.has-media:hover {
  background: #fff;
  box-shadow: 0 0 0 2px #d61c5f, 0 8px 22px rgba(214, 28, 95, 0.3);
}

[data-theme="candy"] footer {
  border-top: 4px dotted #d61c5f;
  color: #b5124a;
}
[data-theme="candy"] .theme-picker { background: rgba(255, 255, 255, 0.9); border-color: #d61c5f; }
[data-theme="candy"] .theme-picker-label { color: #b5124a; }
[data-theme="candy"] .theme-picker button { color: #b5124a; border-color: #d61c5f; }
[data-theme="candy"] .theme-picker button:hover { color: #d61c5f; border-color: #b5124a; }
[data-theme="candy"] .theme-picker button.active { background: #d61c5f; border-color: #d61c5f; color: #fff; }

/* ============================================================
   LAB — the love trial. Graph paper, subject numbers,
   ethics approval pending.
   ============================================================ */

[data-theme="lab"] body {
  background: #f6fbf8;
  background-image:
    linear-gradient(rgba(11, 110, 79, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 110, 79, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #14231c;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
[data-theme="lab"] a { color: #0b6e4f; }
[data-theme="lab"] a:hover { color: #d81e42; }

[data-theme="lab"] .masthead { border-bottom: 2px solid #0b3d2e; }
[data-theme="lab"] .kicker { color: #d81e42; }
[data-theme="lab"] .masthead h1 {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  letter-spacing: 0.02em;
  color: #0b3d2e;
  text-shadow: none;
}
[data-theme="lab"] .dek { font-style: normal; color: #3c5a4c; }
[data-theme="lab"] .stamp {
  transform: rotate(1deg);
  color: #d81e42;
  border-color: #d81e42;
  background: rgba(216, 30, 66, 0.05);
}

[data-theme="lab"] .filebar { background: #0b3d2e; }
[data-theme="lab"] .filebar a { color: #e9fff5; }
[data-theme="lab"] .filebar a:hover { color: #6fe3b2; }

[data-theme="lab"] h2 {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  color: #0b3d2e;
  border-bottom: 2px solid #0b3d2e;
}
[data-theme="lab"] h2::before { content: "§ "; color: #d81e42; }
[data-theme="lab"] .lede::first-letter {
  font-size: inherit;
  float: none;
  padding-right: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

[data-theme="lab"] .photo,
[data-theme="lab"] .trial-flyer {
  border: 1px solid #0b3d2e;
  box-shadow: 4px 4px 0 rgba(11, 61, 46, 0.15);
}
[data-theme="lab"] .ph-stack .photo { transform: none; }

[data-theme="lab"] .rule-block { background: #0b3d2e; color: #e9fff5; }
[data-theme="lab"] .rule-block h2 { color: #6fe3b2; border-color: #6fe3b2; }
[data-theme="lab"] .rule-block h2::before { color: #ff8fa8; }
[data-theme="lab"] .rule-block a { color: #6fe3b2; }
[data-theme="lab"] blockquote.rule {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  color: #e9fff5;
  border-left-color: #6fe3b2;
}

[data-theme="lab"] .section-note { color: #d81e42; }
[data-theme="lab"] .trial { border-top: 1px solid rgba(11, 61, 46, 0.25); }
[data-theme="lab"] .trial h3 {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.02em;
}
[data-theme="lab"] .vol { background: #0b6e4f; border-radius: 0; }
[data-theme="lab"] .trial .meta { color: #d81e42; }
[data-theme="lab"] .trial-flyer.ph { border-color: #0b3d2e; color: #0b6e4f; }
[data-theme="lab"] .trial.has-media:hover {
  background: rgba(11, 110, 79, 0.06);
  box-shadow: inset 4px 0 0 #0b6e4f;
}

[data-theme="lab"] .contact-line { color: #14231c; }
[data-theme="lab"] footer { border-top: 2px solid #0b3d2e; color: #3c5a4c; }
[data-theme="lab"] .theme-picker { background: rgba(11, 61, 46, 0.92); border-color: #6fe3b2; }
