:root { --ink:#081546; --navy:#081546; --orange:#ff7900; --sky:#dcf2ff; --peach:#ffe4cb; --line:#cfe1ee; }
* { box-sizing:border-box; }
body { margin:0; background:#fff; color:var(--ink); font-family:'Nunito',sans-serif; }
a { color:inherit; text-decoration:none; }
button { font:inherit; color:inherit; }
img { max-width:100%; }
h1,h2,h3 { font-family:'Nunito',sans-serif; font-weight:900; letter-spacing:-.5px; }
a:focus-visible,button:focus-visible { outline:3px solid #a1389b; outline-offset:4px; }
.community-skip { position:fixed; top:-70px; z-index:30; background:white; padding:12px; }
.community-skip:focus { top:0; }
.community-header { background:linear-gradient(110deg,#def3ff,#ccecff); border-radius:0 0 50% 4% / 0 0 14px 8px; }
.community-header-inner { max-width:1280px; margin:auto; padding:18px 28px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.community-brand { display:flex; align-items:center; gap:12px; font-size:27px; font-weight:900; letter-spacing:-.7px; white-space:nowrap; }
.community-brand img { width:44px; height:44px; object-fit:contain; }
.community-nav { display:flex; align-items:center; gap:12px; }
.community-nav a { display:flex; align-items:center; gap:9px; padding:10px 16px; font-size:20px; font-weight:900; border-radius:28px; }
.community-nav svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.community-nav [aria-current] { background:var(--peach); color:#dc6500; text-decoration:none; }
.community-footer { display:flex; justify-content:center; flex-wrap:wrap; gap:24px; padding:28px 20px; background:white; color:#4c6583; border-top:1px solid var(--line); font-size:12px; }
.community-main { max-width:1224px; margin:auto; padding:28px 24px 40px; }
.community-intro { text-align:center; background:#ecf8ff; border-radius:24px; padding:25px; margin-bottom:30px; }
.back-to-fan { display:inline-block; font-size:12px; font-weight:800; color:#496783; margin-bottom:16px; }
.community-intro h1 { font-size:40px; line-height:1.1; margin:0 0 10px; }
.community-intro>p { margin:0 0 20px; font-size:17px; }
.community-primary { display:inline-block; background:var(--orange); color:white; padding:12px 23px; border-radius:18px; font-size:17px; font-weight:900; box-shadow:0 3px 0 #d35e00; }
.community-section-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:22px; }
.community-section-heading h2 { font-size:28px; line-height:1.2; margin:0; }
.community-section-heading>span { font-size:12px; white-space:nowrap; }
.community-story-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:23px; }
.community-story-card { border:1px solid var(--line); border-radius:20px; overflow:hidden; background:white; }
.community-story-card>a { display:flex; flex-direction:column; height:100%; }
.community-story-card img { display:block; width:100%; height:auto; aspect-ratio:1.6; object-fit:cover; background:#e4f4ff; }
.community-story-card>a>div { padding:18px; display:flex; flex-direction:column; flex:1; }
.community-story-card h3 { font-size:21px; line-height:1.3; margin:12px 0 10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.community-pill { display:inline-block; align-self:flex-start; padding:4px 11px; background:#d9f5dc; border-radius:20px; font-size:11px; font-weight:800; }
.community-credit { margin:0 0 12px; font-size:12px; font-weight:800; color:#4d6685; }
.community-summary { margin:0 0 20px; font-size:13px; line-height:1.7; color:#51627a; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.community-read { margin-top:auto; font-weight:900; font-size:14px; color:#b95000; }
.community-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:18px; margin-top:32px; font-size:13px; }
.community-pagination>a { background:#e1f3ff; border-radius:15px; padding:10px 17px; font-weight:900; }
.community-reader { max-width:850px; margin:auto; padding:30px 26px 40px; }
.story-title { padding:25px; border-radius:22px; background:#ecf8ff; margin-bottom:28px; }
.story-title h1 { font-size:34px; line-height:1.22; margin:15px 0; overflow-wrap:anywhere; }
.story-title p { margin:0; font-size:14px; }.story-title p a { text-decoration:underline; text-underline-offset:4px; }
.story-content { font-family:'DM Sans',sans-serif; font-size:17px; line-height:1.85; color:#182c49; overflow-wrap:anywhere; }
.story-content p,.story-content div,.story-content span { max-width:100%; }
.story-content p { margin:0 0 1.2em; }
.story-content img { display:block; max-width:100%!important; height:auto!important; float:none!important; margin:20px auto!important; border-radius:12px; }
.story-content iframe { max-width:100%; }
.story-content table { display:block; max-width:100%; overflow-x:auto; }
.story-content pre { white-space:pre-wrap; }
.reader-next { background:#fff0df; border-radius:20px; padding:25px; text-align:center; margin-top:35px; }.reader-next h2 { font-size:27px; margin:0 0 18px; }
.community-empty { padding:30px; text-align:center; line-height:1.8; }
/* Gallery overrides retain its loader, sorting, viewer and vote behaviour. */
.gallery-intro { background:#ecf8ff; color:var(--navy); border:0; border-radius:24px; }
.intro-copy h1 { font:900 43px/1.12 'Nunito',sans-serif; letter-spacing:-1px; }
.intro-copy .back-link,.intro-description,.intro-bottom p,.intro-bottom strong { color:var(--navy); }
.intro-art img { border-radius:0 24px 24px 0; }
.primary-button { background:var(--orange); color:white; box-shadow:0 3px 0 #d35e00; border:0; border-radius:17px; font-weight:900; }
.primary-button:hover { background:#ec6c00; }.secondary-button { border:1px solid var(--line); border-radius:15px; font-weight:800; }
.gallery-toolbar h2 { border:0; padding:0; font-size:29px; }.gallery-toolbar p { margin-left:0; }
.sort-options { border:0; border-radius:20px; background:#e4f4ff; }.sort-options a { border-radius:16px; font-weight:900; }.sort-options [aria-current] { background:var(--peach); color:#c05800; }
.fan-card { border:1px solid var(--line); border-radius:20px; box-shadow:none; padding:9px; }.artwork-button { border-radius:13px; background:#fff7eb; }
.artist-name { font-weight:900; }.like-button { border-color:#d5e6f4; background:#f5fbff; }
.submission-banner { background:#fff0df; border-radius:22px; }.submission-banner h2 { font-size:32px; }
dialog { border:1px solid var(--line); border-radius:20px; }dialog h2 { font-family:'Nunito',sans-serif; }
@media(max-width:1000px) { .community-brand { font-size:23px; }.community-nav { gap:2px; }.community-nav a { font-size:17px; padding:9px 11px; } }
@media(max-width:800px) { .community-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  body { padding-bottom:calc(86px + env(safe-area-inset-bottom)); }
  .community-header-inner { padding:14px 18px; justify-content:center; }
  .community-brand { font-size:24px; gap:9px; }.community-brand img { width:38px; height:38px; }
  .community-nav { position:fixed; z-index:15; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(4,1fr); padding:8px 10px calc(8px + env(safe-area-inset-bottom)); gap:5px; background:#fffffff7; backdrop-filter:blur(12px); border-top:1px solid var(--line); }
  .community-nav a { display:flex; flex-direction:column; gap:3px; padding:7px 4px; border-radius:18px; font-size:14px; line-height:1.15; }.community-nav svg { width:27px; height:27px; }
  .community-main { padding:22px 16px 30px; }.community-intro { padding:20px 16px; margin-bottom:25px; }.community-intro h1 { font-size:32px; }.community-intro>p { font-size:15px; }.community-primary { font-size:16px; }
  .community-section-heading h2 { font-size:24px; }.community-section-heading>span { font-size:10px; }
  .community-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.community-story-card { border-radius:17px; }.community-story-card>a>div { padding:12px; }.community-story-card img { aspect-ratio:1.2; }.community-story-card h3 { font-size:16px; margin:9px 0; }.community-credit { font-size:10px; }.community-summary { display:none; }.community-read { font-size:12px; }.community-pill { font-size:9px; padding:4px 8px; }
  .community-reader { padding:20px 17px 30px; }.story-title { padding:20px; }.story-title h1 { font-size:27px; }.story-content { font-size:16px; line-height:1.9; }.reader-next { padding:22px 17px; }.reader-next h2 { font-size:25px; }
  .community-footer { gap:15px; font-size:10px; padding:22px 14px; }
  .intro-copy { background:linear-gradient(90deg,#dff2fffa 0%,#dff2fff2 35%,#dff2ff30 100%); }.intro-copy h1 { color:var(--navy); font-size:34px; }.intro-bottom p,.intro-bottom strong { color:var(--navy); }
  .gallery-intro,.intro-art img { border-radius:20px; }.fan-card { padding:6px; border-radius:16px; }.artwork-button { border-radius:10px; }
}
@media(max-width:350px) { .community-brand { font-size:21px; }.community-nav a { font-size:12px; }.community-story-grid { gap:10px; }.community-story-card h3 { font-size:15px; } }
