/* Shared public Community, Party, Player and GM presentation. Editor layouts stay separate. */
html.rk-arcane-theme .public-entity-page {--public-header-gap:36px;--public-panel-gap:22px;}
html.rk-arcane-theme .public-entity-header {display:block;padding:0;margin:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);isolation:isolate;}
.public-entity-cover {border-radius:var(--radius) var(--radius) 0 0;}
.public-entity-heading {display:grid;grid-template-columns:112px minmax(0,1fr);gap:24px;padding:0 28px 28px;align-items:start;}
.public-entity-heading-with-menu {grid-template-columns:112px minmax(0,1fr) auto;}
.public-entity-header-menu {margin-top:22px;justify-self:end;}
.public-entity-header-menu > .overflow-menu > summary {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;}
.public-entity-avatar {position:relative;margin-top:-32px;z-index:1;}
html.rk-arcane-theme .public-entity-avatar :is(.profile-avatar,.party-public-image) {width:112px;height:112px;margin:0;border:4px solid var(--surface);border-radius:22px;background-color:var(--surface);outline:2px solid color-mix(in srgb,var(--brand) 70%,var(--line));outline-offset:0;}
.public-entity-identity {min-width:0;padding-top:22px;}
html.rk-arcane-theme body #main-content.public-entity-page .public-entity-identity h1 {margin:0 0 10px;color:var(--text);font-family:inherit;font-size:var(--rk-heading-page,2rem);font-weight:700;line-height:1.2;letter-spacing:normal;text-transform:none;overflow-wrap:anywhere;}
.public-entity-identity :is(.profile-badges,.community-hero-statuses,.badge-row) {display:flex;flex-wrap:wrap;gap:8px;margin:0;}
.public-entity-identity .profile-metadata {margin:10px 0 0;color:var(--muted);}
.public-entity-actions {display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;margin-top:18px;}
.public-entity-actions:empty {display:none;}
.public-entity-actions > form {margin:0;}
.public-entity-actions > details {margin:0;max-width:100%;}
.public-entity-actions > details[open] {flex-basis:100%;}
.public-entity-actions > details.overflow-menu[open] {flex-basis:auto;}
.public-entity-actions > details > summary {display:inline-flex;list-style:none;margin:0;}
.public-entity-actions > details > summary::-webkit-details-marker {display:none;}
.public-entity-actions .form-card {width:100%;min-width:0;max-width:640px;margin:12px 0 0;}
.public-entity-actions .button {white-space:normal;overflow-wrap:anywhere;}
html.rk-arcane-theme .public-entity-page .public-entity-about {margin:var(--public-header-gap) 0 var(--public-panel-gap);}
html.rk-arcane-theme .public-entity-page .public-entity-panel {padding:var(--rk-panel-padding);border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-width:0;}
.public-entity-panel > h2 {margin:0 0 16px;}
.public-entity-about > :last-child {margin-bottom:0;}
.public-entity-about .community-hero-about {margin:0;}
.public-entity-about :is(p,.pre-line) {overflow-wrap:anywhere;}
.public-entity-page .public-entity-columns {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:var(--public-panel-gap);align-items:start;}
.public-entity-stack {display:grid;gap:var(--public-panel-gap);min-width:0;}
.public-entity-preferences {display:grid;gap:18px;margin:0;}
.public-entity-preferences > div {min-width:0;}
.public-entity-preferences dt {font-size:.8125rem;color:var(--muted);font-weight:700;margin:0 0 8px;}
.public-entity-preferences dd {margin:0;}
.public-entity-table {display:grid;margin:0;}
.public-entity-table > div {display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,1.1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--line);}
.public-entity-table > div:first-child {padding-top:0;}
.public-entity-table > div:last-child {padding-bottom:0;border-bottom:0;}
.public-entity-table dt {color:var(--muted);font-weight:600;}
.public-entity-table dd {margin:0;overflow-wrap:anywhere;}
.public-entity-page .availability-timezone-note {font-size:.8125rem;line-height:1.5;margin:0 0 16px;}
.public-entity-page .availability-list > div {display:grid;gap:5px;}
.public-entity-page .availability-list > div:last-child {border-bottom:0;padding-bottom:0;}
html.rk-arcane-theme .public-entity-page .community-header-facts {margin:0;}
html.rk-arcane-theme .public-entity-page .community-header-facts dt {color:var(--muted);}
html.rk-arcane-theme .public-entity-page .community-header-facts dd {color:var(--text);}
.public-entity-page .public-entity-details {margin-bottom:var(--public-panel-gap);}
.public-entity-details .community-hero-stats {margin-top:22px;}
.public-entity-details .party-public-co-gms {margin-top:18px;}
.public-entity-identity .party-membership-row {margin:12px 0 0;padding:0;border:0;}
html.rk-arcane-theme .public-entity-page > :is(.dashboard-section,.community-tab-panel,.party-public-application,.party-games-section) {margin-block:var(--public-panel-gap);}
html.rk-arcane-theme .public-entity-page > .community-tabs {margin:var(--public-panel-gap) 0;}
/* Public content navigation is separate from both the hero and management tabs. */
html.rk-arcane-theme .public-entity-page > .public-entity-tabs {display:flex;flex-wrap:wrap;gap:4px;margin:var(--public-header-gap) 0 var(--public-panel-gap);padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;overflow:visible;}
html.rk-arcane-theme .public-entity-page .public-entity-tabs > a {display:inline-flex;align-items:center;min-height:var(--rk-touch-target,44px);padding:12px 16px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted);white-space:normal;overflow-wrap:anywhere;}
html.rk-arcane-theme .public-entity-page .public-entity-tabs > a:is(.active,[aria-current="page"]) {border-bottom-color:var(--brand);background:transparent;color:var(--brand);}
html.rk-arcane-theme .public-entity-page .public-entity-tabs > a:hover {background:color-mix(in srgb,var(--brand) 8%,transparent);color:var(--brand);}
html.rk-arcane-theme .public-entity-page .public-entity-tabs > a:focus-visible {outline:3px solid var(--brand);outline-offset:-3px;}
.public-entity-tab-content {display:grid;gap:var(--public-panel-gap);min-width:0;}
html.rk-arcane-theme .public-entity-page .public-entity-tab-content .public-entity-panel {margin:0;}
html.rk-arcane-theme .public-entity-page .public-entity-tab-content > :is(.community-tab-panel,.party-public-application,.party-games-section) {margin:0;padding-block:0;}
.public-entity-tab-content .section-heading {margin:0 0 16px;}
.public-entity-tab-content .section-heading h2 {margin:0;}
.public-entity-tab-content .community-hero-stats {margin-top:22px;}
html.rk-arcane-theme .public-entity-tab-content .community-header-facts {grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr));}
.party-session-empty{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding-block:12px}
.party-session-empty>p{margin:0}
.public-entity-tab-content .public-entity-preferences dd {overflow-wrap:anywhere;}
.public-entity-tab-content .public-entity-preview-title {font-weight:700;overflow-wrap:anywhere;}
.public-entity-summary-link {display:inline-flex;align-items:center;min-height:var(--rk-touch-target,44px);margin-top:12px;overflow-wrap:anywhere;}
@media(max-width:780px) {
  .public-entity-page .public-entity-columns {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:520px) {
  .public-entity-tab-content .community-hero-stats {grid-template-columns:minmax(0,1fr);padding-block:0;}
  .public-entity-tab-content .community-hero-stats > div {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;text-align:left;}
  .public-entity-tab-content .community-hero-stats > div + div {border-inline-start:0;border-top:1px solid var(--line);}
  .public-entity-tab-content .community-hero-stats dt {justify-content:flex-start;}
  .public-entity-tab-content .community-hero-stats dt span {overflow-wrap:normal;}
  .public-entity-tab-content .community-hero-stats dd {margin:0;}
  .public-entity-heading {grid-template-columns:minmax(0,1fr);gap:0;padding:0 20px 22px;}
  .public-entity-heading-with-menu {grid-template-columns:minmax(0,1fr) auto;}
  .public-entity-heading-with-menu > .public-entity-avatar {grid-column:1;grid-row:1;}
  .public-entity-heading-with-menu > .public-entity-identity {grid-column:1 / -1;grid-row:2;}
  .public-entity-header-menu {grid-column:2;grid-row:1;margin-top:14px;}
  .public-entity-identity {padding-top:16px;}
  html.rk-arcane-theme .public-entity-avatar :is(.profile-avatar,.party-public-image) {width:88px;height:88px;border-radius:18px;}
  .public-entity-avatar {margin-top:-24px;}
  .public-entity-actions > :is(a,form,details) {width:100%;}
  .public-entity-actions .button {width:100%;}
  .public-entity-table > div {grid-template-columns:minmax(0,1fr);gap:5px;}
}
