/* TeknoParrot Nation homepage. GENERATED by tools/nation-site/build.py. */

:root body:is(.editorial-page-active, .home-page-active):not(.admin-page) {
    --gate-rosette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200' width='200' height='200'%3E%3Cdefs%3E%3Cpath id='a' d='M82 0l4.9 1.9 2 2-2.1 1.8-5.1 1.4-5.1 1.3-2.2 1.4 1.8 1.9 4.6 2.5 4.5 2.8 1.6 2.3-2.4 1.4-5.3 0.5-5.2 0.4-2.5 1 1.5 2.2 4.1 3.2 3.9 3.5 1.2 2.6-2.6 0.9-5.3-0.3-5.2-0.6-2.6 0.5 1.1 2.5 3.4 3.9 3.3 4.1 0.8 2.7-2.8 0.5-5.1-1.3-5.1-1.4-2.6 0.1 0.6 2.5 2.7 4.5 2.6 4.6 0.2 2.8-2.8 0-4.8-2.1-4.7-2.3-2.6-0.4 0.1 2.6 1.9 4.9 1.7 5-0.2 2.8-2.8-0.5-4.4-2.9-4.2-3.1-2.5-0.8-0.3 2.6 1 5.1 0.8 5.2-0.7 2.7-2.6-0.9-3.8-3.7-3.7-3.8-2.3-1.2-0.8 2.5 0.1 5.3-0.1 5.2-1.1 2.6-2.5-1.4-3.1-4.3-2.9-4.4-2.1-1.6-1.2 2.4-0.8 5.2-1 5.1-1.6 2.3-2.1-1.8-2.4-4.7-2.1-4.8-1.7-2-1.6 2.1-1.7 5-1.9 4.9-2 2-1.8-2.1-1.4-5.1-1.3-5.1-1.4-2.2-1.9 1.8-2.5 4.6-2.8 4.5-2.3 1.6-1.4-2.4-0.5-5.3-0.4-5.2-1-2.5-2.2 1.5-3.2 4.1-3.5 3.9-2.6 1.2-0.9-2.6 0.3-5.3 0.6-5.2-0.5-2.6-2.5 1.1-3.9 3.4-4.1 3.3-2.7 0.8-0.5-2.8 1.3-5.1 1.4-5.1-0.1-2.6-2.5 0.6-4.5 2.7-4.6 2.6-2.8 0.2 0-2.8 2.1-4.8 2.3-4.7 0.4-2.6-2.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4-2.6-2.7-1.7-2.4-0.2-1.8 1.6-0.8 3 0 3.6 0.8 3.6 0.9 2.8 0.6 1.4-0.2 0-1.5-1.1-2.6-1.7-3.3-1.4-3.4-0.7-2.9 0.6-1.7 1.8-0.2 2.7 1.1 3.1 2.1 2.9 2.3 2.3 1.6 1.4 0.3 0.6-1.3-0.1-2.8-0.2-3.8 0-3.7 0.5-2.9 1.2-1.4 1.7 0.5 2 2.1 2.1 3.2 1.9 3.2 1.5 2.4 1.2 0.8 1-1.1 1-2.6 1.2-3.5 1.4-3.5 1.6-2.5 1.6-0.8 1.4 1.1 1.1 2.8 0.7 3.7 0.5 3.7 0.5 2.7 0.8 1.2 1.3-0.5 2-2.1 2.4-2.8 2.7-2.6 2.4-1.7 1.8-0.2 0.8 1.6 0 3-0.8 3.6-0.9 3.6-0.6 2.8 0.2 1.4 1.5 0 2.6-1.1 3.3-1.7 3.4-1.4 2.9-0.7 1.7 0.6 0.2 1.8-1.1 2.7-2.1 3.1-2.3 2.9-1.6 2.3-0.3 1.4 1.3 0.6 2.8-0.1 3.8-0.2 3.7 0 2.9 0.5 1.4 1.2-0.5 1.7-2.1 2-3.2 2.1-3.2 1.9-2.4 1.5-0.8 1.2 1.1 1 2.6 1 3.5 1.2z'/%3E%3C/defs%3E%3Cg fill='none' stroke='%23f3d38a' stroke-opacity='.34' stroke-width='.4'%3E%3Cuse href='%23a' transform='rotate(0)'/%3E%3Cuse href='%23a' transform='rotate(1.7)'/%3E%3Cuse href='%23a' transform='rotate(3.3)'/%3E%3Cuse href='%23a' transform='rotate(5)'/%3E%3Cuse href='%23a' transform='rotate(6.7)'/%3E%3Cuse href='%23a' transform='rotate(8.3)'/%3E%3Cuse href='%23b' transform='rotate(0)'/%3E%3Cuse href='%23b' transform='rotate(3)'/%3E%3Cuse href='%23b' transform='rotate(6)'/%3E%3Cuse href='%23b' transform='rotate(9)'/%3E%3Cuse href='%23b' transform='rotate(12)'/%3E%3Cuse href='%23c' transform='rotate(0)'/%3E%3Cuse href='%23c' transform='rotate(5.6)'/%3E%3Cuse href='%23c' transform='rotate(11.2)'/%3E%3Cuse href='%23c' transform='rotate(16.9)'/%3E%3Ccircle r='93'/%3E%3Ccircle r='95.5' stroke-dasharray='.6 1.4'/%3E%3Ccircle r='71'/%3E%3Ccircle r='49'/%3E%3Ccircle r='16'/%3E%3C/g%3E%3C/svg%3E");
    --gate-rosette-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200' width='200' height='200'%3E%3Cdefs%3E%3Cpath id='a' d='M82 0l4.9 1.9 2 2-2.1 1.8-5.1 1.4-5.1 1.3-2.2 1.4 1.8 1.9 4.6 2.5 4.5 2.8 1.6 2.3-2.4 1.4-5.3 0.5-5.2 0.4-2.5 1 1.5 2.2 4.1 3.2 3.9 3.5 1.2 2.6-2.6 0.9-5.3-0.3-5.2-0.6-2.6 0.5 1.1 2.5 3.4 3.9 3.3 4.1 0.8 2.7-2.8 0.5-5.1-1.3-5.1-1.4-2.6 0.1 0.6 2.5 2.7 4.5 2.6 4.6 0.2 2.8-2.8 0-4.8-2.1-4.7-2.3-2.6-0.4 0.1 2.6 1.9 4.9 1.7 5-0.2 2.8-2.8-0.5-4.4-2.9-4.2-3.1-2.5-0.8-0.3 2.6 1 5.1 0.8 5.2-0.7 2.7-2.6-0.9-3.8-3.7-3.7-3.8-2.3-1.2-0.8 2.5 0.1 5.3-0.1 5.2-1.1 2.6-2.5-1.4-3.1-4.3-2.9-4.4-2.1-1.6-1.2 2.4-0.8 5.2-1 5.1-1.6 2.3-2.1-1.8-2.4-4.7-2.1-4.8-1.7-2-1.6 2.1-1.7 5-1.9 4.9-2 2-1.8-2.1-1.4-5.1-1.3-5.1-1.4-2.2-1.9 1.8-2.5 4.6-2.8 4.5-2.3 1.6-1.4-2.4-0.5-5.3-0.4-5.2-1-2.5-2.2 1.5-3.2 4.1-3.5 3.9-2.6 1.2-0.9-2.6 0.3-5.3 0.6-5.2-0.5-2.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9 2.4-1.5 0.8-1.2-1.1-1-2.6-1-3.5-1.2-3.5-1.4-2.5-1.6-0.8-1.6 1.1-1.4 2.8-1.1 3.7-0.7 3.7-0.5 2.7-0.5 1.2-0.8-0.5-1.3-2.1-2-2.8-2.4-2.6-2.7-1.7-2.4-0.2-1.8 1.6-0.8 3 0 3.6 0.8 3.6 0.9 2.8 0.6 1.4-0.2 0-1.5-1.1-2.6-1.7-3.3-1.4-3.4-0.7-2.9 0.6-1.7 1.8-0.2 2.7 1.1 3.1 2.1 2.9 2.3 2.3 1.6 1.4 0.3 0.6-1.3-0.1-2.8-0.2-3.8 0-3.7 0.5-2.9 1.2-1.4 1.7 0.5 2 2.1 2.1 3.2 1.9 3.2 1.5 2.4 1.2 0.8 1-1.1 1-2.6 1.2-3.5 1.4-3.5 1.6-2.5 1.6-0.8 1.4 1.1 1.1 2.8 0.7 3.7 0.5 3.7 0.5 2.7 0.8 1.2 1.3-0.5 2-2.1 2.4-2.8 2.7-2.6 2.4-1.7 1.8-0.2 0.8 1.6 0 3-0.8 3.6-0.9 3.6-0.6 2.8 0.2 1.4 1.5 0 2.6-1.1 3.3-1.7 3.4-1.4 2.9-0.7 1.7 0.6 0.2 1.8-1.1 2.7-2.1 3.1-2.3 2.9-1.6 2.3-0.3 1.4 1.3 0.6 2.8-0.1 3.8-0.2 3.7 0 2.9 0.5 1.4 1.2-0.5 1.7-2.1 2-3.2 2.1-3.2 1.9-2.4 1.5-0.8 1.2 1.1 1 2.6 1 3.5 1.2z'/%3E%3C/defs%3E%3Cg fill='none' stroke='%23f3d38a' stroke-opacity='.2' stroke-width='.4'%3E%3Cuse href='%23a' transform='rotate(0)'/%3E%3Cuse href='%23a' transform='rotate(1.7)'/%3E%3Cuse href='%23a' transform='rotate(3.3)'/%3E%3Cuse href='%23a' transform='rotate(5)'/%3E%3Cuse href='%23a' transform='rotate(6.7)'/%3E%3Cuse href='%23a' transform='rotate(8.3)'/%3E%3Cuse href='%23b' transform='rotate(0)'/%3E%3Cuse href='%23b' transform='rotate(3)'/%3E%3Cuse href='%23b' transform='rotate(6)'/%3E%3Cuse href='%23b' transform='rotate(9)'/%3E%3Cuse href='%23b' transform='rotate(12)'/%3E%3Cuse href='%23c' transform='rotate(0)'/%3E%3Cuse href='%23c' transform='rotate(5.6)'/%3E%3Cuse href='%23c' transform='rotate(11.2)'/%3E%3Cuse href='%23c' transform='rotate(16.9)'/%3E%3Ccircle r='93'/%3E%3Ccircle r='95.5' stroke-dasharray='.6 1.4'/%3E%3Ccircle r='71'/%3E%3Ccircle r='49'/%3E%3Ccircle r='16'/%3E%3C/g%3E%3C/svg%3E");
    --gate-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' width='240' height='16'%3E%3Cg fill='none' stroke='%23f3d38a' stroke-opacity='.32' stroke-width='.6'%3E%3Cpath d='M0 8L4 9.6L8 11L12 11.8L16 12L20 11.5L24 10.4L28 8.8L32 7.2L36 5.6L40 4.5L44 4L48 4.2L52 5L56 6.4L60 8L64 9.6L68 11L72 11.8L76 12L80 11.5L84 10.4L88 8.8L92 7.2L96 5.6L100 4.5L104 4L108 4.2L112 5L116 6.4L120 8L124 9.6L128 11L132 11.8L136 12L140 11.5L144 10.4L148 8.8L152 7.2L156 5.6L160 4.5L164 4L168 4.2L172 5L176 6.4L180 8L184 9.6L188 11L192 11.8L196 12L200 11.5L204 10.4L208 8.8L212 7.2L216 5.6L220 4.5L224 4L228 4.2L232 5L236 6.4L240 8'/%3E%3Cpath d='M0 8L4 6.4L8 5L12 4.2L16 4L20 4.5L24 5.6L28 7.2L32 8.8L36 10.4L40 11.5L44 12L48 11.8L52 11L56 9.6L60 8L64 6.4L68 5L72 4.2L76 4L80 4.5L84 5.6L88 7.2L92 8.8L96 10.4L100 11.5L104 12L108 11.8L112 11L116 9.6L120 8L124 6.4L128 5L132 4.2L136 4L140 4.5L144 5.6L148 7.2L152 8.8L156 10.4L160 11.5L164 12L168 11.8L172 11L176 9.6L180 8L184 6.4L188 5L192 4.2L196 4L200 4.5L204 5.6L208 7.2L212 8.8L216 10.4L220 11.5L224 12L228 11.8L232 11L236 9.6L240 8'/%3E%3Cpath d='M0 10.5L4 10.3L8 9.7L12 8.8L16 7.7L20 6.8L24 6L28 5.6L32 5.6L36 6L40 6.7L44 7.7L48 8.8L52 9.7L56 10.3L60 10.5L64 10.3L68 9.7L72 8.8L76 7.7L80 6.8L84 6L88 5.6L92 5.6L96 6L100 6.8L104 7.7L108 8.8L112 9.7L116 10.3L120 10.5L124 10.3L128 9.7L132 8.8L136 7.7L140 6.8L144 6L148 5.6L152 5.6L156 6L160 6.7L164 7.7L168 8.8L172 9.7L176 10.3L180 10.5L184 10.3L188 9.7L192 8.8L196 7.7L200 6.8L204 6L208 5.6L212 5.6L216 6L220 6.8L224 7.7L228 8.8L232 9.7L236 10.3L240 10.5'/%3E%3C/g%3E%3C/svg%3E");
    --gate-waves-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16' width='240' height='16'%3E%3Cg fill='none' stroke='%238a6414' stroke-opacity='.42' stroke-width='.6'%3E%3Cpath d='M0 8L4 9.6L8 11L12 11.8L16 12L20 11.5L24 10.4L28 8.8L32 7.2L36 5.6L40 4.5L44 4L48 4.2L52 5L56 6.4L60 8L64 9.6L68 11L72 11.8L76 12L80 11.5L84 10.4L88 8.8L92 7.2L96 5.6L100 4.5L104 4L108 4.2L112 5L116 6.4L120 8L124 9.6L128 11L132 11.8L136 12L140 11.5L144 10.4L148 8.8L152 7.2L156 5.6L160 4.5L164 4L168 4.2L172 5L176 6.4L180 8L184 9.6L188 11L192 11.8L196 12L200 11.5L204 10.4L208 8.8L212 7.2L216 5.6L220 4.5L224 4L228 4.2L232 5L236 6.4L240 8'/%3E%3Cpath d='M0 8L4 6.4L8 5L12 4.2L16 4L20 4.5L24 5.6L28 7.2L32 8.8L36 10.4L40 11.5L44 12L48 11.8L52 11L56 9.6L60 8L64 6.4L68 5L72 4.2L76 4L80 4.5L84 5.6L88 7.2L92 8.8L96 10.4L100 11.5L104 12L108 11.8L112 11L116 9.6L120 8L124 6.4L128 5L132 4.2L136 4L140 4.5L144 5.6L148 7.2L152 8.8L156 10.4L160 11.5L164 12L168 11.8L172 11L176 9.6L180 8L184 6.4L188 5L192 4.2L196 4L200 4.5L204 5.6L208 7.2L212 8.8L216 10.4L220 11.5L224 12L228 11.8L232 11L236 9.6L240 8'/%3E%3Cpath d='M0 10.5L4 10.3L8 9.7L12 8.8L16 7.7L20 6.8L24 6L28 5.6L32 5.6L36 6L40 6.7L44 7.7L48 8.8L52 9.7L56 10.3L60 10.5L64 10.3L68 9.7L72 8.8L76 7.7L80 6.8L84 6L88 5.6L92 5.6L96 6L100 6.8L104 7.7L108 8.8L112 9.7L116 10.3L120 10.5L124 10.3L128 9.7L132 8.8L136 7.7L140 6.8L144 6L148 5.6L152 5.6L156 6L160 6.7L164 7.7L168 8.8L172 9.7L176 10.3L180 10.5L184 10.3L188 9.7L192 8.8L196 7.7L200 6.8L204 6L208 5.6L212 5.6L216 6L220 6.8L224 7.7L228 8.8L232 9.7L236 10.3L240 10.5'/%3E%3C/g%3E%3C/svg%3E");
    --gate-seal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' width='120' height='120'%3E%3Cg fill='none' stroke='%23f3d38a' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='60' cy='60' r='57' stroke-width='1.4'/%3E%3Ccircle cx='60' cy='60' r='53' stroke-width='.6'/%3E%3Ccircle cx='60' cy='60' r='47' stroke-width='1.8' stroke-dasharray='0 6.15'/%3E%3Ccircle cx='60' cy='60' r='41' stroke-width='.8' stroke-opacity='.7'/%3E%3Ccircle cx='60' cy='36' r='4.6' stroke-width='2.2'/%3E%3Cpath stroke-width='2.4' d='M60 41V86M49 48H71M38 70C40 82 49 87 60 87S80 82 82 70'/%3E%3Cpath stroke-width='2.2' d='M34 75L38 69L44 73M86 75L82 69L76 73'/%3E%3Cpath fill='%23f3d38a' stroke='none' d='M27 55.8L28.1 58.5L31 58.7L28.8 60.6L29.5 63.4L27 61.9L24.5 63.4L25.2 60.6L23 58.7L25.9 58.5Z'/%3E%3Cpath fill='%23f3d38a' stroke='none' d='M93 55.8L94.1 58.5L97 58.7L94.8 60.6L95.5 63.4L93 61.9L90.5 63.4L91.2 60.6L89 58.7L91.9 58.5Z'/%3E%3C/g%3E%3C/svg%3E");
    --gate-barcode: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 36' width='180' height='36' preserveAspectRatio='none'%3E%3Cg fill='%23f3d38a' fill-opacity='.62'%3E%3Crect x='3' width='1' height='36'/%3E%3Crect x='6' width='1' height='36'/%3E%3Crect x='8' width='3' height='36'/%3E%3Crect x='12' width='2' height='36'/%3E%3Crect x='15' width='1' height='36'/%3E%3Crect x='17' width='3' height='36'/%3E%3Crect x='26' width='3' height='36'/%3E%3Crect x='30' width='1' height='36'/%3E%3Crect x='32' width='1.5' height='36'/%3E%3Crect x='35.5' width='1' height='36'/%3E%3Crect x='38.5' width='1' height='36'/%3E%3Crect x='41.5' width='1' height='36'/%3E%3Crect x='44.5' width='1' height='36'/%3E%3Crect x='47.5' width='1' height='36'/%3E%3Crect x='58.5' width='1.5' height='36'/%3E%3Crect x='61' width='1' height='36'/%3E%3Crect x='63.5' width='3' height='36'/%3E%3Crect x='68' width='2' height='36'/%3E%3Crect x='71' width='1' height='36'/%3E%3Crect x='73' width='1.5' height='36'/%3E%3Crect x='76' width='2' height='36'/%3E%3Crect x='83' width='1.5' height='36'/%3E%3Crect x='86' width='3' height='36'/%3E%3Crect x='106.5' width='1.5' height='36'/%3E%3Crect x='109.5' width='1.5' height='36'/%3E%3Crect x='112' width='2' height='36'/%3E%3Crect x='121.5' width='1' height='36'/%3E%3Crect x='124' width='3' height='36'/%3E%3Crect x='138.5' width='1' height='36'/%3E%3Crect x='140.5' width='1' height='36'/%3E%3Crect x='143.5' width='1' height='36'/%3E%3Crect x='145.5' width='1' height='36'/%3E%3Crect x='148' width='3' height='36'/%3E%3Crect x='157' width='1' height='36'/%3E%3Crect x='160' width='3' height='36'/%3E%3Crect x='164.5' width='2' height='36'/%3E%3Crect x='168.5' width='2' height='36'/%3E%3Crect x='171.5' width='1' height='36'/%3E%3Crect x='173.5' width='1.5' height='36'/%3E%3C/g%3E%3C/svg%3E");
    --gate-seal-coral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' width='120' height='120'%3E%3Cg fill='none' stroke='%23ffb4a9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='60' cy='60' r='57' stroke-width='1.4'/%3E%3Ccircle cx='60' cy='60' r='53' stroke-width='.6'/%3E%3Ccircle cx='60' cy='60' r='47' stroke-width='1.8' stroke-dasharray='0 6.15'/%3E%3Ccircle cx='60' cy='60' r='41' stroke-width='.8' stroke-opacity='.7'/%3E%3Ccircle cx='60' cy='36' r='4.6' stroke-width='2.2'/%3E%3Cpath stroke-width='2.4' d='M60 41V86M49 48H71M38 70C40 82 49 87 60 87S80 82 82 70'/%3E%3Cpath stroke-width='2.2' d='M34 75L38 69L44 73M86 75L82 69L76 73'/%3E%3Cpath fill='%23ffb4a9' stroke='none' d='M27 55.8L28.1 58.5L31 58.7L28.8 60.6L29.5 63.4L27 61.9L24.5 63.4L25.2 60.6L23 58.7L25.9 58.5Z'/%3E%3Cpath fill='%23ffb4a9' stroke='none' d='M93 55.8L94.1 58.5L97 58.7L94.8 60.6L95.5 63.4L93 61.9L90.5 63.4L91.2 60.6L89 58.7L91.9 58.5Z'/%3E%3C/g%3E%3C/svg%3E");
    --gate-stop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='48' height='48'%3E%3Cg fill='none' stroke='%23ffb4a9' stroke-linecap='round'%3E%3Ccircle cx='24' cy='24' r='22' stroke-width='1.6'/%3E%3Ccircle cx='24' cy='24' r='18.5' stroke-width='.7' stroke-dasharray='0 3.1'/%3E%3Cpath stroke-width='3' d='M15 24H33'/%3E%3C/g%3E%3C/svg%3E");
    --gate-lantern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 92' width='60' height='92'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23f3d38a' stop-opacity='.34'/%3E%3Cstop offset='1' stop-color='%23f3d38a' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='30' cy='50' r='30' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%23f3d38a' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='1.4' d='M30 0V15'/%3E%3Ccircle cx='30' cy='18.5' r='3.4' stroke-width='1.6'/%3E%3Cpath stroke-width='1.8' d='M17 28H43L37.5 22.5H22.5Z'/%3E%3Crect x='19.5' y='28' width='21' height='34' rx='1.5' stroke-width='1.8'/%3E%3Cpath stroke-width='1.8' d='M16.5 62H43.5V67H16.5Z'/%3E%3Cpath stroke-width='1.2' d='M30 28V62'/%3E%3C/g%3E%3Crect x='22.5' y='31' width='6' height='28' fill='%237fe9ff' fill-opacity='.72'/%3E%3Crect x='31.5' y='31' width='6' height='28' fill='%23ff8fe6' fill-opacity='.62'/%3E%3Cpath d='M22.5 31L28.5 59M37.5 31L31.5 59' stroke='%23f3d38a' stroke-opacity='.55' stroke-width='1'/%3E%3Cpath fill='none' stroke='%23f3d38a' stroke-opacity='.5' stroke-width='1' d='M8 80q5.5-4 11 0t11 0 11 0 11 0M14 87q4-3 8 0t8 0 8 0 8 0'/%3E%3C/svg%3E");
    --gate-mrz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 36' width='1400' height='36' preserveAspectRatio='xMinYMid slice'%3E%3Cg fill='%23f3d38a' fill-opacity='.46' font-family='Consolas,Menlo,monospace' font-size='12.5' letter-spacing='4.2'%3E%3Ctext x='0' y='14'%3EG&lt;TPN&lt;HARBOR&lt;GATE&lt;&lt;ARK&lt;PIER&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;%3C/text%3E%3Ctext x='0' y='32'%3ETPN1911201207&lt;&lt;&lt;P&lt;LANTERN&lt;7&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;%3C/text%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================================
   TeknoParrot Nation site theme: the harbor below the hero (home)
   Pages: /{culture}/ (the sections under the harbor hero: the log of the harbor, the latest arrivals, the
          charter, the founder's letter, the records board)
   Bundled first into nation-site.css (the base rules come later in the cascade: out-specify them, don't
   repeat them). Loaded only while Citizen:PublicUi is on, which is also when the harbor hero replaces the old
   hero, so these sections always sit under the harbor scene.

   The idea: the page goes on at night on the water under the harbor. The numbers are the harbor's log (ivory
   on the night, gold counts), the recently preserved games are the latest arrivals (navy manifest cards),
   "Our purpose" is the charter on ivory paper, the founder's story a navy letter panel with a foil-framed
   portrait, the high scores a records board like the Hall of Records.

   Scope: H = :root body.home-page-active .main-container-home > main   (0,3,1)
   House rules, in short:
   - home-index.js and the page's inline script drive the counters (.count-up text), the reveal on scroll
     (.reveal / .reveal-stagger: class, opacity, transform), the recently preserved list (rendered into
     #recently-preserved-games) and the high-score cards' fade-in (inline opacity/transform on
     .featured-game-card): colour and type only on those, never their display, position, opacity or transform;
   - the home page's Paddle block (Views/Home/Index.cshtml, protected) renders no button while the harbor hero
     is up; its hooks (.btn-gradient, .paddle-checkout-btn) would follow the repaint-only rule anyway;
   - no color-scheme on the home <body> (Paddle's overlay frame is appended to it);
   - body text 4.5:1 or better, rtl-safe (logical properties), no web fonts, no external URLs.
   ========================================================================== */

/* ---------------------------------------------------------------- 0. the night canvas under the hero */

:root body.home-page-active {
    background: var(--ns-grain), var(--ns-ripples), var(--ns-canvas);
    background-color: var(--ns-page);
    color: var(--ns-fg);
}

/* shared type: the overlines are gold, the headings ivory */
:root body.home-page-active .main-container-home > main :is(.featured-in-overline, .stats-overline, .recently-preserved-overline, .founder-overline) {
    color: rgba(243, 211, 138, 0.9);
}

:root body.home-page-active .main-container-home > main :is(.recently-preserved-heading, .founder-heading) {
    color: var(--ns-heading);
}

:root body.home-page-active .main-container-home > main :is(.recently-preserved-intro, .founder-body) {
    color: var(--ns-fg-dim);
}

/* Arabic, Hebrew, Persian: home-index.css sets the overlines at 0.65rem and the labels at 0.58-0.75rem for tracked
   Latin capitals (9.1-10.5px on phones, 10.4px on desktop). Section 14 of base.css drops the tracking there, and a
   joined script that small is hard to read: the same lines at a 12px floor (11px for the chips on the arrival
   cards, which home-index.js renders; type only on them) */
:root:is(:lang(ar), :lang(he), :lang(fa)) body.home-page-active .main-container-home > main :is(.featured-in-overline, .stats-overline, .recently-preserved-overline, .preservation-overline, .founder-overline) {
    font-size: max(0.8rem, 12px);
}

:root:is(:lang(ar), :lang(he), :lang(fa)) body.home-page-active .main-container-home > main :is(.hero-stat-label, .heritage-stat-label) {
    font-size: max(0.75rem, 12px);
}

:root:is(:lang(ar), :lang(he), :lang(fa)) body.home-page-active .main-container-home > main .recently-preserved-card :is(time, .recently-preserved-access) {
    font-size: max(0.7rem, 11px);
}

/* ---------------------------------------------------------------- 1. the harbor's log (press strip and numbers) */

:root body.home-page-active .main-container-home > main .hero-summary-section {
    background:
        radial-gradient(60% 70% at 50% 0%, rgba(42, 35, 82, 0.45) 0%, rgba(42, 35, 82, 0) 70%),
        transparent;
    /* the harbor picture ends on a foil edge, as the header does */
    border-top: 1px solid rgba(243, 211, 138, 0.4);
}

:root body.home-page-active .main-container-home > main .featured-in-section-summary {
    border-bottom-color: rgba(243, 211, 138, 0.2);
}

:root body.home-page-active .main-container-home > main .featured-in-section-summary .featured-in-item {
    color: var(--ns-fg);
}

:root body.home-page-active .main-container-home > main .featured-in-section-summary .featured-in-item strong {
    color: var(--ns-heading);
}

:root body.home-page-active .main-container-home > main .featured-in-section-summary .featured-in-item small {
    color: var(--ns-fg-mute);
}

:root body.home-page-active .main-container-home > main .featured-in-section-summary .featured-in-item i {
    color: var(--ns-gold-soft);
}

:root body.home-page-active .main-container-home > main .featured-in-section-summary a.featured-in-item:is(:hover, :focus-visible),
:root body.home-page-active .main-container-home > main .featured-in-section-summary a.featured-in-item:is(:hover, :focus-visible) strong {
    color: var(--ns-gold-soft);
}

:root body.home-page-active .main-container-home > main .featured-in-section-summary a.featured-in-item:focus-visible {
    outline: 2px solid var(--ns-focus);
    outline-offset: 3px;
}

/* the counters (home page script: text only) */
:root body.home-page-active .main-container-home > main .hero-stats-summary .hero-stat-number {
    color: var(--ns-ivory);
    text-shadow: 0 0 36px rgba(243, 211, 138, 0.18);
}

:root body.home-page-active .main-container-home > main .hero-stats-summary .hero-stat-label,
:root body.home-page-active .main-container-home > main .hero-stats-summary .site-metric-growth.is-negative {
    color: var(--ns-fg-dim);
}

:root body.home-page-active .main-container-home > main .hero-stats-summary .stats-grid {
    border-top-color: rgba(243, 211, 138, 0.22);
}

:root body.home-page-active .main-container-home > main .hero-stats-summary .heritage-stat {
    border-inline-end-color: rgba(252, 247, 239, 0.12);
}

:root body.home-page-active .main-container-home > main .hero-stats-summary .heritage-stat:hover {
    background: rgba(243, 211, 138, 0.06);
}

:root body.home-page-active .main-container-home > main .hero-stats-summary .heritage-stat-number,
:root body.home-page-active .main-container-home > main .hero-stats-summary .site-metric-growth {
    color: var(--ns-gold-soft);
}

:root body.home-page-active .main-container-home > main .hero-stats-summary .heritage-stat-label,
:root body.home-page-active .main-container-home > main .hero-stats-summary .site-metric-growth-period,
:root body.home-page-active .main-container-home > main .hero-stats-summary .site-metric-growth.is-collecting {
    color: var(--ns-fg-mute);
}

/* ---------------------------------------------------------------- 2. the latest arrivals (recently preserved) */

:root body.home-page-active .main-container-home > main .recently-preserved-section {
    background:
        radial-gradient(50% 60% at 50% 0%, rgba(243, 211, 138, 0.07) 0%, rgba(243, 211, 138, 0) 70%),
        linear-gradient(180deg, rgba(8, 18, 38, 0.6) 0%, rgba(8, 18, 38, 0) 100%);
    border-top-color: rgba(243, 211, 138, 0.2);
}

/* the cards are rendered by home-index.js and faded in by the reveal: colour and type only */
:root body.home-page-active .main-container-home > main .recently-preserved-card {
    background: var(--ns-panel);
    border-color: var(--ns-line);
    border-radius: var(--ns-radius-sm);
    box-shadow: var(--ns-shadow-sm), inset 0 1px 0 var(--ns-tint-2);
}

:root body.home-page-active .main-container-home > main .recently-preserved-card:hover {
    border-color: rgba(243, 211, 138, 0.6);
    box-shadow: var(--ns-shadow), inset 0 1px 0 var(--ns-tint-2);
}

:root body.home-page-active .main-container-home > main .recently-preserved-rank {
    color: var(--ns-gold-soft);
}

:root body.home-page-active .main-container-home > main .recently-preserved-art {
    background:
        radial-gradient(70% 70% at 50% 40%, rgba(243, 211, 138, 0.14) 0%, rgba(243, 211, 138, 0) 72%),
        linear-gradient(180deg, rgba(4, 10, 24, 0.35) 0%, rgba(4, 10, 24, 0) 100%);
}

:root body.home-page-active .main-container-home > main .recently-preserved-card time {
    color: var(--ns-gold-soft);
}

:root body.home-page-active .main-container-home > main .recently-preserved-card h3 {
    color: var(--ns-heading);
}

:root body.home-page-active .main-container-home > main .recently-preserved-card p {
    color: var(--ns-fg-mute);
}

:root body.home-page-active .main-container-home > main .recently-preserved-access.is-premium {
    background: rgba(243, 211, 138, 0.1);
    border-color: rgba(243, 211, 138, 0.55);
    color: var(--ns-gold-soft);
}

:root body.home-page-active .main-container-home > main .recently-preserved-access.is-public {
    background: rgba(201, 255, 134, 0.08);
    border-color: rgba(201, 255, 134, 0.45);
    color: var(--ns-lime);
}

/* ---------------------------------------------------------------- 3. the charter ("Our purpose", on ivory paper) */

:root body.home-page-active .main-container-home > main .preservation-section {
    background: transparent;
    border-top-color: rgba(243, 211, 138, 0.2);
    border-bottom-color: rgba(243, 211, 138, 0.2);
}

:root body.home-page-active .main-container-home > main .preservation-inner {
    padding: clamp(2rem, 1rem + 4vw, 4rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
    background:
        var(--gate-waves-ink) center top 16px / 240px 16px repeat-x,
        radial-gradient(80% 40% at 50% 0%, rgba(243, 211, 138, 0.18) 0%, rgba(243, 211, 138, 0) 70%),
        linear-gradient(180deg, #fdf9f0 0%, #f4ead6 100%) #f8f1e3;
    border: 1px solid rgba(166, 120, 20, 0.45);
    border-radius: 24px;
    box-shadow: var(--ns-shadow), inset 0 0 0 7px #fdf9f0, inset 0 0 0 8px rgba(166, 120, 20, 0.22);
    outline: 1px solid rgba(243, 211, 138, 0.3);
    outline-offset: 6px;
    color: var(--ns-paper-fg);
}

:root body.home-page-active .main-container-home > main .preservation-overline {
    color: var(--ns-paper-accent-text);
}

:root body.home-page-active .main-container-home > main .preservation-inner .gold-divider {
    background: linear-gradient(90deg, rgba(166, 120, 20, 0), #a67814 50%, rgba(166, 120, 20, 0));
}

:root body.home-page-active .main-container-home > main .preservation-heading {
    color: var(--ns-paper-heading);
}

:root body.home-page-active .main-container-home > main .preservation-body {
    color: var(--ns-paper-fg-dim);
}

:root body.home-page-active .main-container-home > main .pillar-item {
    background: #fffdf8;
    border-color: rgba(166, 120, 20, 0.35);
    box-shadow: 0 10px 24px rgba(11, 27, 51, 0.08);
}

:root body.home-page-active .main-container-home > main .pillar-item:hover {
    background: #fffdf8;
    border-color: #c99a36;
    box-shadow: 0 14px 30px rgba(11, 27, 51, 0.14);
}

:root body.home-page-active .main-container-home > main .pillar-icon {
    color: var(--ns-paper-accent-text);
}

:root body.home-page-active .main-container-home > main .pillar-item h4 {
    color: var(--ns-paper-heading);
}

:root body.home-page-active .main-container-home > main .pillar-item p {
    color: var(--ns-paper-fg-dim);
}

:root body.home-page-active .main-container-home > main .preservation-quote {
    border-top-color: rgba(166, 120, 20, 0.35);
    color: var(--ns-paper-heading);
    font-family: var(--ns-serif);
}

/* ---------------------------------------------------------------- 4. the founder's letter */

:root body.home-page-active .main-container-home > main .founder-section {
    background: transparent;
}

:root body.home-page-active .main-container-home > main .founder-portrait-panel {
    background:
        var(--gate-rosette-faint) right -250px bottom -280px / 440px 440px no-repeat,
        var(--ns-panel);
    border-color: rgba(243, 211, 138, 0.3);
    box-shadow: var(--ns-shadow), inset 0 1px 0 var(--ns-tint-2);
}

:root body.home-page-active .main-container-home > main .founder-portrait-frame {
    background: #0a1731;
    border-color: rgba(243, 211, 138, 0.55);
    box-shadow: 0 0 0 5px rgba(10, 23, 49, 0.9), 0 0 0 6px rgba(243, 211, 138, 0.25), var(--ns-shadow-sm);
}

:root body.home-page-active .main-container-home > main .founder-story-panel {
    border-top-color: rgba(243, 211, 138, 0.22);
}

:root body.home-page-active .main-container-home > main .founder-body-lead {
    color: var(--ns-heading);
}

/* ---------------------------------------------------------------- 5. the records board (featured high scores, most played) */

:root body.home-page-active .main-container-home > main .highscores-container h2 {
    color: var(--ns-heading);
}

:root body.home-page-active .main-container-home > main .highscores-container h2 .bi {
    color: var(--ns-gold-soft);
}

/* the cards fade in through inline opacity/transform (home-index.js): colour only */
:root body.home-page-active .main-container-home > main .featured-game-card {
    background: var(--ns-panel);
    border-color: rgba(243, 211, 138, 0.26);
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow-sm), inset 0 1px 0 var(--ns-tint-2);
}

:root body.home-page-active .main-container-home > main .featured-game-card:hover {
    background: var(--ns-panel);
    border-color: rgba(243, 211, 138, 0.55);
}

:root body.home-page-active .main-container-home > main .featured-game-header {
    background: linear-gradient(180deg, #0a1731 0%, #081226 100%);
    border-bottom-color: rgba(243, 211, 138, 0.35);
    color: var(--ns-gold-soft);
}

:root body.home-page-active .main-container-home > main .featured-game-header :is(h3, .h3) {
    color: var(--ns-gold-soft);
}

:root body.home-page-active .main-container-home > main .featured-game-body {
    color: var(--ns-fg);
}

:root body.home-page-active .main-container-home > main .featured-game-body p {
    color: var(--ns-fg-mute);
}

:root body.home-page-active .main-container-home > main .highscore-table {
    color: var(--ns-fg);
}

:root body.home-page-active .main-container-home > main .highscore-table th {
    background: var(--ns-thead-bg) !important;
    border-bottom-color: rgba(243, 211, 138, 0.3);
    color: var(--ns-thead-fg) !important;
}

:root body.home-page-active .main-container-home > main .highscore-table td {
    border-bottom-color: var(--ns-line);
    color: var(--ns-fg);
}

:root body.home-page-active .main-container-home > main .view-all-link {
    color: var(--ns-gold-soft);
    text-decoration: underline;
    text-decoration-color: rgba(243, 211, 138, 0.4);
    text-underline-offset: 0.25em;
}

:root body.home-page-active .main-container-home > main .view-all-link:is(:hover, :focus-visible) {
    color: var(--ns-ivory);
    text-decoration-color: currentColor;
}

:root body.home-page-active .main-container-home > main .view-all-link:focus-visible {
    outline: 2px solid var(--ns-focus);
    outline-offset: 2px;
}

:root body.home-page-active .main-container-home > main .featured-game-card .list-group-item {
    background: transparent;
    border-color: var(--ns-line);
    color: var(--ns-fg);
}

:root body.home-page-active .main-container-home > main .featured-game-card .list-group-item strong {
    color: var(--ns-heading);
}

:root body.home-page-active .main-container-home > main .featured-game-card .badge.bg-primary {
    background: rgba(243, 211, 138, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(243, 211, 138, 0.45);
    color: var(--ns-gold-soft);
}

/* ==========================================================================
   TeknoParrot Nation: site-wide theme (the harbor at night)
   Loaded after every page's own styles, only while Citizen:PublicUi is on, by
   the NationSiteTheme view component. With the switch off this file is never
   requested and every page renders exactly as before.

   The system (tokens, scope prefixes, recipes) is documented in SYSTEM.md
   next to the design notes. In short:
     P = :root body.editorial-page-active                       page chrome
   The page chrome (header, language switcher, cookie banner, footer) is themed
   on every page; the admin pages are the Port Authority (authority.css).
     S = :root .tpn-place:not(.tpn-place--passport) ~ .main-container
                                                               page content
   S only exists on pages that carry a place banner (the banner renders right
   before .main-container), so home, the Nation pages, UpdatePayment
   and the Passport Office's pricing never receive content skins.

   Hard rules for this file and its group files:
   - inside the pricing block (.subscription-pricing-container) and on the payment
     hooks (.price, [data-tier], .btn-gradient, .paddle-checkout-btn, the billing
     toggle) repaint only: colour, background, border colour, radius, shadow,
     outline, type and text decoration, never anything that moves, resizes, hides
     or re-targets a box (build.py's lint has the exact list); --tp-* tokens are
     redefined only on the Passport Office's pricing scope (gate.css 6b), never
     at :root;
   - on script-driven elements colour, type, border, radius and shadow only;
     never change their display, position, order, visibility or transform;
   - no transform/filter/contain on html/body/header (fixed descendants), no
     z-index above 1039 for page content, no web fonts, no external URLs.
   ========================================================================== */

/* The page groups (decks, lighthouse, records, gate) are separate sources next to this file;
   tools/nation-site/build.py bundles them ahead of this one into wwwroot/css/nation-site.css. */

/* ---------------------------------------------------------------- 1. tokens */

:root {
    /* palette */
    --ns-ink: #060d1d;
    --ns-night: #081226;
    --ns-page: #0a1830;
    --ns-navy: #0b1b33;
    --ns-navy-2: #102d49;
    --ns-dusk: #2a2352;
    --ns-ivory: #fcf7ef;
    --ns-gold: #e7b64b;
    --ns-gold-soft: #f3d38a;
    --ns-cyan: #7fe9ff;
    --ns-magenta: #ff8fe6;
    --ns-lime: #c9ff86;
    --ns-coral: #ff7a6b;
    --ns-coral-soft: #ffb4a9;
    --ns-paper: #f6efe1;
    --ns-paper-2: #ede3cf;

    /* the same roles on cream paper (recipe "paper" in SYSTEM.md: copy the role block onto a surface) */
    --ns-paper-surface: linear-gradient(180deg, #f8f2e6 0%, #f1e8d6 100%);
    --ns-paper-fg: #1d2838;
    --ns-paper-fg-dim: #3b4658;
    --ns-paper-fg-mute: #566173;
    --ns-paper-heading: #0b1b33;
    --ns-paper-link: #1d4f86;
    --ns-paper-link-hover: #0b1b33;
    --ns-paper-accent-text: #7e5306;
    --ns-paper-ok: #2f6512;
    --ns-paper-warn: #7a5200;
    --ns-paper-bad: #a3301d;
    --ns-paper-info: #0a5d71;
    --ns-paper-line: rgba(11, 27, 51, 0.14);
    --ns-paper-line-strong: rgba(11, 27, 51, 0.28);
    --ns-paper-line-gold: rgba(166, 120, 20, 0.45);
    --ns-paper-tint-1: rgba(11, 27, 51, 0.035);
    --ns-paper-tint-2: rgba(11, 27, 51, 0.06);
    --ns-paper-tint-3: rgba(11, 27, 51, 0.1);
    --ns-paper-panel: linear-gradient(180deg, #fffdf8 0%, #fbf6ec 100%);
    --ns-paper-field: #fffdf8;
    --ns-paper-field-line: rgba(11, 27, 51, 0.26);
    --ns-paper-placeholder: rgba(29, 40, 56, 0.55);
    --ns-paper-focus: #1d4f86;
    --ns-paper-close-filter: invert(1);
    --ns-paper-thead-bg: #0f2140;
    --ns-paper-thead-fg: #f3d38a;
    --ns-paper-select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%230b1b33' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --ns-paper-chevron: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230b1b33' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --ns-paper-chevron-active: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237e5306' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");

    /* surface-aware roles: dark defaults; a paper surface redefines them (SYSTEM.md, recipe "paper") */
    --ns-fg: rgba(252, 247, 239, 0.9);
    --ns-fg-dim: rgba(252, 247, 239, 0.76);
    --ns-fg-mute: rgba(252, 247, 239, 0.62);
    --ns-heading: #fcf7ef;
    --ns-link: #f3d38a;
    --ns-link-hover: #fcf7ef;
    --ns-line: rgba(252, 247, 239, 0.12);
    --ns-line-strong: rgba(252, 247, 239, 0.24);
    --ns-line-gold: rgba(243, 211, 138, 0.34);
    --ns-panel: linear-gradient(180deg, rgba(23, 42, 76, 0.74) 0%, rgba(11, 27, 51, 0.8) 100%);
    --ns-panel-solid: #0f2140;
    --ns-panel-2: rgba(252, 247, 239, 0.045);
    --ns-panel-hover: rgba(243, 211, 138, 0.07);
    --ns-field: rgba(4, 10, 24, 0.55);
    --ns-field-line: rgba(252, 247, 239, 0.2);
    --ns-field-fg: #fcf7ef;
    --ns-placeholder: rgba(252, 247, 239, 0.52);
    --ns-accent: #e7b64b;
    --ns-accent-fill: linear-gradient(180deg, #f6da93 0%, #e7b64b 100%);
    --ns-on-accent: #1b1203;
    --ns-focus: #f3d38a;
    --ns-focus-ring: 0 0 0 3px rgba(243, 211, 138, 0.38);
    --ns-ok: #c9ff86;
    --ns-warn: #f3d38a;
    --ns-bad: #ffb4a9;
    --ns-info: #7fe9ff;
    --ns-accent-text: #f3d38a;
    --ns-tint-1: rgba(252, 247, 239, 0.035);
    --ns-tint-2: rgba(252, 247, 239, 0.06);
    --ns-tint-3: rgba(252, 247, 239, 0.1);
    --ns-thead-bg: rgba(4, 10, 24, 0.72);
    --ns-thead-fg: #f3d38a;
    --ns-select-arrow: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f3d38a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --ns-chevron: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fcf7ef' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --ns-chevron-active: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f3d38a' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");

    /* shape */
    --ns-radius: 16px;
    --ns-radius-sm: 10px;
    --ns-radius-pill: 999px;
    --ns-shadow: 0 24px 60px rgba(2, 6, 16, 0.45);
    --ns-shadow-sm: 0 10px 26px rgba(2, 6, 16, 0.35);
    --ns-glow-gold: 0 10px 30px rgba(231, 182, 75, 0.28);
    --ns-hairline-gold: linear-gradient(90deg, rgba(243, 211, 138, 0), rgba(243, 211, 138, 0.55) 50%, rgba(243, 211, 138, 0));

    /* type */
    --ns-font: var(--font-family-system, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    --ns-serif: Georgia, "Times New Roman", serif;
    --ns-mono: var(--font-family-monospace, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
    --ns-fs-display: clamp(2.3rem, 1.5rem + 3vw, 4rem);
    --ns-fs-h1: clamp(1.9rem, 1.45rem + 1.9vw, 3rem);
    --ns-fs-h2: clamp(1.45rem, 1.2rem + 1.05vw, 2.05rem);
    --ns-fs-h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
    --ns-fs-h4: 1.1rem;
    --ns-fs-body: 1rem;
    --ns-fs-small: 0.875rem;
    --ns-fs-overline: 0.72rem;
    --ns-track-overline: 0.26em;
    --ns-h1-transform: uppercase;

    /* page canvas */
    --ns-canvas:
        linear-gradient(180deg, #0a1830 0, #0a1830 520px, #0b1b33 1400px, #081428 100%);
    --ns-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .96 0 0 0 0 .9 .07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --ns-ripples: repeating-linear-gradient(180deg, rgba(127, 233, 255, 0.018) 0 1px, rgba(127, 233, 255, 0) 1px 9px);
}

/* ---------------------------------------------------------------- 2. page canvas (pages with a place banner, and the Nation pages)
   The night canvas, light text and dark color-scheme only go where the content is themed as well: a
   page with a place banner (the S skins) or a Nation page (nation.css sections). Every other editorial
   page (Wiki, Participate, SecretPage, the Christmas admin...) keeps its own
   ivory page and dark text; only its header and footer take the theme. Browsers without :has() keep the
   old behaviour (canvas everywhere), since their S skins cannot be told apart either. */

/* the canvas itself (every place, the Passport Office included) */
:root body.editorial-page-active:is(:has(> .tpn-place), :has(> .main-container > main > .tp-nation)) {
    background: var(--ns-grain), var(--ns-ripples), var(--ns-canvas);
    background-color: var(--ns-page);
    background-attachment: scroll;
}

/* light text and the dark color-scheme: not on the Passport Office. Everything there sits on the cream
   sheet around the protected pricing, which must render exactly as with the theme off (UA button text,
   form controls), and Paddle's overlay checkout is a transparent iframe appended to <body>: a body
   color-scheme that differs from the frame's makes browsers paint the frame opaque. A page that carries the
   pricing block is left out whatever else it holds: the members' page (SubscriptionAuth) opens <main> with
   Nation markup (the passport strip, the licences heading), which alone would match the Nation-page branch.
   My Passport (a .tpn-place--passport banner, no pricing block) keeps the night: the second branch. */
:root body.editorial-page-active:not(:has(.subscription-pricing-container)):is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) {
    color: var(--ns-fg);
    color-scheme: dark;
}

:root body.editorial-page-active:not(:has(.subscription-pricing-container)):is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) ::selection {
    background: rgba(243, 211, 138, 0.35);
    color: var(--ns-ivory);
}

/* Nation pages (no place banner): the old sky band behind the header becomes the harbor's light
   spilling onto the water. The band is 1100px tall but never taller than the page: on a short page (a vote
   that is not there, 1015px at 390) it hung below the footer and added a strip of scroll. The body is its
   containing block for that (it starts at the top, so nothing else placed on it moves); not on a page with a
   place banner, which has no band (below), and so never on the Passport Office's pricing. */
:root body.editorial-page-active:not(:has(> .tpn-place)):has(> .main-container > main > .tp-nation) {
    position: relative;
}

:root body.editorial-page-active:has(> .main-container > main > .tp-nation)::before {
    height: min(1100px, 100%);
    background:
        radial-gradient(46% 30% at 62% 34%, rgba(238, 154, 110, 0.075) 0%, rgba(238, 154, 110, 0) 70%),
        radial-gradient(38% 26% at 18% 40%, rgba(127, 233, 255, 0.045) 0%, rgba(127, 233, 255, 0) 70%),
        radial-gradient(60% 40% at 50% 0%, rgba(42, 35, 82, 0.55) 0%, rgba(42, 35, 82, 0) 70%);
}

/* place pages: the opaque banner covers the top of the page, so the sky band would only show below its
   bottom edge as a hard seam. The band goes; the banner carries the same light below itself, fading in
   from its bottom edge (section 5, .tpn-place::after). */
:root body.editorial-page-active:has(> .tpn-place)::before {
    content: none;
}

@supports not selector(:has(*)) {
    /* no color-scheme here: without :has() the Passport Office cannot be told apart */
    :root body.editorial-page-active {
        background: var(--ns-grain), var(--ns-ripples), var(--ns-canvas);
        background-color: var(--ns-page);
        color: var(--ns-fg);
    }
}

/* ---------------------------------------------------------------- 3. header (non-home pages; the links, the account
   tools, the focus rings and the language switcher on home too, whose bar stays transparent over the harbor hero) */

:root body.editorial-page-active header .header-bg {
    background: linear-gradient(180deg, rgb(5, 10, 22) 0%, rgb(8, 14, 32) 100%) !important;
    border-color: transparent !important;
    box-shadow: none;
    /* layout.css blurs this bar; a backdrop-filter makes the bar the containing block of the
       phone menu (position: fixed), which then opens inside the 70px bar instead of full screen.
       The bar is opaque now, so the blur has nothing to do. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* a foil hairline under the header, fading out at both ends */
:root body.editorial-page-active header::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--ns-hairline-gold);
    opacity: 0.5;
    pointer-events: none;
}

:root body.editorial-page-active header .navbar-brand img {
    filter: brightness(0) invert(1) sepia(0.12) drop-shadow(0 0 18px rgba(243, 211, 138, 0.22));
}

:root body:is(.editorial-page-active, .home-page-active) header .nav-link {
    color: rgba(252, 247, 239, 0.84) !important;
    border-radius: 6px;
}

:root body:is(.editorial-page-active, .home-page-active) header .nav-link:hover,
:root body:is(.editorial-page-active, .home-page-active) header .nav-link:focus-visible {
    color: var(--ns-ivory) !important;
    background-color: rgba(252, 247, 239, 0.06);
}

:root body:is(.editorial-page-active, .home-page-active) header .nav-link::after {
    background: var(--ns-gold-soft);
}

:root body:is(.editorial-page-active, .home-page-active) header a:focus-visible,
:root body:is(.editorial-page-active, .home-page-active) header button:focus-visible {
    outline: 2px solid var(--ns-focus);
    outline-offset: 2px;
    box-shadow: none;
}

:root body:is(.editorial-page-active, .home-page-active) header .navbar-toggler {
    border-color: rgba(252, 247, 239, 0.24);
}

:root body:is(.editorial-page-active, .home-page-active) header .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

:root body:is(.editorial-page-active, .home-page-active) header .navbar-toggler:focus {
    box-shadow: var(--ns-focus-ring);
}

/* signed-in logout button in the header */
:root body:is(.editorial-page-active, .home-page-active) header #logout {
    background: rgba(255, 122, 107, 0.12);
    border: 1px solid rgba(255, 122, 107, 0.5);
    color: var(--ns-coral-soft);
    border-radius: var(--ns-radius-pill);
}

/* where am I: the header link of the current place (progressive: needs :has). At the Harbor Gate only the
   page's own link: Login on the login form, Register on the register form, the account on Manage. */
@supports selector(:has(*)) {
    :root body:has(.tpn-place--lighthouse) header .nav-link[href$="/Home/Download"],
    :root body:has(.tpn-place--decks) header .nav-link[href$="/Compatibility"],
    :root body:has(.tpn-place--radio) header .nav-link[href$="/Home/Live"],
    :root body:has(.tpn-place--records:not(.tpn-place--hub)) header .nav-link[href$="/Highscore"],
    :root body:has(.tpn-place--passport) header .nav-link[href$="/Home/Subscription"],
    :root body:has(.tpn-place--harbormaster) header .nav-link[href$="/Support"],
    :root body:has(.tpn-place--authority) header .nav-link[href$="/Admin"],
    :root body:has(.tpn-place--gate):has(form#account) header #login,
    :root body:has(.tpn-place--gate):has(form#registerForm) header #register,
    :root body:has(.tpn-place--gate):has(.identity-manage-shell) header #manage {
        color: var(--ns-gold-soft) !important;
    }

    :root body:has(.tpn-place--lighthouse) header .nav-link[href$="/Home/Download"]::after,
    :root body:has(.tpn-place--decks) header .nav-link[href$="/Compatibility"]::after,
    :root body:has(.tpn-place--radio) header .nav-link[href$="/Home/Live"]::after,
    :root body:has(.tpn-place--records:not(.tpn-place--hub)) header .nav-link[href$="/Highscore"]::after,
    :root body:has(.tpn-place--passport) header .nav-link[href$="/Home/Subscription"]::after,
    :root body:has(.tpn-place--harbormaster) header .nav-link[href$="/Support"]::after,
    :root body:has(.tpn-place--authority) header .nav-link[href$="/Admin"]::after {
        width: 100%;
        background: var(--ns-gold-soft);
    }
}

/* the same for a page that marks its own header link (every Nation page marks "Citizen Vote") */
:root body.editorial-page-active header .nav-link[aria-current="page"] {
    color: var(--ns-gold-soft) !important;
}

:root body.editorial-page-active header .nav-link[aria-current="page"]::after {
    width: 100%;
    background: var(--ns-gold-soft);
}

/* desktop: a masthead. Beside the centred wordmark the links had half the bar minus the wordmark's clearance
   (layout.css: 542px from 1400 up, 452px at 1200-1399, 362px at 992-1199), and with Get Help (master) eight
   English links needed ~600px: two rows everywhere, three in German. Now the wordmark and the account tools
   share the top row and the links run in one centred row under a foil hairline, across the whole column
   (936px at 992, 1116px at 1200, 1296px from 1400): one row in English, Arabic and German from 992 up, signed
   in too (nine links with Online Profiles). With the Passport Office (hub.css; the layout's nationOffice switch)
   the row is seven links: Home, Download, Updates, Citizen Vote, Compatibility, High Scores, Passport Office
   (eight with the Admin Panel). The wordmark stays centred on the top row; nothing script-driven moves (the
   collapse only opens below 992px). */
@media (min-width: 992px) {
    :root body:is(.editorial-page-active, .home-page-active) header .navbar-collapse > .d-flex {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 2.5rem auto;
        row-gap: 0.2rem;
    }

    :root body:is(.editorial-page-active, .home-page-active) header .navbar-collapse > .d-flex > .header-utility-group {
        grid-row: 1;
        grid-column: 2;
        padding-inline-start: 0;
    }

    /* home: layout.css keeps every .navbar-nav 100px off the centred wordmark (padding-right 6.25rem), the account
       tools' list too: the masthead has the wordmark on its own, so the tools end on the column's edge as on every
       other page. The greeting holds a user name: capped (with an ellipsis; the link and its text stay whole), so a
       long name cannot run the tools under the centred wordmark from 1400 (below, the wordmark moves aside) */
    :root body:is(.editorial-page-active, .home-page-active) header .navbar-collapse > .d-flex > .header-utility-group .navbar-nav {
        padding-inline-end: 0;
    }

    :root body:is(.editorial-page-active, .home-page-active) header .header-utility-group #manage {
        max-width: 16rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    :root body:is(.editorial-page-active, .home-page-active) header .navbar-collapse > .d-flex > .navbar-nav {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-content: center;
        padding: 0.3rem 0 0;
        border-top: 1px solid rgba(243, 211, 138, 0.16);
    }

    :root body:is(.editorial-page-active, .home-page-active) header .navbar-collapse > .d-flex > .navbar-nav .nav-link {
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        padding-inline: 0.55rem !important;
    }

    /* the wordmark on the top row (layout.css centres it on the whole bar): the container's top padding plus
       half the row */
    :root body:is(.editorial-page-active, .home-page-active) header .header-brand-row {
        top: calc(0.55rem + 1.25rem);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    :root body:is(.editorial-page-active, .home-page-active) header .navbar-collapse > .d-flex > .navbar-nav .nav-link {
        font-size: 0.74rem;
        letter-spacing: 0.03em;
        padding-inline: 0.42rem !important;
    }
}

/* signed in, the language pill and the account tools (avatar, greeting, Logout) fill the right of the top row, and up to
   1399 they ran under the centred wordmark: by 30-85px on the editorial pages and 59-119px on home at 992-1199, 3-29px
   on home and within 5-20px of it elsewhere at 1200-1399, in every language. There the wordmark moves to the start of
   the top row, which is empty (the links are on the row below), level with the links' first column; from 1400 the
   half bar beside the centred wordmark holds the tools, the capped greeting included (above) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    :root body:is(.editorial-page-active, .home-page-active):has(#logoutForm) header .header-brand-row {
        left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
        transform: translateY(-50%);
    }
}

/* phone/tablet menu (full-screen sheet, opened by Bootstrap's collapse): colour only. Home's sheet was a light blur over
   the hero with the links in wrapped rows (layout.css's desktop row rule outranks its phone column there): the same
   night sheet and one centred column as every other page */
@media (max-width: 991.98px) {
    :root body:is(.editorial-page-active, .home-page-active) header .navbar-collapse.show {
        background-color: rgba(6, 12, 28, 0.97);
    }

    :root body.home-page-active header .navbar-collapse.show {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    :root body.home-page-active header .navbar-collapse > .d-flex > .navbar-nav {
        flex-direction: column !important;
        padding-inline-end: 0;
    }

    :root body:is(.editorial-page-active, .home-page-active) header .navbar-collapse .nav-link {
        font-size: 1rem;
        letter-spacing: 0.06em;
    }

    /* the links are full-width rows here, so layout.css's absolute ::after underline (width 100%) ran
       across the whole sheet: the underline becomes a text decoration that hugs the word */
    :root body:is(.editorial-page-active, .home-page-active) header .navbar-nav .nav-link::after {
        content: none;
    }

    :root body:is(.editorial-page-active, .home-page-active) header .navbar-nav .nav-link:hover {
        text-decoration: underline 1px rgba(252, 247, 239, 0.6);
        text-underline-offset: 0.45em;
    }

    @supports selector(:has(*)) {
        :root body:has(.tpn-place--lighthouse) header .navbar-nav .nav-link[href$="/Home/Download"],
        :root body:has(.tpn-place--decks) header .navbar-nav .nav-link[href$="/Compatibility"],
        :root body:has(.tpn-place--radio) header .navbar-nav .nav-link[href$="/Home/Live"],
        :root body:has(.tpn-place--records:not(.tpn-place--hub)) header .navbar-nav .nav-link[href$="/Highscore"],
        :root body:has(.tpn-place--passport) header .navbar-nav .nav-link[href$="/Home/Subscription"],
        :root body:has(.tpn-place--harbormaster) header .navbar-nav .nav-link[href$="/Support"],
        :root body:has(.tpn-place--authority) header .navbar-nav .nav-link[href$="/Admin"] {
            text-decoration: underline 1px var(--ns-gold-soft);
            text-underline-offset: 0.45em;
        }
    }

    :root body:is(.editorial-page-active, .home-page-active) header .navbar-nav .nav-link[aria-current="page"] {
        text-decoration: underline 1px var(--ns-gold-soft);
        text-underline-offset: 0.45em;
    }
}

/* ---------------------------------------------------------------- 4. language switcher (header dropdown) */

:root body:is(.editorial-page-active, .home-page-active) .language-selector .btn-glass-morphism {
    background: rgba(252, 247, 239, 0.07) !important;
    border: 1px solid rgba(252, 247, 239, 0.18) !important;
    color: rgba(252, 247, 239, 0.92) !important;
    box-shadow: none !important;
    border-radius: var(--ns-radius-pill) !important;
    padding: 0.38rem 0.85rem !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.02em;
    /* page sheets restyle every .btn (online-profile.css: narrow label face, capitals): the switcher keeps the theme face */
    font-family: var(--ns-font);
    font-weight: 500;
    text-transform: none;
}

:root body:is(.editorial-page-active, .home-page-active) .language-selector .btn-glass-morphism:hover,
:root body:is(.editorial-page-active, .home-page-active) .language-selector .btn-glass-morphism.show,
:root body:is(.editorial-page-active, .home-page-active) .language-selector:hover .btn-glass-morphism {
    background: rgba(252, 247, 239, 0.12) !important;
    border-color: var(--ns-line-gold) !important;
    color: var(--ns-ivory) !important;
    box-shadow: none !important;
}

:root body:is(.editorial-page-active, .home-page-active) .language-selector .btn-glass-morphism:focus-visible {
    outline: 2px solid var(--ns-focus) !important;
    outline-offset: 2px;
}

:root body:is(.editorial-page-active, .home-page-active) .language-selector .btn-glass-morphism i {
    color: var(--ns-gold-soft) !important;
}

:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown {
    background: rgba(9, 18, 38, 0.98) !important;
    border: 1px solid var(--ns-line-strong) !important;
    border-radius: 14px !important;
    box-shadow: var(--ns-shadow) !important;
    scrollbar-color: rgba(243, 211, 138, 0.4) transparent;
}

:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown::before {
    background: none;
    filter: none;
}

:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown-item {
    color: rgba(252, 247, 239, 0.86) !important;
}

:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown-item:hover:not(.active):not(:disabled),
:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown-item:focus-visible {
    background: rgba(243, 211, 138, 0.1) !important;
    color: var(--ns-ivory) !important;
    box-shadow: none !important;
    outline: none;
}

:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown-item:focus-visible {
    box-shadow: inset 0 0 0 1px var(--ns-focus) !important;
}

:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown-item.active,
:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown-item.active:hover,
:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown-item:disabled:hover {
    background: rgba(243, 211, 138, 0.14) !important;
    color: var(--ns-gold-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(243, 211, 138, 0.3) !important;
    opacity: 1 !important;
}

:root body:is(.editorial-page-active, .home-page-active) .glass-dropdown-item i {
    color: var(--ns-lime) !important;
}

/* ---------------------------------------------------------------- 9. components that can live outside the column */

/* content dropdowns (Bootstrap may pop them anywhere); the language switcher is styled above */
:root body.editorial-page-active .tpn-place ~ .main-container .dropdown-menu,
:root body.editorial-page-active > .dropdown-menu {
    --bs-dropdown-bg: rgba(9, 18, 38, 0.98);
    --bs-dropdown-color: rgba(252, 247, 239, 0.9);
    --bs-dropdown-border-color: rgba(252, 247, 239, 0.24);
    --bs-dropdown-link-color: rgba(252, 247, 239, 0.9);
    --bs-dropdown-link-hover-color: #fcf7ef;
    --bs-dropdown-link-hover-bg: rgba(243, 211, 138, 0.1);
    --bs-dropdown-link-active-color: var(--ns-on-accent);
    --bs-dropdown-link-active-bg: var(--ns-gold);
    --bs-dropdown-divider-bg: rgba(252, 247, 239, 0.12);
    --bs-dropdown-header-color: #f3d38a;
    background-color: var(--bs-dropdown-bg);
    border: 1px solid var(--bs-dropdown-border-color);
    border-radius: 14px;
    box-shadow: var(--ns-shadow);
    color: rgba(252, 247, 239, 0.9);
}

:root body.editorial-page-active .tpn-place ~ .main-container .dropdown-item {
    color: var(--bs-dropdown-link-color);
}

:root body.editorial-page-active .tpn-place ~ .main-container .dropdown-item:is(:hover, :focus) {
    background-color: var(--bs-dropdown-link-hover-bg);
    color: var(--bs-dropdown-link-hover-color);
}

:root body.editorial-page-active .tpn-place ~ .main-container .dropdown-item:is(.active, :active) {
    background: var(--ns-accent-fill);
    color: var(--ns-on-accent);
}

:root body.editorial-page-active .tpn-place ~ .main-container .dropdown-header {
    color: #f3d38a;
    font-size: var(--ns-fs-overline);
    letter-spacing: var(--ns-track-overline);
    text-transform: uppercase;
}

/* modals are moved to <body> by Bootstrap: scope by the page, not the column. Only the themed pages (a place
   banner other than the Passport Office, or a Nation page): editorial pages that keep their ivory canvas
   (Wiki, ResendPatreon, Christmas with its own skin) keep their modals. */
:root body.editorial-page-active:is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) .modal-content {
    --bs-modal-color: rgba(252, 247, 239, 0.9);
    --bs-modal-bg: #0c1a33;
    --bs-modal-border-color: rgba(252, 247, 239, 0.24);
    --bs-modal-header-border-color: rgba(252, 247, 239, 0.12);
    --bs-modal-footer-border-color: rgba(252, 247, 239, 0.12);
    background: linear-gradient(180deg, #11234a 0%, #0a1830 100%);
    border: 1px solid rgba(252, 247, 239, 0.24);
    border-radius: 20px;
    box-shadow: var(--ns-shadow);
    color: rgba(252, 247, 239, 0.9);
}

:root body.editorial-page-active:is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) .modal-content :is(.modal-title, h1, h2, h3, h4, h5) {
    color: #fcf7ef;
}

:root body.editorial-page-active:is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) .modal-content .btn-close {
    --bs-btn-close-focus-shadow: 0 0 0 3px rgba(243, 211, 138, 0.38);
    filter: none;
}

:root body.editorial-page-active:is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) .modal-content .btn:not(:where(.btn-gradient, .paddle-checkout-btn)) {
    border-radius: var(--ns-radius-pill);
    font-weight: 700;
    background: rgba(252, 247, 239, 0.06);
    border: 1px solid rgba(252, 247, 239, 0.24);
    color: #fcf7ef;
    box-shadow: none;
}

:root body.editorial-page-active:is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) .modal-content :is(.btn-primary, .btn-warning, .btn-success):not(:where(.btn-gradient, .paddle-checkout-btn)) {
    background: var(--ns-accent-fill);
    border-color: rgba(243, 211, 138, 0.9);
    color: var(--ns-on-accent);
}

:root body.editorial-page-active:is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) .modal-content .btn:not(:where(.btn-gradient, .paddle-checkout-btn)):focus-visible {
    outline: 2px solid #f3d38a;
    outline-offset: 2px;
}

:root body.editorial-page-active:is(:has(> .tpn-place:not(.tpn-place--passport)), :has(> .main-container > main > .tp-nation)) .modal-backdrop {
    --bs-backdrop-bg: #02050d;
}

/* cookie banner (gdpr-compliance.js): colours only, it stays fixed and on top */
:root body .gdpr-banner {
    background: linear-gradient(180deg, rgba(11, 22, 44, 0.97), rgba(6, 12, 26, 0.98)) !important;
    border-top: 1px solid var(--ns-line-gold) !important;
    color: var(--ns-fg) !important;
    box-shadow: 0 -20px 50px rgba(2, 6, 16, 0.5) !important;
}

:root body .gdpr-banner :is(h4, .gdpr-banner-text h4) {
    color: var(--ns-gold-soft) !important;
}

:root body .gdpr-banner p {
    color: var(--ns-fg-dim) !important;
}

:root body .gdpr-banner .gdpr-btn {
    border-radius: var(--ns-radius-pill) !important;
    font-weight: 700 !important;
}

:root body .gdpr-banner .gdpr-btn-accept {
    background: var(--ns-accent-fill) !important;
    border: 1px solid rgba(243, 211, 138, 0.9) !important;
    color: var(--ns-on-accent) !important;
}

:root body .gdpr-banner .gdpr-btn-essential {
    background: rgba(252, 247, 239, 0.06) !important;
    border: 1px solid var(--ns-line-strong) !important;
    color: var(--ns-ivory) !important;
}

:root body .gdpr-banner .gdpr-btn-settings {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--ns-gold-soft) !important;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

:root body .gdpr-banner .gdpr-btn:focus-visible {
    outline: 2px solid var(--ns-focus) !important;
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- 10. footer (every page, admin included) */

/* layout.css paints the editorial footer as sand (with !important on every descendant's
   colour and a grain ::before); at night the quay is dark stone with a foil edge. */
:root body footer.footerGG {
    --bs-secondary-color: var(--ns-fg-mute) !important;
    background:
        var(--ns-grain),
        linear-gradient(180deg, #081226 0%, #050a17 100%) !important;
    border-top: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: var(--ns-fg-dim) !important;
    padding: 2.4rem 0 1.8rem;
}

:root body footer.footerGG::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: var(--ns-hairline-gold);
    filter: none;
    mix-blend-mode: normal;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

:root body footer.footerGG * {
    --bs-secondary-color: var(--ns-fg-mute) !important;
    color: inherit !important;
}

:root body footer.footerGG .service-status {
    background: rgba(252, 247, 239, 0.03);
    border: 1px solid var(--ns-line);
    border-radius: 18px;
    box-shadow: none;
    color: var(--ns-fg) !important;
}

:root body footer.footerGG .service-status-item {
    background: rgba(252, 247, 239, 0.035);
    border: 1px solid var(--ns-line);
    border-radius: 12px;
    border-inline-start: 3px solid rgba(252, 247, 239, 0.25);
}

:root body footer.footerGG .service-status-item.status-live {
    border-color: rgba(201, 255, 134, 0.22);
    border-inline-start-color: var(--ns-lime);
    background: linear-gradient(90deg, rgba(201, 255, 134, 0.08), rgba(201, 255, 134, 0.015));
}

:root body footer.footerGG .service-status-item.status-offline {
    border-color: rgba(255, 122, 107, 0.22);
    border-inline-start-color: var(--ns-coral);
    background: linear-gradient(90deg, rgba(255, 122, 107, 0.09), rgba(255, 122, 107, 0.015));
}

:root body footer.footerGG .service-status-name {
    color: var(--ns-gold-soft) !important;
    letter-spacing: 0.2em;
}

:root body footer.footerGG .service-status-value {
    color: var(--ns-ivory) !important;
}

:root body footer.footerGG .status-live .service-status-value,
:root body footer.footerGG .service-status-value .text-success { color: var(--ns-lime) !important; }
:root body footer.footerGG .status-offline .service-status-value,
:root body footer.footerGG .service-status-value .text-danger { color: var(--ns-coral-soft) !important; }

:root body footer.footerGG .header-social-link {
    background: rgba(252, 247, 239, 0.05);
    border: 1px solid var(--ns-line-strong);
    color: rgba(252, 247, 239, 0.86) !important;
}

:root body footer.footerGG .header-social-link:hover,
:root body footer.footerGG .header-social-link:focus-visible {
    background: rgba(243, 211, 138, 0.12);
    border-color: var(--ns-line-gold);
    color: var(--ns-gold-soft) !important;
}

:root body footer.footerGG :is(a, button):focus-visible {
    outline: 2px solid var(--ns-focus);
    outline-offset: 2px;
}

:root body footer.footerGG .footer-meta-row {
    border-top: 1px solid var(--ns-line);
    color: var(--ns-fg-mute) !important;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

:root body footer.footerGG .footer-copyright {
    color: var(--ns-fg-mute) !important;
    font-weight: 500;
}

:root body footer.footerGG .footer-meta-row a {
    color: var(--ns-gold-soft) !important;
    text-decoration: underline;
    text-decoration-color: rgba(243, 211, 138, 0.4);
    text-underline-offset: 0.2em;
}

/* ---------------------------------------------------------------- 11. the Passport Office: a sheet of paper round the pricing */

/* The fallback sheet (colours, frame): gate.css section 6 gives it its padding and outward bleed, section 6b
   repaints the pricing block. No padding here: without the gate rules the pricing keeps its own width. */
:root .tpn-place--passport ~ .main-container .editorial-page.subscription-page {
    background: #fcfaf4;
    border: 1px solid rgba(243, 211, 138, 0.35);
    border-radius: 28px;
    box-shadow: var(--ns-shadow), 0 0 0 6px rgba(252, 247, 239, 0.03);
    /* no colour: the pricing inherits the page's own body colour, exactly as with the theme off */
}

/* signed-in members (SubscriptionAuth: body.subscription-auth-page) get the same sheet around the whole column */
:root body.subscription-auth-page .tpn-place--passport ~ .main-container > main {
    background: #fcfaf4;
    border: 1px solid rgba(243, 211, 138, 0.35);
    border-radius: 28px;
    box-shadow: var(--ns-shadow);
}

/* ---------------------------------------------------------------- 12. out of scope: UpdatePayment keeps its ivory page */

@supports selector(:has(*)) {
    :root body.editorial-page-active:has(#retain-container) {
        background: #fcfaf4;
        color: #16202a;
        color-scheme: light;
    }

    :root body.editorial-page-active:has(#retain-container)::before {
        background: none;
    }
}

/* ---------------------------------------------------------------- 12b. home: the high scores rows (.row,
   negative gutters) sat in a container with no side padding, so the page scrolled 11-12px sideways at
   every width (pre-existing). The container gets the gutter back, and the column every other home section
   sits in (Bootstrap's .container widths, centred): full bleed, the themed cards' borders and corners were cut
   by both edges of the window from 1400, and ran 12-30px past the other sections' edges below. The most played
   card sits straight in its .row (no column): the row's negative gutters would still pull it 12px past the
   column on both sides. */
:root body.home-page-active .main-container-home > main > .highscores-container {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

@media (min-width: 576px) { :root body.home-page-active .main-container-home > main > .highscores-container { max-width: 540px; } }
@media (min-width: 768px) { :root body.home-page-active .main-container-home > main > .highscores-container { max-width: 720px; } }
@media (min-width: 992px) { :root body.home-page-active .main-container-home > main > .highscores-container { max-width: 960px; } }
@media (min-width: 1200px) { :root body.home-page-active .main-container-home > main > .highscores-container { max-width: 1140px; } }
@media (min-width: 1400px) { :root body.home-page-active .main-container-home > main > .highscores-container { max-width: 1320px; } }

:root body.home-page-active .main-container-home > main > .highscores-container > .row:last-child {
    margin-inline: 0;
}

/* ---------------------------------------------------------------- 13. motion */

@media (prefers-reduced-motion: reduce) {
    :root body.editorial-page-active :is(.btn, .card, .nav-link, .header-social-link, .glass-dropdown, .glass-dropdown-item) {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------------------------------------------------------------- 14. Arabic, Hebrew, Persian: no letter-spacing
   Tracking pulls a joined script apart. One rule for the whole theme (the group files set only sizes):
   every tracked kind of text (overlines, kickers, eyebrows, table heads, captions, labels, badges,
   buttons, titles) and, separately, their ::before/::after, on pages in ar/he/fa (the html lang: pages
   stay LTR) and inside any block that carries dir="rtl" (the .tp-nation blocks). !important: it has to
   win over every tracked rule, the page sheets' !important ones included. Never inside the pricing
   block (the Passport Office's column is left out). */
:is(:root:is(:lang(ar), :lang(he), :lang(fa)) :is(.tpn-place:not(.tpn-place--passport) ~ .main-container, .tp-nation, header, footer.footerGG), [dir="rtl"]) :is(th, caption, figcaption, strong, b, legend, label, dt, small, .small, h1, h2, h3, h4, h5, h6, .btn, .badge, .nav-link, .card-header, .form-label, .form-text, .tpn-overline, [class*="kicker"], [class*="eyebrow"], [class*="overline"], [class*="label"], [class*="title"], [class*="badge"], [class*="status"], [class*="meta"], [class*="header"], [class*="caption"], .highscores-record-count, .record-count-mobile) {
    letter-spacing: 0 !important;
}

:is(:root:is(:lang(ar), :lang(he), :lang(fa)) :is(.tpn-place:not(.tpn-place--passport) ~ .main-container, .tp-nation, header, footer.footerGG), [dir="rtl"]) :is(th, caption, figcaption, strong, b, legend, label, dt, small, .small, h1, h2, h3, h4, h5, h6, .btn, .badge, .nav-link, .card-header, .form-label, .form-text, .tpn-overline, [class*="kicker"], [class*="eyebrow"], [class*="overline"], [class*="label"], [class*="title"], [class*="badge"], [class*="status"], [class*="meta"], [class*="header"], [class*="caption"], .highscores-record-count, .record-count-mobile)::before,
:is(:root:is(:lang(ar), :lang(he), :lang(fa)) :is(.tpn-place:not(.tpn-place--passport) ~ .main-container, .tp-nation, header, footer.footerGG), [dir="rtl"]) :is(th, caption, figcaption, strong, b, legend, label, dt, small, .small, h1, h2, h3, h4, h5, h6, .btn, .badge, .nav-link, .card-header, .form-label, .form-text, .tpn-overline, [class*="kicker"], [class*="eyebrow"], [class*="overline"], [class*="label"], [class*="title"], [class*="badge"], [class*="status"], [class*="meta"], [class*="header"], [class*="caption"], .highscores-record-count, .record-count-mobile)::after {
    letter-spacing: 0 !important;
}

/* the home page's own sections (below the hero, outside .tp-nation): their overlines, labels and times, the
   headings, the preservation quote and pillars, the press strip and the scoreboards' "view all" links.
   A separate list that never matches a .btn: the home page's payment buttons are never touched. */
:root:is(:lang(ar), :lang(he), :lang(fa)) body.home-page-active .main-container-home :is([class*="overline"], [class*="label"], time, .recently-preserved-access, h2, h3, .preservation-quote, .pillar-item h4, .featured-in-item :is(strong, small), .view-all-link):not(.btn) {
    letter-spacing: 0 !important;
}
