.community-shell { width: min(100% - 2.5rem, 72rem); margin: 1.5rem auto 4rem; }
.community-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 13rem;
    display: flex;
    align-items: center;
    border-radius: 1.5rem;
    color: #fff;
    background: #173e48;
}
.community-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    z-index: -2;
}
.community-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(270deg, #122f38 0%, #122f38e8 32%, #122f384a 74%);
}
.community-hero-copy { padding: clamp(1.2rem, 4vw, 3rem); max-width: 38rem; }
.community-hero h1 { font-size: clamp(1.85rem, 4vw, 3.35rem); margin: 0 0 .65rem; line-height: 1.35; }
.community-hero p { max-width: 28rem; color: #f0f8f9; margin: 0 0 1.3rem; }
.community-actions, .community-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.community-action, .community-secondary {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem 1rem;
    border: 1px solid #ffffffa1; border-radius: .65rem; font-weight: 700;
}
.community-action { background: #fff; color: #173e48; }
.community-action:hover { background: #e2eef0; }
.community-secondary:hover { background: #122f38; }
.community-shortcuts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: .55rem; margin-block: .9rem 1.35rem;
}
.community-shortcuts a {
    display: flex; align-items: center; gap: .55rem; min-height: 48px; padding: .4rem .65rem;
    border: 1px solid #d7e3e5; border-radius: .75rem; background: #fff;
    font-size: .88rem; font-weight: 700; color: #244b58;
}
.community-shortcuts a:hover { background: #edf6f7; border-color: #a1c0c7; }
.community-shortcuts a:focus-visible { outline: 2px solid #395f6c; outline-offset: 2px; }
.community-shortcuts a span {
    display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem;
    border-radius: .55rem; background: #eaf3f4; color: #395f6c; font-size: 1rem;
}
.community-content {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.2rem); align-items: start;
}
.community-content:has(> .community-discovery) { grid-template-columns: minmax(0, 2.4fr) minmax(15rem, 1fr); }
.community-heading { justify-content: space-between; margin-bottom: 1rem; }
.community-heading h2, .community-discovery h2 { margin: 0; }
.community-stories .story-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.community-stories :is(.story-card, .state-card), .community-directory, .community-magazine, .community-empty {
    background: #fff; border: 1px solid #d7e3e5; border-radius: 1rem;
}
.community-stories .story-image { height: auto; aspect-ratio: 16 / 8; }
.community-stories .story-mark { display: none; }
.community-stories .story-copy, .community-empty { padding: clamp(1rem, 3vw, 1.6rem); }
.community-empty h3 { margin-bottom: .2rem; }
.community-discovery { display: grid; gap: 1rem; }
.community-directory, .community-magazine { padding: 1rem; }
.community-discovery h2 { font-size: 1.05rem; margin-bottom: .5rem; }
.community-article { border-top: 1px solid #e3ecee; }
.community-article a:hover { text-decoration: underline; text-underline-offset: .25em; }
.community-discovery-search { margin: 0; }
.community-discovery-search label { display: block; font-size: .88rem; font-weight: 700; margin-block-end: .3rem; }
.community-discovery-search div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.community-discovery-search input { min-width: 0; padding-inline: .65rem; border: 1px solid #b4cace; border-radius: .55rem; font: inherit; }
.community-article { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; }
.community-article img { flex: none; width: 3.7rem; height: 3.7rem; object-fit: cover; border-radius: .6rem; }
.community-article h3 { font-size: .9rem; margin: 0; overflow-wrap: anywhere; }
.community-article p { font-size: .75rem; color: #536e74; margin: 0 0 .2rem; }
.community-people .memory-hero { min-height: 0; }
.community-people .community-people-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
.community-people-nav a { padding: .55rem .9rem; border: 1px solid #c6dadf; border-radius: .65rem; }
.community-people-nav a[aria-current=page] { color: #fff; background: #395f6c; }
.community-people .community-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: stretch; }
.community-people .community-search-row input { margin: 0; min-width: 0; }
.community-people #people-query-help { margin: .55rem 0 0; }
.community-people .community-person-link { display: flex; align-items: center; gap: .75rem; }
.community-person-link h3 { margin: 0; }
.community-person-link bdi { font-size: .85rem; overflow-wrap: anywhere; }
.community-people .community-person-avatar { display: grid; flex: 0 0 3rem; inline-size: 3rem; block-size: 3rem;
  place-items: center; border-radius: 50%; object-fit: cover; background: #e2ecee; color: #395f6c; }
.community-search-status { color: #395f6c; margin-block: .55rem; min-block-size: 1.25em; }
.community-search-status:empty { min-block-size: 0; margin: 0; }
.community-profile { width: min(70rem, 100% - 2.5rem); margin: 1.4rem auto 4rem; }
.community-profile-nav { display: flex; flex-wrap: wrap; gap: .5rem; color: #48636c; font-size: .9rem; margin-block-end: .7rem; }
.community-profile-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.community-profile-hero { border-radius: 1.25rem; border: 1px solid #d7e3e5; overflow: hidden; background: #fff; }
.community-profile-cover { height: clamp(7rem, 22vw, 15rem); background: #395f6c; }
.community-profile-cover-own { background: radial-gradient(ellipse at 18% 0%, #5e8a8e, transparent 55%), linear-gradient(125deg, #395f6c, #193c48); }
.community-profile-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.community-profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .9rem clamp(.9rem, 4vw, 2rem) 1.2rem; }
.community-profile-portrait {
    display: grid; place-items: center; flex: none; margin-block-start: -2.8rem; width: 5.4rem; height: 5.4rem;
    border: .25rem solid #fff; border-radius: 50%; background: #e5eff1; color: #284b57; font-size: 1.8rem; font-weight: 700;
}
.community-profile-identity { flex: 1 1 12rem; min-width: 0; }
.community-profile-identity h1 { margin: 0; font-size: clamp(1.45rem, 3.2vw, 2.25rem); overflow-wrap: anywhere; }
.community-profile-handle { text-align: right; margin: .15rem 0 0; color: #48636c; overflow-wrap: anywhere; }
.community-profile-follow-note { margin: .2rem 0 0; font-size: .9rem; color: #48636c; }
.community-profile-follow-note:empty { margin: 0; }
.community-profile-actions { display: flex; align-items: start; flex-wrap: wrap; gap: .55rem; }
.community-profile-actions details { max-width: 25rem; }
.community-profile-actions summary { min-height: 44px; padding: .45rem; color: #48636c; cursor: pointer; }
.community-profile-actions [data-profile-follow-active="true"] { border: 1px solid #395f6c; background: #fff; color: #284b57; }
.community-profile-actions .community-profile-secondary { border: 1px solid #395f6c; background: #fff; color: #284b57; }
.community-profile-stories { margin-block: 1.8rem; }
.community-profile-distinction { margin-block: 1.25rem; padding: 1rem 1.15rem; background: #fbf8ed; border: 1px solid #e6d5a5; border-radius: .85rem; }
.community-profile-distinction h2 { font-size: 1rem; margin: 0 0 .6rem; }
.community-profile-distinction ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.community-profile-distinction a { display: inline-flex; align-items: center; min-height: 44px; gap: .5rem; padding-inline: .7rem; color: #71480e; background: #fff; border: 1px solid #d8c692; border-radius: 2rem; }
.community-profile-distinction a:hover { text-decoration: underline; text-underline-offset: .18em; }
.community-profile-stories .story-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.community-profile-stories .story-card { border: 1px solid #d7e3e5; border-radius: 1rem; background: #fff; }
.community-profile-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.world-dashboard { width: min(72rem, 100% - 2rem); margin: 1.5rem auto 4rem; }
.world-dashboard [hidden] { display: none !important; }
.world-dashboard-heading {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .9rem;
    border-radius: 1.2rem; background: linear-gradient(125deg, #306172, #183842); color: #fff;
    padding: clamp(1.25rem, 4vw, 2.4rem);
}
.world-dashboard-heading h1 { color: inherit; margin: 0; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.world-dashboard-heading p { margin: .35rem 0 0; color: #e1eff3; }
.world-dashboard-heading .button { background: #fff; color: #244e5b; }
.world-dashboard-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-block: 1rem; border-bottom: 1px solid #c8dce0; }
.world-dashboard-nav a { min-height: 44px; display: inline-flex; align-items: center; border-radius: .65rem .65rem 0 0; padding: .45rem 1rem; }
.world-dashboard-nav a[aria-current] { background: #dcecef; font-weight: 700; color: #204a58; box-shadow: inset 0 -2px #395f6c; }
.world-dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .8rem; }
.world-dashboard-cards article { border: 1px solid #d0e2e5; border-radius: .9rem; background: #fff; padding: 1rem; }
.world-dashboard-cards h3, .world-dashboard-cards p { margin-block: 0 .35rem; }
.world-dashboard-cards ul { margin-block: .5rem 0; }
.world-dashboard-cards a:hover { text-decoration: underline; text-underline-offset: .18em; }
.profile-workspace h1 { margin-block: 1rem; }
.workspace-editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-block: 1rem; }
.workspace-card { padding: clamp(1rem, 3vw, 1.4rem); border: 1px solid #cfdee1; border-radius: .9rem; background: #fff; }
.workspace-card h2 { margin-block: 0 .7rem; font-size: 1.1rem; }
.workspace-card form { display: grid; gap: .65rem; justify-items: start; }
.workspace-card :is(input:not([type=checkbox]), textarea) { width: 100%; border: 1px solid #a9c0c5; padding: .55rem; border-radius: .5rem; background: #f8fbfb; color: inherit; font: inherit; }
.workspace-card input[type=file] { max-width: 100%; }
.workspace-avatar { border-radius: 50%; margin-block-end: .65rem; object-fit: cover; }
.workspace-portrait { object-fit: cover; }
.workspace-bio { white-space: pre-line; overflow-wrap: anywhere; margin-block: .55rem 0; color: #284b57; }
.workspace-inline { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.workspace-inline input:not([type=checkbox]) { flex: 1 1 12rem; width: auto; }
.workspace-albums, .workspace-photos { margin-block: 1rem; }
.workspace-albums h2 { margin-block: .2rem; font-size: 1.1rem; }
.workspace-album-icon { color: #395f6c; font-size: 1.32rem; }
.workspace-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .85rem; }
.workspace-photos figure { background: #fff; border: 1px solid #d2e1e4; border-radius: .8rem; overflow: hidden; min-width: 0; margin: 0; }
.workspace-photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.workspace-photos :is(figcaption, form) { padding: .55rem .8rem; overflow-wrap: anywhere; }
.workspace-link { background: none; border: none; padding: .45rem 0; min-height: 44px; color: #8a3e2e; font: inherit; cursor: pointer; }
.workspace-message:empty { display: none; }
@media (max-width: 620px) {
    .community-profile { width: calc(100% - 1.25rem); }
    .community-profile-head { gap: .6rem; }
    .community-profile-portrait { width: 4.35rem; height: 4.35rem; }
    .community-profile-actions { flex-basis: 100%; }
}
.community-identity { max-width: 67rem; }
.community-identity nav { margin-block: 0 1rem; font-size: .9rem; }
.community-identity nav a { text-decoration: underline; text-underline-offset: .2em; }
.community-identity-heading {
    display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem;
    padding: clamp(1.2rem, 3vw, 2.25rem); border-radius: 1.25rem;
    background: linear-gradient(120deg, #365f69, #183944 73%); color: #fff;
}
.community-identity-heading > div { min-width: 0; flex: 1 1 20rem; }
.community-identity-heading .eyebrow { margin: 0; }
.community-identity-heading :is(.eyebrow, bdi) { color: #dcf0f2; }
.community-identity-heading h1 { font-size: clamp(1.6rem, 4vw, 2.65rem); margin: .1rem 0; overflow-wrap: anywhere; }
.community-identity-heading p:last-child { margin: 0; overflow-wrap: anywhere; }
.community-identity-heading .community-action { border-color: #fff; }
.publisher-follow-status:empty { display: none; }
.publisher-layout { display: grid; gap: 1rem; margin-block-start: 1.4rem; align-items: start; }
.publisher-layout:has(> .community-identity-about) { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); }
.publisher-stories h2, .community-identity-about h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.publisher-story, .publisher-story-message {
    margin: 0 0 .65rem; padding: 1rem 1.15rem; border: 1px solid #d7e3e5;
    background: #fff; border-radius: .85rem; overflow-wrap: anywhere;
}
.publisher-story h3 { font-size: 1.1rem; margin: 0; }
.publisher-story h3 a { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.publisher-story h3 a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
.publisher-story-place { font-size: .82rem; color: #426471; margin: 0 0 .25rem; }
.publisher-story-media {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: .75rem; margin-block-start: .75rem; align-items: start;
}
.publisher-story-media img, .publisher-story-media video {
    display: block; width: 100%; height: auto; max-height: 24rem; object-fit: contain;
    border-radius: .65rem; background: #eaf1f2;
}
.publisher-story-media figure { margin: 0; }
.publisher-story-media figcaption { font-size: .82rem; margin-block-start: .3rem; }
.publisher-story-excerpt { margin: .35rem 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.community-identity-about {
    padding: 1rem 1.15rem; border: 1px solid #d7e3e5;
    background: #fff; border-radius: 1rem; overflow-wrap: anywhere;
}
.community-identity-about p { white-space: pre-wrap; }
.community-identity-about small { color: #536e74; }
@media (max-width: 740px) {
    .community-shell { width: calc(100% - 1.5rem); margin-top: .75rem; }
    .community-content:has(> .community-discovery) { grid-template-columns: minmax(0, 1fr); }
    .community-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .community-shortcuts a:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .publisher-layout:has(> .community-identity-about) { grid-template-columns: minmax(0, 1fr); }
    .community-hero { min-height: 12.75rem; align-items: end; }
    .community-hero::after { background: linear-gradient(0deg, #122f38 3%, #122f38dd 50%, #122f3838 100%); }
    .community-hero-copy { padding-top: 2rem; }
    .community-heading h2 { font-size: 1.35rem; }
    .community-magazine { display: grid; gap: .3rem; }
}
