/* The two typefaces the whole site uses, served from this site.

   Cormorant Garamond is for headings: an old-book serif that suits the
   moonlit apothecary. Inter is for everything people read at length, forms
   and prices included. Both are latin subsets under the SIL Open Font
   Licence, and both show a fallback straight away while they load. */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
}

/* The Little Haven DNA palette.

   Every colour on the site comes from this file. Nothing else should contain a
   hex code or an rgb() value, so if you want to change a colour you change it
   here, once, and it changes everywhere.

   Values are three numbers rather than a hex code, because that lets one
   colour carry any transparency:

       color: rgb(var(--c-accent));              the colour, solid
       border-color: rgb(var(--c-accent) / 0.4);  the same colour, 40% shown

   The first block is the moonlit palette the design is built from. Those are
   the ones worth touching. Below it are colours the pages were already using
   that the moonlit set does not cover, grouped by hue so near-duplicates sit
   together and are easy to merge later.
*/

:root {
    /* the moonlit palette */
    --c-surface: 216 204 228;          /* #d8cce4 */
    --c-surface-soft: 231 222 240;     /* #e7def0 */
    --c-surface-deep: 201 185 217;     /* #c9b9d9 */
    --c-ink: 38 28 48;                 /* #261c30 */
    --c-muted: 91 75 102;              /* #5b4b66 */
    --c-accent: 114 53 166;            /* #7235a6 */
    --c-border: 119 98 135;            /* #776287 */
    --c-night: 20 17 25;               /* #141119 */
    --c-bg-2: 32 26 41;                /* #201a29 */
    --c-deep: 72 32 100;               /* #482064 */
    --c-neon: 169 109 231;             /* #a96de7 */
    --c-white: 251 247 255;            /* #fbf7ff */
    --c-black: 0 0 0;                  /* #000000 */
    --c-pure-white: 255 255 255;       /* #ffffff */
    --c-status-pending: 123 93 250;    /* #7b5dfa */
    --c-status-details: 243 156 18;    /* #f39c12 */
    --c-status-mail: 230 126 34;       /* #e67e22 */
    --c-status-received: 52 152 219;   /* #3498db */
    --c-status-progress: 26 188 156;   /* #1abc9c */
    --c-status-rerun: 142 68 173;      /* #8e44ad */
    --c-status-done: 46 204 113;       /* #2ecc71 */
    --c-funding-accent: 98 211 163;   /* #62d3a3 */
    --c-funding-surface: 20 43 41;    /* #142b29 */
    --c-funding-ink: 216 247 233;     /* #d8f7e9 */
    --c-funding-total: 241 255 247;   /* #f1fff7 */
    --c-funding-track: 9 29 24;       /* #091d18 */

    /* the apothecary scene: ivy, glass, wax and candlelight */
    --c-ivy-deep: 22 36 34;            /* #162422 */
    --c-ivy: 44 68 60;                 /* #2c443c */
    --c-ivy-vein: 92 120 108;          /* #5c786c */
    --c-glass: 196 184 226;            /* #c4b8e2 */
    --c-wood: 34 26 38;                /* #221a26 */
    --c-wax: 232 222 206;              /* #e8dece */
    --c-candle: 255 196 110;           /* #ffc46e */
    --c-candle-core: 255 240 200;      /* #fff0c8 */
    --c-potion-teal: 94 214 196;       /* #5ed6c4 */
    /* October: jack-o'-lanterns */
    --c-pumpkin: 232 118 34;           /* #e87622 */
    --c-pumpkin-deep: 164 66 18;       /* #a44212 */
    --c-pumpkin-stem: 92 98 54;        /* #5c6236 */
    /* the moon in the window, and the seasons that visit the room */
    --c-moonlight: 240 234 255;        /* #f0eaff */
    --c-moon-shade: 104 93 150;        /* #685d96 */
    --c-frost: 222 236 255;            /* #deecff */
    --c-blossom: 255 214 230;          /* #ffd6e6 */
    --c-firefly: 226 244 150;          /* #e2f496 */

    /* ------------------------------------------------------------------
       From the pages themselves: colours the moonlit set does not cover.
       ------------------------------------------------------------------ */

    --c-red-200-2: 255 180 176;        /* #ffb4b0 */
    --c-red-200: 255 155 155;          /* #ff9b9b */
    --c-red-300: 248 113 113;          /* #f87171 */
    --c-red-500-2: 220 38 38;          /* #dc2626 */
    --c-red-600: 153 27 27;            /* #991b1b */
    --c-red-700: 127 29 29;            /* #7f1d1d */

    --c-grey-500: 119 119 119;         /* #777777 */
    --c-grey-600: 68 68 68;            /* #444444 */

    --c-amber-400-4: 234 88 12;        /* #ea580c */
    --c-amber-500-2: 194 65 12;        /* #c2410c */

    --c-red-500: 183 80 60;            /* #b7503c */
    --c-red-600-2: 124 45 18;          /* #7c2d12 */

    --c-amber-100: 255 237 213;        /* #ffedd5 */
    --c-amber-200-4: 255 180 107;      /* #ffb46b */
    --c-amber-300-2: 249 115 22;       /* #f97316 */
    --c-amber-300: 221 147 49;         /* #dd9331 */
    --c-amber-200-3: 216 194 161;      /* #d8c2a1 */
    --c-amber-400-3: 180 120 20;       /* #b47814 */
    --c-amber-500: 180 83 9;           /* #b45309 */
    --c-amber-400-2: 164 119 78;       /* #a4774e */
    --c-amber-500-3: 139 78 22;        /* #8b4e16 */
    --c-amber-600-3: 113 63 18;        /* #713f12 */
    --c-amber-600: 98 69 22;           /* #624516 */
    --c-amber-800-2: 58 30 0;          /* #3a1e00 */
    --c-amber-800: 35 17 0;            /* #231100 */
    --c-amber-100-3: 255 216 128;      /* #ffd880 */
    --c-amber-200-2: 255 199 96;       /* #ffc760 */

    --c-yellow-100: 254 243 199;       /* #fef3c7 */
    --c-yellow-100-3: 252 211 77;      /* #fcd34d */

    --c-amber-200: 251 191 36;         /* #fbbf24 */

    --c-yellow-100-2: 250 204 21;      /* #facc15 */

    --c-amber-100-2: 241 212 148;      /* #f1d494 */

    --c-yellow-200: 234 179 8;         /* #eab308 */
    --c-yellow-300: 197 165 60;        /* #c5a53c */

    --c-amber-300-3: 189 162 105;      /* #bda269 */
    --c-amber-400: 154 123 63;         /* #9a7b3f */
    --c-amber-500-4: 143 91 0;         /* #8f5b00 */
    --c-amber-600-2: 120 80 10;        /* #78500a */
    --c-amber-700: 71 56 23;           /* #473817 */

    --c-green-100: 220 252 231;        /* #dcfce7 */
    --c-green-100-4: 187 247 208;      /* #bbf7d0 */
    --c-green-100-2: 134 239 172;      /* #86efac */

    --c-grey-100: 215 232 221;         /* #d7e8dd */

    --c-green-400-3: 22 163 74;        /* #16a34a */
    --c-green-500-2: 30 122 53;        /* #1e7a35 */
    --c-green-100-6: 100 237 155;      /* #64ed9b */
    --c-green-100-5: 110 231 183;      /* #6ee7b7 */
    --c-green-400: 107 156 133;        /* #6b9c85 */
    --c-green-600-2: 22 101 52;        /* #166534 */
    --c-green-600: 34 89 64;           /* #225940 */
    --c-green-800: 5 46 22;            /* #052e16 */
    --c-green-100-3: 110 255 216;      /* #6effd8 */

    --c-teal-100-3: 153 246 228;       /* #99f6e4 */
    --c-teal-200: 45 212 191;          /* #2dd4bf */

    --c-green-300-2: 107 190 161;      /* #6bbea1 */
    --c-green-300: 16 185 129;         /* #10b981 */
    --c-green-400-2: 5 150 105;        /* #059669 */
    --c-green-500: 4 120 87;           /* #047857 */

    --c-teal-100-2: 103 232 249;       /* #67e8f9 */
    --c-teal-100: 205 229 229;         /* #cde5e5 */
    --c-teal-300: 110 157 157;         /* #6e9d9d */
    --c-teal-500: 15 118 110;          /* #0f766e */
    --c-teal-600: 32 88 88;            /* #205858 */
    --c-teal-800: 8 34 32;             /* #082220 */

    --c-blue-100-2: 186 230 253;       /* #bae6fd */

    --c-teal-200-2: 125 211 252;       /* #7dd3fc */
    --c-teal-200-3: 34 211 238;        /* #22d3ee */
    --c-teal-300-2: 14 165 233;        /* #0ea5e9 */
    --c-teal-300-4: 132 183 201;       /* #84b7c9 */
    --c-teal-400: 8 145 178;           /* #0891b2 */
    --c-teal-600-2: 32 72 88;          /* #204858 */

    --c-blue-200-3: 134 182 255;       /* #86b6ff */
    --c-blue-100-4: 224 242 254;       /* #e0f2fe */
    --c-blue-200: 147 197 253;         /* #93c5fd */
    --c-blue-300: 96 165 250;          /* #60a5fa */
    --c-blue-400-2: 59 130 246;        /* #3b82f6 */
    --c-blue-200-2: 159 203 239;       /* #9fcbef */
    --c-blue-100: 203 213 225;         /* #cbd5e1 */
    --c-blue-300-2: 148 163 184;       /* #94a3b8 */
    --c-blue-400: 106 138 173;         /* #6a8aad */
    --c-blue-600-6: 23 75 149;         /* #174b95 */
    --c-blue-600: 41 79 120;           /* #294f78 */
    --c-blue-600-7: 76 89 104;         /* #4c5968 */
    --c-blue-700: 51 65 85;            /* #334155 */
    --c-blue-700-3: 8 47 73;           /* #082f49 */
    --c-blue-100-3: 201 214 255;       /* #c9d6ff */
    --c-blue-600-3: 29 78 216;         /* #1d4ed8 */
    --c-blue-400-4: 90 127 214;        /* #5a7fd6 */
    --c-blue-600-4: 30 64 175;         /* #1e40af */
    --c-blue-600-9: 52 80 139;         /* #34508b */
    --c-blue-800-2: 23 37 84;          /* #172554 */
    --c-blue-800: 17 24 39;            /* #111827 */
    --c-blue-500: 108 92 231;          /* #6c5ce7 */
    --c-blue-600-5: 75 62 207;         /* #4b3ecf */
    --c-blue-500-2: 108 108 140;       /* #6c6c8c */
    --c-blue-600-2: 75 75 106;         /* #4b4b6a */

    --c-violet-300: 176 153 255;       /* #b099ff */
    --c-violet-400: 148 118 255;       /* #9476ff */
    --c-violet-200-2: 208 195 255;     /* #d0c3ff */
    --c-violet-100-2: 237 233 254;     /* #ede9fe */
    --c-violet-500: 124 58 237;        /* #7c3aed */

    --c-blue-400-3: 138 122 223;       /* #8a7adf */

    --c-violet-500-3: 122 76 201;      /* #7a4cc9 */
    --c-violet-600-2: 75 46 160;       /* #4b2ea0 */
    --c-violet-600-5: 80 54 142;       /* #50368e */
    --c-violet-600-7: 92 82 134;       /* #5c5286 */
    --c-violet-800: 47 23 111;         /* #2f176f */

    --c-blue-700-2: 64 58 101;         /* #403a65 */

    --c-violet-400-7: 181 70 255;      /* #b546ff */
    --c-violet-500-2: 153 0 255;       /* #9900ff */
    --c-violet-100: 233 213 255;       /* #e9d5ff */
    --c-violet-200: 216 180 254;       /* #d8b4fe */
    --c-violet-400-2: 168 85 247;      /* #a855f7 */
    --c-violet-300-4: 200 132 244;     /* #c884f4 */
    --c-violet-300-3: 187 135 220;     /* #bb87dc */
    --c-violet-400-9: 167 107 207;     /* #a76bcf */
    --c-violet-600-3: 126 34 206;      /* #7e22ce */
    --c-violet-300-2: 179 154 195;     /* #b39ac3 */
    --c-violet-600: 91 33 182;         /* #5b21b6 */
    --c-violet-400-5: 152 117 180;     /* #9875b4 */
    --c-violet-400-8: 143 132 152;     /* #8f8498 */
    --c-violet-600-6: 111 75 145;      /* #6f4b91 */
    --c-violet-700-2: 88 28 135;       /* #581c87 */
    --c-violet-900-2: 26 0 46;         /* #1a002e */
    --c-violet-900: 18 0 31;           /* #12001f */
    --c-violet-300-6: 213 114 255;     /* #d572ff */

    --c-magenta-200-2: 240 171 252;    /* #f0abfc */
    --c-magenta-300-2: 232 121 249;    /* #e879f9 */

    --c-violet-400-3: 197 22 244;      /* #c516f4 */

    --c-magenta-400: 217 70 239;       /* #d946ef */

    --c-violet-400-6: 174 85 227;      /* #ae55e3 */
    --c-violet-300-5: 194 151 217;     /* #c297d9 */

    --c-magenta-500: 170 22 196;       /* #aa16c4 */

    --c-violet-600-8: 139 36 190;      /* #8b24be */

    --c-magenta-500-2: 169 69 186;     /* #a945ba */

    --c-grey-300: 170 160 174;         /* #aaa0ae */

    --c-violet-500-5: 146 98 173;      /* #9262ad */
    --c-violet-500-4: 137 81 170;      /* #8951aa */
    --c-violet-400-4: 147 124 160;     /* #937ca0 */
    --c-violet-600-4: 110 46 131;      /* #6e2e83 */
    --c-violet-700: 78 52 93;          /* #4e345d */
    --c-violet-700-3: 69 33 84;        /* #452154 */
    --c-violet-700-4: 64 48 71;        /* #403047 */

    --c-magenta-100: 255 216 255;      /* #ffd8ff */
    --c-magenta-300: 255 60 255;       /* #ff3cff */
    --c-magenta-300-6: 255 91 241;     /* #ff5bf1 */
    --c-magenta-300-3: 255 120 240;    /* #ff78f0 */
    --c-magenta-100-2: 255 196 255;    /* #ffc4ff */
    --c-magenta-700: 72 36 77;         /* #48244d */
    --c-magenta-300-4: 255 79 216;     /* #ff4fd8 */
    --c-magenta-200: 255 140 232;      /* #ff8ce8 */
    --c-magenta-200-3: 255 155 220;    /* #ff9bdc */
    --c-magenta-400-3: 240 0 200;      /* #f000c8 */
    --c-magenta-100-3: 234 207 224;    /* #eacfe0 */
    --c-magenta-300-7: 189 152 178;    /* #bd98b2 */
    --c-magenta-600: 129 26 112;       /* #811a70 */
    --c-magenta-800: 70 10 52;         /* #460a34 */

    --c-rose-200: 255 159 201;         /* #ff9fc9 */
    --c-rose-300-3: 255 105 173;       /* #ff69ad */

    --c-magenta-200-4: 249 168 212;    /* #f9a8d4 */
    --c-magenta-300-5: 244 114 182;    /* #f472b6 */

    --c-rose-400: 236 72 153;          /* #ec4899 */
    --c-rose-500-2: 219 39 119;        /* #db2777 */
    --c-rose-500-5: 190 24 93;         /* #be185d */

    --c-magenta-400-2: 178 113 147;    /* #b27193 */

    --c-rose-500-4: 166 56 101;        /* #a63865 */

    --c-magenta-500-3: 162 58 114;     /* #a23a72 */

    --c-rose-600-4: 157 23 77;         /* #9d174d */
    --c-rose-600-2: 120 37 78;         /* #78254e */
    --c-rose-200-2: 255 180 208;       /* #ffb4d0 */
    --c-rose-300-2: 255 117 163;       /* #ff75a3 */
    --c-rose-300: 251 113 133;         /* #fb7185 */
    --c-rose-400-3: 244 63 94;         /* #f43f5e */
    --c-rose-400-4: 216 112 147;       /* #d87093 */
    --c-rose-500: 190 18 60;           /* #be123c */
    --c-rose-400-2: 182 99 125;        /* #b6637d */
    --c-rose-400-5: 182 119 139;       /* #b6778b */
    --c-rose-600-5: 159 18 57;         /* #9f1239 */
    --c-rose-500-7: 147 76 99;         /* #934c63 */
    --c-rose-600: 132 36 63;           /* #84243f */
    --c-rose-600-3: 110 69 75;         /* #6e454b */
    --c-rose-700: 99 22 50;            /* #631632 */
    --c-rose-800: 76 5 25;             /* #4c0519 */
    --c-rose-900: 43 0 8;              /* #2b0008 */
    --c-rose-100: 255 228 230;         /* #ffe4e6 */
    --c-rose-100-2: 254 205 211;       /* #fecdd3 */
    --c-rose-500-3: 179 58 72;         /* #b33a48 */
}

/* Thanksgiving appreciation colors, shared by the dashboard gift. */
:root {
    --c-thankful-f7efff: 247 239 255;
    --c-thankful-25152e: 37 21 46;
    --c-thankful-a27b53: 162 123 83;
    --c-thankful-65406c: 101 64 108;
    --c-thankful-8b4a28: 139 74 40;
    --c-thankful-100b18: 16 11 24;
    --c-thankful-a781cb: 167 129 203;
    --c-thankful-eac594: 234 197 148;
    --c-thankful-f3e6ff: 243 230 255;
    --c-thankful-efe3f4: 239 227 244;
    --c-thankful-ffdfad: 255 223 173;
    --c-thankful-e3c7ff: 227 199 255;
    --c-thankful-d6b67e: 214 182 126;
    --c-thankful-71438d: 113 67 141;
    --c-thankful-49265d: 73 38 93;
    --c-thankful-b38be5: 179 139 229;
    --c-thankful-82539e: 130 83 158;
    --c-thankful-593171: 89 49 113;
    --c-thankful-c69cec: 198 156 236;
    --c-thankful-ffe4aa: 255 228 170;
    --c-thankful-a77ccb: 167 124 203;
    --c-thankful-e6c48b: 230 196 139;
    --c-thankful-8d5eae: 141 94 174;
    --c-thankful-120a2d: 18 10 45;
    --c-thankful-c09ae0: 192 154 224;
    --c-thankful-f1d39b: 241 211 155;
    --c-thankful-b98bd8: 185 139 216;
    --c-thankful-e8c88e: 232 200 142;
    --c-thankful-d9c6e2: 217 198 226;
    --c-thankful-40264c: 64 38 76;
    --c-thankful-bd93d3: 189 147 211;
    --c-thankful-f0d9ff: 240 217 255;
    --c-thankful-ffe0bb: 255 224 187;
    --c-thankful-d5b0ff: 213 176 255;
    --c-thankful-241b2c: 36 27 44;
    --c-thankful-6e527b: 110 82 123;
    --c-thankful-e9d5f6: 233 213 246;
    --c-thankful-e1d2e9: 225 210 233;
    --c-thankful-3d294a: 61 41 74;
    --c-thankful-f2dfff: 242 223 255;
    --c-thankful-e6cff5: 230 207 245;
    --c-thankful-291635: 41 22 53;
    --c-thankful-f2ddff: 242 221 255;
    --c-thankful-eadbef: 234 219 239;
}

/* Existing navigation and harvest colours, centralized without a visual change. */
:root {
  --c-ui-120c1b: 18 12 27;
  --c-ui-15101c: 21 16 28;
  --c-ui-17121d: 23 18 29;
  --c-ui-251b2b: 37 27 43;
  --c-ui-302639: 48 38 57;
  --c-ui-531e2c: 83 30 44;
  --c-ui-54316d: 84 49 109;
  --c-ui-6a4085: 106 64 133;
  --c-ui-88769b: 136 118 155;
  --c-ui-8b364b: 139 54 75;
  --c-ui-9469a7: 148 105 167;
  --c-ui-99c18b: 153 193 139;
  --c-ui-a36674: 163 102 116;
  --c-ui-a66b73: 166 107 115;
  --c-ui-af7fba: 175 127 186;
  --c-ui-b58c55: 181 140 85;
  --c-ui-bb9cd4: 187 156 212;
  --c-ui-c18a55: 193 138 85;
  --c-ui-c47f53: 196 127 83;
  --c-ui-c59862: 197 152 98;
  --c-ui-c69252: 198 146 82;
  --c-ui-c99649: 201 150 73;
  --c-ui-c99743: 201 151 67;
  --c-ui-d1a85c: 209 168 92;
  --c-ui-d7a252: 215 162 82;
  --c-ui-ddc8ee: 221 200 238;
  --c-ui-ead2ab: 234 210 171;
  --c-ui-eadbf5: 234 219 245;
  --c-ui-ffffff: 255 255 255;
}

/* Little Haven — moonlit surroundings, luminous lilac reading surfaces. */
:root {
  color-scheme: light;
  --lh-surface: rgb(var(--c-surface));
  --lh-surface-soft: rgb(var(--c-surface-soft));
  --lh-surface-deep: rgb(var(--c-surface-deep));
  --lh-ink: rgb(var(--c-ink));
  --lh-muted: rgb(var(--c-muted));
  --lh-accent: rgb(var(--c-accent));
  --lh-border: rgb(var(--c-border));
  --lh-night: rgb(var(--c-night));
  --lh-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --lh-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --lh-bg: var(--lh-night);
  --lh-bg-2: rgb(var(--c-bg-2));
  --lh-card: var(--lh-surface);
  --lh-card-2: var(--lh-surface-soft);
  --lh-deep: rgb(var(--c-deep));
  --lh-royal: rgb(var(--c-accent));
  --lh-neon: rgb(var(--c-neon));
  --lh-lavender: rgb(var(--c-surface-deep));
  --lh-soft: var(--lh-surface-soft);
  --lh-white: rgb(var(--c-white));
  --lh-shadow: 0 12px 30px rgb(var(--c-night) / 0.1686);
  --lh-glow: 0 0 18px rgb(var(--c-violet-400-6) / 0.3412);
  /* A box you type in. It has to be lighter than the card behind it, or a
     field and a paragraph look the same and nobody can tell where to type. */
  --lh-field: rgb(var(--c-white));
  --lh-field-edge: rgb(var(--c-border));
  --lh-radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; background: var(--lh-night); }
body { margin: 0; min-height: 100vh; font: 16px/1.65 var(--lh-sans); color: var(--lh-ink); background: var(--lh-night); }
img, svg, video, canvas { max-width: 100%; }
.moonlit-site .lh-icon { display: inline-block; width: 1.15rem; height: 1.15rem; min-width: 1.15rem; flex: 0 0 1.15rem; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.moonlit-site .lh-icon--chevron-down { width: .85rem; height: .85rem; min-width: .85rem; flex-basis: .85rem; transition: transform .18s ease; }
.nav-dropdown[open] > summary .lh-icon--chevron-down { transform: rotate(180deg); }
img, video { height: auto; }
button, input, select, textarea { font: inherit; max-width: 100%; }
button, summary { cursor: pointer; }
a { color: rgb(var(--c-violet-700-2)); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: rgb(var(--c-accent)); }
a, button, input, summary, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgb(var(--c-accent)); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--lh-ink); font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 600; line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.7rem, 2.4vw, 2.5rem); margin: 0 0 .8rem; }
h3 { font-size: 1.5rem; margin: 0 0 .6rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.4rem; }
strong { font-weight: 650; }
small { font-size: .88rem; }
hr { border: 0; border-top: 1px solid rgb(var(--c-violet-400-4) / 0.4118); margin: 1.5rem 0; }
::selection { color: rgb(var(--c-pure-white)); background: rgb(var(--c-accent)); }
.sr-only, .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; background: var(--lh-surface-soft); padding: .7rem 1.2rem; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: .6rem; }
.moon-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: rgb(var(--c-night)) url('../dna_portal/moonlit/moonlit-room.webp') center top / cover no-repeat; }
.moon-stars { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.moon-star { position: absolute; width: 14px; height: 14px; color: rgb(var(--c-violet-100)); filter: drop-shadow(0 0 5px rgb(var(--c-violet-400-6))); animation: moon-twinkle 5.8s ease-in-out infinite; }
.moon-star::before, .moon-star::after { content: ''; position: absolute; inset: 0; background: currentColor; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
.moon-star::after { inset: 3px; transform: rotate(45deg); opacity: .6; }
.moon-stars > .moon-star:nth-child(1) { top: 22%; left: 4.5%; animation-delay: -1.6s; }
.moon-stars > .moon-star:nth-child(2) { top: 67%; left: 7.7%; width: 10px; height: 10px; animation-duration: 7.1s; animation-delay: -3.2s; }
.moon-stars > .moon-star:nth-child(3) { top: 43%; left: 1.3%; animation-duration: 6.2s; animation-delay: -.7s; }
.moon-stars > .moon-star:nth-child(4) { top: 29%; right: 5%; animation-delay: -4.1s; }
.moon-stars > .moon-star:nth-child(5) { top: 72%; right: 2.2%; animation-duration: 6.8s; animation-delay: -2.3s; }
.moon-stars > .moon-star:nth-child(6) { top: 51%; right: 8.1%; width: 11px; height: 11px; animation-duration: 8s; animation-delay: -5.2s; }
@keyframes moon-twinkle { 0%,100% { opacity: .2; transform: scale(.68); } 42% { opacity: .45; } 52% { opacity: 1; transform: scale(1.12); } 66% { opacity: .4; transform: scale(.8); } }
.specimen-spark { animation: moon-glint 6.6s ease-in-out infinite; }
@keyframes moon-glint { 0%,100% { opacity: .35; } 50% { opacity: 1; } 65% { opacity: .6; } }
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 86px; padding: .6rem max(2.2vw, 1rem); color: rgb(var(--c-surface-soft)); background: linear-gradient(180deg,rgb(var(--c-night) / 0.9804),rgb(var(--c-night) / 0.9804)); border-bottom: 1px solid rgb(var(--c-violet-300-2)); box-shadow: 0 3px 0 rgb(var(--c-night)),0 4px 0 rgb(var(--c-muted)),0 8px 25px rgb(var(--c-black) / 0.3333); }
.brand { display: inline-flex; align-items: center; gap: .8rem; flex-shrink: 0; color: rgb(var(--c-surface-soft)); text-decoration: none; }
.brand:hover { color: rgb(var(--c-pure-white)); }
.brand-logo { width: 61px; height: 61px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 0 6px rgb(var(--c-violet-400-9) / 0.3765)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; text-align: center; }
.brand-title { font: 500 clamp(1.65rem,2.3vw,2.15rem)/1.05 var(--lh-serif); font-size-adjust: 0.46; letter-spacing: -.025em; white-space: nowrap; }
.brand-tagline { margin-top: .35rem; font: .75rem/1.2 var(--lh-sans); letter-spacing: .32em; padding-left: .32em; color: rgb(var(--c-surface-deep)); }
.main-nav { display: flex; gap: .25rem; align-items: center; }
.main-nav > a, .nav-dropdown > summary { display: flex; gap: .5rem; align-items: center; padding: .65rem .7rem; min-height: 44px; color: rgb(var(--c-violet-100-2)); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.main-nav > a:not(.nav-order):hover, .nav-dropdown > summary:hover, .nav-dropdown[open] > summary { color: rgb(var(--c-pure-white)); background: rgb(var(--c-violet-300-5) / 0.0863); border-radius: 5px; }
.main-nav :focus-visible, .site-footer :focus-visible { outline-color: rgb(var(--c-violet-200)); }
.main-nav > [aria-current='page']:not(.nav-order) { color: rgb(var(--c-violet-100)); box-shadow: inset 0 -2px rgb(var(--c-violet-300-4)); }
.main-nav > a.nav-staff { margin-inline: .2rem; padding-block: .4rem; min-height: 36px; border: 1px solid rgb(var(--c-neon) / .6); border-radius: 999px; color: rgb(var(--c-white)); font-weight: 600; box-shadow: 0 0 10px rgb(var(--c-neon) / .3); }
.main-nav > a.nav-staff:hover, .main-nav > a.nav-staff[aria-current="page"] { background: rgb(var(--c-neon) / .18); border-radius: 999px; box-shadow: 0 0 14px rgb(var(--c-neon) / .5); }
.nav-dropdown-panel a[aria-current='page'] { color: rgb(var(--c-deep)); background: rgb(var(--c-surface-deep)); box-shadow: inset 3px 0 rgb(var(--c-violet-500-4)); font-weight: 650; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { list-style: none; user-select: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown-panel { position: absolute; top: calc(100% + .5rem); left: 0; width: 250px; padding: .55rem; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 8px; background: rgb(var(--c-surface)); color: var(--lh-ink); box-shadow: 0 14px 40px rgb(var(--c-black) / 0.4); max-height: min(70vh,650px); overflow-y: auto; }
.nav-dropdown-panel-end { left: auto; right: 0; }
.nav-dropdown-panel a, .nav-dropdown-panel .logout-button { display: block; width: 100%; padding: .65rem .75rem; min-height: 44px; font: 500 .9rem/1.4 var(--lh-sans); text-decoration: none; color: rgb(var(--c-violet-700-4)); border: 0; border-radius: 4px; background: transparent; text-align: left; }
.nav-dropdown-panel a:hover, .nav-dropdown-panel .logout-button:hover { background: rgb(var(--c-surface-deep)); color: rgb(var(--c-violet-900-2)); }
.logout-form { margin: 0; }
.main-nav .nav-order { margin-left: .6rem; padding: .6rem 1.1rem; font-size: .9rem; }
.mobile-menu-btn, .mobile-nav-overlay { display: none; }
.page-main { width: min(1240px, calc(100% - 15vw)); margin: 2.7rem auto 3.8rem; position: relative; z-index: 3; }
.page-main:focus { outline: none; }
.page-shell { min-width: 0; padding: clamp(1.2rem,2.6vw,2.5rem); background: linear-gradient(125deg,rgb(var(--c-surface)),rgb(var(--c-surface)) 55%,rgb(var(--c-surface))); color: var(--lh-ink); border: 5px solid rgb(var(--c-bg-2)); border-radius: 14px 14px 9px 9px; box-shadow: 0 0 0 1px rgb(var(--c-surface-deep)), inset 0 0 0 1px rgb(var(--c-violet-400-8)),0 0 0 5px rgb(var(--c-night)),0 0 0 6px rgb(var(--c-violet-400-8)),0 18px 60px rgb(var(--c-black) / 0.4667); }
.page-shell > * { min-width: 0; }
.page-title, .moon-heading { color: var(--lh-ink); }
.card-subtitle, .moon-lead { color: var(--lh-muted); font-size: 1.06rem; max-width: 70ch; }
.moon-kicker, .section-kicker, .lh-kicker { color: rgb(var(--c-violet-600-6)); font: 650 .73rem/1.5 var(--lh-sans); letter-spacing: .17em; text-transform: uppercase; margin-bottom: .65rem; }
.moon-panel, .lh-card, .lh-section, .content-card:not(.page-shell), .card-large { background: var(--lh-surface-soft); color: var(--lh-ink); border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 9px; padding: clamp(1.15rem,2vw,1.8rem); box-shadow: inset 0 0 0 3px rgb(var(--c-surface-soft)), inset 0 0 0 4px rgb(var(--c-violet-300-2) / 0.3765),0 6px 15px rgb(var(--c-violet-700-3) / 0.0824); }
.moon-panel, .lh-section { margin-block: 1.5rem; }
.page-shell, .moon-panel, .haven-welcome { position: relative; }
.page-shell::before, .page-shell::after, .moon-panel::before, .moon-panel::after, .haven-welcome::before, .haven-welcome::after { content: ''; position: absolute; width: 56px; height: 56px; background: url('../dna_portal/moonlit/ornate-corner-v2.webp') center / contain no-repeat; pointer-events: none; }
.page-shell::before, .moon-panel::before, .haven-welcome::before { top: 5px; left: 5px; }
.page-shell::after, .moon-panel::after, .haven-welcome::after { bottom: 5px; right: 5px; transform: rotate(180deg); }
body[data-page='home'] .page-shell::before, body[data-page='home'] .page-shell::after { display: none; }
.moon-actions, .lh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.2rem; }
.lh-card-grid, .featured-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.section-head { margin-bottom: 1.5rem; }
.moon-specimen { position: relative; overflow: hidden; margin: 0; border: 5px double rgb(var(--c-violet-300-2)); border-radius: 46% 46% 8px 8px; background: rgb(var(--c-night)); box-shadow: 0 0 0 4px rgb(var(--c-bg-2)),0 0 0 5px rgb(var(--c-violet-400-4)),0 15px 30px rgb(var(--c-black) / 0.2667); }
.moon-specimen img { display: block; width: 100%; object-fit: cover; }
.moon-specimen figcaption { padding: .75rem; text-align: center; color: rgb(var(--c-surface)); font: .8rem var(--lh-serif); font-size-adjust: 0.46; letter-spacing: .08em; }
.moon-divider { display: flex; align-items: center; justify-content: center; gap: 1rem; color: rgb(var(--c-violet-500-4)); margin: 1.1rem auto; width: min(340px,80%); }
.moon-divider::before, .moon-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,transparent,rgb(var(--c-violet-400-5))); }
.moon-divider::after { transform: rotate(180deg); }
.moon-divider span { font-size: 1.4rem; line-height: 1; }
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-small, .button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: .7rem 1.25rem; font: 600 .95rem/1.35 var(--lh-sans); text-align: center; text-decoration: none; border: 1px solid rgb(var(--c-violet-500-5)); border-radius: 999px; max-width: 100%; white-space: normal; cursor: pointer; transition: background .18s,color .18s,box-shadow .18s,transform .18s; }
.btn, .btn-primary, .button-primary { color: rgb(var(--c-pure-white)); background: linear-gradient(180deg,rgb(var(--c-status-rerun)) 0%,rgb(var(--c-deep)) 65%,rgb(var(--c-violet-600-4))); border: 1px solid rgb(var(--c-violet-200)); box-shadow: 0 0 0 1px rgb(var(--c-accent)),0 0 16px rgb(var(--c-violet-400-6) / 0.3373),inset 0 1px 5px rgb(var(--c-violet-200) / 0.502); }
.btn:hover, .btn-primary:hover, .button-primary:hover { color: rgb(var(--c-pure-white)); background: linear-gradient(180deg,rgb(var(--c-violet-500-4)),rgb(var(--c-violet-600-4))); box-shadow: 0 0 0 1px rgb(var(--c-violet-400-9)),0 0 22px rgb(var(--c-violet-400-6) / 0.502),inset 0 1px 5px rgb(var(--c-violet-100)); transform: translateY(-1px); }
.btn-secondary, .btn-ghost, .btn-small, .button-secondary { color: rgb(var(--c-violet-700-3)); background: rgb(var(--c-surface-soft)); border-color: rgb(var(--c-violet-400-5)); box-shadow: inset 0 1px rgb(var(--c-pure-white) / 0.5333); }
.btn-secondary:hover, .btn-ghost:hover, .btn-small:hover, .button-secondary:hover { color: rgb(var(--c-violet-700-3)); background: rgb(var(--c-surface-deep)); border-color: rgb(var(--c-violet-600-4)); }
button:disabled, input:disabled, select:disabled, .btn[aria-disabled='true'] { cursor: not-allowed; opacity: .58; box-shadow: none; transform: none; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='submit']):not([type='button']):not([type='range']):not([type='color']), select, textarea { color: var(--lh-ink); background: var(--lh-field); border: 1px solid var(--lh-field-edge); border-radius: 7px; padding: .7rem .85rem; min-height: 46px; line-height: 1.4; box-shadow: inset 0 1px 3px rgb(var(--c-ink) / 0.051); }
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: var(--lh-muted); opacity: 1; }
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='submit']):not([type='button']):not([type='range']):not([type='color']):focus, select:focus, textarea:focus { outline: none; border-color: var(--lh-accent); box-shadow: 0 0 0 3px rgb(var(--c-accent) / 0.2); }
input[type='checkbox'], input[type='radio'] { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: rgb(var(--c-violet-600-4)); vertical-align: middle; flex-shrink: 0; }
input[type='file'] { font-size: .88rem; }
input[type='file']::file-selector-button { border: 0; padding: .4rem .7rem; margin-right: .7rem; background: rgb(var(--c-surface-deep)); border-radius: 4px; color: rgb(var(--c-violet-700-3)); cursor: pointer; }
label { font-weight: 600; }
fieldset { min-width: 0; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 8px; padding: 1rem; }
legend { padding: 0 .5rem; font-weight: 650; }
.helptext, .help-text, .field-help { color: var(--lh-muted); font-size: .88rem; }
.errorlist { color: rgb(var(--c-rose-600)); background: rgb(var(--c-rose-100)); border-left: 3px solid rgb(var(--c-rose-500-4)); padding: .7rem .7rem .7rem 1.7rem; border-radius: 4px; }
.form-error-summary { max-width: 100%; padding: 1.1rem 1.3rem; margin: 1rem 0; border: 2px solid rgb(var(--c-rose-500-4)); border-radius: 8px; background: rgb(var(--c-rose-100)); color: rgb(var(--c-rose-700)); }
.form-error-summary h2 { color: rgb(var(--c-rose-700)); font-size: 1.4rem; }
.form-error-summary a { color: rgb(var(--c-rose-600-2)); font-weight: 650; }
[aria-invalid='true'] { border-color: rgb(var(--c-rose-500-4)) !important; box-shadow: 0 0 0 2px rgb(var(--c-rose-500-4) / 0.1216) !important; }
.messages { list-style: none; padding: 0; }
.messages li, .message { border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 7px; padding: .85rem 1rem; margin-bottom: .7rem; background: rgb(var(--c-violet-100-2)); color: rgb(var(--c-violet-700-3)); }
.messages .success { background: rgb(var(--c-grey-100)); color: rgb(var(--c-green-600)); border-color: rgb(var(--c-green-400)); }
.messages .error, .messages .warning { background: rgb(var(--c-rose-100)); color: rgb(var(--c-rose-600-2)); border-color: rgb(var(--c-rose-400-5)); }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .3rem .65rem; font-size: .78rem; font-weight: 650; line-height: 1.45; background: rgb(var(--c-surface)); color: rgb(var(--c-violet-700-3)); border: 1px solid rgb(var(--c-violet-300-2)); }
.status-accepted_provide_details, .status-awaiting_mail { background: rgb(var(--c-amber-100)); color: rgb(var(--c-amber-600-3)); border-color: rgb(var(--c-amber-300-3)); }
.status-samples_received, .status-in_progress { background: rgb(var(--c-teal-100)); color: rgb(var(--c-teal-600-2)); border-color: rgb(var(--c-teal-300-4)); }
.status-completed { background: rgb(var(--c-green-100)); color: rgb(var(--c-green-600)); border-color: rgb(var(--c-green-400)); }
.status-needs_attention, .status-cancelled { background: rgb(var(--c-rose-100)); color: rgb(var(--c-rose-700)); border-color: rgb(var(--c-rose-400-5)); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; color: var(--lh-ink); }
th, td { padding: .8rem .9rem; text-align: left; border-bottom: 1px solid rgb(var(--c-violet-400-4) / 0.4392); vertical-align: top; }
th { background: rgb(var(--c-surface-deep)); color: rgb(var(--c-ink)); font-size: .81rem; font-weight: 650; letter-spacing: .015em; }
tbody tr:nth-child(even) { background: rgb(var(--c-surface-soft) / 0.2392); }
.moon-table-scroll { overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; border-radius: 6px; scrollbar-color: rgb(var(--c-violet-400-5)) rgb(var(--c-surface)); }
.moon-table-scroll > table { min-width: 640px; }
.moon-table-scroll:focus-visible { outline-offset: -3px; }
details:not(.nav-dropdown) > summary { padding-block: .7rem; }
dialog { color: var(--lh-ink); background: var(--lh-surface-soft); border: 2px solid rgb(var(--c-border)); border-radius: 12px; max-width: min(640px,calc(100vw - 2rem)); }
dialog::backdrop { background: rgb(var(--c-night) / 0.7922); }
.site-footer { position: relative; z-index: 3; margin-top: 3rem; padding: 2.2rem max(8vw,1.5rem) 1.5rem; background: linear-gradient(180deg,rgb(var(--c-night)),rgb(var(--c-night))); border-top: 3px double rgb(var(--c-violet-400-8)); color: rgb(var(--c-surface-deep)); display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 1.8rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-logo { width: 55px; height: 55px; object-fit: contain; border-radius: 50%; }
.footer-brand strong { display: block; color: rgb(var(--c-violet-100-2)); font: 1.5rem var(--lh-serif); font-size-adjust: 0.46; }
.footer-brand span { display: block; font-size: .8rem; margin-top: .4rem; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .1rem 1.2rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: rgb(var(--c-surface-deep)); font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: rgb(var(--c-pure-white)); text-decoration: underline; }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--c-violet-100)); border: 1px solid rgb(var(--c-border)); border-radius: 50%; }
.social-btn:hover { color: rgb(var(--c-pure-white)); background: rgb(var(--c-violet-700-3)); }
.social-icon-vector { width: 20px; height: 20px; }
.footer-text { grid-column: 1/-1; border-top: 1px solid rgb(var(--c-border) / 0.3333); padding-top: 1.2rem; font-size: .75rem; color: rgb(var(--c-violet-300-2)); text-align: center; margin: 0; }
.footer-preferences { grid-column: 1/-1; text-align: center; }
/* Homepage: three clear doorways, with all labels rendered as accessible HTML. */
body[data-page='home'] .page-shell { background: transparent; box-shadow: none; border: 0; padding: 0; }
.haven-welcome { position: relative; text-align: center; border: 4px solid rgb(var(--c-bg-2)); border-radius: 12px; background: radial-gradient(ellipse at 50% 0,rgb(var(--c-surface-soft)),var(--lh-surface) 76%); box-shadow: 0 0 0 1px rgb(var(--c-surface-deep)),0 0 0 5px rgb(var(--c-night)),0 0 0 6px rgb(var(--c-violet-400-8)); padding: 2.5rem 1.6rem 2.2rem; }
.haven-welcome h1 { font-size: clamp(2.6rem,5.3vw,5.3rem); line-height: 1.03; letter-spacing: -.035em; }
.haven-welcome h1 em { display: block; font-style: normal; color: rgb(var(--c-deep)); }
.haven-welcome .moon-lead { margin-inline: auto; font: clamp(1.05rem,1.7vw,1.4rem)/1.5 var(--lh-serif); font-size-adjust: 0.46; color: rgb(var(--c-violet-700)); }
.haven-welcome .moon-actions { justify-content: center; }
.haven-triad { display: grid; grid-template-columns: 1fr .93fr 1fr; align-items: stretch; gap: 1.1rem; margin: 2.2rem .4rem 1.4rem; }
.haven-path { position: relative; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--lh-ink); overflow: hidden; background: linear-gradient(135deg,rgb(var(--c-surface)),rgb(var(--c-surface-deep))); border: 4px solid rgb(var(--c-bg-2)); border-radius: 48% 48% 10px 10px; box-shadow: 0 0 0 1px rgb(var(--c-surface-deep)),0 0 0 4px rgb(var(--c-bg-2)),0 0 0 5px rgb(var(--c-violet-400-4)),0 10px 20px rgb(var(--c-black) / 0.2667); transition: transform .2s,box-shadow .2s; }
.haven-path:hover { color: var(--lh-ink); transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(var(--c-violet-100)),0 0 0 4px rgb(var(--c-violet-700-4)),0 0 0 5px rgb(var(--c-violet-300-3)),0 0 24px rgb(var(--c-status-rerun) / 0.4); }
.haven-path > img { width: 100%; height: clamp(180px,23vw,310px); object-fit: cover; object-position: center 36%; display: block; }
.haven-path-copy { display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; padding: 1.4rem 1rem; border-top: 2px solid rgb(var(--c-violet-400-4)); }
.haven-path h2 { font-size: clamp(1.65rem,2.8vw,2.6rem); }
.haven-path p { color: rgb(var(--c-violet-700)); margin: 0 0 .7rem; font-size: .93rem; }
.haven-path .path-action { margin-top: auto; color: rgb(var(--c-deep)); font-size: .86rem; font-weight: 650; padding: .45rem 0; }
.haven-seal { display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; border: 4px double rgb(var(--c-violet-400-4)); border-radius: 48% 48% 10px 10px; background: radial-gradient(ellipse at 50% 40%,rgb(var(--c-violet-700-3)),rgb(var(--c-bg-2)) 72%); box-shadow: 0 0 0 3px rgb(var(--c-bg-2)),0 0 0 4px rgb(var(--c-border)); padding: 2rem .7rem 1.3rem; text-align: center; }
.haven-seal > img { width: 95%; filter: drop-shadow(0 0 10px rgb(var(--c-violet-400-9) / 0.3608)); }
.haven-seal p { color: rgb(var(--c-surface-deep)); font: 1.15rem/1.55 var(--lh-serif); font-size-adjust: 0.46; padding: .5rem; margin-top: .7rem; }
.haven-seal .moon-star { right: 8%; top: 18%; }
.haven-seal .moon-star:nth-of-type(2) { left: 12%; top: 71%; animation-delay: -3s; }
.haven-research { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--lh-ink); text-decoration: none; padding: 1.3rem 2rem; background: linear-gradient(100deg,rgb(var(--c-surface-deep)),rgb(var(--c-surface)) 50%,rgb(var(--c-surface-deep))); border: 4px solid rgb(var(--c-ink)); border-radius: 8px; box-shadow: 0 0 0 1px rgb(var(--c-violet-300-2)),0 0 0 4px rgb(var(--c-bg-2)),0 0 0 5px rgb(var(--c-border)); }
.haven-research h2 { margin: 0; }
.haven-research p { color: rgb(var(--c-violet-700)); font-size: .92rem; margin: .3rem 0 0; }
.research-glyph { width: 45px; flex: 0 0 45px; height: 54px; color: rgb(var(--c-violet-600-6)); }
.path-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid rgb(var(--c-violet-200)); border-radius: 50%; background: rgb(var(--c-violet-600-4)); color: rgb(var(--c-pure-white)); font: 1.5rem var(--lh-serif); font-size-adjust: 0.46; box-shadow: 0 0 12px rgb(var(--c-violet-600-8) / 0.549); }
.haven-section { margin-top: 3.4rem; }
.haven-section > .section-head { text-align: center; background: var(--lh-surface); padding: 1.5rem; border: 3px double rgb(var(--c-border)); border-radius: 8px; }
.home-tests .lh-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-tests .test-card-link { display: flex; flex-direction: column; text-decoration: none; transition: transform .2s; padding: 1.3rem; }
.home-tests .test-card-link:hover { transform: translateY(-3px); }
.home-tests .test-card-link img { width: 100%; height: 165px; object-fit: contain; background: rgb(var(--c-ink)); border-radius: 6px; margin-bottom: 1rem; }
.home-tests .test-card-link h3 { font-size: 1.4rem; }
.home-tests .test-card-link p { color: rgb(var(--c-muted)); font-size: .92rem; }
.home-tests .test-card-link strong { margin-top: auto; padding-top: .5rem; color: rgb(var(--c-violet-600-4)); }
.home-process-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.process-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 1rem; border: 1px solid rgb(var(--c-violet-400-5)); border-radius: 50%; color: rgb(var(--c-violet-600-4)); font: 1.4rem var(--lh-serif); font-size-adjust: 0.46; }
.home-process .lh-card p, .featured-grid p { color: var(--lh-muted); font-size: .95rem; }
.rabbitry-program + .rabbitry-program { border-top: 1px solid rgb(var(--c-violet-300-2)); padding-top: 1.1rem; margin-top: 1.1rem; }
.haven-help { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.haven-help h2 { font-size: 1.7rem; }
.home-assurance { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.home-assurance h3 { font-size: 1.4rem; }
.home-assurance p { color: var(--lh-muted); font-size: .92rem; margin-bottom: .35rem; }
.home-assurance a { font-size: .85rem; }
@media (min-width: 981px) {
  .haven-welcome { padding: 1.6rem 1.8rem; }
  .haven-welcome h1 { font-size: clamp(3.1rem,4.5vw,4.65rem); margin-bottom: .65rem; }
  .haven-welcome .moon-divider { margin-block: .65rem; }
  .haven-welcome .moon-lead { font-size: 1.17rem; }
  .haven-welcome .moon-actions { margin-top: 1rem; }
  .haven-triad { margin-top: 1.8rem; }
  .haven-path > img { height: 230px; }
  .haven-path-copy { padding: 1rem; }
  .haven-path h2 { font-size: 2.2rem; }
  .haven-seal > img { width: min(85%,260px); }
}
.haven-seal > img, .brand-logo, .footer-logo { filter: saturate(.58) drop-shadow(0 0 8px rgb(var(--c-violet-400-9) / 0.4392)); }
@media (min-width: 1700px) { .page-main { width: min(1340px, calc(100% - 24vw)); } }
@media (max-width: 1180px) { .site-header { gap: .6rem; } .main-nav > a,.nav-dropdown > summary { padding-inline: .5rem; font-size: .83rem; } .brand-title { font-size: 1.65rem; } .brand-logo { width: 49px; height: 49px; } .main-nav .nav-order { margin-left: .25rem; } .page-main { width: calc(100% - 10vw); } }
@media (max-width: 980px) {
  .site-header { min-height: 76px; padding: .65rem 1.2rem; }
  .mobile-menu-btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; border: 1px solid rgb(var(--c-violet-400-5)); border-radius: 6px; background: rgb(var(--c-ink)); color: rgb(var(--c-violet-100-2)); padding: .6rem .8rem; }
  .menu-icon { display: grid; gap: 4px; width: 17px; }
  .menu-icon i { height: 1px; background: currentColor; }
  .main-nav { display: none; position: absolute; top: 100%; right: 0; width: min(380px,100vw); max-height: calc(100dvh - 76px); overflow-y: auto; padding: 1rem; background: rgb(var(--c-bg-2)); border: 1px solid rgb(var(--c-violet-400-4)); box-shadow: -15px 25px 45px rgb(var(--c-black) / 0.4667); z-index: 2; }
  .mobile-nav-open .main-nav { display: flex; flex-direction: column; align-items: stretch; }
  .main-nav > a, .nav-dropdown > summary { font-size: 1rem; min-height: 48px; padding: .8rem; }
  .nav-dropdown-panel { position: static; width: 100%; max-height: none; margin-bottom: .5rem; box-shadow: none; }
  .main-nav .nav-order { margin: .7rem 0; }
  .mobile-nav-open .mobile-nav-overlay:not([hidden]) { display: block; position: fixed; inset: 76px 0 0; z-index: 1; border: 0; background: rgb(var(--c-violet-900) / 0.549); }
  html.mobile-nav-open { overflow: hidden; }
  .page-main { width: calc(100% - 3rem); margin-top: 2rem; }
  .moon-stars > .moon-star { display: none; }
  .moon-stars > .moon-star:nth-child(1), .moon-stars > .moon-star:nth-child(4) { display: block; top: 20%; width: 9px; height: 9px; }
  .moon-stars > .moon-star:nth-child(1) { left: .1%; }
  .moon-stars > .moon-star:nth-child(4) { right: .1%; top: 63%; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 2rem; }
  .footer-social { grid-column: 1/-1; justify-content: center; }
  .lh-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-tests .lh-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .haven-triad { gap: .8rem; }
  .haven-seal p { font-size: .9rem; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 90px; }
  body { font-size: 16px; }
  .moon-scene { background: radial-gradient(ellipse at 50% 0,rgb(var(--c-violet-700-3)),rgb(var(--c-night)) 70%); }
  .page-main { width: calc(100% - 1.35rem); margin: 1.35rem auto 2.5rem; }
  .page-shell { border-width: 3px; padding: 1.65rem .85rem 1.1rem; border-radius: 9px; box-shadow: 0 0 0 1px rgb(var(--c-violet-300-2)),0 0 0 3px rgb(var(--c-bg-2)); }
  .page-shell::before, .page-shell::after, .moon-panel::before, .moon-panel::after { width: 30px; height: 30px; }
  .brand-title { font-size: 1.7rem; }
  .brand-tagline { font-size: .65rem; }
  .brand-logo { width: 47px; height: 47px; }
  .brand { gap: .6rem; }
  .site-header { padding-inline: .85rem; }
  .moon-actions, .lh-actions { gap: .65rem; }
  .moon-actions > a, .lh-actions > a { flex: 1 1 150px; }
  .lh-card-grid, .featured-grid, .home-process-grid { grid-template-columns: 1fr; }
  .home-assurance { grid-template-columns: 1fr; }
  .haven-welcome { padding: 1.8rem 1rem; }
  .haven-welcome h1 { font-size: clamp(2.3rem,8.9vw,3.6rem); }
  .haven-welcome .moon-kicker { font-size: .65rem; }
  .haven-triad { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: 1.7rem .2rem 1.2rem; }
  .haven-seal { display: none; }
  .haven-path > img { height: 195px; object-position: 50% 25%; }
  .haven-path-copy { padding: 1rem .6rem; }
  .haven-path h2 { font-size: 1.6rem; }
  .haven-path p { font-size: .84rem; }
  .haven-path .path-action { font-size: .8rem; }
  .haven-research { padding: 1.1rem .9rem; gap: .8rem; }
  .haven-research h2 { font-size: 1.65rem; }
  .haven-research p { font-size: .85rem; }
  .research-glyph { width: 28px; flex-basis: 28px; }
  .haven-section { margin-top: 2rem; }
  .home-tests .lh-card-grid { gap: .8rem; }
  .home-tests .test-card-link { padding: .9rem; }
  .home-tests .test-card-link img { height: 120px; }
  .home-tests .test-card-link h3 { font-size: 1.17rem; }
  .home-tests .test-card-link p { font-size: .84rem; }
  .haven-help { align-items: stretch; flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.7rem 1.3rem; }
  .footer-brand { justify-content: center; }
  .footer-links a { font-size: .85rem; min-height: 44px; }
  .footer-social { grid-column: auto; }
  .footer-text { grid-column: auto; }
  .moon-table-scroll { border: 1px solid rgb(var(--c-violet-400-4)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .moon-star { opacity: .65; transform: none; }
}
@media print {
  html, body { background: rgb(var(--c-pure-white)) !important; color: rgb(var(--c-black)) !important; }
  .site-header,.site-footer,.moon-scene,.moon-stars,.skip-link,.moon-portal-nav,.no-print { display: none !important; }
  .page-main { width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .page-shell { background: rgb(var(--c-pure-white)) !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .page-shell::before, .page-shell::after, .moon-panel::before, .moon-panel::after { display: none; }
  .moon-table-scroll { overflow: visible; border: 0; }
  .moon-table-scroll > table { min-width: 0; }
  .btn,.btn-primary,.btn-secondary { box-shadow: none; }
  a { color: rgb(var(--c-black)); }
}

/* Notices the site raises for you.

   The views raise these 139 times and nothing was showing them, so a
   confirmation like "Order marked samples received" was written and thrown
   away. They read as a calm note at the top of the page, with the colour
   carrying the tone and the wording carrying the meaning. */
.site-messages {
  width: min(100%, 980px);
  margin: 0 auto 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.site-message {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--lh-border);
  border-left: 4px solid var(--lh-accent);
  border-radius: 10px;
  background: var(--lh-surface-soft);
  color: var(--lh-ink);
  font-weight: 700;
  line-height: 1.5;
}

.site-message.is-success { border-left-color: rgb(var(--c-green-500)); }
.site-message.is-warning { border-left-color: rgb(var(--c-amber-400-3)); }
.site-message.is-error   { border-left-color: rgb(var(--c-red-600)); }

/* The lab-is-paused notice, shown once per browser session. */
.testing-pause-dialog {
  max-width: min(92vw, 520px);
  padding: 1.4rem;
  border: 1px solid var(--lh-border);
  border-radius: 16px;
  background: var(--lh-surface-soft);
  color: var(--lh-ink);
  box-shadow: var(--lh-shadow);
}

.testing-pause-dialog::backdrop {
  background: rgb(var(--c-night) / 0.8);
}

.testing-pause-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.testing-pause-text h2 {
  margin: 0 0 0.6rem;
  color: var(--lh-ink);
  font-family: var(--lh-serif); font-size-adjust: 0.46;
}

.testing-pause-text p {
  margin: 0;
  color: var(--lh-ink);
  line-height: 1.6;
}

.testing-pause-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--lh-border);
  border-radius: 999px;
  background: var(--lh-surface);
  color: var(--lh-ink);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* The picture of the smallest usable blood spot, inside the collection steps. */
.rabbit-amount-figure {
  margin: 0.85rem 0 0;
  padding: 0;
}

.rabbit-amount-figure img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
}

.rabbit-amount-figure figcaption {
  margin-top: 0.45rem;
  color: var(--lh-muted);
  font-weight: 700;
}

/* The way into the guided walkthrough, at the top of the order page. */
.walkthrough-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1rem;
  margin: 1rem 0 0;
}

.walkthrough-entry span {
  color: var(--lh-muted);
  font-weight: 650;
}

/* Public pages: lilac reading surfaces inside the moonlit laboratory. */
.moonlit-public { min-width: 0; color: var(--lh-ink); }
.moonlit-site .moonlit-public > .content-card { max-width: 1180px; margin: 0 auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
.moonlit-site .page-main .page-shell .moonlit-public > .content-card { background: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; padding: 0; }
.moonlit-site .page-main .page-shell .moonlit-public > .content-card::before,
.moonlit-site .page-main .page-shell .moonlit-public > .content-card::after { content: none !important; }
.moonlit-site .page-main .page-shell .moonlit-public .instructions-hero { background: linear-gradient(125deg,var(--lh-surface-soft),var(--lh-surface)) !important; border: 1px solid var(--lh-border); padding: 1.5rem; }
.moonlit-site .page-main .page-shell .moonlit-public .instructions-hero .card-subtitle.card-subtitle { color: var(--lh-muted) !important; -webkit-text-fill-color: var(--lh-muted) !important; text-shadow: none !important; }
.moonlit-site .page-main .page-shell .moonlit-public .instructions-hero .page-title { font-size: clamp(2.1rem,4vw,3.4rem) !important; }
.moonlit-site .moonlit-public .instructions-hero-image { max-width: 285px; justify-self: center; margin: 0; border: 5px solid var(--lh-night); outline: 1px solid var(--lh-border); border-radius: 48% 48% 5px 5px; background: var(--lh-night); overflow: hidden; box-shadow: 0 10px 20px rgb(var(--c-bg-2) / 0.149); }
.moonlit-site .moonlit-public .instructions-hero-image .instr-img-small { width: 100%; max-width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.moonlit-site .moonlit-public .guide-quick-card span:last-child { font-weight: 400; margin-top: .45rem; font-size: .92rem; }
.moonlit-site .moonlit-public .process-intro { padding: 1.2rem; }
.moonlit-site .moonlit-public .how-main-image { background: var(--lh-night); }
.moonlit-site .page-main .page-shell .moonlit-public :is(h1,h2,h3,h4,p,li,label,summary,legend,small,dt,dd) { color: var(--lh-ink) !important; text-shadow: none !important; -webkit-text-fill-color: currentColor; }
.moonlit-public :is(h1,h2,h3,h4) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; line-height: 1.15; }
.moonlit-public :is(p,li) { line-height: 1.7; }
.moonlit-public :is(h2,h3,h4,[id]) { scroll-margin-top: 7rem; }
.moonlit-public :is(.page-title,.about-title,.moontitle) { font-size: clamp(2rem,4.2vw,3.8rem); text-wrap: balance; letter-spacing: -.035em; }
.moonlit-public :is(.card-subtitle,.highlight-intro,.soft-note,.image-credit,.about-tagline,.about-subline,.about-lead,.contact-note) { color: var(--lh-muted) !important; line-height: 1.65; }
.moonlit-public :is(.section-kicker,.tests-kicker,.about-eyebrow,.contact-eyebrow,.toenail-kicker,.step-label,.moonbadge) { color: var(--lh-accent) !important; font: 700 .72rem/1.4 var(--lh-sans); letter-spacing: .15em; text-transform: uppercase; text-shadow: none; }
.moonlit-public :is(.content-card,.section-box,.info-card,.test-card,.instructions-section,.about-card) { min-width: 0; }
.moonlit-public a:not(.btn):not(.btn-secondary):not(.instruction-btn):not(.view-pill) { text-underline-offset: .2em; }
.moon-breadcrumb { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; color: var(--lh-muted); font-size: .8rem; margin: .25rem 0 1.3rem; }
.moon-breadcrumb a { color: var(--lh-accent); }
.moonlit-public .test-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(250px,.75fr); gap: clamp(1.5rem,4vw,3.5rem); align-items: center; padding: .7rem 0 1.5rem; }
.moonlit-public .test-hero-text { min-width: 0; }
.moonlit-public .test-hero-text :is(.page-title,p) { text-align: left !important; }
.moonlit-public .test-hero-text .page-title { margin: 0 0 1rem !important; font-size: clamp(2.15rem,4.6vw,4rem); }
.moonlit-public .highlight-intro { font-size: 1.1rem; font-weight: 700; font-style: normal; margin: .7rem 0; }
.moonlit-public :is(.price-row,.coming-row) { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 .5rem; }
.moonlit-public .price-tag { color: var(--lh-accent); font: 600 1.8rem/1.2 var(--lh-serif); font-size-adjust: 0.46; padding-right: .5rem; }
.moonlit-public .test-hero-image-wrap { position: relative; width: 100%; max-width: 390px; justify-self: end; align-self: center; padding: 12px; border: 1px solid rgb(var(--c-grey-300)); border-radius: 47% 47% 10px 10px; background: var(--lh-night); box-shadow: inset 0 0 0 5px rgb(var(--c-bg-2)), inset 0 0 0 7px rgb(var(--c-grey-500)), 0 18px 32px rgb(var(--c-bg-2) / 0.1412); overflow: hidden; }
.moonlit-public .test-hero-image { display: block; width: 100%; height: auto; max-height: 475px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 47% 47% 3px 3px; animation: none; }
.moonlit-public .test-hero-image-wrap > div { width: 100%; }
.moonlit-public .test-hero-image-wrap .image-credit { color: rgb(var(--c-surface)) !important; font-size: .72rem; text-align: center; margin: .7rem 0 .3rem; }
.moonlit-public .specimen-spark { position: absolute; z-index: 1; left: 50%; top: .5rem; color: rgb(var(--c-violet-100)); font-size: 1.7rem; text-shadow: 0 0 18px rgb(var(--c-neon)); transform: translateX(-50%); pointer-events: none; }
.moonlit-public .test-section-nav { display: flex; flex-wrap: wrap; gap: .4rem .5rem; padding: 1rem 0; border-block: 1px solid rgb(var(--c-border) / 0.302); margin: 1rem 0 1.7rem; }
.moonlit-public .test-section-nav a { background: var(--lh-surface-soft); color: var(--lh-accent); border: 1px solid rgb(var(--c-border) / 0.3216); border-radius: 5px; padding: .55rem .75rem; font-size: .78rem; line-height: 1.3; text-decoration: none; }
.moonlit-public .test-section-nav a:hover { background: var(--lh-surface-deep); border-color: var(--lh-accent); }
.moonlit-public .rabbit-development-pills { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 1.15rem; padding: 0; list-style: none; }
.moonlit-public .rabbit-development-pills li { margin: 0; padding: .4rem 1rem; border: 1px solid rgb(var(--c-violet-400-5)); border-radius: 999px; background: rgb(var(--c-surface)); color: rgb(var(--c-deep)); font: 600 .95rem/1.5 var(--lh-sans); }

.moonlit-public .section-divider { display: none; }
.moonlit-public :is(.test-section,.section-box) { padding: clamp(1.3rem,3vw,2.3rem); margin: 1.3rem 0; border: 1px solid var(--lh-border); border-radius: 7px; background: linear-gradient(135deg,var(--lh-surface-soft),var(--lh-surface)); box-shadow: inset 0 0 0 4px rgb(var(--c-surface)), inset 0 0 0 5px rgb(var(--c-violet-400-4) / 0.3216), 0 8px 20px rgb(var(--c-violet-900) / 0.0824); }
.moonlit-public .test-section :is(h2,h3) { font-size: clamp(1.4rem,2.4vw,2rem); text-align: left !important; margin: 0 0 .85rem; }
.moonlit-public .test-section p { text-align: left; margin: .65rem 0; }
.moonlit-public :is(.species-grid,.info-grid,.avian-species-grid,.dilute-results-grid) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.moonlit-public .species-grid:has(> .species-list) { display: block; }
.moonlit-public :is(.species-list,.avian-species-list) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; list-style: none; margin: .8rem 0; padding: 0; }
.moonlit-public :is(.species-list,.avian-species-list) li { padding: .6rem .75rem; border: 1px solid rgb(var(--c-border) / 0.251); border-radius: 5px; background: var(--lh-surface); line-height: 1.45; font-size: .92rem; }
.moonlit-public .avian-species-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.moonlit-public :is(.info-card,.avian-species-group,.dilute-results-grid article) { padding: 1.1rem; border-radius: 5px; border: 1px solid rgb(var(--c-border) / 0.3216); background: var(--lh-surface-soft); }
.moonlit-public .info-card .info-title { font-size: 1.3rem; }
.moonlit-public .dilute-results-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.moonlit-public .dilute-results-grid :is(strong,span) { display: block; color: var(--lh-ink); }
.moonlit-public .dilute-results-grid strong { font: 500 2rem var(--lh-serif); font-size-adjust: 0.46; margin-bottom: .5rem; color: var(--lh-accent); }
.moonlit-public :is(.dilute-warning,.avian-species-callout) { border-left: 4px solid var(--lh-accent); background: rgb(var(--c-surface)); }
.moonlit-public .faq { display: grid; gap: .7rem; }
.moonlit-public .faq-item { border: 1px solid rgb(var(--c-border) / 0.3961); border-radius: 5px; background: var(--lh-surface-soft); overflow: hidden; }
.moonlit-public .faq-q { padding: 1rem 1.2rem; cursor: pointer; font-weight: 650; line-height: 1.45; }
.moonlit-public .faq-item[open] .faq-q { border-bottom: 1px solid rgb(var(--c-border) / 0.251); }
.moonlit-public .faq-a { padding: 1rem 1.2rem; line-height: 1.7; }
.moonlit-public .punnett-wrap { width: 100%; overflow-x: auto; margin: 1.3rem 0; }
.moonlit-public .punnett-table { width: min(100%,480px); margin: auto; border-collapse: collapse; }
.moonlit-public .punnett-table :is(th,td) { border: 1px solid var(--lh-border); padding: 1rem; text-align: center; color: var(--lh-ink); }
.moonlit-public .punnett-table th { background: var(--lh-surface-deep); }
.moonlit-public .punnett-table td { background: var(--lh-surface-soft); }
.moonlit-public .punnett-table span { font-size: .85rem; }

/* The catalogue and reading guides share a restrained engraved frame. */
.moonlit-site .page-main .page-shell .moonlit-public :is(.tests-hero-copy,.tests-hero-panel,.test-card,.info-card,.hero-stat,.process-card,.process-intro,.instructions-section,.guide-quick-card,.instructions-callout,.important-banner,.sample-label-callout,.toenail-page-reminders,.about-hero-card,.about-story-card,.about-card,.contact-card,.contact-extra,.contact-dialog,.breed-suggestion-page,.breed-suggestion-success,.donation-thank-you,.mooncard,.moonpanel,.mooncallout,.moonstat,.lh-card) { background: var(--lh-surface-soft) !important; color: var(--lh-ink) !important; border: 1px solid var(--lh-border) !important; border-radius: 7px; box-shadow: inset 0 0 0 4px rgb(var(--c-surface) / 0.3333), 0 8px 22px rgb(var(--c-ink) / 0.0824) !important; text-shadow: none !important; }
.moonlit-site .moonlit-public :is(.tests-hero-copy,.tests-hero-panel) { padding: clamp(1.3rem,3vw,2rem); }
.moonlit-public .tests-hero-copy { position: relative; }
.moonlit-public .tests-hero-copy::before { content: "✦"; display: block; color: var(--lh-accent); font-size: 1.7rem; margin-bottom: 1rem; }
.moonlit-site .moonlit-public :is(.test-card,.info-card) { position: relative; }
.moonlit-public :is(.test-card,.tests-hero-copy,.tests-hero-panel)::after { pointer-events: none; }
.moonlit-public .tests-grid { gap: 1.1rem; }
.moonlit-public .tests-hero { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(270px,.8fr); gap: 1.2rem; align-items: stretch; }
.moonlit-public .tests-hero-panel { display: grid; align-content: center; gap: .8rem; }
.moonlit-public .hero-stat { padding: 1rem; }
.moonlit-public .hero-stat strong { display: block; margin-bottom: .3rem; color: var(--lh-ink); font: 500 1.6rem var(--lh-serif); font-size-adjust: 0.46; }
.moonlit-public .hero-stat span { display: block; color: var(--lh-muted); font-size: .9rem; line-height: 1.6; }
.moonlit-public .tests-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.moonlit-public .bird-sexing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.moonlit-public .tests-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem; }
.moonlit-public .info-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.moonlit-public .test-card::before { content: ""; display: block; width: 70px; height: 85px; margin-bottom: 1.1rem; border: 3px solid var(--lh-night); outline: 1px solid var(--lh-border); border-radius: 48% 48% 4px 4px; background: var(--lh-night) url("../dna_portal/moonlit/bird-specimen.webp") center 35% / cover no-repeat; }
.moonlit-public .test-card-rabbit::before { background-image: url("../dna_portal/moonlit/rabbit-specimen.webp"); }
.moonlit-public .test-card-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .6rem; }
.moonlit-public .test-card-top h3 { flex: 1 1 170px; margin: 0; }
.moonlit-public .test-price { padding: .35rem .6rem; border: 1px solid var(--lh-border); border-radius: 4px; font-size: .87rem; font-weight: 700; }
.moonlit-public .test-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 245px; padding: 1.5rem; }
.moonlit-public .test-card p { flex: 1; }
.moonlit-public .test-card-top { width: 100%; }
.moonlit-public .test-card h3 { font-size: 1.45rem; }
.moonlit-site .moonlit-public .test-price { color: var(--lh-deep) !important; background: var(--lh-surface-deep) !important; border-color: var(--lh-border); }
.moonlit-site .moonlit-public .view-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--lh-accent); border-radius: 5px; color: var(--lh-accent) !important; background: var(--lh-surface) !important; box-shadow: none; text-decoration: none; font-weight: 650; }
.moonlit-public .view-pill:hover { background: var(--lh-surface-deep) !important; }
.moonlit-public .test-section-block { margin: 2.3rem 0; }
.moonlit-public .section-head { margin-bottom: 1rem; }
.moonlit-public .section-head h2 { font-size: clamp(1.65rem,2.6vw,2.3rem); }
.moonlit-public .how-hero { padding-bottom: 1.2rem; }
.moonlit-public .how-image-section { max-width: 300px; margin: 1.3rem auto; }
.moonlit-public .how-main-image { width: 100%; border-radius: 50%; border: 0; box-shadow: 0 0 40px rgb(var(--c-accent) / 0.3); }
.moonlit-site .moonlit-public .kit-note { background: var(--lh-surface-deep) !important; color: var(--lh-ink) !important; border: 1px solid var(--lh-border); font-size: 1.1rem; padding: .7rem 1.2rem; box-shadow: none !important; text-shadow: none !important; }
.moonlit-public .kit-note::before { display: none; }
.moonlit-site .moonlit-public .instruction-btn { display: flex; justify-content: center; align-items: center; min-height: 76px; background: var(--lh-surface-soft) !important; border: 1px solid var(--lh-accent) !important; color: var(--lh-accent) !important; -webkit-text-fill-color: currentColor !important; box-shadow: 0 4px 16px rgb(var(--c-violet-600-4) / 0.1255) !important; text-shadow: none !important; }
.moonlit-public .process-card { padding: 1.4rem; }
.moonlit-public .process-card h3 { font-size: 1.45rem; }
.moonlit-public .process-card .step-number { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--lh-accent); color: rgb(var(--c-pure-white)); font: 500 1.3rem var(--lh-serif); font-size-adjust: 0.46; box-shadow: 0 0 12px rgb(var(--c-accent) / 0.251); }
.moonlit-public .instructions-section { padding: clamp(1.2rem,3vw,2rem); }
.moonlit-public :is(.instructions-hero,.toenail-page-hero) { padding: .5rem 0 1.5rem; background: none !important; }
.moonlit-public .step-header { align-items: center; }
.moonlit-public .step-icon-image { width: 82px; height: 82px; object-fit: cover; border: 1px solid var(--lh-border); border-radius: 8px; }
.moonlit-public :is(.instructions-callout,.important-banner,.sample-label-callout) { border-left: 4px solid var(--lh-accent) !important; padding: 1rem 1.2rem; margin: 1rem 0; }
.moonlit-public :is(.guide-quick-card span,.sample-label-callout span,.instructions-callout strong,.important-banner strong,.step-label) { color: var(--lh-ink) !important; }
.moonlit-public :is(.instructions-divider,.moondivider) { border: 0; border-top: 1px solid rgb(var(--c-border) / 0.3333); height: 1px; background: none; margin: 1.4rem 0; }
.moonlit-public .guide-shortcuts { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.5rem 0; }
.moonlit-public .guide-shortcuts a { padding: .6rem .9rem; border: 1px solid var(--lh-border); border-radius: 5px; background: var(--lh-surface-soft); color: var(--lh-accent); text-decoration: none; }
.moonlit-public .featherfield { display: none; }
.moonlit-public .moonwrap { padding: 0; }
.moonlit-public :is(.moonsub,.moonstatlabel,.moonstatvalue,.moonsign,.mooncalltitle,.moonbadge) { color: var(--lh-ink) !important; text-shadow: none !important; }

/* Story and contact pages keep the lab's personality, with readable content. */
.moonlit-public :is(.about-hero-card,.about-story-card,.about-card,.contact-card,.contact-extra) { padding: clamp(1.3rem,3vw,2.2rem); }
.moonlit-public .about-story-card :is(h2,p) { max-width: 72ch; margin-inline: auto; text-align: left !important; }
.moonlit-public .about-story-card h2 { font-size: clamp(1.65rem,2.8vw,2.3rem); margin-top: 1.6rem; margin-bottom: .85rem; }
.moonlit-public .about-story-card h2:first-child { margin-top: .2rem; }
.moonlit-public :is(.about-photo,.about-photo-item) { border: 1px solid var(--lh-border); border-radius: 7px; overflow: hidden; }
.moonlit-public .about-badge { background: var(--lh-surface-deep) !important; color: var(--lh-ink) !important; border: 1px solid rgb(var(--c-border) / 0.3961) !important; }
.moonlit-public .about-photo-caption { background: rgb(var(--c-bg-2) / 0.9098); color: rgb(var(--c-surface-soft)) !important; }
.moonlit-site .page-main .page-shell .moonlit-public .contact-hero { min-height: 330px; padding: clamp(2rem,5vw,4rem); border: 1px solid var(--lh-border); background: linear-gradient(120deg,var(--lh-surface-soft),var(--lh-surface-deep)) !important; box-shadow: inset 0 0 0 6px rgb(var(--c-surface)),inset 0 0 0 7px rgb(var(--c-border) / 0.4392) !important; }
.moonlit-site .page-main .page-shell .moonlit-public .contact-hero .contact-subtitle.card-subtitle { color: var(--lh-muted) !important; font-weight: 400; text-shadow: none !important; }
.moonlit-site .moonlit-public :is(.contact-highlight,.contact-message,.contact-form-errors) { background: var(--lh-surface) !important; color: var(--lh-ink) !important; border-color: var(--lh-border) !important; box-shadow: none !important; }
.moonlit-site .moonlit-public :is(.contact-form input,.contact-form textarea) { background: var(--lh-field) !important; color: var(--lh-ink) !important; border-color: var(--lh-field-edge) !important; box-shadow: none !important; }
.moonlit-site .moonlit-public :is(.contact-value,.contact-label,.contact-dialog-close) { color: var(--lh-accent) !important; -webkit-text-fill-color: currentColor !important; }
.moonlit-public .contact-value { overflow-wrap: anywhere; }
.moonlit-public .contact-dialog-close { background: var(--lh-surface-deep); }
.moonlit-site .page-main .page-shell .moonlit-public .contact-hero .contact-subtitle.card-subtitle { -webkit-text-fill-color: var(--lh-muted) !important; }
.moonlit-site .page-main .page-shell .moonlit-public :is(.sample-type-card,.mailing-address-card,.toenail-guide-header,.eggshell-method-card,.toenail-items-card,.toenail-video-intro,.toenail-video-card,.toenail-amount-card,.toenail-step-list li,.instructions-subsection,.instructions-step-item) { background: var(--lh-surface-soft) !important; color: var(--lh-ink) !important; border-color: var(--lh-border) !important; box-shadow: none !important; }
.moonlit-site .page-main .page-shell .moonlit-public :is(.sample-type-card,.guide-quick-card,.mailing-address-card,.sample-label-callout,.instructions-callout) :is(span,strong) { color: var(--lh-ink) !important; -webkit-text-fill-color: var(--lh-ink) !important; text-shadow: none !important; }
.moonlit-site .moonlit-public :is(.toenail-video-credit,.pirate-link a,.facebook-link a,.toenail-amount-card figcaption) { color: var(--lh-accent) !important; background: var(--lh-surface-soft) !important; text-shadow: none !important; border-color: var(--lh-border) !important; box-shadow: none !important; }
.moonlit-site .moonlit-public .step-header { grid-template-columns: 82px minmax(0,1fr); }
.moonlit-site .moonlit-public .step-header .step-icon-image { width: 82px; height: 82px; flex: 0 0 82px; }
.moonlit-site .moonlit-public .toenail-step-list li::before { background: var(--lh-accent) !important; color: rgb(var(--c-pure-white)) !important; box-shadow: none !important; }
.moonlit-public .contact-dialog-close { background: var(--lh-surface-deep); }
.moonlit-site .page-main .page-shell .moonlit-public .contact-hero .contact-subtitle.card-subtitle { -webkit-text-fill-color: var(--lh-muted) !important; }
.moonlit-site .page-main .page-shell .moonlit-public :is(.sample-type-card,.mailing-address-card,.toenail-guide-header,.eggshell-method-card,.toenail-items-card,.toenail-video-intro,.toenail-video-card,.toenail-amount-card,.toenail-step-list li,.instructions-subsection,.instructions-step-item) { background: var(--lh-surface-soft) !important; color: var(--lh-ink) !important; border-color: var(--lh-border) !important; box-shadow: none !important; }
.moonlit-site .page-main .page-shell .moonlit-public :is(.sample-type-card,.guide-quick-card,.mailing-address-card,.sample-label-callout,.instructions-callout) :is(span,strong) { color: var(--lh-ink) !important; -webkit-text-fill-color: var(--lh-ink) !important; text-shadow: none !important; }
.moonlit-site .moonlit-public :is(.toenail-video-credit,.pirate-link a,.facebook-link a,.toenail-amount-card figcaption) { color: var(--lh-accent) !important; background: var(--lh-surface-soft) !important; text-shadow: none !important; border-color: var(--lh-border) !important; box-shadow: none !important; }
.moonlit-site .moonlit-public .step-header { grid-template-columns: 82px minmax(0,1fr); }
.moonlit-site .moonlit-public .step-header .step-icon-image { width: 82px; height: 82px; flex: 0 0 82px; }
.moonlit-public .contact-dialog { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.moonlit-site .moonlit-public .contact-modal { z-index: 1000; }
.moonlit-public .contact-form :is(input,textarea):focus { outline: 3px solid rgb(var(--c-status-rerun) / 0.4392); outline-offset: 2px; }
.moonlit-public .donation-thank-you { padding: clamp(1.5rem,5vw,3rem); text-align: center; }
.moonlit-public :is(.donation-thank-you-note,.donation-thank-you-icon,.breed-suggestion-intro) { color: var(--lh-ink) !important; }
.moonlit-public .donation-thank-you-glow { display: none; }
.moonlit-public .research-cover { display: grid; grid-template-columns: 1fr 150px; align-items: center; gap: 1.5rem; padding: .8rem 1rem 1.7rem; border-bottom: 1px solid rgb(var(--c-border) / 0.3961); margin: 1rem 0; }
.moonlit-public .research-cover h1 { margin: .6rem 0; font-size: clamp(2rem,4vw,3.7rem); }
.moonlit-public .research-cover p { margin-bottom: 0; }
.moonlit-public .research-cover img { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; border: 5px solid var(--lh-night); outline: 1px solid var(--lh-border); border-radius: 48% 48% 6px 6px; }

/* Dynamic research panels are also included on the homepage. */
.moonlit-site :is(.research-campaign-card,.campaign-donor-wall-preview,.breed-facebook-dialog,.dilute-research-notice) { background: var(--lh-surface-soft) !important; color: var(--lh-ink) !important; border: 1px solid var(--lh-border) !important; border-radius: 7px; box-shadow: inset 0 0 0 4px rgb(var(--c-surface) / 0.4392),0 8px 25px rgb(var(--c-violet-900) / 0.1255) !important; }
.moonlit-site :is(.research-campaign-section,.campaign-donor-wall-preview,.breed-facebook-dialog,.dilute-research-notice) :is(h2,h3,p,small,strong,li) { color: var(--lh-ink) !important; text-shadow: none !important; }
.moonlit-site :is(.campaign-card-topline span,.campaign-paused,.campaign-limit,.campaign-progress-block>div>span,.campaign-collection-help span,.research-needs-heading small,.campaign-donor-wall-heading small,.campaign-donor-preview-list span small,.campaign-donor-preview-empty small) { color: var(--lh-muted) !important; text-shadow: none !important; }
.moonlit-site :is(.research-needs-board,.research-need,.campaign-donor-wall,.campaign-disclaimer,.campaign-collection-help,.campaign-donor-preview-empty) { background: var(--lh-surface) !important; border-color: var(--lh-border) !important; box-shadow: none !important; color: var(--lh-ink) !important; }
.moonlit-site :is(.research-need>div>span,.campaign-donor-wall>div>span,.campaign-donor-preview-list>span,.campaign-card-topline span) { background: var(--lh-surface-deep) !important; color: var(--lh-ink) !important; border: 1px solid rgb(var(--c-border) / 0.3961) !important; box-shadow: none !important; text-shadow: none !important; }
.moonlit-site .research-need-complete { border-left: 4px solid rgb(var(--c-green-600)) !important; }
.moonlit-site .campaign-disclaimer { border-left: 4px solid var(--lh-accent) !important; }
.moonlit-site .campaign-progress { background: rgb(var(--c-violet-300-2)); }
.moonlit-site .campaign-progress span { background: linear-gradient(90deg,rgb(var(--c-violet-700-2)),rgb(var(--c-violet-400-9))) !important; box-shadow: none !important; }
.moonlit-site .dilute-research-notice { padding: 1.3rem; margin: 1rem auto; border-left: 4px solid var(--lh-accent) !important; }
.moonlit-site .dilute-research-notice a { color: var(--lh-accent) !important; }
.moonlit-site :is(.breed-facebook-dialog-text,.breed-suggestion-form input,.breed-suggestion-form textarea) { background: var(--lh-field) !important; color: var(--lh-ink) !important; border: 1px solid var(--lh-border) !important; }
.moonlit-site .breed-facebook-dialog-close { color: var(--lh-ink) !important; }
.moonlit-site :is(.breed-suggest-button,.breed-facebook-share) { background: var(--lh-surface-soft) !important; color: var(--lh-accent) !important; border: 1px solid var(--lh-accent) !important; box-shadow: none !important; }
.moonlit-site .research-campaign-card .campaign-actions .btn.campaign-fund-button,
.moonlit-site .campaign-actions .btn.campaign-monthly-button,
.moonlit-site .campaign-actions .btn.campaign-monthly-button,
.moonlit-site .campaign-collection-help .btn,
.moonlit-site .moonlit-public :is(.rabbit-donate-link,.contact-popup-trigger) { background: linear-gradient(180deg,rgb(var(--c-accent)),rgb(var(--c-violet-600-4))) !important; color: rgb(var(--c-pure-white)) !important; -webkit-text-fill-color: rgb(var(--c-pure-white)) !important; border: 1px solid rgb(var(--c-violet-300-5)) !important; box-shadow: 0 0 17px rgb(var(--c-neon) / 0.3137),inset 0 1px 0 rgb(var(--c-violet-200) / 0.3333) !important; text-shadow: none !important; }
.moonlit-site .moonlit-public .btn-pulse { animation: none; }

@media (max-width: 780px) {
  .moonlit-public :is(.tests-hero,.tests-info-grid) { grid-template-columns: 1fr; }
  .moonlit-public .tests-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .moonlit-public .test-hero { grid-template-columns: minmax(0,1fr); gap: 1.2rem; }
  .moonlit-public .test-hero-image-wrap { max-width: 290px; justify-self: center; }
  .moonlit-public .test-hero-image { max-height: 330px; aspect-ratio: 4 / 5; object-position: center 35%; }
  .moonlit-public .test-hero-text .page-title { font-size: clamp(2rem,8vw,3rem); }
  .moonlit-public :is(.info-grid,.avian-species-grid,.dilute-results-grid,.species-grid) { grid-template-columns: 1fr; }
  .moonlit-public .species-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .moonlit-public .test-section-nav { gap: .4rem; }
  .moonlit-public .test-section-nav a { font-size: .75rem; }
  .moonlit-public .research-cover { grid-template-columns: 1fr 100px; padding-inline: 0; gap: .8rem; }
  .moonlit-public .research-cover img { width: 100px; }
  .moonlit-public .contact-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 480px) {
  .moonlit-public .tests-grid { grid-template-columns: 1fr; }
  .moonlit-public .coming-row .btn { width: 100%; }
  .moonlit-public .test-section { padding: 1.15rem; }
  .moonlit-public .research-cover { grid-template-columns: 1fr; }
  .moonlit-public .research-cover img { display: none; }
  .moonlit-public .instruction-buttons { grid-template-columns: 1fr; }
  .moonlit-public .avian-species-list { grid-template-columns: 1fr; }
  .moonlit-public :is(.contact-hero,.contact-card,.contact-extra) { padding: 1.3rem !important; }
}
/* Product reading panels sit independently within the dark laboratory frame. */
.moonlit-site .page-main .page-shell:has(.moonlit-test) { background: linear-gradient(145deg,rgb(var(--c-night) / 0.9098),rgb(var(--c-night) / 0.949)) !important; border: 1px solid rgb(var(--c-border) / 0.4667) !important; box-shadow: 0 18px 50px rgb(var(--c-black) / 0.2706) !important; border-radius: 12px; padding: clamp(.8rem,2.5vw,2rem); }
.moonlit-site .page-main .page-shell:has(.moonlit-test)::before,
.moonlit-site .page-main .page-shell:has(.moonlit-test)::after { content: none !important; }
.moonlit-public.moonlit-test .test-hero { grid-template-columns: minmax(0,1.15fr) minmax(250px,.75fr); align-items: center; gap: clamp(1.4rem,3vw,2.6rem); padding: 0 0 1.2rem; }
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section,.dilute-research-notice) { position: relative; background: linear-gradient(130deg,var(--lh-surface-soft),var(--lh-surface)) !important; border: 5px solid rgb(var(--c-bg-2)) !important; outline: 1px solid rgb(var(--c-violet-400-8)); border-radius: 9px; box-shadow: inset 0 0 0 1px rgb(var(--c-surface-soft)),inset 0 0 0 5px rgb(var(--c-violet-400-4) / 0.251),0 12px 28px rgb(var(--c-black) / 0.251) !important; padding: clamp(1.25rem,2.5vw,2rem); }
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::before,
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::after { content: ""; position: absolute; width: 30px; height: 30px; background: url("../dna_portal/moonlit/frame-corner.svg") left top / contain no-repeat; pointer-events: none; opacity: .8; }
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::before { top: 3px; left: 3px; }
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::after { bottom: 3px; right: 3px; transform: rotate(180deg); }
.moonlit-public.moonlit-test .test-hero-text .page-title { font-size: clamp(2rem,3.55vw,3.15rem); margin-top: .7rem !important; }
.moonlit-public.moonlit-test .moon-breadcrumb { margin-top: 0; padding: 0; font-size: .76rem; }
.moonlit-public.moonlit-test .test-section { margin: 1.45rem 0; }
.moonlit-public.moonlit-test .test-section-nav { padding: .9rem 1rem; background: var(--lh-surface-deep); border: 4px solid rgb(var(--c-bg-2)); outline: 1px solid rgb(var(--c-violet-400-8)); border-radius: 7px; box-shadow: inset 0 0 0 1px rgb(var(--c-surface-soft)); margin: .2rem 0 1.6rem; }
.moonlit-public.moonlit-test .test-section-nav a { background: transparent; color: rgb(var(--c-deep)); border-color: rgb(var(--c-border) / 0.4); }
.moonlit-public.moonlit-test :is(.info-card,.avian-species-group,.dilute-results-grid article,.faq-item) { box-shadow: none !important; border-color: rgb(var(--c-violet-400-4) / 0.4667) !important; background: rgb(var(--c-surface-soft) / 0.4) !important; }
/* The research heading has no card behind it: it sits straight on the dark
   page, so it is one of the few places that needs pale text. The test pages
   already said so; the home page did not, and its heading was dark on dark. */
.moonlit-site .page-main .page-shell .research-campaign-heading :is(h2,p),
.moonlit-site .page-main .page-shell .research-campaign-heading .section-kicker { color: rgb(var(--c-surface-soft)) !important; }
@media (max-width: 780px) {
  .moonlit-public.moonlit-test .test-hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .moonlit-public.moonlit-test .test-hero-image-wrap { width: min(100%,300px); }
  .moonlit-public.moonlit-test .test-section-nav { padding: .7rem; }
  .moonlit-public.moonlit-test :is(.test-hero-text,.test-section) { padding: 1.3rem 1.05rem; }
  .moonlit-public.moonlit-test .test-hero-text .page-title { font-size: clamp(1.8rem,7.8vw,2.65rem); }
}
/* Shared portrait architecture, matching the hand-carved homepage frames. */
.moonlit-site .moonlit-public .test-hero-image-wrap.specimen-gallery { position: relative; width: 100%; max-width: 390px; margin: 0; padding: 54px 0 17px; border: 0; outline: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; isolation: isolate; }
.moonlit-site .moonlit-public .specimen-gallery-interior { width: 69%; margin-inline: auto; background: rgb(var(--c-night)); border-radius: 50% 50% 0 0 / 95px 95px 0 0; overflow: hidden; }
/* The whole photo always shows. A landscape photo sits in the portrait frame
   over a soft blurred copy of itself instead of losing its sides. */
.moonlit-site .moonlit-public .specimen-gallery-photo { position: relative; overflow: hidden; }
.moonlit-site .moonlit-public .specimen-gallery-photo::before { content: ''; position: absolute; inset: -20px; background: var(--photo) center / cover no-repeat; filter: blur(14px) brightness(.55); }
.moonlit-site .moonlit-public .specimen-gallery .test-hero-image { position: relative; width: 100%; height: auto; max-height: none; aspect-ratio: 3 / 4; object-fit: contain; border: 0; border-radius: 0; }
.moonlit-public .specimen-gallery-frame { position: absolute; z-index: 2; inset: 0; background: url('../dna_portal/moonlit/ornate-arch-v2.webp') center / 100% 100% no-repeat; pointer-events: none; filter: drop-shadow(0 5px 4px rgb(var(--c-black) / 0.4667)); }
.moonlit-site .moonlit-public .specimen-gallery-plaque { position: relative; z-index: 3; display: grid; place-items: center; min-height: 78px; margin: -13px -1px 6px; padding: 1rem 14%; background: url('../dna_portal/moonlit/specimen-nameplate.webp') center / 100% 100% no-repeat; color: rgb(var(--c-surface-soft)) !important; -webkit-text-fill-color: rgb(var(--c-surface-soft)); font: 500 clamp(1rem,1.5vw,1.25rem)/1.2 var(--lh-serif); font-size-adjust: 0.46; font-variant: small-caps; letter-spacing: .04em; text-align: center; }
.moonlit-public .specimen-gallery-star { position: absolute; z-index: 3; inset: 5px auto auto 50%; width: 22px; height: 22px; color: rgb(var(--c-violet-100)); text-shadow: 0 0 11px rgb(var(--c-violet-300-4)),0 0 20px rgb(var(--c-violet-400-6)); font-size: 24px; line-height: 1; pointer-events: none; }
.moonlit-site .moonlit-public .specimen-gallery > .image-credit { position: absolute; inset: auto 8% -1.6rem; font-size: .72rem; color: rgb(var(--c-surface)) !important; -webkit-text-fill-color: rgb(var(--c-surface)); }
.moonlit-public .test-hero:has(.specimen-gallery > .image-credit) { padding-bottom: 2.2rem; }
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section) { border: 7px double rgb(var(--c-bg-2)) !important; border-radius: 4px; box-shadow: 0 0 0 1px rgb(var(--c-surface-deep)),0 0 0 3px rgb(var(--c-night)),inset 0 0 20px rgb(var(--c-violet-300-5) / 0.1882),0 8px 24px rgb(var(--c-night) / 0.2078) !important; }
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::before,
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::after { width: 57px; height: 57px; background-image: url('../dna_portal/moonlit/ornate-corner-v2.webp'); opacity: 1; }
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::before { top: -9px; left: -9px; }
.moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::after { bottom: -9px; right: -9px; }
.moonlit-public.moonlit-test .test-hero-text { padding: clamp(1.65rem,2.6vw,2.35rem); }
.moonlit-public.moonlit-test .test-section { padding: clamp(1.5rem,2.8vw,2.3rem); }
.moonlit-public .test-section :is(h2,h3) strong { font-weight: 500; }
.moonlit-public .test-section > p { max-width: 78ch; }
.moonlit-public .test-section-nav { gap: .55rem; }
.moonlit-public.moonlit-test .test-section-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: .55rem .85rem; border-radius: 4px; background: rgb(var(--c-surface)); font-size: .79rem; line-height: 1.4; }
.moonlit-public .faq-q { list-style: none; position: relative; padding-right: 3rem; }
.moonlit-public .faq-q::-webkit-details-marker { display: none; }
.moonlit-public .faq-q::after { content: '+'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--lh-accent); font: 400 1.45rem/1 var(--lh-sans); }
.moonlit-public .faq-item[open] .faq-q::after { content: '−'; }

/* A consistent catalogue: the artwork corresponds to the actual test. */
.moonlit-public .test-card::before { width: 100%; height: auto; aspect-ratio: 16 / 9; box-sizing: border-box; border: 3px double rgb(var(--c-border)); outline: 0; border-radius: 4px; margin-bottom: 1.15rem; background-image: url('../dna_portal/moonlit/card_bird_dna_sexing.webp'); background-position: center; }
.moonlit-public .test-card-emu::before { background-image: url('../dna_portal/moonlit/card_emu_dna_sexing.webp'); }
.moonlit-public .test-card-avian::before { background-image: url('../dna_portal/moonlit/card_avian_dna_sexing.webp'); }
.moonlit-public .test-card-blue::before { background-image: url('../dna_portal/moonlit/card_blue_egg.webp'); }
.moonlit-public .test-card-white::before { background-image: url('../dna_portal/moonlit/card_recessive_white.webp'); }
.moonlit-public .test-card-frizzle::before { background-image: url('../dna_portal/moonlit/card_frizzle.webp'); }
.moonlit-public .test-card-rabbit::before { background-image: url('../dna_portal/moonlit/card_rabbit_dna_sexing.webp'); }
.moonlit-public .test-card-rabbit:has(a[href*='rabbit_dwarf'])::before { background-image: url('../dna_portal/moonlit/card_rabbit_dwarf_wide.webp'); }
.moonlit-public .test-card { padding: 1.15rem; }
.moonlit-public .test-card-top { gap: .8rem; }
.moonlit-public .test-card-top h3 { line-height: 1.18; }
.moonlit-public .test-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.moonlit-site .moonlit-public .view-pill { gap: .5rem; min-height: 44px; border-radius: 999px; padding: .6rem 1rem; font-size: .86rem; font-weight: 600; }
.moonlit-public .tests-hero-copy::before { content: ''; width: 175px; height: 40px; margin: 0 0 1rem; background: url('../dna_portal/moonlit/silver-dna-ornament-400.webp') center / contain no-repeat; }
.moonlit-site .page-main .page-shell .moonlit-public :is(.tests-hero-copy,.tests-hero-panel,.instructions-hero,.about-hero-card,.contact-hero,.process-intro,.research-cover) { position: relative; border: 5px double rgb(var(--c-muted)) !important; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(var(--c-surface-soft)),0 6px 22px rgb(var(--c-ink) / 0.102) !important; }
.moonlit-public :is(.tests-hero-copy,.instructions-hero,.about-hero-card,.contact-hero,.research-cover)::after { content: ''; position: absolute; right: -8px; bottom: -8px; width: 66px; height: 66px; background: url('../dna_portal/moonlit/ornate-corner-v2.webp') center / contain no-repeat; transform: rotate(180deg); pointer-events: none; }
.moonlit-public .research-cover { padding: 1.5rem; background: linear-gradient(130deg,var(--lh-surface-soft),var(--lh-surface)); }
.moonlit-public .how-hero-text { max-width: 760px; margin-inline: auto; }
.moonlit-public .how-hero .card-subtitle { max-width: 58ch; margin-inline: auto; }
.moonlit-public .process-list { column-gap: 1.15rem; row-gap: 1.15rem; }
.moonlit-public .process-card { gap: 1rem; }
.moonlit-public .process-card h3 { margin-bottom: .6rem; }
.moonlit-public .process-card p { margin-block: 0; }
.moonlit-site .moonlit-public .instruction-btn { gap: .8rem; border-radius: 5px; font-size: 1rem; }
.moonlit-public .instruction-btn .lh-icon { flex: 0 0 22px; width: 22px; height: 22px; }

.moonlit-site .moonlit-public :is(.toenail-page-hero,.toenail-page-reminders > div,.toenail-items-list li,.eggshell-method-card,.toenail-video-intro,.toenail-video-card,.toenail-amount-card,.toenail-step-list li) { background: var(--lh-surface-soft) !important; border: 1px solid var(--lh-border); border-radius: 5px; box-shadow: none; }
.moonlit-site .moonlit-public .toenail-page-hero { padding: 1.5rem; border: 5px double rgb(var(--c-muted)); }
.moonlit-public .toenail-page-reminders { background: none !important; border: 0 !important; box-shadow: none !important; }
.moonlit-public .toenail-page-hero h1 { font-size: clamp(2rem,3.6vw,3.4rem); }
.moonlit-public .toenail-hero-image { background: rgb(var(--c-surface-deep)); border: 3px double rgb(var(--c-border)); border-radius: 5px; padding: .3rem; box-shadow: none; }
.moonlit-site .moonlit-public :is(.toenail-page-hero,.toenail-page-reminders,.toenail-guide,.eggshell-method-card) :is(p,li) { font-weight: 400; line-height: 1.65; }
.moonlit-public .toenail-page-reminders span { font-weight: 650; letter-spacing: .07em; }
.moonlit-public .toenail-page-reminders strong { font-weight: 600; margin-block: .4rem; }
.moonlit-public .toenail-items-list li { background: var(--lh-surface) !important; }
.moonlit-public .contact-grid h2 { font-size: 1.65rem; margin-bottom: .7rem; }
.moonlit-public .contact-highlight { border-radius: 5px; }
.moonlit-public .contact-value { font-weight: 600; }
.moonlit-public .contact-form label { font-weight: 600; }
.moonlit-public .contact-form :is(input,textarea) { font: 400 1rem/1.5 var(--lh-sans); border-radius: 5px; }
.moonlit-site .page-main .page-shell .moonlit-public > .breed-suggestion-page { max-width: 740px; margin: 1rem auto; padding: clamp(1.4rem,4vw,2.5rem); }
.moonlit-public .breed-suggestion-page h1 { font-size: clamp(2rem,3.6vw,3rem); }
.moonlit-public .breed-suggestion-form label { font-weight: 600; }
.moonlit-public .breed-suggestion-form :is(input,textarea) { font: 400 1rem/1.5 var(--lh-sans); border-radius: 5px; }
.moonlit-site .moonlit-public .donation-thank-you-icon { background: radial-gradient(circle at 35% 20%,rgb(var(--c-violet-400-9)),rgb(var(--c-violet-600-4))); color: rgb(var(--c-violet-100-2)) !important; border: 1px solid rgb(var(--c-violet-300-5)); box-shadow: 0 0 22px rgb(var(--c-violet-500-4) / 0.302); }
.moonlit-site .moonlit-public .donation-thank-you-note { background: var(--lh-surface-deep); border: 1px solid rgb(var(--c-violet-400-5)); border-radius: 5px; box-shadow: none; }
.moonlit-site .moonlit-public :is(.donation-thank-you-note strong,.donation-thank-you-note span,.donation-thank-you-lead strong) { color: var(--lh-ink) !important; -webkit-text-fill-color: var(--lh-ink) !important; text-shadow: none; }
.moonlit-site .moonlit-public .instructions-hero:has(.instructions-hero-image) { grid-template-columns: minmax(0,1fr) 230px; grid-template-areas: 'title artwork' 'intro artwork' 'quick quick' 'actions actions'; min-height: 0; gap: 1rem 2rem; padding: 2rem !important; }
.moonlit-public .instructions-hero:has(.instructions-hero-image) > .page-title { grid-area: title; align-self: end; }
.moonlit-public .instructions-hero:has(.instructions-hero-image) > .card-subtitle { grid-area: intro; align-self: start; margin-top: 0; }
.moonlit-site .moonlit-public .instructions-hero-image { grid-area: artwork; width: 185px; position: relative; margin-block: 1rem; padding: 0; border: 0; outline: 0; overflow: visible; background: none; box-shadow: none; }
.moonlit-public .instructions-hero-image::after { content: ''; position: absolute; inset: -29px -27px -14px; background: url('../dna_portal/moonlit/ornate-arch-v2.webp') center / 100% 100% no-repeat; pointer-events: none; }
.moonlit-site .moonlit-public .instructions-hero-image .instr-img-small { border-radius: 49% 49% 0 0 / 66px 66px 0 0; }
.moonlit-public .instructions-hero .guide-quick-grid { grid-area: quick; margin-top: .75rem; }
.moonlit-public .instructions-hero .instructions-hero-actions { grid-area: actions; }
@media (max-width: 780px) {
  .moonlit-site .moonlit-public .test-hero-image-wrap.specimen-gallery { width: min(100%,330px); max-width: 330px; padding-top: 35px; }
  .moonlit-public.moonlit-test .test-hero-text { padding: 1.65rem 1.2rem; }
  .moonlit-public.moonlit-test .test-section { padding: 1.5rem 1.2rem; }
  .moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::before,
  .moonlit-public.moonlit-test :is(.test-hero-text,.test-section)::after { width: 44px; height: 44px; }
  .moonlit-public .test-section-nav a { flex: 1 1 140px; justify-content: center; text-align: center; }
  .moonlit-public .specimen-gallery-plaque { font-size: 1.1rem; }
  .moonlit-public .test-card-top h3 { flex-basis: 180px; }
  .moonlit-public .research-cover { padding: 1.25rem; }
  .moonlit-public .toenail-page-hero { grid-template-columns: minmax(0,1fr); }
  .moonlit-public .toenail-hero-image { width: 135px; height: 135px; margin-inline: auto; }
  .moonlit-site .moonlit-public .instructions-hero:has(.instructions-hero-image) { grid-template-columns: minmax(0,1fr); grid-template-areas: 'title' 'intro' 'artwork' 'quick' 'actions'; padding: 1.5rem 1rem !important; }
  .moonlit-public .instructions-hero:has(.instructions-hero-image) > .card-subtitle { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .moonlit-public *, .moonlit-public *::before, .moonlit-public *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .moonlit-public :is(.test-section-nav,.moon-breadcrumb,.contact-popup-trigger,.research-cover img) { display: none !important; }
  .moonlit-public :is(.section-box,.instructions-section,.test-card) { box-shadow: none !important; break-inside: avoid; }
}

.moonlit-public .test-card .test-species-note { flex: 0; padding: .65rem .75rem; border-left: 3px solid rgb(var(--c-violet-500-5)); font-size: .88rem; background: rgb(var(--c-surface)); }
.moonlit-public .catalog-return { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }

.moonlit-public .test-card-ostrich::before { background-image: url('../dna_portal/moonlit/card_ostrich_dna_sexing.webp'); }
.moonlit-public .test-card-ostrich { scroll-margin-top: 7rem; }

/* Moonlit customer journeys: decorative edges, calm lilac reading surfaces. */
.moon-customer {
  --customer-line: rgb(var(--c-violet-700) / 0.28);
  --customer-field: var(--lh-field);
  --customer-success: rgb(var(--c-green-800));
  --customer-danger: rgb(var(--c-rose-600));
  width: 100%;
  min-width: 0;
  color: var(--lh-ink);
}
.moon-customer :is(.content-card, .sample-entry-shell, .sample-step-wrapper, .rabbit-step-wrapper, .sample-review-wrap) { width: 100%; min-width: 0; margin-inline: auto; }
.moon-customer > .content-card { max-width: none; }
.moon-customer :is(h1, h2, h3, .page-title, .order-title, .sample-complete-title, .sample-review-title, .sample-step-title, .rabbit-step-title) { color: var(--lh-ink); font-family: var(--lh-serif); font-size-adjust: 0.46; text-shadow: none; font-weight: 500; }
.moon-customer :is(.page-title, .order-title, .sample-complete-title) { font-size: clamp(2.15rem, 4.6vw, 3.65rem); line-height: 1.1; letter-spacing: -.035em; }
.moon-customer :is(p, li) { line-height: 1.65; }
.moon-customer :is(.card-subtitle, .order-subtitle, .order-meta, .field-help, .field-hint, .rabbit-help, .sample-field-help, .mini-note, .results-limit-note) { color: var(--lh-muted); }
.moon-customer :is(.section-kicker, .sample-complete-kicker, .order-journey-kicker, .sample-step-eyebrow, .smart-title, .choice-title) { color: var(--lh-accent); font-family: var(--lh-sans); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.customer-portal-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  margin: 0 0 clamp(1.2rem, 3vw, 2rem);
  padding: .55rem;
  border: 1px solid rgb(var(--c-violet-400-8));
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(var(--c-bg-2)), rgb(var(--c-night)));
  box-shadow: 0 3px 0 rgb(var(--c-night)), inset 0 0 0 3px rgb(var(--c-surface) / 0.08);
}
.moon-customer .customer-portal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;
  padding: .65rem .85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgb(var(--c-violet-100-2));
  font-size: .8rem;
  line-height: 1.3;
  font-weight: 650;
  text-decoration: none;
}
.moon-customer .customer-portal-nav a:hover { color: rgb(var(--c-pure-white)); background: rgb(var(--c-violet-700-4)); }
.moon-customer .customer-portal-nav a[aria-current="page"] { color: rgb(var(--c-ink)); background: rgb(var(--c-violet-100)); border-color: rgb(var(--c-surface)); }
.moon-customer .customer-portal-nav .customer-portal-nav-order { margin-left: auto; color: rgb(var(--c-pure-white)); background: rgb(var(--c-violet-600-4)); border-color: rgb(var(--c-violet-300-3)); }

/* The form and table interiors stay light; night belongs to the outer frame. */
.moon-customer :is(.account-card, .password-panel, .credit-activity-panel, .order-card, .samples-table-wrap, .sample-step-card, .rabbit-step-card, .sample-review-card, .sample-complete-card, .order-journey, .results-filter-form, .result-order-row, .next-action-card, .collection-help-card, .next-card, .order-contact, .order-summary, .credits-form, .price-card) {
  color: var(--lh-ink);
  background: var(--lh-surface-soft);
  border-color: var(--customer-line);
  box-shadow: 0 5px 16px rgb(var(--c-bg-2) / 0.06);
}
.moon-customer :is(.account-shell, .results-page-shell, .sample-entry-card, .dashboard-wrapper, .orders-wrapper, .order-wrapper, .credits-wrapper, .thanks-wrapper) { background: transparent; box-shadow: none; }
.moon-customer :is(.account-shell::before, .feather-layer, .floating-feather, .instruction-pill::after, .btn-shimmer::after) { display: none; }
.moon-customer :is(.stat, .credits-pill, .credits-row, .customer-credit-group, .results-page-count, .result-test-pill, .sample-chip, .sample-test-card, .sample-mini-card) { background: var(--lh-surface-deep); border-color: var(--customer-line); color: var(--lh-ink); box-shadow: none; }
.moon-customer :is(.stat-num, .credits-num) { color: var(--lh-accent); text-shadow: none; }
.moon-customer .account-card-title,
.moon-customer .password-panel h2 { text-align: left; font-size: 1.45rem; font-weight: 500; }
.moon-customer :is(.account-card, .password-panel, .credit-activity-panel) { padding: clamp(1.15rem, 2.4vw, 1.7rem); border-radius: 9px; }
.moon-customer .account-grid { max-width: none; gap: 1.1rem; }
.moon-customer .password-panel { max-width: 720px; }
.moon-customer .account-hero { margin-bottom: 2rem; }
.moon-customer :is(.account-hero strong, .customer-credit-available strong, .credit-activity-heading h2, .customer-credit-group h3) { color: var(--lh-ink); }
.moon-customer .customer-credit-change-added { color: var(--customer-success); }
.moon-customer .customer-credit-change-used { color: var(--customer-danger); }
.moon-customer .customer-credit-summary { background: var(--lh-surface-deep); }
.moon-customer .account-action-row { justify-content: flex-start; }
.moon-customer .order-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.moon-customer .order-card { min-width: 0; }
.moon-customer .order-card .tests-table { min-width: 0; }
.moon-customer .order-card .moon-table-scroll { width: 100%; max-width: 100%; }

.moon-customer label { color: var(--lh-ink); }
.moon-customer :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]), select, textarea) {
  max-width: 100%;
  min-height: 48px;
  padding: .75rem .85rem;
  border: 1px solid rgb(var(--c-violet-400-4));
  border-radius: 6px;
  color: var(--lh-ink);
  background: var(--customer-field);
  box-shadow: inset 0 1px 2px rgb(var(--c-violet-900) / 0.04);
  font-family: var(--lh-sans);
  font-size: 1rem;
  line-height: 1.4;
}
.moon-customer select { padding-right: 2rem; }
.moon-customer :is(input, textarea)::placeholder { color: rgb(var(--c-border)); opacity: 1; }
.moon-customer :is(input, select, textarea):focus-visible { outline: 3px solid rgb(var(--c-status-rerun)); outline-offset: 2px; border-color: rgb(var(--c-violet-600-4)); }
.moon-customer :is(input[type="checkbox"], input[type="radio"]) { accent-color: rgb(var(--c-accent)); }
.moon-customer input[type="file"] { overflow: hidden; }
.moon-customer :is(.form-row, .form-field, .field, .order-field, .credits-field) { min-width: 0; }
.moon-customer :is(.form-row label, .form-field > label, .field-label, .order-field > span, .credits-field > span) { display: block; margin-bottom: .45rem; color: var(--lh-ink); font-size: .85rem; font-weight: 700; }
.moon-customer :is(.stacked-form, .card-auth form) { display: grid; gap: 1rem; max-width: 600px; }
.moon-customer .form-field :is(input, select, textarea) { width: 100%; }
.moon-customer :is(.errorlist, .field-error, .rabbit-error, .rabbit-errors-list, .bulk-field-error) { color: var(--customer-danger); font-weight: 650; }
.moon-customer :is(.form-errors, .error-box, .bulk-error-banner, .form-error-summary, .toast-error) { background: rgb(var(--c-rose-100)); border: 1px solid rgb(var(--c-rose-400-5)); color: rgb(var(--c-rose-600)); border-radius: 7px; }
.moon-customer :is(.toast-success, .success-box) { background: rgb(var(--c-grey-100)); border: 1px solid rgb(var(--c-green-400)); color: rgb(var(--c-green-600)); }
.moon-customer .errorlist { padding-left: 1.1rem; list-style: disc; line-height: 1.5; }

/* Targeted action rules replace inconsistent per-page legacy button skins. */
.moon-customer :is(.btn, .btn-primary, .order-journey-action, .bulk-apply-button, .results-filter-button, .order-cta-button) {
  min-height: 46px;
  padding: .78rem 1.25rem;
  border: 1px solid rgb(var(--c-violet-300-3)) !important;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(var(--c-status-rerun)), rgb(var(--c-violet-600-4))) !important;
  color: rgb(var(--c-pure-white)) !important;
  -webkit-text-fill-color: rgb(var(--c-pure-white)) !important;
  box-shadow: inset 0 0 0 1px rgb(var(--c-violet-100) / 0.22), 0 4px 15px rgb(var(--c-violet-600-8) / 0.23) !important;
  font-family: var(--lh-sans);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-shadow: none !important;
  animation: none;
}
.moon-customer :is(.btn-secondary, .btn-ghost, .btn-secondary-small, .create-pill, .instruction-pill) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .72rem 1.1rem;
  border: 1px solid rgb(var(--c-violet-400-5)) !important;
  border-radius: 999px;
  color: rgb(var(--c-deep)) !important;
  -webkit-text-fill-color: rgb(var(--c-deep)) !important;
  background: rgb(var(--c-surface)) !important;
  box-shadow: none !important;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-shadow: none !important;
}
.moon-customer :is(.btn, .btn-primary, .btn-secondary, .btn-ghost, .order-journey-action):hover { filter: brightness(1.05); transform: translateY(-1px); }
.moon-customer :is(button, .btn, .btn-secondary, .btn-primary):disabled { opacity: .6; cursor: not-allowed; transform: none; }
.moon-customer :is(.btn-pulse, .btn-shimmer) { animation: none; }
.moon-customer :is(.auth-card .page-title, .auth-card.auth-card .page-title) { color: var(--lh-ink); font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; text-shadow: none; }

/* Sample instructions preserve clear next steps and obvious selected controls. */
.moon-customer .order-journey { padding: clamp(1.2rem, 3vw, 1.8rem); border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 10px; background: rgb(var(--c-surface)); }
.moon-customer .order-journey-heading h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2; }
.moon-customer .order-journey-step { background: rgb(var(--c-surface-soft)); border-color: rgb(var(--c-surface-deep)); border-radius: 7px; }
.moon-customer .order-journey-step.is-current { background: rgb(var(--c-violet-100-2)); border: 2px solid rgb(var(--c-violet-500-4)); box-shadow: 0 0 0 3px rgb(var(--c-violet-500-4) / 0.08); }
.moon-customer .order-journey-step.is-done { opacity: 1; }
.moon-customer .order-journey-number { background: rgb(var(--c-surface-deep)); color: rgb(var(--c-violet-700)); }
.moon-customer .is-current .order-journey-number { background: rgb(var(--c-violet-600-4)); color: rgb(var(--c-pure-white)); }
.moon-customer .is-done .order-journey-number { background: rgb(var(--c-grey-100)); color: rgb(var(--c-green-600)); }
.moon-customer :is(.order-journey-order, .order-journey-progress) { color: var(--lh-ink); background: rgb(var(--c-surface-deep)); border-color: rgb(var(--c-violet-300-2)); }
.moon-customer :is(.order-journey-progress-track, .sample-progress-track) { background: rgb(var(--c-surface-deep)) !important; }
.moon-customer :is(.order-journey-progress-track span, .sample-progress-fill) { background: linear-gradient(90deg, rgb(var(--c-violet-600-4)), rgb(var(--c-violet-400-9))) !important; box-shadow: none; }
.moon-customer .order-journey-link { color: rgb(var(--c-violet-600-4)); }
.moon-customer :is(.sample-step-card, .rabbit-step-card, .sample-review-card, .sample-complete-card) { border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 10px; max-width: 980px; }
.moon-customer :is(.sample-label-panel, .rabbit-label-rule, .sample-label-rule, .sample-review-label-rule, .mailing-focus, .sample-warning-card, .sample-dry-warning) { background: rgb(var(--c-surface-soft)); border-color: rgb(var(--c-violet-400-4)); color: var(--lh-ink); }
.moon-customer :is(.baggie-label, .rabbit-label-pill, .sample-label-pill, .sample-code-pill) { background: rgb(var(--c-surface-soft)); color: rgb(var(--c-violet-700-3)); border: 2px dashed rgb(var(--c-violet-400-5)); box-shadow: none; text-shadow: none; }
.moon-customer :is(.sample-helper-card, .rabbit-helper-card, .rabbit-instructions, .rabbit-genetics-intro, .collection-help-card) { background: rgb(var(--c-surface)); color: var(--lh-ink); border-color: rgb(var(--c-violet-300-2)); box-shadow: none; }
.moon-customer :is(.gene-choice:has(input:checked), .add-on-choice:has(input:checked), .add-on-choice.is-active, .sample-add-on-option:has(input:checked)) {
  border: 2px solid rgb(var(--c-status-rerun)) !important;
  color: rgb(var(--c-violet-700-3)) !important;
  background: rgb(var(--c-violet-200-2)) !important;
  box-shadow: 0 0 0 2px rgb(var(--c-violet-600-4) / 0.12) !important;
}
.moon-customer .gene-choice:has(input:checked)::after,
.moon-customer .gene-choice:has(input:checked)::before { color: rgb(var(--c-violet-700-3)); }
.moon-customer :is(.sample-number-panel, .sample-label-panel, .sample-form-card, .sample-mini-card, .rabbit-form, .gene-grid-wrap) { border-radius: 8px; }
.moon-customer .sample-number-panel h1 { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 500; }
.moon-customer :is(.sample-actions, .rabbit-actions, .sample-review-actions, .sample-complete-actions, .thanks-actions, .thanks-buttons) { gap: .8rem; }

/* Tables retain their real columns and gain keyboard-accessible scrolling. */
.moon-customer :is(.orders-table-card, .samples-table-wrap, .tests-table-card, .bulk-table-wrap, .sample-review-table-wrap, .customer-table-scroll) { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 8px; }
.moon-customer table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.moon-customer :is(th, td) { padding: .9rem .85rem; vertical-align: top; line-height: 1.5; text-align: left; border-bottom: 1px solid rgb(var(--c-surface-deep)); color: var(--lh-ink); }
.moon-customer thead { background: rgb(var(--c-surface-deep)); }
.moon-customer th { color: rgb(var(--c-violet-700)); font-size: .77rem; font-weight: 800; letter-spacing: .025em; }
.moon-customer tbody tr:nth-child(even) { background: rgb(var(--c-violet-100-2) / 0.5); }
.moon-customer tbody tr:last-child td { border-bottom: 0; }
.moon-customer :is(.orders-table, .sample-review-table) { min-width: 620px; }
.moon-customer .orders-table .orders-col-action { width: auto; }
.moon-customer .orders-order-value { color: rgb(var(--c-deep)); font-size: 1rem; }
.moon-customer :is(.order-result-pill, .result-test-pill) { background: rgb(var(--c-surface)) !important; border: 1px solid rgb(var(--c-violet-300-2)) !important; color: rgb(var(--c-violet-700-4)) !important; box-shadow: none !important; text-shadow: none !important; }
.moon-customer :is(.order-result-pill.result-m, .result-test-pill[data-test-code="chicken_blue_egg"]) { background: rgb(var(--c-blue-100)) !important; border-color: rgb(var(--c-blue-300-2)) !important; }
.moon-customer .order-result-pill.result-f { background: rgb(var(--c-magenta-100-3)) !important; border-color: rgb(var(--c-magenta-300-7)) !important; }
.moon-customer .order-result-pill.result-pending { background: rgb(var(--c-surface-soft)) !important; border-style: dashed !important; }
.moon-customer .results-filter-form { gap: .85rem; padding: 1.1rem; border-radius: 8px; }
.moon-customer .result-order-row { padding: 1.15rem; margin-top: .75rem; border-radius: 8px; }
.moon-customer .result-order-row :is(span, strong) { text-shadow: none; }
.moon-customer :is(.results-empty-card, .orders-empty) { padding: clamp(1.5rem, 5vw, 3.5rem); background: rgb(var(--c-surface)); border: 1px dashed rgb(var(--c-violet-300-2)); border-radius: 10px; text-align: center; }

/* A useful dashboard: stable account information, then the next action. */
.moon-customer .dashboard-hero { text-align: left; max-width: 840px; margin: 0 0 1.8rem; }
.moon-customer .dashboard-hero .page-title { text-align: left; }
.moon-customer .dashboard-intro { font-size: 1rem; max-width: 65ch; }
.moon-customer .dashboard-icon { margin-left: 0; width: 64px; height: 64px; background: rgb(var(--c-ink)); box-shadow: 0 0 16px rgb(var(--c-accent) / 0.25); }
.moon-customer .dashboard-witch { display: none; }
.moon-customer .dashboard-order-cta { max-width: none; text-align: left; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgb(var(--c-violet-400-5)); border-left: 4px solid rgb(var(--c-violet-600-6)); background: rgb(var(--c-surface)); box-shadow: none; }
.moon-customer .dashboard-order-cta h2 { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 500; }
.moon-customer .dashboard-order-cta p { max-width: 66ch; margin-left: 0; font-size: 1rem; font-weight: 400; }
.moon-customer .order-cta-icon { display: none; }
.moon-customer .order-cta-button { width: auto; }
.moon-customer .dashboard-instructions-cta { max-width: none; margin-block: 1rem 1.75rem; }
.moon-customer .customer-summary-section { max-width: none; padding: 0; }
.moon-customer .customer-summary-card { padding: 1.25rem; border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 9px; background: rgb(var(--c-surface)); }
.moon-customer .dashboard-ticker { border: 0; border-radius: 0; background: transparent; box-shadow: none; max-width: none; overflow: visible; }
.moon-customer .dashboard-ticker-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; width: auto; padding: 0; animation: none; transform: none; }
.moon-customer .dashboard-ticker-item { min-width: 0; display: grid; justify-content: start; gap: .35rem; padding: 1rem; border-radius: 6px; background: rgb(var(--c-surface-soft)); box-shadow: none; border: 1px solid rgb(var(--c-violet-300-2)); }
.moon-customer .dashboard-ticker-item[aria-hidden="true"] { display: none; }
.moon-customer .dashboard-ticker-item strong { white-space: normal; font-size: 1.1rem; line-height: 1.3; color: rgb(var(--c-deep)); }
.moon-customer :is(.dashboard-action-card, .dashboard-nextstep-card, .action-card) { padding: 1.35rem; border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 8px; background: rgb(var(--c-surface-soft)); box-shadow: none; text-align: left; }
.moon-customer :is(.dashboard-action-card h2, .dashboard-nextstep-card h3) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: 1.55rem; font-weight: 500; }
.moon-customer .dashboard-section-title { text-align: left; font-family: var(--lh-serif); font-size-adjust: 0.46; }
.moon-customer :is(.dashboard-actions, .dashboard-card-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

/* Authentication fits the same illuminated gallery without competing imagery. */
.moon-customer .auth-wrapper { min-height: auto; padding: clamp(1rem, 4vw, 2.5rem) 0; }
.moon-customer .auth-card { width: min(100%, 920px); max-width: 920px; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 12px; background: rgb(var(--c-surface)); box-shadow: none; }
.moon-customer .auth-visual { min-height: 320px; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 120px 120px 8px 8px; background: radial-gradient(ellipse at 50% 40%, rgb(var(--c-violet-700)), rgb(var(--c-bg-2)) 72%); }
.moon-customer .auth-logo-image { animation: none; filter: none; mix-blend-mode: screen; width: min(100%, 285px); height: auto; border-radius: 0; }
.moon-customer .auth-visual::after { display: none; }
.moon-customer .auth-divider span { background: transparent; }
.moon-customer .auth-form-panel { padding: .6rem; }
.moon-customer .card-auth { max-width: 580px; margin-inline: auto; padding: clamp(1.25rem, 4vw, 2.5rem); }
.moon-customer .card-auth input { width: 100%; }
.moon-customer--signup, .moon-customer--create-order { max-width: 720px; margin-inline: auto; }
.moon-customer--signup .stacked-form { max-width: none; }
.moon-customer .customer-table-scroll { margin-block: 1.5rem; }
.moon-customer .customer-order-total { padding: 1rem; background: rgb(var(--c-surface-deep)); border-radius: 6px; font-weight: 750; }

/* Stable dashboard geometry replaces the accumulated old themed overrides. */
.moon-customer .dashboard-wrapper { position: relative; }
.moon-customer .dashboard-inner { min-width: 0; }
.moon-customer .dashboard-icon { display: grid; place-items: center; margin: 0 0 1.25rem; border-radius: 50%; }
.moon-customer .dashboard-icon img { display: block; width: 64px; height: 64px; object-fit: contain; }
.moon-customer .dashboard-hero .page-title { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 500; margin: 0 0 .75rem; }
.moon-customer .dashboard-hero p { margin: .65rem 0 0; }
.moon-customer .dashboard-order-cta { margin-bottom: 1rem; border-radius: 8px; }
.moon-customer .dashboard-order-cta h2 { margin: 0 0 .5rem; }
.moon-customer .dashboard-order-cta .order-cta-button { display: inline-flex; margin-top: .5rem; }
.moon-customer .instructions-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.moon-customer .instruction-pill { text-align: left; border-radius: 8px; }
.moon-customer .instruction-icon { flex: 0 0 auto; }
.moon-customer .customer-summary-section { margin: 1.5rem 0; }
.moon-customer .customer-summary-head { display: flex; align-items: center; gap: .85rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgb(var(--c-surface-deep)); }
.moon-customer .customer-summary-emoji::before { content: "✦"; font-size: 1.6rem; color: rgb(var(--c-violet-500-4)); }
.moon-customer .customer-summary-title h2 { margin: 0; font-size: 1.5rem; }
.moon-customer .customer-summary-sub { margin: .25rem 0 0; color: var(--lh-muted); font-size: .88rem; }
.moon-customer .dashboard-ticker-item { text-decoration: none; }
.moon-customer .dashboard-ticker-item span { color: var(--lh-muted); font-size: .72rem; font-weight: 700; }
.moon-customer .customer-credit-breakdown { margin: 1.3rem 0; }
.moon-customer .breakdown-title { margin: 0 0 .75rem; font-size: 1.3rem; }
.moon-customer .breakdown-grid { display: grid; gap: .4rem; }
.moon-customer .breakdown-row { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem .85rem; border: 1px solid rgb(var(--c-surface-deep)); border-radius: 6px; background: rgb(var(--c-surface-soft)); font-size: .88rem; }
.moon-customer .breakdown-qty { font-weight: 800; color: var(--lh-accent); }
.moon-customer .account-banner-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.moon-customer .account-stat { display: grid; gap: .35rem; padding: 1rem; background: rgb(var(--c-surface-soft)); border: 1px solid rgb(var(--c-surface-deep)); border-radius: 6px; text-decoration: none; }
.moon-customer .account-stat strong { color: var(--lh-accent); font-size: 1.7rem; line-height: 1.2; }
.moon-customer .account-stat .stat-label { color: rgb(var(--c-muted)); font-size: .72rem; font-weight: 750; }
.moon-customer .account-stat .stat-note { color: var(--lh-muted); font-size: .75rem; }
.moon-customer .dashboard-nextstep-section { margin: 1.75rem 0; }
.moon-customer .dashboard-section-title { font-size: 1.7rem; }
.moon-customer .nextstep-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.moon-customer .nextstep-title { margin: 0; }
.moon-customer .nextstep-label { margin: .75rem 0; }
.moon-customer .dashboard-nextstep-btn { display: inline-flex; }
.moon-customer .dashboard-action-card h2 { margin: 0 0 .65rem; }
.moon-customer .dashboard-action-button { display: inline-flex; margin-top: .5rem; }
.moon-customer .dashboard-links { margin: 1.5rem 0 0; color: var(--lh-muted); }
.moon-customer .dashboard-links p { margin-bottom: 0; }

/* Every status keeps a text label as well as a restrained, legible color cue. */
.moon-customer .status-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid rgb(var(--c-violet-300-2)); border-radius: 999px; color: rgb(var(--c-violet-700)) !important; background: rgb(var(--c-surface)) !important; font-size: .75rem; font-weight: 700; line-height: 1.4; text-shadow: none; white-space: normal; }
.moon-customer :is(.status-completed, .status-samples_received) { color: rgb(var(--c-green-600)) !important; background: rgb(var(--c-grey-100)) !important; border-color: rgb(var(--c-green-400)); }
.moon-customer :is(.status-accepted_provide_details, .status-awaiting_mail) { color: rgb(var(--c-amber-600-2)) !important; background: rgb(var(--c-amber-100)) !important; border-color: rgb(var(--c-amber-300-3)); }
.moon-customer :is(.status-needs_attention, .status-cancelled) { color: rgb(var(--c-rose-600)) !important; background: rgb(var(--c-rose-100)) !important; border-color: rgb(var(--c-rose-400-5)); }
.moon-customer .status-pill.status-in_progress { color: rgb(var(--c-deep)) !important; background: rgb(var(--c-surface-deep)) !important; border-color: rgb(var(--c-violet-400-5)); }

.moon-customer--order-services .order-wrapper :is(p, .card-subtitle, .choice-body, .test-detail-cell, .order-note, .order-summary-text, .order-small-print, .kit-reminder) { font-weight: 400; line-height: 1.65; }
.moon-customer--order-services .order-wrapper .order-hero .page-title { font-weight: 500; letter-spacing: -.03em !important; line-height: 1.1 !important; }
.moon-customer--order-services .order-wrapper :is(.choice-head, .order-contact h2, .order-tests h2) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; -webkit-text-stroke: 0; }
.moon-customer--order-services .order-wrapper :is(.choice-title, .section-kicker, .summary-label, .tests-table th, .order-field span, .kit-reminder strong, .test-name-cell strong, .price-amount) { font-weight: 700; letter-spacing: .025em !important; }
.moon-customer--order-services .order-wrapper .order-field input { font-weight: 400; }
.moon-customer--order-services .order-wrapper .test-qty-cell input { font-weight: 650; }
.moon-customer--order-services .order-wrapper .choice-card .choice-head { font-weight: 500; -webkit-text-stroke: 0; }
.moon-customer--order-services .order-wrapper .choice-card .choice-title { font-weight: 700; }
.moon-customer--order-services .order-wrapper .order-live-summary strong { font-weight: 750; }
.moon-customer--order-services .order-wrapper .did-you-know-box p { font-weight: 400; }

@media (max-width: 900px) {
  .customer-portal-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: thin; }
  .moon-customer .customer-portal-nav a { flex: 0 0 auto; }
  .moon-customer .customer-portal-nav .customer-portal-nav-order { margin-left: 0; }
  .moon-customer .results-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-customer .dashboard-ticker-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .moon-customer .results-page-shell .result-order-row { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .moon-customer .result-order-row > div { min-width: 0; }
  .moon-customer .account-banner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-customer :is(.content-card, .account-shell, .orders-wrapper, .order-wrapper, .credits-wrapper, .dashboard-wrapper) { padding-inline: 0; }
  .moon-customer :is(.account-grid, .order-top-grid, .sample-hero, .dashboard-actions, .dashboard-card-grid, .instructions-buttons, .credits-grid, .results-filter-form, .order-contact-grid) { grid-template-columns: minmax(0, 1fr); }
  .moon-customer :is(.order-journey-heading, .results-page-hero, .samples-heading, .rabbit-actions, .sample-actions, .sample-complete-actions) { flex-direction: column; align-items: stretch; }
  .moon-customer .order-journey-order { align-self: flex-start; }
  .moon-customer .order-journey-step { grid-template-columns: 1.8rem minmax(0, 1fr); padding: .85rem; gap: .6rem; }
  .moon-customer .order-journey-number { width: 1.8rem; height: 1.8rem; }
  .moon-customer :is(.order-journey, .sample-entry-card, .sample-step-card, .rabbit-step-card, .sample-review-card, .sample-complete-card) { padding: 1rem; }
  .moon-customer .result-order-actions { flex-wrap: wrap; }
  .moon-customer .results-page-count { align-self: flex-start; }
  .moon-customer :is(.sample-actions .btn, .sample-actions .btn-secondary, .sample-complete-actions > a, .rabbit-actions .btn) { width: 100%; }
  .moon-customer .auth-visual { min-height: 180px; }
  .moon-customer .auth-logo-image { max-width: 150px; }
  .moon-customer .auth-card { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .moon-customer :is(.sparkle, .sparkle::before, .sparkle::after, .order-moon, .thanks-icon, .dashboard-ticker-track, .auth-logo-image) { animation: none; }
  .moon-customer :is(.btn, .btn-primary, .btn-secondary, .btn-ghost, .gene-choice):hover { transform: none; }
}
@media print {
  .customer-portal-nav { display: none; }
  .moon-customer :is(.content-card, .order-card, .sample-review-card, .sample-complete-card) { background: rgb(var(--c-pure-white)); color: rgb(var(--c-black)); border-color: rgb(var(--c-grey-500)); box-shadow: none; }
  .moon-customer :is(.orders-table-card, .samples-table-wrap, .sample-review-table-wrap, .customer-table-scroll) { overflow: visible; }
}

/* One gallery frame, clear hierarchy, consistent controls. */
.moon-customer > .content-card:not(.card-auth) { padding: 0; border: 0; background: transparent; box-shadow: none; }
.moon-customer :is(.dashboard-hero, .account-hero, .order-hero, .results-page-hero) { margin-bottom: 1.7rem; }
.moon-customer :is(.order-hero, .account-hero) { border: 0; border-radius: 0; padding: .4rem 0 1.5rem; background: transparent; box-shadow: none; border-bottom: 1px solid rgb(var(--c-violet-300-2)); }
.moon-customer :is(.account-hero, .account-hero .page-title, .account-hero .card-subtitle) { text-align: left; }
.moon-customer .account-hero { max-width: none; margin-inline: 0; }
.moon-customer .dashboard-icon { width: 52px; height: 52px; margin-bottom: 1rem; }
.moon-customer .dashboard-icon img { width: 52px; height: 52px; }
.moon-customer :is(.account-card, .order-card, .customer-summary-card, .dashboard-action-card, .dashboard-nextstep-card, .credits-form, .password-panel) { border: 1px solid rgb(var(--c-violet-300-2)); background: linear-gradient(140deg, rgb(var(--c-surface-soft)), rgb(var(--c-surface))); box-shadow: inset 0 0 0 3px rgb(var(--c-surface-soft)), 0 5px 14px rgb(var(--c-ink) / 0.0392); }
.moon-customer :is(.account-card-title, .order-card > .card-title, .password-panel > h2) { margin: 0 0 1.2rem; padding: 0 0 .8rem; border-bottom: 1px solid rgb(var(--c-surface-deep)); font-size: 1.5rem; }
.moon-customer :is(.account-card .k, .account-card .v) { font-weight: 500; }
.moon-customer .account-card .v { text-align: right; overflow-wrap: anywhere; }
.moon-customer .account-card .quick-links { justify-content: flex-start; }
.moon-customer .account-card .mini-note { text-align: left; line-height: 1.6; }
.moon-customer .stat { padding: 1rem .75rem; background: rgb(var(--c-surface-deep)); }
.moon-customer .stat-num { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: 2rem; font-weight: 500; }
.moon-customer .stat-label { font-size: .75rem; font-weight: 650; }
.moon-customer .dashboard-order-cta { position: relative; padding: clamp(1.3rem, 3vw, 2rem); padding-right: clamp(3rem, 5vw, 4.5rem); border: 3px double rgb(var(--c-border)); background: linear-gradient(120deg,rgb(var(--c-surface)),rgb(var(--c-surface-deep))); box-shadow: inset 0 0 0 3px rgb(var(--c-surface-soft)), 0 5px 16px rgb(var(--c-violet-700) / 0.0706); }
.moon-customer .dashboard-order-cta::after { content: ''; position: absolute; right: 4px; top: 4px; width: 62px; height: 62px; background: url('../dna_portal/moonlit/ornate-corner-v2.webp') center / contain no-repeat; transform: scaleX(-1); pointer-events: none; }
.moon-customer :is(.instruction-pill, .btn, .btn-primary, .order-journey-action) { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.moon-customer .instruction-pill { justify-content: flex-start; padding: 1rem; border-radius: 8px; font-weight: 600; }
.moon-customer .instruction-icon { display: grid; place-items: center; width: 36px; height: 36px; color: rgb(var(--c-violet-600-4)); background: rgb(var(--c-surface-deep)); border: 1px solid rgb(var(--c-violet-300-5)); border-radius: 50%; }
.moon-customer :is(.sample-step-icon, .rabbit-step-icon) { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto .8rem; color: rgb(var(--c-violet-600-4)); background: rgb(var(--c-surface-deep)); border: 1px solid rgb(var(--c-violet-300-5)); border-radius: 50%; }
.moon-customer :is(.sample-step-icon, .rabbit-step-icon) .lh-icon { width: 27px; height: 27px; }
.moon-customer :is(.sample-step-title, .rabbit-step-title) { font-size: clamp(1.7rem,3vw,2.25rem); }
.moon-customer :is(.sample-entry-card, .sample-step-card, .rabbit-step-card, .sample-review-card, .sample-complete-card) { border: 3px double rgb(var(--c-violet-400-4)); border-radius: 9px; box-shadow: inset 0 0 0 3px rgb(var(--c-surface-soft)),0 6px 18px rgb(var(--c-ink) / 0.051); }
.moon-customer .sample-review-card { padding: clamp(1.2rem, 3vw, 2rem); margin-inline: auto; }
.moon-customer .customer-portal-nav { border-radius: 7px; }
.moon-customer .customer-portal-nav .customer-portal-nav-order { border-radius: 999px; padding-inline: 1rem; }
.moon-customer :is(.order-step-number,.next-number) { display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .55rem; border: 1px solid rgb(var(--c-violet-400-5)); border-radius: 50%; font: 650 .9rem/1 var(--lh-sans); color: rgb(var(--c-deep)); background: rgb(var(--c-surface-deep)); }
.moon-customer :is(.results-filter-form label, .form-label) { font-size: .85rem; font-weight: 650; }
.moon-customer .results-filter-actions { align-self: end; }
.moon-customer .result-order-row { border-left: 3px solid rgb(var(--c-violet-500-4)); }
.moon-customer .result-order-actions { gap: .65rem; }
.moon-customer .results-filter-form :is(input, select) { font-weight: 400; }
.moon-customer .credits-form { padding: clamp(1rem, 2.5vw, 1.6rem); border-radius: 9px; }
.moon-customer .smart-card { border-radius: 8px; }
.moon-customer--order-thanks .next-action-card strong { font-weight: 500; }
.moon-customer--order-thanks .sample-warning-card span { font-weight: 400; line-height: 1.65; }
.moon-customer--order-thanks .order-code-line { font-weight: 500; }
.moon-customer--order-thanks .order-code { font-weight: 700; }
.moon-customer .auth-card { border-radius: 9px !important; border-color: rgb(var(--c-violet-300-2)); background: transparent; box-shadow: none; }
.moon-customer .auth-visual { border-radius: 48% 48% 8px 8px / 32% 32% 8px 8px; border: 4px double rgb(var(--c-violet-300-2)); box-shadow: 0 0 0 2px rgb(var(--c-bg-2)),0 0 0 3px rgb(var(--c-violet-300-2)); }
.moon-customer .auth-card .page-title { font-size: clamp(2rem,3.1vw,3rem) !important; line-height: 1.12 !important; letter-spacing: -.025em !important; }
.moon-customer .auth-btn { width: 100%; }
.moon-customer .auth-helper { text-align: center; margin-top: 1.2rem; font-size: .9rem; }
.moon-customer .card-auth { border: 0; background: transparent; box-shadow: none; }
.moon-customer :is(.form-errors,.form-error-summary) { padding: 1rem; margin-block: 1rem; }
.moon-customer :is(.credits-purchase-actions,.customer-return-actions) { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 640px) {
  .moon-customer .customer-portal-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem; overflow: visible; }
  .moon-customer .customer-portal-nav a { min-width: 0; padding: .6rem .45rem; font-size: .75rem; text-align: center; }
  .moon-customer .customer-portal-nav .customer-portal-nav-order { padding-inline: .45rem; }
  .moon-customer :is(.account-grid,.order-top-grid) { gap: 1rem; }
  .moon-customer :is(.order-hero,.account-hero,.results-page-hero) { margin-bottom: 1.2rem; }
  .moon-customer .dashboard-order-cta { padding-right: 2.8rem; }
  .moon-customer .dashboard-order-cta::after { width: 45px; height: 45px; }
  .moon-customer :is(.account-card,.password-panel) { padding: 1.15rem; }
  .moon-customer .account-card .stats-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .35rem; }
  .moon-customer .stat { min-width: 0; padding: .7rem .3rem; }
  .moon-customer .stat-num { font-size: 1.6rem; }
  .moon-customer .stat-label { font-size: .66rem; }
  .moon-customer .account-card .kv { align-items: flex-start; gap: .75rem; }
  .moon-customer .account-card .k { flex: 0 0 auto; }
  .moon-customer .account-card .v { min-width: 0; }
  .moon-customer .results-filter-form { grid-template-columns: minmax(0,1fr); }
  .moon-customer .results-filter-actions > * { flex: 1; }
  .moon-customer .auth-card { border: 0; padding: 0 !important; gap: 1.4rem; overflow: visible; }
  .moon-customer .auth-visual { margin: .3rem 1rem 0; min-height: 160px; }
  .moon-customer .auth-logo-image { max-width: 170px; }
  .moon-customer .auth-form-panel { padding: .4rem; }
  .moon-customer .card-auth { padding-inline: .2rem; }
}
@media print {
  .moon-customer :is(.dashboard-order-cta::after,.sample-step-icon,.rabbit-step-icon) { display: none; }
  .moon-customer :is(.account-card,.order-card,.customer-summary-card,.credits-form,.password-panel,.sample-review-card) { background: rgb(var(--c-pure-white)); border-color: rgb(var(--c-grey-500)); box-shadow: none; }
}

/* Moonlit lilac: market, homestead, staff, and recovery pages.
   Content keeps its existing forms, data attributes, and workflow states. */
.moon-secondary {
  color: var(--lh-ink);
  min-width: 0;
  --lh-soft: var(--lh-ink);
  --lh-white: var(--lh-ink);
  --lh-card: var(--lh-surface);
  --lh-card-2: var(--lh-surface-soft);
}
.moon-secondary :is(h1, h2, h3, h4) { color: var(--lh-ink); text-shadow: none; }
.moon-secondary h1 { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.moon-secondary :is(p, li) { line-height: 1.65; }
.moon-secondary :is(.page-heading, .orders-head, .waitlist-head, .chick-shop-status-head) { margin-bottom: 1.8rem; }
.moon-secondary :is(.page-title, .shop-hero h1, .egg-signup-hero h1) { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.moon-secondary :is(.section-kicker, .hero-kicker, .shop-kicker, .dash-eyebrow, .breed-icon) {
  color: var(--lh-accent); font-family: var(--lh-sans); font-size: .76rem;
  font-weight: 750; text-transform: uppercase; letter-spacing: .15em;
}
.moon-secondary :is(.card-subtitle, .mini-help, .helptext) { color: var(--lh-muted); text-shadow: none; }
.moon-secondary :is(input, select, textarea) { color-scheme: light; max-width: 100%; font: inherit; }
.moon-secondary :is(input, textarea)::placeholder { color: rgb(var(--c-border)); opacity: 1; }
.moon-secondary :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--lh-accent); }
.moon-secondary :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgb(var(--c-status-rerun)); outline-offset: 3px;
}
.moon-secondary :is(button, input[type="submit"], .btn, .btn-secondary, .pill-outline) { min-height: 2.65rem; }
.moon-secondary :is(.btn, .btn-primary, .btnpink, .credit-submit, .market-cta, .admin-btn.primary, .public-order-button) {
  color: rgb(var(--c-white)); -webkit-text-fill-color: rgb(var(--c-white));
  background: linear-gradient(135deg, rgb(var(--c-accent)), rgb(var(--c-deep)));
  border: 1px solid rgb(var(--c-neon));
  box-shadow: inset 0 1px 0 rgb(var(--c-violet-200)), 0 3px 12px rgb(var(--c-deep) / 0.18), 0 0 16px rgb(var(--c-violet-500-3) / 0.22);
}
.moon-secondary :is(.btn-secondary, .btn-inline-secondary, .btnghost, .pill-outline) {
  color: var(--lh-ink); -webkit-text-fill-color: currentColor;
  background: var(--lh-surface-soft); border: 1px solid var(--lh-border); box-shadow: none;
}
.moon-secondary :is(.btn-danger, .row-action-danger, .admin-btn.danger, .cancel-button) {
  color: rgb(var(--c-rose-600)); -webkit-text-fill-color: currentColor; background: rgb(var(--c-rose-100));
  border: 1px solid rgb(var(--c-rose-400-2)); box-shadow: none;
}
.moon-secondary :is(.btn-danger, .row-action-danger, .admin-btn.danger, .cancel-button):hover { background: rgb(var(--c-rose-100-2)); }
.moon-secondary :is(.btn, .btn-secondary, .market-cta, .admin-btn, .pill-outline) { text-decoration: none; }
.moon-secondary :is(.errorlist, .credit_error) { color: rgb(var(--c-rose-600)); }
.moon-secondary :is(.table-scroll, .table_scroll, .table-wrap, .table-responsive, .sheet-wrap) {
  max-width: 100%; overflow-x: auto; scrollbar-color: rgb(var(--c-violet-400-4)) rgb(var(--c-surface));
  overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch;
}
.moon-secondary th { font-weight: 750; }
.moon-secondary :is(th, td) { overflow-wrap: anywhere; }
.moon-secondary :is(img, video) { max-width: 100%; }
.moon-secondary :is(.hatch-glow, .sparkle::before, .sparkle::after) { display: none; }

/* Homestead pages share an editorial gallery rather than neon cards. */
.moon-breed .breed-wrapper { width: 100%; margin: 0; padding: clamp(.25rem, 2vw, 1rem); }
.moon-breed .breed-inner { max-width: 1080px; margin-inline: auto; }
.moon-breed .breed-hero { max-width: 840px; margin: .5rem auto 2rem; text-align: center; }
.moon-breed .breed-icon { text-align: center; margin-bottom: .75rem; }
.moon-breed .breed-hero .card-subtitle { max-width: 700px; margin: 1rem auto 0; font-weight: 400; font-size: 1.08rem; }
.moon-breed .breed-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1rem; margin: 1.8rem auto; }
.moon-breed .breed-image {
  display: block; width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover;
  border: 5px solid rgb(var(--c-bg-2)); outline: 1px solid rgb(var(--c-violet-400-8)); outline-offset: -3px;
  border-radius: 48% 48% 4px 4px; box-shadow: 0 10px 22px rgb(var(--c-ink) / 0.2);
}
.moon-breed :is(.breed-section, .breed-cta, .coming-soon-box) {
  max-width: 940px; margin: 1.5rem auto; padding: clamp(1.1rem, 2.8vw, 2rem);
  background: var(--lh-surface-soft); color: var(--lh-ink);
  border: 1px solid var(--lh-border); border-radius: 4px;
  box-shadow: 0 5px 16px rgb(var(--c-ink) / 0.08);
}
.moon-breed :is(.breed-section h2, .breed-cta h2) { margin-top: 0; font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; }
.moon-breed :is(.breed-section p, .breed-section li, .info-card p) { color: var(--lh-ink); max-width: 75ch; }
.moon-breed .breed-section p { text-align: left; }
.moon-breed :is(.comparison-grid, .genetics-box, .quick-facts, .info-grid) { min-width: 0; }
.moon-breed :is(.comparison-card, .info-card, .genetics-box li) { background: var(--lh-surface-soft); border-color: var(--lh-border); }
.moon-breed .breed-cta { text-align: center; border: 3px double rgb(var(--c-muted)); background: var(--lh-surface-deep); }
.moon-breed .breed-cta .btn { margin: .75rem .25rem 0; }
.moon-breed .hatch-page { padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.moon-breed :is(.hero-panel, .quick-start-card, .guide-toc-card, .section-shell) { border-radius: 4px; }
.moon-breed .hero-title { text-shadow: none; }
.moon-breed .hero-copy { color: var(--lh-ink); }
.moon-breed :is(.quick-start-list, .soft-list) { padding-left: 1.2rem; }
.moon-breed .guide-toc-card { top: 6.5rem; background: var(--lh-surface-soft); }
.moon-breed .guide-toc a { color: var(--lh-ink); display: block; padding: .6rem .7rem; }
.moon-breed .guide-toc a:hover { color: var(--lh-accent); background: var(--lh-surface-deep); }
.moon-breed .guide-section { scroll-margin-top: 7rem; }
.moon-breed .decor-photo { border-radius: 3px; }

/* Shops, reservations, and payment summaries. */
.moon-shop :is(.shop-hero, .egg-signup-hero, .waitlist-intro, .chick-shop-status-card, .status-card, .success-summary, .success-highlight) {
  border: 1px solid var(--lh-border); border-radius: 5px; background: var(--lh-surface-soft); color: var(--lh-ink);
  box-shadow: 0 8px 24px rgb(var(--c-violet-900) / 0.1);
}
.moon-shop :is(.shop-panel, .waitlist-form-card, .egg-signup-form) { border-radius: 5px; background: var(--lh-surface); }
.moon-shop .shop-hero { padding: clamp(1rem, 3vw, 2rem); }
.moon-shop .shop-hero-media { align-self: center; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); height: 400px; }
.moon-shop .hero-main-photo { min-height: 0; }
.moon-shop .hero-main-photo img { min-height: 0; height: 400px; }
.moon-shop .hero-side-stack { min-height: 0; grid-template-rows: repeat(2,minmax(0,1fr)); }
.moon-shop .hero-side-stack img { min-height: 0; height: 100%; border-radius: 4px; border: 2px solid rgb(var(--c-muted)); }
.moon-shop :is(.shop-lead, .status-subtitle, .waitlist-subtitle) { color: var(--lh-muted); }
.moon-shop :is(.shop-hero-notes, .shop-note-card, .shop-list-card, .shop-category-card, .scheduler-card, .cart-total-group, .testcard) { border-radius: 5px; }
.moon-shop :is(.shop-category-card, .shop-list-card, .scheduler-card) { border: 1px solid var(--lh-border); box-shadow: 0 6px 20px rgb(var(--c-ink) / 0.08); }
.moon-shop :is(.shop-category-card, .shop-list-card) { background: var(--lh-surface-soft); }
.moon-shop :is(.shop-hero-media, .shop-list-photo, .shop-category-photo) { overflow: hidden; }
.moon-shop .hero-main-photo img { border-radius: 45% 45% 3px 3px; border: 4px solid rgb(var(--c-bg-2)); }
.moon-shop :is(.shop-back-link, .shop-category-link) { color: var(--lh-accent); }
.moon-shop :is(.cart-sidebar, .shop-cart, .cart-panel) { align-self: start; }
.moon-shop .grand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; font-size: 1.15rem; }
.moon-shop :is(.status-line, .status-grid, .cart-line, .status-top-grid) { min-width: 0; overflow-wrap: anywhere; }
.moon-shop :is(.shop-view-pill, .btnghost, .status-actions a, .success-actions a) { min-height: 2.7rem; align-items: center; }
.moon-shop :is(.waitlist-form-card, .egg-signup-form) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  min-height: 2.9rem; background: var(--lh-surface-soft); color: var(--lh-ink); border: 1px solid var(--lh-border); border-radius: 4px;
}
.moon-shop :is(.waitlist-field, .egg-signup-form label) { color: var(--lh-ink); }
.moon-shop .waitlist-policy { background: var(--lh-surface-soft); color: var(--lh-ink); }
.moon-shop .status-pill { color: var(--lh-ink); }

/* The public marketplace has lilac shelves with dark, narrow gallery edges. */
.moon-market .moonlit-page { margin: 0; padding: 0 0 1rem; min-height: auto; background: transparent; color: var(--lh-ink); }
.moon-market .moon-wrap { width: 100%; max-width: 1180px; margin-inline: auto; }
.moon-market .moon-hero { padding: 0; min-height: 0; }
.moon-market .moon-hero-image { max-height: 280px; object-fit: contain; border: 3px solid rgb(var(--c-bg-2)); border-radius: 4px; background: rgb(var(--c-night)); }
.moon-market .moon-intro { padding: 1.6rem 0; }
.moon-market .moon-intro h1 { margin: .5rem 0 .8rem; font-size: clamp(2.5rem, 5vw, 4rem); }
.moon-market :is(.moon-intro p, .market-disclosure, .product-desc, .timeframe, .color-summary, .affiliate-disclosure) { color: var(--lh-muted); }
.moon-market :is(.market-coming-soon, .seasonal-banner, .featured-panel, .browse-panel, .category-hero) {
  background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-radius: 4px;
  box-shadow: 0 8px 22px rgb(var(--c-violet-900) / 0.09); color: var(--lh-ink);
}
.moon-market .market-coming-soon { padding: 1.2rem; border-style: double; border-width: 3px; }
.moon-market .market-coming-soon span { color: var(--lh-ink); font-size: clamp(1.7rem, 4vw, 2.6rem); text-shadow: none; }
.moon-market .market-coming-soon p { color: var(--lh-muted); font-size: 1rem; }
.moon-market :is(.seasonal-banner h2, .featured-panel h2, .browse-panel h2, .category-card b, .category-hero h1, .product-body strong, .modal-copy h2) { color: var(--lh-ink); text-shadow: none; }
.moon-market .category-hero { padding: clamp(1.2rem, 3vw, 2.4rem); margin: 1rem 0 1.5rem; }
.moon-market .category-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; }
.moon-market :is(.category-card, .market-product) {
  background: var(--lh-surface); color: var(--lh-ink); border: 1px solid rgb(var(--c-border)); border-radius: 4px;
  box-shadow: 0 4px 14px rgb(var(--c-ink) / 0.09);
}
.moon-market .category-card { border-top: 3px solid rgb(var(--c-bg-2)); }
.moon-market .category-card span { color: var(--lh-muted); }
.moon-market :is(.category-card:hover, .market-product:hover) { transform: translateY(-2px); border-color: rgb(var(--c-accent)); box-shadow: 0 8px 22px rgb(var(--c-violet-700-3) / 0.17); }
.moon-market .product-hit {
  all: unset; display: block; width: 100%; height: 100%; cursor: pointer; color: var(--lh-ink);
  text-align: left; border-radius: inherit; box-sizing: border-box;
}
.moon-market .product-hit:focus-visible { outline: 3px solid rgb(var(--c-status-rerun)); outline-offset: 3px; }
.moon-market .product-body { padding: 1.1rem; gap: .7rem; }
.moon-market .product-body strong { font-size: 1.3rem; line-height: 1.25; }
.moon-market :is(.product-kicker, .price-row em) { color: var(--lh-muted); }
.moon-market .love-note { color: var(--lh-muted); border-left: 2px solid rgb(var(--c-violet-400-4)); }
.moon-market :is(.love-note span, .price-row b) { color: var(--lh-ink); }
.moon-market :is(.moon-badge, .moon-pill, .subcategory-strip a) { background: var(--lh-surface-deep); color: var(--lh-ink); border-color: var(--lh-border); }
.moon-market .subcategory-strip a.active { color: rgb(var(--c-white)); background: rgb(var(--c-violet-600-4)); }
.moon-market .filter-bar { position: static; background: var(--lh-surface-deep); border-color: var(--lh-border); padding: .85rem; }
.moon-market :is(.filter-bar input, .filter-bar select, .suggestion-form input, .suggestion-form textarea, .cart-line input, .cart-add-form input) {
  background: var(--lh-surface-soft); border: 1px solid var(--lh-border); color: var(--lh-ink); min-height: 2.75rem; border-radius: 4px;
}
.moon-market :is(.filter-bar button, .suggestion-form button, .market-cta, .moon-staff-pill) { background: rgb(var(--c-violet-600-4)); color: rgb(var(--c-white)); min-height: 2.75rem; border-radius: 999px; }
.moon-market .moon-account-link { background: var(--lh-surface-soft); color: var(--lh-ink); border-color: var(--lh-border); }
.moon-market .market-modal {
  max-height: calc(100dvh - 2rem); overflow-y: auto; background: var(--lh-surface);
  border: 4px solid rgb(var(--c-bg-2)); outline: 1px solid rgb(var(--c-violet-300-2)); outline-offset: -3px; border-radius: 5px; color: var(--lh-ink);
}
.moon-market .market-modal::backdrop { background: rgb(var(--c-night) / 0.76); }
.moon-market .modal-close { width: 44px; height: 44px; background: rgb(var(--c-bg-2)); color: rgb(var(--c-surface-soft)); border: 1px solid rgb(var(--c-violet-300-2)); box-shadow: 0 2px 10px rgb(var(--c-ink) / 0.2667); }
.moon-market .modal-media { min-height: 300px; background: var(--lh-surface-deep); }
.moon-market .modal-copy { padding: 2rem; }
.moon-market :is(.modal-copy p, .modal-purchase, .cart-add-form label, .color-options legend, .color-choice) { color: var(--lh-ink); }
.moon-market .modal-note { background: var(--lh-surface-soft); color: var(--lh-ink); border-color: var(--lh-border); }
.moon-market :is(.market-secondary-link, .note-label) { color: var(--lh-accent); }
.moon-market .color-options { background: var(--lh-surface-soft); border-color: var(--lh-border); min-width: 0; }
.moon-market .color-choice { background: var(--lh-surface); border-color: var(--lh-border); min-height: 2.75rem; }
.moon-market .color-choice:has(input:checked) { outline: 2px solid rgb(var(--c-status-rerun)); }
.moon-market .color-choice:has(input:disabled) { opacity: .65; cursor: not-allowed; }
.moon-market .cart-total { color: var(--lh-ink); }
.market-carousel-controls { display: flex; gap: .5rem; margin: .75rem 0; justify-content: flex-end; }
.market-carousel-controls button { color: var(--lh-ink); background: var(--lh-surface); border: 1px solid var(--lh-border); border-radius: 999px; padding: .45rem 1rem; }
.market-receipts { overflow-x: auto; }

/* Administrative tools use the same materials, with denser spacing. */
.moon-market .market-admin { margin: 0; min-height: auto; background: transparent; color: var(--lh-ink); padding: 0; }
.moon-market .admin-wrap { width: 100%; padding: .5rem 0; }
.moon-market :is(.admin-top h1, .admin-top p, .admin-table td, .admin-table th, .inventory-card small, .inventory-card-head span, .inventory-toolbar span) { color: var(--lh-ink); }
.moon-market .admin-card { background: var(--lh-surface-soft); border-color: var(--lh-border); border-radius: 4px; overflow-x: auto; }
.moon-market :is(.admin-nav a, .admin-btn, .view-toggle a) { background: var(--lh-surface); border-color: var(--lh-border); color: var(--lh-ink); min-height: 2.65rem; display: inline-flex; align-items: center; justify-content: center; }
.moon-market :is(.admin-card input, .admin-card select, .admin-card textarea, .market-input) { background: var(--lh-field); color: var(--lh-ink); border-color: var(--lh-border); min-height: 2.6rem; }
.moon-market .admin-card :is(input[type="checkbox"], input[type="radio"]) { width: 1.15rem; min-height: 1.15rem; }
.moon-market .admin-card label { color: var(--lh-ink); }
.moon-market :is(.inventory-card, .drop-zone) { background: var(--lh-surface); border-color: var(--lh-border); }
.moon-market .admin-table { min-width: 620px; }
.moon-market .admin-table th { background: var(--lh-surface-deep); }
.moon-market .admin-table :is(th, td) { border-bottom: 1px solid rgb(var(--c-violet-300-2)); }
.moon-market .admin-table small { color: var(--lh-muted); }
.moon-market :is(.badge, .drag-handle) { background: var(--lh-surface-deep); color: var(--lh-ink); border-color: var(--lh-border); }
.moon-market .low { color: rgb(var(--c-amber-600-2)); }.moon-market .out { color: rgb(var(--c-rose-600)); }.moon-market .ok { color: rgb(var(--c-green-600)); }
.moon-staff { font-size: .95rem; }
.moon-staff :is(.content-card, .card-large) { max-width: 100%; }
.moon-staff :is(.staff-card, .staff_card, .credit-card, .labbench-panel, .chick-panel, .history-panel, .campaign-admin-list, .campaign-admin-form) {
  background: var(--lh-surface-soft); color: var(--lh-ink); border: 1px solid var(--lh-border); border-radius: 5px;
  box-shadow: 0 5px 16px rgb(var(--c-violet-900) / 0.08);
}
.moon-staff :is(.staff-card, .staff_card) { padding: clamp(.8rem, 2vw, 1.3rem); max-width: 100%; overflow-x: auto; }
.moon-staff .page-heading h1 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.moon-staff :is(.staff-tabs, .staff_tabs) { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.moon-staff :is(.staff-tab, .staff_tab, .staff-pill, .staff-sub-pill, .tab-pill) {
  display: inline-flex; align-items: center; min-height: 2.6rem; padding: .55rem .9rem; border: 1px solid rgb(var(--c-violet-400-4));
  background: var(--lh-surface-soft); color: var(--lh-ink); text-decoration: none; border-radius: 999px;
}
.moon-staff :is(.staff-tab-active, .staff_tab_active, .staff-pill.is-active, .staff-sub-pill.is-active, .tab-pill.is-active) { color: rgb(var(--c-white)); background: rgb(var(--c-violet-600-4)); border-color: rgb(var(--c-status-rerun)); }
.moon-staff .staff-nav-shell { background: var(--lh-surface-deep); border: 1px solid var(--lh-border); border-radius: 5px; }
.moon-staff :is(.staff-table, .staff_table) { width: 100%; border-collapse: collapse; font-size: .9rem; }
.moon-staff :is(.staff-table, .staff_table) th { background: var(--lh-surface-deep); color: var(--lh-ink); text-align: left; }
.moon-staff :is(.staff-table, .staff_table) :is(th, td) { border-bottom: 1px solid rgb(var(--c-violet-300-2)); padding: .8rem .65rem; }
.moon-staff :is(.staff-table, .staff_table) tbody tr:nth-child(even) { background: rgb(var(--c-surface)); }
.moon-staff :is(.staff-table, .staff_table) tbody tr:hover { background: rgb(var(--c-surface-deep)); }
.moon-staff :is(.staff-search-row, .staff_search_row, .staff_search_form) { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; }
.moon-staff :is(.staff-search-row, .staff_search_row, .staff_search_form) input { flex: 1; min-width: min(210px, 100%); min-height: 2.7rem; }
.moon-staff :is(.labbench-search-bar, .quick-receive-form) { background: var(--lh-surface); border-color: var(--lh-border); }
.moon-staff :is(.labbench-stat, .stat-pill, .credit-search) { background: var(--lh-surface); border-color: var(--lh-border); }
.moon-staff .labbench-stat strong { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; font-size: 2.5rem; }
.moon-staff .labbench-cyan { grid-column: 1 / -1; }
.moon-staff .labbench-cyan strong { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.3; }
.moon-staff :is(.labbench-order, .labbench-note) { background: var(--lh-surface); border-radius: 4px; color: var(--lh-ink); }
.moon-staff :is(.labbench-drag-handle, .labbench-empty) { color: var(--lh-muted); }
.moon-staff .labbench-footer-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.moon-staff :is(.staff-sample-card, .staff-workspace-section, .staff-side-note-card, .staff-notes-card, .history-card, .order-card, .table-card) { border-radius: 5px; }
.moon-staff :is(.staff-result-btn, .staff-tab-btn) { min-height: 2.6rem; border-radius: 4px; }
.moon-staff :is(.staff-result-btn.is-active, .staff-tab-btn.is-active) { outline: 2px solid rgb(var(--c-violet-600-4)); outline-offset: 1px; }
.moon-staff .staff-delete-panel .staff-delete-final { color: rgb(var(--c-rose-600)); background: rgb(var(--c-rose-100)); border-color: rgb(var(--c-rose-400-2)); }
.moon-staff :is(.staff-workspace-grid, .staff-workspace-main, .staff-workspace-sidebar, .campaign-admin, .credit-layout) { min-width: 0; }
.moon-staff .sheet-wrap { border: 1px solid var(--lh-border); background: var(--lh-surface-soft); }
.moon-staff .sheet-table th { background: var(--lh-surface-deep); color: var(--lh-ink); }
.moon-staff :is(.sheet-table input, .sheet-table textarea, .sheet-table select) { background: var(--lh-field); color: var(--lh-ink); }
.moon-staff .pagination { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.moon-staff .pagination :is(a, .current) { padding: .5rem .8rem; min-height: 2.65rem; border-radius: 4px; }

/* Sign-in entry and recovery states. */
.moon-portal .dash-hero-inner { background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-radius: 5px; }
.moon-portal .dash-title { font-family: var(--lh-serif); font-size-adjust: 0.46; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500; }
.moon-portal .dash-hero-image { border: 4px solid rgb(var(--c-bg-2)); border-radius: 45% 45% 3px 3px; }
.moon-portal .public-order-cta { background: var(--lh-surface); border: 1px solid var(--lh-border); border-radius: 5px; }
.moon-error .error-page-shell { max-width: 730px; text-align: center; margin: 1rem auto; padding: clamp(1rem, 5vw, 3rem); color: var(--lh-ink); }
.moon-error .error-page-moon { width: 62px; height: 62px; margin: 0 auto 1.5rem; border-radius: 50%; background: rgb(var(--c-violet-600-4)); box-shadow: inset 13px -8px 0 var(--lh-surface), 0 0 20px rgb(var(--c-violet-500-5) / 0.3333); }
.moon-error .error-page-shell p { color: var(--lh-muted); max-width: 54ch; margin: 1rem auto; }
.moon-error .error-page-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: 1.6rem; }

/* A restrained carved frame ties secondary reading pages to the main site. */
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero) {
  position: relative; isolation: isolate; padding: clamp(1.5rem, 4vw, 3rem) clamp(1.1rem, 4vw, 3rem);
  border: 3px double rgb(var(--c-muted)); border-radius: 3px;
  background: linear-gradient(140deg, rgb(var(--c-surface-soft)), rgb(var(--c-surface-deep)));
  box-shadow: inset 0 0 0 5px rgb(var(--c-surface-soft)), 0 8px 20px rgb(var(--c-ink) / 0.0627);
}
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::before,
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::after {
  content: ""; position: absolute; z-index: -1; top: 0; width: 66px; height: 66px; pointer-events: none;
  background: url('/static/dna_portal/moonlit/ornate-corner-v2.webp') left top / contain no-repeat;
}
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::before { left: 0; }
.moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::after { right: 0; transform: scaleX(-1); }
.moon-secondary .breed-hero .page-title { margin: .7rem 0; }
.moon-market :is(.admin-nav, .featured-controls) { align-items: center; }
.moon-market :is(.admin-nav a, .featured-controls button, .moon-pill) { gap: .45rem; }
.moon-market .admin-nav { padding: .8rem; background: var(--lh-surface-deep); border: 1px solid var(--lh-border); border-radius: 4px; }
.moon-market .admin-nav a { font-size: .86rem; box-shadow: none; }
.moon-market .admin-nav a.is-active,
.moon-market .view-toggle .admin-btn.active { background: rgb(var(--c-violet-600-4)); color: rgb(var(--c-white)); border-color: rgb(var(--c-status-rerun)); }
.moon-market .admin-card :is(h2, h3) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; }
.moon-market .admin-card > h2:first-child { margin-top: 0; }
.moon-market #inventoryTableView { max-width: 100%; overflow-x: auto; scrollbar-color: rgb(var(--c-violet-400-4)) rgb(var(--c-surface)); }
.moon-market #inventoryTableView .admin-table { min-width: 1660px; }
.moon-market #inventoryTableView :is(th, td) { min-width: 135px; }
.moon-market #inventoryTableView :is(th, td):first-child { min-width: 200px; }
.moon-market #inventoryTableView :is(th, td):nth-child(2) { min-width: 90px; }
.moon-market .admin-card input[type="file"] { padding: .6rem; }
.moon-market .image-edit-fields { grid-template-columns: minmax(0,1fr); align-content: start; }
.moon-market .image-edit-fields input[type="range"] { padding: 0; accent-color: var(--lh-accent); }
.moon-market .market-field-control { display: block; min-width: 0; font-weight: 400; overflow-wrap: anywhere; line-height: 1.6; }
.moon-market .market-field-control input[type="file"] { margin-top: .5rem; }
.moon-market .admin-grid { align-items: start; }
.moon-market .admin-card :is(input, select, textarea) { font-weight: 400; }
.moon-staff .staff-nav-shell { padding: .9rem; }
.moon-staff .staff-main-pills { padding-bottom: .75rem; margin-bottom: .75rem; border-bottom: 1px solid rgb(var(--c-violet-300-2)); }
.moon-staff .staff-sub-pills:empty { display: none; }
.moon-staff :is(.staff-pill, .staff-sub-pill) { box-shadow: none; font-weight: 650; }
.moon-staff :is(.staff-pill.is-active, .staff-sub-pill.is-active) { box-shadow: inset 0 1px 0 rgb(var(--c-violet-300-3)), 0 2px 7px rgb(var(--c-deep) / 0.1255); }

/* Long policy and location content gets the same deliberate reading rhythm. */
.moon-document { max-width: 1080px; margin-inline: auto; }
.moon-policy .moonwrap { padding: 0; }
.moon-policy .mooncard { max-width: 960px; margin: 0 auto; }
.moon-policy .moonhead { text-align: center; }
.moon-policy .moonbadge { color: var(--lh-accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 750; }
.moon-policy .moontitle { font-size: clamp(2rem, 4vw, 3.5rem); margin: .8rem 0; }
.moon-policy .moonsub { color: var(--lh-muted); max-width: 64ch; margin: .8rem auto 0; }
.moon-policy .policy-jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; padding: 1.1rem 0; }
.moon-policy .policy-jump-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .85rem; border: 1px solid rgb(var(--c-violet-400-4)); border-radius: 999px; background: var(--lh-surface-soft); color: var(--lh-ink); font-size: .85rem; text-decoration: none; }
.moon-policy .policy-jump-nav a:hover { background: var(--lh-surface-deep); border-color: var(--lh-accent); }
.moon-policy .moonpanel { padding: clamp(1.1rem, 3vw, 2.5rem); background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-radius: 4px; }
.moon-policy .moonh { font: 500 clamp(1.4rem, 2.5vw, 1.9rem)/1.25 var(--lh-serif); font-size-adjust: 0.46; color: var(--lh-ink); margin: 0 0 .8rem; scroll-margin-top: 7rem; }
.moon-policy .moonp { margin: .8rem 0 0; color: var(--lh-ink); }
.moon-policy .moonstrong { font-weight: 750; }
.moon-policy .moondivider { border-top: 1px solid rgb(var(--c-violet-300-2)); margin: 2rem 0; }
.moon-policy .mooncallout { margin: 1.1rem 0 1.6rem; padding: 1.25rem; background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-violet-400-4)); border-left: 4px solid var(--lh-accent); border-radius: 3px; }
.moon-policy .mooncalltitle { font-weight: 750; margin-bottom: .8rem; }
.moon-policy .moonlist { padding-left: 1.2rem; margin: .5rem 0; }
.moon-policy .moonlist li + li { margin-top: .5rem; }
.moon-policy .moongrid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin: .9rem 0 1.8rem; }
.moon-policy .moonstat { padding: 1.1rem 1.3rem; border: 1px solid rgb(var(--c-violet-300-2)); background: var(--lh-surface); border-radius: 3px; }
.moon-policy .moonstat.full { grid-column: 1/-1; }
.moon-policy .moonstatlabel { color: var(--lh-muted); font-size: .85rem; font-weight: 650; }
.moon-policy .moonstatvalue { font: 500 1.75rem/1.2 var(--lh-serif); font-size-adjust: 0.46; margin-top: .4rem; }
.moon-policy .moonfooter { margin-top: 2rem; border-top: 1px solid rgb(var(--c-violet-300-2)); padding-top: 1.5rem; }
.moon-policy .moonsign { color: var(--lh-muted); font-family: var(--lh-serif); font-size-adjust: 0.46; font-style: italic; font-size: 1.1rem; line-height: 1.65; }
.moon-florida .content-card { padding: 0; border: 0; background: transparent; box-shadow: none; }
.moon-florida .lh-section { margin: 0 0 2.2rem; }
.moon-florida .lh-section:first-child { text-align: center; padding: clamp(1.5rem,4vw,3rem); border: 3px double rgb(var(--c-muted)); background: linear-gradient(140deg,rgb(var(--c-surface-soft)),rgb(var(--c-surface-deep))); box-shadow: inset 0 0 0 5px rgb(var(--c-surface-soft)); }
.moon-florida .section-head { margin-bottom: 1rem; }
.moon-florida .page-title { margin: .6rem auto 1rem; max-width: 22ch; }
.moon-florida :is(h2,h3) { font-family: var(--lh-serif); font-size-adjust: 0.46; font-weight: 500; line-height: 1.25; }
.moon-florida h2 { font-size: clamp(1.7rem,3vw,2.3rem); margin: .5rem 0; }
.moon-florida h3 { font-size: 1.5rem; margin: 0 0 .8rem; }
.moon-florida .card-subtitle { max-width: 70ch; margin-inline: auto; }
.moon-florida .lh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.moon-florida .lh-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.moon-florida .lh-card { display: flex; flex-direction: column; padding: 1.5rem; background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-top: 3px solid rgb(var(--c-violet-700-4)); border-radius: 3px; box-shadow: 0 5px 15px rgb(var(--c-ink) / 0.0627); }
.moon-florida .lh-card p { margin: 0 0 1.2rem; }
.moon-florida .lh-card .btn-secondary { margin-top: auto; display: inline-flex; justify-content: center; align-items: center; padding: .7rem 1rem; line-height: 1.4; text-align: center; }
.moon-florida .lh-section:nth-child(2) { padding: 1.5rem 2rem; background: var(--lh-surface-soft); border: 1px solid var(--lh-border); border-radius: 3px; }

@media (max-width: 1000px) {
  .moon-market .filter-bar.has-subcategory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-shop .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .moon-shop :is(.cart-sidebar, .shop-cart, .cart-panel) { position: static; }
  .moon-breed .guide-toc-card { position: static; }
}
@media (max-width: 720px) {
  .moon-market .admin-nav { gap: .4rem; padding: .65rem; }
  .moon-market .admin-nav a { flex: 1 0 auto; min-height: 44px; padding: .5rem .65rem; }
  .moon-staff .staff-main-pills { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .moon-staff .staff-pill { justify-content: center; text-align: center; padding: .55rem .65rem; font-size: .8rem; }
  .moon-staff .staff-sub-pills { gap: .4rem; }
  .moon-staff .staff-sub-pill { font-size: .78rem; padding: .5rem .7rem; }
  .moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::before,
  .moon-secondary :is(.breed-hero, .moonhead, .moon-florida-hero)::after { width: 43px; height: 43px; }
  .moon-florida .lh-card-grid { grid-template-columns: 1fr; }
  .moon-florida :is(.lh-card, .lh-section:nth-child(2)) { padding: 1.2rem; }
  .moon-florida .lh-actions > a { width: 100%; }
  .moon-policy .moongrid { grid-template-columns: 1fr; }
  .moon-policy .mooncallout { padding: 1rem; }
  .moon-secondary :is(.page-title, .shop-hero h1, .egg-signup-hero h1) { font-size: clamp(2rem, 8vw, 2.8rem); }
  .moon-secondary :is(button, .btn, .btn-secondary, .staff-tab, .staff_tab, .staff-pill, .staff-sub-pill) { min-height: 44px; }
  .moon-breed .breed-gallery { gap: .7rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-breed .breed-gallery > :only-child { grid-column: 1/-1; }
  .moon-breed .breed-image { aspect-ratio: 4/5; }
  .moon-breed :is(.quick-facts, .info-grid, .comparison-grid, .genetics-box ul) { grid-template-columns: 1fr; }
  .moon-breed :is(.breed-section, .breed-cta) { padding: 1rem; }
  .moon-shop :is(.shop-hero, .shop-hero-notes, .shop-category-grid, .status-top-grid, .status-grid) { grid-template-columns: 1fr; }
  .moon-shop .shop-hero-media { height: 270px; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
  .moon-shop .hero-main-photo img { height: 270px; }
  .moon-shop .shop-list-card { grid-template-columns: 1fr; }
  .moon-shop .shop-list-photo img { max-height: 320px; width: 100%; object-fit: cover; }
  .moon-market .modal-shell { grid-template-columns: 1fr; }
  .moon-market .modal-copy { padding: 1.2rem; }
  .moon-market .modal-media { min-height: 180px; max-height: 300px; }
  .moon-market .modal-media img { aspect-ratio: 4/3; }
  .moon-market .market-modal { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
  .moon-market .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moon-market :is(.category-card, .featured-panel, .browse-panel) { padding: .85rem; }
  .moon-market .filter-bar.has-subcategory { grid-template-columns: 1fr; }
  .moon-staff :is(.labbench-grid, .credit-layout, .campaign-admin, .staff-workspace-grid) { grid-template-columns: 1fr; }
  .moon-staff .staff-search-row > * { max-width: 100%; }
  .moon-staff :is(.staff-table, .staff_table) { min-width: 620px; }
  .moon-staff .staff-table:has(td[data-label]) { min-width: 0; }
  .moon-staff .staff_table.mobile-credit-table { min-width: 0; }
  .moon-staff :is(.staff-card, .staff_card) { padding: .75rem; }
  .moon-staff:has(.sheet-wrap) { overflow-x: clip; }
  .moon-staff .staff-sample-summary-top { flex-direction: column; align-items: stretch; }
  .moon-staff .staff-sample-card-actions { width: 100%; justify-content: flex-start; }
  .moon-staff .staff-delete-sample[open] { flex: 1 0 100%; width: 100%; }
  .moon-staff .staff-delete-sample[open] .staff-delete-panel { position: static; inset: auto; width: 100%; min-width: 0; max-width: 100%; margin-top: .65rem; }
  .moon-staff :is(.breed-need-admin-row, .donor-wall-admin-row) { grid-template-columns: 1fr; }
  .moon-portal .dash-hero-inner { grid-template-columns: 1fr; padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .moon-secondary *, .moon-secondary *::before, .moon-secondary *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .moon-market :is(.category-card:hover, .market-product:hover) { transform: none; }
}

/* Staff typing boxes: a lighter field so notes and entries stand off the lilac cards. */
body .moon-staff :is(textarea, select, input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"]) {
  background-color: rgb(var(--c-pure-white)) !important;
  color: rgb(var(--c-ink));
}
body .moon-staff :is(textarea, input):focus {
  border-color: rgb(var(--c-accent)) !important;
  box-shadow: 0 0 0 3px rgb(var(--c-neon) / .25);
}

/* Decorative stars are real animation layers, separate from the painted artwork. */
.haven-glints {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  border-radius: inherit;
}
.haven-glint {
  --spark-duration: 4.2s;
  position: absolute;
  left: var(--spark-x, 50%);
  top: var(--spark-y, 50%);
  width: var(--spark-size, 24px);
  height: var(--spark-size, 24px);
  color: rgb(var(--c-white));
  opacity: .4;
  transform: translate(-50%, -50%) scale(.74);
  filter: drop-shadow(0 0 3px rgb(var(--c-white))) drop-shadow(0 0 9px rgb(var(--c-violet-300-6))) drop-shadow(0 0 15px rgb(var(--c-violet-400-7)));
  animation: haven-star-shimmer var(--spark-duration) ease-in-out var(--spark-delay, 0s) infinite;
  pointer-events: none;
}
.haven-glint:nth-child(2n) { --spark-duration: 3.8s; }
.haven-glint:nth-child(3n) { --spark-duration: 4.8s; }
.haven-glint::before, .haven-glint::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0, 58% 40%, 100% 50%, 58% 60%, 50% 100%, 42% 60%, 0 50%, 42% 40%);
}
.haven-glint::after { inset: 20%; transform: rotate(45deg); opacity: .45; }
@keyframes haven-star-shimmer {
  0%, 100% { opacity: .25; transform: translate(-50%, -50%) scale(.6); }
  28% { opacity: .5; transform: translate(-50%, -50%) scale(.86); }
  51% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  73% { opacity: .48; transform: translate(-50%, -50%) scale(.8); }
}
.sparkle-toggle {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid rgb(var(--c-violet-400-5));
  border-radius: 999px;
  background: rgb(var(--c-ink) / 0.902);
  color: rgb(var(--c-violet-100));
  font: .8rem/1.3 var(--lh-sans);
  cursor: pointer;
}
.sparkle-toggle:hover { color: rgb(var(--c-violet-100-2)); background: rgb(var(--c-violet-700-3)); }
.sparkle-toggle:focus-visible { outline-color: rgb(var(--c-violet-200)); }
.sparkle-toggle[aria-pressed='false'] { background: rgb(var(--c-bg-2)); color: rgb(var(--c-surface-deep)); }
html[data-sparkles='off'] .moon-star,
html[data-sparkles='off'] .haven-glint,
html[data-sparkles='off'] .specimen-spark { animation: none !important; }
html[data-sparkles='off'] .moon-star { opacity: .65; transform: none; }
html[data-sparkles='off'] .specimen-spark { opacity: .65; }
html[data-sparkles='off'] .haven-glint { opacity: .55; transform: translate(-50%, -50%) scale(.74); }
@media (prefers-reduced-motion: reduce) {
  .moon-star, .haven-glint, .specimen-spark { animation: none !important; }
  .haven-glint { opacity: .55; transform: translate(-50%, -50%) scale(.74); }
  /* Only the explicit sparkle control can opt these decorative stars back in. */
  html[data-sparkles='on'] .moon-star { animation: moon-twinkle var(--spark-duration, 5.8s) ease-in-out infinite !important; }
  html[data-sparkles='on'] .haven-glint { animation: haven-star-shimmer var(--spark-duration) ease-in-out var(--spark-delay, 0s) infinite !important; }
  html[data-sparkles='on'] .specimen-spark { animation: moon-glint 6.6s ease-in-out infinite !important; }
  html[data-sparkles='on'] .moon-stars > .moon-star:nth-child(1) { animation-delay: -1.6s !important; }
  html[data-sparkles='on'] .moon-stars > .moon-star:nth-child(2) { animation-delay: -3.2s !important; }
  html[data-sparkles='on'] .moon-stars > .moon-star:nth-child(3) { animation-delay: -.7s !important; }
  html[data-sparkles='on'] .moon-stars > .moon-star:nth-child(4) { animation-delay: -4.1s !important; }
  html[data-sparkles='on'] .moon-stars > .moon-star:nth-child(5) { animation-delay: -2.3s !important; }
  html[data-sparkles='on'] .moon-stars > .moon-star:nth-child(6) { animation-delay: -5.2s !important; }
}
@media print { .haven-glints, .sparkle-toggle { display: none !important; } }

