.community{--comm-line:color-mix(in srgb,var(--text,#edf3fa) 12%,transparent);max-width:1080px;margin:0 auto}.comm-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0 30px}.comm-eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;color:#79a9d9}.comm-heading h2{font-size:clamp(26px,3vw,38px);letter-spacing:-.045em;margin:8px 0}.comm-heading p{font-size:15px;color:var(--muted,#94a8b9);margin:0}.community button,.comm-dialog button{font:inherit;cursor:pointer}.comm-primary{display:inline-flex;align-items:center;justify-content:center;background:#287df3!important;color:white!important;border:0!important;border-radius:12px!important;padding:13px 19px!important;font-size:15px!important;font-weight:700!important;text-decoration:none;white-space:nowrap}.comm-nav{display:flex;gap:24px;border-bottom:1px solid var(--comm-line);overflow-x:auto;scrollbar-width:none}.comm-nav button{border:0;background:none;padding:16px 0;color:var(--muted,#94a8b9);font-size:16px;white-space:nowrap;border-radius:0}.comm-nav button.active{color:var(--text,#f3f6fa);border-bottom:3px solid #468ffe;font-weight:700}.comm-filters{display:flex;gap:8px;padding:18px 0 24px;overflow:auto;scrollbar-width:none}.comm-filters button{white-space:nowrap;border:1px solid var(--comm-line);background:none;color:var(--muted,#a6b8c7);border-radius:99px;padding:9px 14px;font-size:14px}.comm-filters .active{color:var(--text,#fff);background:var(--surface,#1a2b38);border-color:#5c7c96}.comm-profile-button{margin-left:auto}.comm-section-label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text,#e4edf5);font-size:15px;margin:8px 0 20px}.comm-section-label span{font-size:13px;color:var(--muted,#91a6b7)}.comm-section-label button{color:#85b7ff;background:none;border:0;padding:8px}.comm-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.comm-post{border:1px solid var(--comm-line);background:var(--surface,#13212d);border-radius:20px;overflow:hidden;min-width:0}.comm-post>header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px}.comm-author{display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;color:var(--text,#fff);text-align:left;min-width:0}.comm-author>span:last-child{min-width:0}.comm-author strong{display:block;font-size:15px;overflow-wrap:anywhere}.comm-author small{display:block;font-size:12px;color:var(--muted,#99adbd);margin-top:4px}.comm-avatar{flex-shrink:0;position:relative;width:64px;height:48px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border-radius:0;overflow:visible}.comm-avatar>span{font-size:24px}.comm-avatar img{width:100%;height:133.333%;max-width:none;object-fit:contain;position:absolute;image-rendering:pixelated;border-radius:0;pointer-events:none}.comm-more{border:0;background:none;color:var(--muted,#9aacb9);font-size:24px!important;padding:4px 8px}.comm-gallery{display:flex;overflow:auto;scroll-snap-type:x mandatory;background:#10212e;scrollbar-width:thin}.comm-gallery>img{width:100%;flex:0 0 100%;aspect-ratio:1;object-fit:contain;scroll-snap-align:center}.comm-gallery.is-garage{background:radial-gradient(ellipse at 50% 80%,#2d4960 0%,#172b3d 60%)}.comm-gallery.is-garage>img{image-rendering:pixelated}.comm-copy{padding:18px 20px 8px}.comm-category{font-size:12px;color:#80b3ec;font-weight:600}.comm-copy>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.7;margin:8px 0 14px}.comm-copy .comm-note{font-size:14px;color:var(--muted,#aabcca);margin:9px 0}.comm-tags{display:flex;flex-wrap:wrap;gap:6px}.comm-tags span{font-size:12px;padding:5px 8px;background:color-mix(in srgb,var(--text,#fff) 5%,transparent);border-radius:6px;color:var(--muted,#b2c4d1)}.comm-place{width:100%;display:flex;gap:8px;justify-content:space-between;text-align:left;margin-top:18px;border:0;border-top:1px solid var(--comm-line);border-radius:0;background:none;padding:14px 0;color:var(--text,#dde9f4);font-size:14px!important}.comm-place span{font-size:12px;color:#8cacc7;white-space:nowrap}.comm-post>footer{display:flex;gap:16px;padding:13px 20px 18px}.comm-post>footer button{border:0;background:none;padding:5px 0;font-size:14px;color:var(--muted,#b4c3ce)}.comm-post>footer button[aria-pressed=true]{color:#87b8ff}.comm-post>footer .comm-share{margin-left:auto;font-size:13px}.comm-empty{grid-column:1/-1;text-align:center;padding:70px 20px;border:1px dashed var(--comm-line);border-radius:20px;color:var(--muted,#9eb0be);margin:8px 0 25px}.comm-empty h3{color:var(--text,#eaf2f9);font-size:22px;margin:15px 0 10px}.comm-empty p{font-size:15px;line-height:1.8}.comm-empty button{margin-top:12px}.comm-club-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.comm-club-card{padding:24px;text-align:left;border:1px solid var(--comm-line);background:var(--surface,#152330);color:var(--text,#eaf2f9);border-radius:18px}.comm-club-card h3{font-size:22px;letter-spacing:-.03em;margin:14px 0}.comm-club-card p{color:var(--muted,#a5b6c5);font-size:15px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.comm-club-card footer{display:flex;justify-content:space-between;font-size:14px;margin-top:25px}.comm-club-card footer span{color:#85b5f5}.comm-club-intro{padding:26px;border:1px solid var(--comm-line);border-radius:20px;margin-bottom:30px;background:var(--surface,#152330)}.comm-club-intro h2{font-size:30px;margin:12px 0}.comm-club-intro p{font-size:16px;color:var(--muted,#acbdca);white-space:pre-wrap;overflow-wrap:anywhere}.comm-club-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.comm-club-controls button{font-size:14px}.comm-meets{display:grid;gap:16px}.comm-meet{display:flex;align-items:flex-start;gap:22px;border:1px solid var(--comm-line);padding:24px;border-radius:20px;background:var(--surface,#152330)}.comm-meet-date{width:62px;flex-shrink:0;text-align:center;padding:12px 0;border-radius:14px;background:color-mix(in srgb,#3789ff 12%,transparent);color:#91baff}.comm-meet-date strong{display:block;font-size:30px;line-height:1.2}.comm-meet-date span{font-size:13px}.comm-meet-info{flex:1;min-width:0}.comm-meet h3{font-size:22px;margin:8px 0;overflow-wrap:anywhere}.comm-meet p{font-size:14px;color:var(--muted,#adc0d0);line-height:1.6}.comm-location{font-size:14px!important;color:#91b9e8!important;background:none!important;border:0!important;padding:0!important;text-align:left}.comm-meet-body{white-space:pre-wrap;overflow-wrap:anywhere}.comm-attendees{display:flex;overflow:auto;gap:10px;padding:14px 0}.comm-attendees button{background:none;border:0;padding:0;display:flex;flex-direction:column;align-items:center;color:var(--muted,#a3b7c7)}.comm-attendees small{font-size:11px;max-width:70px;text-overflow:ellipsis;overflow:hidden}.comm-meet-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.comm-meet-controls button{font-size:14px}.comm-meet-controls span{font-size:14px;color:#91b9e8}.comm-dialog{--comm-line:color-mix(in srgb,var(--text,#fff) 12%,transparent);width:min(620px,calc(100vw - 24px));max-height:90dvh;padding:24px;border:1px solid var(--comm-line);border-radius:22px;background:var(--surface,#12212d);color:var(--text,#f0f5fa);overflow:auto}.comm-dialog::backdrop{background:#020912c9;backdrop-filter:blur(5px)}.comm-modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.comm-modal-head h2{font-size:23px;margin:0;letter-spacing:-.03em}.comm-modal-head button{background:none;border:0;color:inherit;font-size:28px;padding:0 8px}.comm-dialog label{display:block;font-size:14px;margin:14px 0;color:var(--muted,#b4c4d1)}.comm-dialog input:not([type=checkbox]),.comm-dialog select,.comm-dialog textarea{width:100%;box-sizing:border-box;background:var(--bg,#0d1821);color:var(--text,#edf4fa);border:1px solid var(--comm-line);border-radius:10px;font-size:16px;padding:12px;margin-top:7px}.comm-dialog textarea{min-height:100px;resize:vertical;line-height:1.7}.comm-dialog .comm-story-input{min-height:160px}.comm-sub{font-size:14px;color:var(--muted,#a4b7c8);line-height:1.8}.comm-sub button{background:none;border:0;color:#88b9fc}.comm-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.comm-compose-author{display:flex;align-items:center;gap:10px}.comm-file-label{border:1px dashed var(--comm-line);padding:15px;border-radius:12px;cursor:pointer}.comm-file-label small{display:block;margin-top:4px}.comm-upload-preview{display:flex;gap:8px;overflow:auto}.comm-upload-preview img{width:90px;height:90px;object-fit:cover;border-radius:9px}.comm-dialog .comm-check{display:flex;align-items:flex-start;gap:10px;line-height:1.6}.comm-dialog .comm-check input[type=checkbox]{display:block;width:20px;height:20px;min-width:20px;flex:0 0 20px;padding:0;margin:2px 0 0;accent-color:#287df3}.comm-dialog .comm-check>span{flex:1;min-width:0;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}.comm-submit{width:100%;margin-top:10px}.comm-error{font-size:14px;color:#ffb0a7;line-height:1.7}.comm-comment{display:flex;gap:12px;margin-bottom:18px;align-items:flex-start}.comm-comment>div{flex:1;min-width:0}.comm-comment strong{font-size:14px}.comm-comment p{font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.comm-comment button{font-size:13px}.comm-profile-garage{text-align:center}.comm-profile-garage img{width:100%;image-rendering:pixelated;background:radial-gradient(ellipse,#294251,#14212e);border-radius:16px}.comm-profile-garage p{font-size:14px;color:var(--muted,#b1c1cd)}.comm-car-choice{display:flex;align-items:center;gap:16px;width:100%;padding:10px;margin:10px 0;background:var(--bg,#10202b);border:1px solid var(--comm-line);border-radius:14px;color:var(--text,#fff)}.comm-car-choice img{width:120px;height:90px;object-fit:contain;image-rendering:pixelated}.comm-member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.comm-member-grid>div{display:flex;align-items:center;flex-direction:column;gap:8px;text-align:center}.comm-member-grid strong{font-size:14px;overflow-wrap:anywhere}.comm-member-grid small{font-size:12px;color:var(--muted,#a2b9cc)}#commStoryPreview img{width:100%;max-width:270px;display:block;margin:0 auto 18px;border-radius:14px}.comm-dialog #commStoryLink{margin:12px}.comm-review-fields{font-size:15px;padding:15px;border:1px solid var(--comm-line);border-radius:12px;margin:14px 0}.visit-section.community .comm-feed{grid-template-columns:1fr}.community button:focus-visible,.comm-dialog button:focus-visible{outline:2px solid #8abaff;outline-offset:4px}.community button:disabled,.comm-dialog button:disabled{opacity:.55;cursor:wait}
@media(max-width:700px){.comm-heading{margin-top:12px;align-items:flex-start;gap:10px}.comm-heading h2{font-size:27px}.comm-heading p{font-size:14px}.comm-heading>.comm-primary{padding:11px 13px!important;font-size:14px!important;margin-top:22px}.comm-eyebrow{font-size:10px}.comm-nav{gap:22px}.comm-nav button{font-size:15px}.comm-feed,.comm-club-grid{grid-template-columns:1fr;gap:20px}.comm-section-label{font-size:14px}.comm-section-label span{font-size:11px}.comm-post{border-radius:17px}.comm-filters{padding-bottom:18px}.comm-meet{padding:18px 15px;gap:12px}.comm-meet-date{width:49px}.comm-meet h3{font-size:20px}.comm-dialog{padding:20px 16px}.comm-form-row{grid-template-columns:1fr}.comm-member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.comm-heading .comm-eyebrow{letter-spacing:.08em}}
.comm-post>header{margin:0;gap:10px}.comm-post>footer{margin:0;border-top:0}.comm-club-card>footer{border-top:0;padding:0}.comm-post .comm-copy{padding-top:16px}.comm-post>footer button{min-height:36px}

/* Light mode shares the same hierarchy without dark-only foregrounds. */
[data-theme="light"] .community,[data-theme="light"] .comm-dialog{--comm-line:#d6e0e9;color:var(--text)}
[data-theme="light"] .comm-nav button.active{color:#155db5;border-color:#1769dc}
[data-theme="light"] .comm-filters .active{background:#e8f1ff;color:#155db5;border-color:#8eafe0}
[data-theme="light"] .comm-eyebrow,[data-theme="light"] .comm-category,[data-theme="light"] .comm-section-label button,[data-theme="light"] .comm-sub button,[data-theme="light"] .comm-sub a,[data-theme="light"] .comm-club-card footer span,[data-theme="light"] .comm-meet-controls span,[data-theme="light"] .comm-place span,[data-theme="light"] .comm-post>footer button[aria-pressed=true]{color:#1b63ad}
[data-theme="light"] .comm-location{color:#1b63ad!important}
[data-theme="light"] .comm-gallery{background:#edf1f5}
[data-theme="light"] .comm-gallery.is-garage,[data-theme="light"] .comm-profile-garage img{background:radial-gradient(ellipse at 50% 80%,#d4e3f0,#f1f5f9 65%)}
[data-theme="light"] .comm-meet-date{background:#e8f1ff;color:#155db5}
[data-theme="light"] .comm-tags span{background:#edf2f7;color:#465b70}
[data-theme="light"] .comm-error{color:#b32e36}
[data-theme="light"] .comm-primary{background:#1769dc!important}
[data-theme="light"] .comm-file-label{background:#f4f7fb;border-color:#8da4ba}

.create-options{display:grid;gap:12px}.create-options>a,.create-options>button{display:block;width:100%;padding:18px;text-align:left;text-decoration:none;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--text)}.create-options strong{display:block;font-size:17px}.create-options span{display:block;margin-top:7px;color:var(--muted);font-size:14px;line-height:1.6}.create-options>a:focus-visible,.create-options>button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* Place reviews prioritize the driver's text and vehicle identity. */
.comm-review-car{display:block;font-size:14px;font-weight:600;color:var(--text,#edf3fa);margin:3px 0;white-space:normal;overflow-wrap:anywhere}
.comm-review{display:flex;flex-direction:column}.comm-review>header{order:0}.comm-review>.comm-copy{order:1}.comm-review>.comm-gallery{order:2;max-height:160px;margin:0 16px 12px;border-radius:10px}.comm-review>.comm-gallery img{height:140px;width:140px;flex:0 0 140px;object-fit:cover;aspect-ratio:1}.comm-review>footer{order:3}.comm-review .comm-copy>p{font-size:16px;line-height:1.65;margin:10px 0}.comm-review .comm-tags{gap:6px}.comm-review-form .comm-story-input{min-height:90px}.comm-review .comm-author>span:last-child{min-width:0}.visit-heading{flex-wrap:wrap;gap:10px}

.visit-section .visit-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 20px}.visit-section .visit-heading h3{margin:0;line-height:1.5}.visit-section .visit-heading .comm-primary{flex-shrink:0}.visit-section .comm-feed{margin-top:0}

/* Keep each tab compact and give non-feed tabs their own breathing room. */
.community .comm-empty{padding:28px 18px;margin:0 0 16px;border-style:solid;border-radius:14px}.community .comm-empty h3{font-size:18px;margin:0 0 8px}.community .comm-empty p{margin:0;line-height:1.6;font-size:14px}.community .comm-empty button{margin-top:16px}.community .comm-nav+#communityBody{padding-top:20px}.community .comm-section-label{gap:12px;align-items:flex-start;line-height:1.5}.community .comm-section-label>span{flex-shrink:0}

.comm-meet-controls .comm-danger{color:#f39797;background:none;border:0;padding:8px 0;margin-left:auto}

.comm-dialog [hidden]{display:none!important}

.comm-place-picker{margin:14px 0}.comm-place-picker>label{margin-bottom:7px}.comm-dialog .comm-place-picker input[type=search]{margin-top:0}.comm-place-status{font-size:13px;color:var(--muted);line-height:1.5;margin:8px 0}.comm-place-results{max-height:220px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:6px}.comm-place-results button,.comm-place-selected{display:flex;align-items:center;gap:12px;width:100%;padding:12px;text-align:left;border:1px solid var(--comm-line);border-radius:10px;background:var(--bg);color:var(--text);min-width:0}.comm-place-results button{display:block;min-height:54px}.comm-place-results strong,.comm-place-selected strong{display:block;font-size:15px;overflow-wrap:anywhere}.comm-place-results small,.comm-place-selected small{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.comm-place-results button:hover{border-color:#468ffe}.comm-place-selected>div{flex:1;min-width:0}.comm-place-change{flex-shrink:0;min-height:44px;border:0;background:none;color:#85b7ff;padding:6px;font-size:14px!important}.comm-place-results button:focus-visible,.comm-place-change:focus-visible{outline:2px solid #8abaff;outline-offset:-2px}

.comm-author .comm-posted-at,.comm-comment .comm-posted-at{display:block;font-size:13px;line-height:1.5;color:var(--muted,#99adbd);margin-top:4px;font-variant-numeric:tabular-nums;white-space:normal}

.comm-comment-focused{outline:2px solid #7dafff;outline-offset:3px;border-radius:8px}.comm-reply-context{font-size:14px;color:var(--muted);border-left:2px solid #59738a;padding-left:10px;overflow-wrap:anywhere}.comm-reply-target{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}.comm-reply-target[hidden]{display:none}.comm-comment-actions{display:flex;gap:12px}.comm-comment-actions button{min-height:38px}.comm-comment-thread>.place-more{width:100%}

/* Compact club landing; keep meet and individual club content unchanged. */
.community[data-mode="club"]>.comm-heading{margin:10px 0 14px;gap:12px;align-items:center;flex-wrap:wrap}
.community[data-mode="club"]>.comm-heading h2{font-size:1.375rem;line-height:1.3;letter-spacing:-.035em;margin:0;max-width:none}
.community[data-mode="club"]>.comm-heading>.comm-primary{margin:0;padding:10px 14px!important;font-size:.875rem!important;line-height:1.4;min-height:42px;border-radius:12px}
.community[data-mode="club"]>.comm-nav{gap:20px}
.community[data-mode="club"]>.comm-nav button{padding:12px 0;font-size:.875rem;min-height:44px}
.community[data-mode="club"]>.comm-filters{padding:12px 0 14px;gap:7px}
.community[data-mode="club"]>.comm-filters button{padding:7px 12px;font-size:.875rem;min-height:38px}
.community[data-mode="club"]>#communityBody>.comm-section-label{margin:4px 0 14px;font-size:.875rem}
.community[data-mode="club"]>.comm-nav+#communityBody{padding-top:14px}

/* Four-line post preview; the original body stays intact. */
pitmap-post-body{display:block;min-width:0;scroll-margin-top:24px}
.comm-copy pitmap-post-body>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.7;margin:8px 0 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;max-height:6.8em;overflow:hidden}
.comm-copy pitmap-post-body.is-expanded>p{display:block;-webkit-line-clamp:unset;max-height:none;overflow:visible}
.comm-copy pitmap-post-body .comm-read-more{display:block;border:0;background:none;color:var(--muted,#aabcca);font:inherit;font-size:14px;min-height:44px;padding:8px 0;text-align:left;cursor:pointer}
.comm-copy pitmap-post-body .comm-read-more[hidden]{display:none}
.comm-copy pitmap-post-body{margin-bottom:14px}

pitmap-post-gallery{display:block;position:relative;min-width:0}
pitmap-post-gallery .comm-gallery{scrollbar-width:none}
pitmap-post-gallery .comm-gallery::-webkit-scrollbar{display:none}
pitmap-post-gallery .comm-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;padding:0;border:1px solid #ffffff38;border-radius:50%;background:#07111bcc;color:#fff;cursor:pointer;z-index:1}
pitmap-post-gallery .comm-gallery-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
pitmap-post-gallery .is-prev{left:10px}pitmap-post-gallery .is-next{right:10px}
.community pitmap-post-gallery .comm-gallery-arrow:disabled,.comm-dialog pitmap-post-gallery .comm-gallery-arrow:disabled{opacity:.25;cursor:default}
pitmap-post-gallery .comm-gallery-count{position:absolute;right:12px;top:12px;padding:5px 9px;border-radius:20px;background:#07111bcc;color:#fff;font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums;pointer-events:none}
.comm-review>pitmap-post-gallery{order:2;margin:0 16px 12px;border-radius:10px;overflow:hidden}
.comm-review>pitmap-post-gallery .comm-gallery>img{height:160px;width:100%;flex:0 0 100%;object-fit:contain}

/* One user-started video per post, retaining the original aspect ratio. */
pitmap-post-video{display:block;background:#080e13}
pitmap-post-video video,.comm-video-preview video{display:block;width:100%;max-height:560px;max-height:70svh;object-fit:contain;background:#080e13;border-radius:8px}
.comm-video-preview:empty{display:none}
.comm-video-error{padding:12px 16px;font-size:14px;color:var(--muted)}
.comm-video-error[hidden],[data-remove-video][hidden]{display:none!important}
.comm-video-error a{color:var(--blue,#78b9ff)}
.comm-video-hint{padding:8px 14px;margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.comm-video-hint[hidden]{display:none!important}

/* Photos and video share one bounded slide frame; never stack their heights. */
pitmap-post-gallery .comm-gallery.has-video{width:100%;aspect-ratio:1;max-height:70svh;overflow-y:hidden}
pitmap-post-gallery .comm-gallery.has-video>img{height:100%;min-width:0;aspect-ratio:auto}
pitmap-post-gallery .comm-gallery>pitmap-post-video{display:flex;flex-direction:column;flex:0 0 100%;width:100%;min-width:0;height:100%;scroll-snap-align:center;overflow:hidden}
pitmap-post-gallery .comm-gallery>pitmap-post-video>video{flex:1;min-height:0;height:0;max-height:none;border-radius:0;object-fit:contain}
pitmap-post-gallery .comm-gallery>pitmap-post-video>.comm-video-hint,pitmap-post-gallery .comm-gallery>pitmap-post-video>.comm-video-error{flex:none}
.comm-review>pitmap-post-gallery .comm-gallery.has-video{height:160px;aspect-ratio:auto}

.comm-club-back{display:inline-flex;align-items:center;min-height:44px;margin:0 0 10px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--text);font:inherit;cursor:pointer}
.comm-comment .comm-comment-avatar,.comm-comment .comm-comment-author{border:0;background:transparent;color:inherit;padding:0;margin:0;cursor:pointer;text-align:left;border-radius:8px}
.comm-comment .comm-comment-avatar{flex:0 0 auto;line-height:0}
.comm-comment .comm-comment-author{display:inline-flex;align-items:center;min-height:32px;max-width:100%;overflow-wrap:anywhere}
.comm-comment .comm-comment-author:hover strong{text-decoration:underline;text-underline-offset:3px}

.comm-reward-pop{position:fixed;z-index:100000;left:50%;top:30%;transform:translateX(-50%);display:grid;justify-items:center;gap:8px;padding:24px 32px;border:1px solid #4d94ce;border-radius:20px;background:#14232f;color:#b9dcff;box-shadow:0 12px 50px #0008;pointer-events:none}.comm-reward-pop strong{font-size:26px}.comm-reward-pop span{font-size:14px}

.comm-reward-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.comm-reward-actions .comm-submit{flex:1;min-width:140px;margin:0}.comm-reward-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;background:transparent;border:0;color:#9bcaff;font-weight:700;white-space:nowrap;padding:6px;cursor:pointer}.comm-reward-button[hidden]{display:none}.comm-reward-button img{object-fit:contain}

dialog.comm-reward-pop{inset:0;margin:auto;transform:none;width:max-content;height:max-content;max-width:calc(100vw - 32px);pointer-events:auto;text-align:center}dialog.comm-reward-pop::backdrop{background:#0006}dialog.comm-reward-pop button{margin-top:8px;min-height:44px;width:100%;border:0;border-radius:10px;background:#3183ef;color:white;font-weight:700}

/* A shared bounded frame keeps mixed-size photo slides stable. */
pitmap-post-gallery .comm-gallery.has-photo-ratio{width:100%;max-height:85svh;overflow-y:hidden}
pitmap-post-gallery .comm-gallery.has-photo-ratio>img{height:100%;min-width:0;aspect-ratio:auto;object-fit:contain}
.comm-dialog:has(#commStoryPreview){padding-bottom:max(24px,env(safe-area-inset-bottom));scroll-padding-bottom:24px}
#commStorySave{margin:8px 0 12px}
.comm-review>pitmap-post-gallery .comm-gallery.has-photo-ratio>img{height:100%;object-fit:contain}

/* Compact feed photos and a full-original viewer. */
pitmap-post-gallery .comm-gallery.has-photo-ratio{max-height:none}
pitmap-post-gallery .comm-gallery.has-photo-ratio>img{object-fit:cover;cursor:zoom-in}
.comm-review>pitmap-post-gallery .comm-gallery.has-photo-ratio>img{object-fit:cover}
.comm-photo-lightbox{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:100vw;height:100dvh;max-width:none;max-height:none;padding:60px 12px max(12px,env(safe-area-inset-bottom));border:0;background:#101c27;color:white;overflow:hidden}
.comm-photo-lightbox::backdrop{background:#020912ec}
.comm-photo-lightbox img{display:block;width:100%;height:100%;object-fit:contain}
.comm-photo-close{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));width:44px;height:44px;border:0;border-radius:50%;background:#213746;color:white;font-size:30px;cursor:pointer;z-index:1}
pitmap-post-gallery .comm-gallery.has-video>img{object-fit:cover;cursor:zoom-in}

pitmap-post-gallery .comm-gallery>img.is-landscape{object-fit:contain}
pitmap-post-gallery .comm-gallery.has-video>img.is-landscape,.comm-review>pitmap-post-gallery .comm-gallery.has-photo-ratio>img.is-landscape{object-fit:contain}

/* Keep story preview and actions reachable on compact screens. */
.comm-dialog:has(#commStoryPreview){box-sizing:border-box;width:min(440px,calc(100vw - 24px));padding:16px 18px max(18px,env(safe-area-inset-bottom));}
.comm-dialog:has(#commStoryPreview) .comm-modal-head{margin-bottom:8px}
.comm-dialog .comm-share-help{font-size:13px;line-height:1.45;margin:4px 0 10px}
#commStoryPreview img{width:auto;max-width:100%;height:min(48dvh,440px);margin:0 auto 10px}
.comm-dialog #commStorySave,.comm-dialog #commStoryLink{margin:4px 6px 4px 0;min-height:44px}

.comm-notices{display:grid;gap:6px;margin:0 0 4px}.comm-notice{border:1px solid var(--comm-line);border-radius:10px;background:var(--surface,#13212d);overflow:hidden}.comm-notice summary{display:flex;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none}.comm-notice summary::-webkit-details-marker{display:none}.comm-notice summary::after{content:'⌄';margin-left:auto}.comm-notice[open] summary::after{content:'⌃'}.comm-notice summary span{font-size:12px;color:#89baff;white-space:nowrap}.comm-notice summary strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.comm-notice p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:14px;margin:0;padding:4px 12px 14px}

.comm-notice-media:not(:empty){margin:0 12px 14px;border-radius:10px;overflow:hidden}

/* Keep tab labels on one shared center; the active underline takes no layout space. */
.community[data-mode="club"]>.comm-nav button{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:0 0 auto;height:48px;min-height:48px;padding:0;border:0;line-height:20px;appearance:none;-webkit-appearance:none}
.community[data-mode="club"]>.comm-nav button.active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#468ffe}
[data-theme="light"] .community[data-mode="club"]>.comm-nav button.active::after{background:#1769dc}
.comm-notice summary{box-sizing:border-box;min-height:44px;line-height:20px}
.comm-notice summary strong{flex:1;min-width:0;line-height:20px}
.comm-notice summary span{line-height:20px}
.comm-notice summary::after,.comm-notice[open] summary::after{content:"";display:block;box-sizing:border-box;flex:0 0 7px;width:7px;height:7px;margin:0 3px 4px 2px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:rotate(45deg)}
.comm-notice[open] summary::after{transform:rotate(225deg);margin-top:4px;margin-bottom:0}
