/* Experience posts share the site's typography, borders and pressed controls. */
.community-page { min-width: 0; padding-right: var(--panel-shadow); padding-bottom: var(--panel-shadow); }
.community-page a.gallery-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.community-page-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.community-back, .community-text-link, .community-author-name { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.community-back { font-size: 15px; }
.community-page-top .gallery-button { font-size: 14px; min-height: 44px; padding: 8px 16px; }
.community-feed { min-width: 0; }
.community-feed-grid { min-width: 0; padding: var(--lift) calc(var(--panel-shadow) + var(--lift)) calc(var(--panel-shadow) + var(--lift)) var(--lift); }
.community-card .recruit-card-copy { gap: 16px; }
.community-card .recruit-title { font-size: 22px; line-height: 1.5; }
.community-card .recruit-card-summary { -webkit-line-clamp: 3; line-height: 1.8; }
.community-card .recruit-author { gap: 10px; }
.community-card .recruit-author .community-chip { margin-left: auto; font-size: 11px; padding: 3px 5px; white-space: nowrap; }
.community-card .recruit-nickname { min-width: 0; }
.community-card .recruit-image { max-height: 280px; object-fit: cover; }
.community-chip { display: inline-block; padding: 4px 8px; border: var(--ui-divider) solid var(--ink); background: var(--paper); font-size: 12px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.community-card-tags, .community-article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.community-card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 11px; line-height: 1.6; color: var(--ui-muted); }
.community-card a.event-open { color: inherit; text-decoration: none; }
.community-card .recruit-card-management { font-size: 12px; }
.community-load-more { display: block; margin: 28px auto 8px; }
.community-unavailable { min-height: 0; padding: 28px; }
.community-unavailable h2 { font-size: 22px; margin: 0 0 16px; }
.community-unavailable p { font-size: 14px; line-height: 1.8; }
.community-unavailable .gallery-button { font-size: 13px; min-height: 42px; padding: 8px 16px; }
.community-notice { background: var(--paper); border: var(--line) solid var(--ink); padding: 24px; margin-bottom: 24px; }
.community-notice p { white-space: pre-wrap; line-height: 1.8; margin: 0 0 16px; }
.community-notice p:last-child { margin-bottom: 0; }
.community-notice .gallery-button { font-size: 14px; margin: 0 12px 8px 0; }
.community-reading-layout { display: grid; grid-template-columns: minmax(0, 840px) minmax(160px, 1fr); align-items: start; gap: 32px; }
.community-article { min-height: 0; padding: 44px; min-width: 0; }
.community-article-header { padding-bottom: 28px; margin-bottom: 32px; border-bottom: var(--line) solid var(--ink); }
.community-article-kicker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.community-article-kicker .community-chip { background: var(--accent); }
.workspace .community-article h1 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.4; overflow-wrap: anywhere; }
.community-article-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; }
.community-article-author .recruit-avatar { width: 40px; height: 40px; flex-basis: 40px; }
.community-article-date { margin-left: auto; color: var(--ui-muted); font-size: 12px; }
.community-article-summary { margin: 28px 0 0; padding: 16px 20px; border-left: 4px solid var(--ink); background: #f4f4ee; line-height: 1.9; font-size: 15px; }
.community-prose { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.community-prose > :first-child { margin-top: 0; }
.community-prose > :last-child { margin-bottom: 0; }
.community-prose p { margin: 0 0 20px; }
.community-prose h2, .community-prose h3 { scroll-margin-top: 160px; font-family: var(--ui-font-heading); line-height: 1.5; margin: 36px 0 18px; }
.community-prose h2 { font-size: 26px; }
.community-prose h3 { font-size: 21px; }
.community-prose ul, .community-prose ol { padding-left: 26px; margin: 16px 0 24px; }
.community-prose li { margin: 6px 0; }
.community-prose blockquote { border-left: var(--line) solid var(--ink); margin: 24px 0; padding: 12px 24px; background: #f4f4ee; }
.community-prose blockquote p:last-child { margin-bottom: 0; }
.community-prose a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.community-prose a:hover { background: var(--accent); }
.community-prose img { display: block; width: auto; max-width: 100%; max-height: 900px; height: auto; border: var(--ui-divider) solid var(--ink); margin: 24px auto; object-fit: contain; }
.community-prose img[role="button"] { cursor: zoom-in; }
.community-prose img:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.community-prose .community-inline-image {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto;
  border: var(--ui-divider) solid var(--ink);
}
.community-prose > .community-inline-image:first-child { margin-top: 0; }
.community-prose > .community-inline-image:last-child { margin-bottom: 0; }
.community-prose .community-inline-image > .content-image-source {
  width: auto;
  max-width: 100%;
  max-height: 900px;
  height: auto;
  margin: 0;
  border: 0;
}
.community-prose .community-inline-image > img[aria-hidden="true"] {
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
}
.community-rich-editor .community-editor-image { cursor: default; }
.community-rich-editor .community-editor-image > .community-inline-image { margin: 0; }
.community-rich-editor .community-editor-image img { user-select: none; -webkit-user-drag: none; }
.community-prose code { font-family: var(--ui-font-body); font-size: .88em; background: #efefea; padding: 2px 5px; }
.community-prose pre { max-width: 100%; overflow: auto; white-space: pre; background: #f4f4ee; padding: 20px; border: var(--ui-divider) solid var(--ink); line-height: 1.7; font-family: var(--ui-font-body); font-size: 14px; }
.community-prose pre code { background: transparent; padding: 0; }
.community-code { position: relative; padding-top: 10px; }
.community-code pre { padding-top: 48px; }
.community-code-copy { position: absolute; right: 10px; top: 20px; background: white; color: var(--ink); border: 2px solid var(--ink); padding: 6px 10px; font: 12px var(--ui-font-body); cursor: pointer; }
.community-prose figcaption { font-size: 13px; color: var(--ui-muted); text-align: center; }
.community-prose figure { margin: 24px 0; }
.community-prose hr { border: 0; border-top: var(--ui-divider) solid var(--ink); margin: 32px 0; }
.community-article-tags { margin-top: 32px; }
.community-related { margin-top: 36px; padding-top: 28px; border-top: var(--ui-divider) solid var(--ink); }
.community-related h2 { font-family: var(--ui-font-heading); font-size: 20px; margin: 0 0 20px; }
.community-related-link { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: var(--ui-divider) solid var(--ink); background: var(--paper); width: 100%; margin-top: 12px; padding: 16px; text-align: left; font: inherit; cursor: pointer; }
.community-related-link:hover { background: var(--accent); }
.community-related-link span { font-size: 12px; }
.community-related-link strong { font-size: 17px; overflow-wrap: anywhere; }
.community-article-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; border-top: var(--line) solid var(--ink); padding-top: 28px; }
.community-article-actions .gallery-button { min-width: 0; min-height: 46px; padding: 10px 16px; font-size: 14px; }
.community-article-actions .gallery-button[aria-pressed="true"] { background: var(--accent); }
.community-article-actions .text-button { margin-left: auto; }
.community-action-feedback { font-size: 13px; white-space: pre-wrap; line-height: 1.8; }
.community-action-feedback:empty { display: none; }
.community-reading-aside { position: sticky; top: 126px; }
.community-toc { border-left: var(--line) solid var(--ink); padding-left: 20px; background: var(--accent); box-shadow: 0 0 24px 12px var(--accent); }
.community-toc h2 { font-size: 15px; margin: 0 0 16px; }
.community-toc-link { display: block; width: 100%; margin: 8px 0; padding: 6px 0; text-align: left; border: none; background: transparent; color: var(--ink); font: 13px/1.7 var(--ui-font-body); cursor: pointer; overflow-wrap: anywhere; }
.community-toc-link[data-level="3"] { padding-left: 12px; }
.community-toc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* The editor inherits the recruitment dialog's form layout and action sizes. */
.community-editor-form .form-field { align-content: start; }
.community-editor-dialog .community-rich-field { min-width: 0; border: var(--line) solid var(--ink); background: var(--paper); }
.community-editor-dialog .community-rich-field:focus-within { outline: var(--ui-divider) solid var(--ink); outline-offset: 4px; box-shadow: var(--ui-small-shadow) var(--ui-small-shadow) 0 var(--ink); }
.community-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-bottom: var(--ui-divider) solid var(--ink); background: #f4f4ee; }
.community-format-button { min-width: 42px; min-height: 38px; border: var(--ui-divider) solid transparent; padding: 6px 8px; color: var(--ink); background: transparent; font: 700 12px var(--ui-font-body); cursor: pointer; }
.community-format-button:hover, .community-format-button:focus-visible { border-color: var(--ink); background: var(--paper); outline: none; }
.community-format-button:disabled { opacity: .5; cursor: default; }
.community-rich-editor { min-width: 0; min-height: 240px; padding: 12px 14px; outline: none; }
.community-rich-editor:empty::before { content: attr(data-placeholder); display: block; color: #666; pointer-events: none; }
.community-rich-editor.is-dragging { background: #f3ffc4; box-shadow: inset 0 0 0 3px var(--ink); }
.community-rich-editor[contenteditable="false"] { background: #f7f7f2; }
.community-editor-hint { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: var(--ui-divider) solid var(--ink); padding: 10px 14px; font-size: 12px; line-height: 1.7; }
.community-word-count { margin-left: auto; }
.community-text-button { border: 0; background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 5px 0; font: 700 12px/1.7 var(--ui-font-body); }
.community-text-button:disabled { opacity: .5; cursor: default; }
.community-field-help { font-size: 12px; line-height: 1.8; color: var(--ui-muted); font-weight: 400; }
.community-field-help { margin: 12px 0; }
.community-link-dialog .community-input { min-width: 0; width: 100%; display: block; }
.community-editor-dialog .community-image-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 14px; min-width: 0; }
.community-editor-dialog .community-image-list:empty { display: none; }
.community-editor-dialog .community-image-list > .community-field-help { grid-column: 1 / -1; margin: 0; }
.community-image-item { min-width: 0; border: var(--ui-divider) solid var(--ink); background: var(--paper); }
.community-image-item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: var(--ui-divider) solid var(--ink); }
.community-image-item .community-upload-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-bottom: var(--ui-divider) solid var(--ink);
}
.community-image-item .community-upload-image > img { aspect-ratio: auto; border: 0; }
.community-image-item .community-upload-image > .content-image-source { height: 100%; object-fit: contain; }
.community-image-item > div { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 8px 10px; }
.community-image-item .community-text-button { min-height: 32px; text-align: left; }
.community-editor-feedback { white-space: pre-wrap; color: #9e1700; font-size: 14px; line-height: 1.8; }
.community-editor-feedback:empty { display: none; }
.community-editor-form .community-save-status { margin: 20px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.community-editor-management { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 32px; }
.community-editor-management .gallery-button { min-height: 44px; font-size: 14px; padding: 10px 18px; }
.community-review-notice { padding: 20px 24px; border: var(--line) solid var(--ink); margin-bottom: 28px; background: #fffbc7; }
.community-review-notice strong { font-size: 18px; }
.community-review-notice p { font-size: 14px; line-height: 1.8; white-space: pre-wrap; margin-bottom: 0; }
.community-history { margin-top: 28px; padding-top: 20px; border-top: var(--ui-divider) solid var(--ink); font-size: 13px; }
.community-history summary { cursor: pointer; font-weight: 700; }
.community-history li { margin: 12px 0; line-height: 1.8; overflow-wrap: anywhere; }
.community-link-dialog, .community-confirm-dialog { padding: 28px; max-width: 540px; }
.community-link-dialog h2, .community-confirm-dialog h2 { margin-top: 0; font-size: 24px; }
.community-confirm-dialog p { line-height: 1.8; }
.community-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.community-dialog-actions .gallery-button { min-width: 0; font-size: 14px; padding: 10px 20px; }
.community-preview-dialog { width: min(920px, calc(100vw - 32px)); }
.community-preview-dialog > .community-article { border: 0; box-shadow: none; }
@media (max-width: 1050px) {
  .community-reading-layout { display: block; }
  .community-reading-aside { display: none; }
  .community-article { max-width: 840px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .community-editor-dialog .community-image-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .community-rich-editor { min-height: 200px; }
  .community-editor-toolbar { padding: 10px; }
  .community-format-button { min-height: 40px; padding: 6px; }
  .community-article { padding: 24px; }
  .community-article-header { margin-bottom: 24px; padding-bottom: 24px; }
  .community-article-kicker { margin-bottom: 20px; }
  .community-article-author { gap: 10px; font-size: 13px; }
  .community-article-summary { padding: 12px 16px; font-size: 14px; }
  .community-prose { font-size: 15px; }
  .community-prose h2 { font-size: 23px; }
  .community-prose h3 { font-size: 19px; }
  .community-prose h2, .community-prose h3 { scroll-margin-top: 235px; }
  .community-article-actions { gap: 12px; }
  .community-article-actions .gallery-button { font-size: 12px; padding: 10px; }
  .community-article-actions .text-button { margin-left: 0; }
}
@media (max-width: 540px) {
  .community-editor-dialog .community-image-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 480px) {
  .community-page-top { gap: 12px; margin-bottom: 24px; }
  .community-page-top .gallery-button { font-size: 12px; padding: 8px 10px; }
  .community-card .recruit-title { font-size: 21px; }
  .community-article { padding: 20px; }
  .community-article-date { flex-basis: 100%; margin-left: 50px; }
  .community-article-actions .gallery-button { flex-grow: 1; }
  .community-editor-hint { padding: 12px; gap: 8px; }
  .community-word-count { margin-left: 0; }
  .community-link-dialog, .community-confirm-dialog { padding: 20px; }
}
