/* The Floor (social layer) and step-to-step "next" cards. Uses the theme's color variables. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* next-step cards between The books -> Receipt -> Vote -> Floor */
.next-step{display:flex;align-items:center;gap:16px;text-decoration:none;color:var(--ink);margin:28px 0 8px;padding:16px 18px}
.next-step img{width:84px;height:104px;object-fit:cover;object-position:50% 0;border-radius:16px;flex:none}
.next-step h2{margin:2px 0 4px;font-size:22px;line-height:1.1}
.next-step p{margin:0 0 6px;font-size:15px;color:var(--muted)}
.next-step .step-n{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--red,#A8423A)}
.next-step .go{font-weight:700;color:var(--navy,#1E2F4F)}
.next-step .go::after{content:" →"}

/* Vote page is a single column now that the feed lives on the Floor */
#view-vote .split-grid{display:block;max-width:760px}
.name-note{margin:4px 0 0}

/* Floor layout */
.floor-head{margin-bottom:10px}
.floor-tools{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin:6px 0 16px}
.floor-tools .scope-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sort-switch button{white-space:nowrap}
.floor-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;align-items:start}
.floor-grid .floor-feed{grid-column:1;grid-row:1} .floor-grid .floor-side{grid-column:2;grid-row:1}
@media (max-width:860px){ .floor-grid .floor-feed,.floor-grid .floor-side{grid-column:1;grid-row:auto} }
.floor-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:84px}
@media (max-width:860px){ .floor-grid{grid-template-columns:1fr} .floor-side{position:static;order:2} .floor-feed{order:1} }

.cg-card,.rules-card{background:var(--surface);border-radius:22px;padding:14px 16px;box-shadow:var(--pop)}
.cg-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.cg-head h2{margin:0;font-size:22px}
.cg-n{font-size:13px;font-weight:700;color:var(--muted)}
.cg-card h3{margin:10px 0 4px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--red,#A8423A)}
.cg-list{margin:0;padding-left:18px;font-size:15px;line-height:1.4}
.cg-list li{margin:3px 0}
.cg-empty,.cg-note{font-size:13.5px;color:var(--muted);margin:8px 0 0}
.rules-card{font-size:14px} .rules-card p{margin:4px 0 0;color:var(--muted)} .rules-card a{color:var(--navy,#1E2F4F)}

/* post cards */
.pc{display:flex;flex-direction:column;gap:10px;padding:14px 16px !important;margin:0 0 12px !important}
.pc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.pc-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.pc-name,.pc-name-s{font:inherit;font-weight:700;font-size:16px;color:var(--ink);background:none;border:0;padding:0;text-align:left;cursor:pointer}
.pc-name:hover{text-decoration:underline}
.pc-who .mine-tag{align-self:flex-start}
.pc-meta{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:12.5px;color:var(--muted)}
.pc-meta span+span::before{content:"·";margin-right:8px}
.pc-lv{font-weight:700;color:var(--navy,#1E2F4F)} .pc-lv.boss{color:var(--red,#A8423A)}
.pc-match{flex:none;font-size:12.5px;font-weight:700;color:var(--navy,#1E2F4F);background:var(--cash-soft,#E7EBF2);border-radius:999px;padding:3px 10px;white-space:nowrap}
.pc-note{margin:0;font-size:17px;font-weight:600;line-height:1.35}
.pc-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pc-acts .linkbtn{margin-left:auto}
.pc-acts .linkbtn+.linkbtn{margin-left:0}
.rx{display:inline-flex;align-items:center;gap:6px;min-height:38px;border:1.5px solid var(--hair);border-radius:999px;background:transparent;color:var(--ink);padding:6px 13px;font:600 14px/1 var(--serif,system-ui);cursor:pointer;text-decoration:none}
.rx:hover:not(:disabled){border-color:var(--navy,#1E2F4F)}
.rx:disabled{opacity:.55;cursor:default}
.rx-ic{font-size:14px}
.rx-n{font-variant-numeric:tabular-nums;color:var(--muted)}
.rx-n:empty{display:none}
.rx-cosign[aria-pressed="true"]{background:var(--navy,#1E2F4F);border-color:var(--navy,#1E2F4F);color:var(--paper)}
.rx-respect[aria-pressed="true"]{background:var(--brass,#B8892B);border-color:var(--brass,#B8892B);color:#1E2F4F}
.rx[aria-pressed="true"] .rx-n{color:inherit}
.floor-more{display:block;margin:6px auto 18px}
.caught-up{display:flex;gap:12px;align-items:center;background:var(--surface);border-radius:22px;padding:14px 16px;box-shadow:var(--pop);margin:6px 0 20px}
.caught-up img{width:56px;height:56px;border-radius:999px;object-fit:cover;flex:none;border:2px solid var(--brass,#B8892B)}
.caught-up p{margin:2px 0 4px;font-size:14.5px;color:var(--muted)}
.caught-up a{font-weight:700;color:var(--navy,#1E2F4F)}
.floor-empty{background:var(--surface);border-radius:22px;padding:18px;box-shadow:var(--pop)}
.floor-empty p{margin:0 0 10px}

/* thread */
#thread{max-width:760px}
.thread-back{display:inline-block;margin:6px 0 12px;font-weight:700;color:var(--navy,#1E2F4F);text-decoration:none}
.thread-h{font-size:22px;margin:18px 0 8px}
.reply-box{background:var(--surface);border-radius:22px;padding:14px 16px;box-shadow:var(--pop);display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.reply-box textarea{width:100%;box-sizing:border-box;padding:10px 12px;font:inherit;font-size:16px;resize:vertical}
.reply-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.norms{margin:0;font-size:13.5px;color:var(--muted)} .norms b{color:var(--ink)} .norms a{color:var(--navy,#1E2F4F)}
.nudge{display:flex;gap:10px;align-items:flex-start;background:var(--coin-soft,#F3E6C7);border-radius:16px;padding:10px 12px;font-size:14.5px}
.nudge[hidden]{display:none}
.nudge img{width:44px;height:44px;border-radius:999px;object-fit:cover;flex:none}
.nudge-acts{display:flex;gap:8px;margin-top:8px}
.replies{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}
.reply{background:var(--surface);border-radius:18px;padding:12px 14px;box-shadow:var(--pop);display:flex;flex-direction:column;gap:8px}
.reply-body{margin:0;font-size:15.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}

/* activity on your profile; dot on the Me tab */
.activity{background:var(--surface);border-radius:22px;padding:14px 16px;box-shadow:var(--pop);margin:0 0 18px}
.activity h2{margin:0 0 4px;font-size:22px}
.act-sum{margin:0 0 8px;font-weight:600}
.act-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.act-list li{display:flex;justify-content:space-between;gap:10px;font-size:14.5px;padding:6px 0;border-top:1px solid var(--rule)}
.act-list li.unread a{font-weight:600}
.act-list a{color:var(--ink);text-decoration:none} .act-list a:hover{text-decoration:underline}
.act-when{color:var(--muted);font-size:12.5px;white-space:nowrap}
.me-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:var(--red,#A8423A);margin-left:4px;vertical-align:top}
.me-dot[hidden]{display:none}

.floor-feed .cg-card{margin-bottom:12px}
.cg-compact{padding:10px 14px} .cg-compact .cg-head h2{font-size:17px} .cg-compact .cg-empty{margin-top:2px}
.floor-tools .scope-row,.floor-tools .switch{margin:0}
.pc-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pc-line .mine-tag{margin:0}
.tl-short{display:none}
@media (max-width:760px){ .tl-long{display:none} .tl-short{display:inline} }

@media (max-width:480px){ .rx{padding:6px 11px;font-size:13.5px;gap:5px;min-height:36px} .pc-acts{gap:6px} .floor-head p{font-size:15.5px} }
.pc .shifts{margin:0}

/* story circles */
.stories{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;margin:0 -4px;scrollbar-width:none}
.stories::-webkit-scrollbar{display:none}
.story{display:flex;flex-direction:column;align-items:center;gap:5px;width:66px;flex:none;text-decoration:none;color:var(--ink);font-size:11.5px;font-weight:600;text-align:center}
.story-ring{width:62px;height:62px;border-radius:999px;border:3px solid var(--brass,#B8892B);padding:2px;box-sizing:border-box;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--surface)}
.story-ring img{width:100%;height:100%;border-radius:999px;object-fit:cover;display:block}
.story-plus{font-size:26px;font-weight:700;color:var(--navy,#1E2F4F);line-height:1}
.story-date{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;border-radius:999px;background:#1E2F4F;color:#F3E9D2;line-height:1}
.story-date b{font-family:var(--slab,Georgia);font-weight:400;font-size:19px} .story-date span{font-size:9.5px;font-weight:800;letter-spacing:.06em}
.story-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:66px}

/* the tab card */
.tab-slot:empty{display:none}
.tab-card{background:var(--surface);border-radius:22px;overflow:hidden;box-shadow:var(--pop);margin:0 0 16px}
.tab-card img{width:100%;height:190px;object-fit:cover;object-position:50% 28%;display:block}
.tab-body{padding:12px 16px 16px;display:flex;flex-direction:column;gap:4px}
.tab-kicker{font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--red,#A8423A)}
.tab-h{margin:0;font-family:var(--slab,Georgia);font-weight:400;font-size:26px;line-height:1.05;color:var(--navy,#1E2F4F)}
.tab-body p{margin:2px 0 0;font-size:15.5px;line-height:1.4}
.tab-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px;flex-wrap:wrap}
.tab-src{font-size:12.5px;color:var(--muted);text-decoration:underline}
@media (min-width:900px){ .tab-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)} .tab-card img{height:100%;min-height:240px} .tab-body{justify-content:center;padding:20px 24px} .tab-h{font-size:34px} }
.books-tag{margin:4px 0 10px}
.floor-head h1{font-size:clamp(30px,6vw,46px)}
.floor-head p{margin:6px 0 0}

/* profile: banner, avatar, stats, share card */
.pf-hero{position:relative;margin:0 0 12px}
.pf-banner{width:100%;height:150px;object-fit:cover;object-position:50% 22%;border-radius:22px;display:block}
.pf-avatar{position:absolute;left:16px;top:108px;width:78px;height:78px;border-radius:999px;background:var(--navy,#1E2F4F);color:var(--paper);border:4px solid var(--paper);display:flex;align-items:center;justify-content:center;font-family:var(--slab,Georgia);font-size:28px;box-sizing:border-box}
.pf-kicker{margin:46px 0 2px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--red,#A8423A)}
.pf-name{margin:0;font-size:clamp(30px,7vw,46px);line-height:1}
.pf-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 16px}
.pf-stat{background:var(--surface);border-radius:14px;padding:8px 10px;box-shadow:var(--pop)}
.pf-stat b{display:block;font-family:var(--slab,Georgia);font-weight:400;font-size:22px;color:var(--navy,#1E2F4F);line-height:1.1}
.pf-stat span{font-size:12px;font-weight:600;color:var(--muted)}
.share-wrap{margin:18px 0 6px}
.share-card{position:relative;background:var(--surface);border:2px solid var(--navy,#1E2F4F);border-radius:20px;padding:14px 16px;overflow:hidden;min-height:150px;margin-bottom:10px}
.share-k{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.share-h{margin:4px 0 2px;font-size:22px;line-height:1.05;max-width:62%}
.share-who{margin:0 0 6px;font-weight:600;max-width:62%}
.share-lines{margin:0;padding-left:0;list-style:none;font-size:13.5px;max-width:64%}
.share-lines li{margin:2px 0}
.share-buck{position:absolute;right:0;bottom:0;width:108px;height:134px;object-fit:cover;object-position:50% 0}
a.btn,.next-step,.story{text-decoration:none !important}
.tab-slot.compact .tab-card{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:stretch}
.tab-slot.compact .tab-card img{height:100%;min-height:150px;object-position:30% 30%}
.tab-slot.compact .tab-body{padding:10px 12px 12px}
.tab-slot.compact .tab-h{font-size:21px}
.tab-slot.compact .tab-body p{font-size:13.5px}
.tab-slot.compact .tab-foot .btn{padding:7px 12px;font-size:13.5px}
.floor-head{margin-bottom:6px} .floor-head h1{font-size:clamp(28px,6vw,44px)}
@media (max-width:480px){ .floor-head p{display:none} }
.activity{margin-top:4px}
