#community-demo {
  --ink: #203d32;
  --soft: #526758;
  --rule: #c8beaa;
  --paper: #f8f1df;
  --rust: #8b4533;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  width: min(1320px, calc(100vw - 52px));
  max-width: none;
  height: min(780px, calc(100dvh - 54px));
  max-height: none;
  padding: 0;
  color: var(--ink);
  background: #eee8d8;
  border: 1px solid #ada889;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 22px 100px #13362950;
}
#community-demo::backdrop { background: #173c345c; backdrop-filter: blur(3px); }
#community-demo [hidden] { display: none !important; }
#community-demo :is(button, a) { font-family: inherit; touch-action: manipulation; }
#community-demo button { cursor: pointer; }
#community-demo :is(button, a):focus-visible { outline: 3px solid #a97732; outline-offset: 2px; }
#community-demo h2:focus { outline: none; }
.community-frame { height: 100%; display: flex; flex-direction: column; }
.community-header {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 69px; padding: 10px clamp(18px, 3vw, 40px);
  color: #f6eedb; background: #24483e; border-bottom: 2px solid #b79458;
}
.community-wordmark { display: flex; align-items: center; gap: 12px; }
.community-wordmark h1 { font: 650 clamp(19px, 2vw, 26px)/1.2 var(--serif); letter-spacing: .04em; margin: 0; }
.community-seal { display: grid; place-items: center; width: 31px; height: 33px; border: 1px solid #e9d5ab; color: #f5e6bc; font: 600 21px/1 var(--serif); }
.community-back { color: #f2ecdb; background: transparent; border: 1px solid #93a398; border-radius: 4px; padding: 7px 12px; font-size: 13px; }
.community-back:hover { background: #335748; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(325px, 1fr); flex: 1; min-height: 0; }
.community-atlas {
  position: relative; min-width: 0; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 50%, #f4f5e6, #d9e9df 62%, #c7dfd6);
}
.community-atlas::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#547d7110 1px, transparent 1px),linear-gradient(90deg,#547d7110 1px,transparent 1px); background-size: 44px 44px; }
#community-model { position: absolute; inset: clamp(101px, 9vw, 121px) 0 53px; touch-action: none; }
#community-model canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#community-model canvas:active { cursor: grabbing; }
#community-model img { display: block; width: 100%; height: 100%; object-fit: contain; }
.community-original { position: absolute; inset: clamp(100px, 9vw, 122px) 5% 62px; margin: 0; }
.community-original img { display: block; width: 100%; height: 100%; object-fit: contain; }
.community-caption { position: absolute; top: clamp(18px, 3.1vw, 42px); left: clamp(18px, 3.1vw, 42px); pointer-events: none; text-shadow: 0 1px 4px #f5f3dd; }
.community-caption p, .community-kicker { color: var(--rust); margin: 0 0 8px; font: 650 12px/1.5 var(--serif); letter-spacing: .14em; }
.community-caption h2 { margin: 0; font: 700 clamp(24px, 3vw, 44px)/1.17 var(--serif); letter-spacing: .015em; }
.community-model-controls { position: absolute; right: 16px; bottom: 63px; display: flex; gap: 5px; }
.community-model-controls button { background: #faf6eade; border: 1px solid #a7ae99; color: #34483c; font-size: 12px; border-radius: 4px; padding: 8px 10px; }
.community-model-controls [data-action="pitch-next"] { background: #2d5748; border-color: #2d5748; color: #fff8e5; }
.community-model-foot { position: absolute; inset: auto 0 0; min-height: 49px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 17px; border-top: 1px solid #a2b9a9; background: #eaf0e4e8; color: #435a4d; pointer-events: none; }
#community-marker { display: inline-flex; align-items: center; gap: 9px; font: 650 14px/1.3 var(--serif); }
#community-marker::before { content: ""; width: 8px; height: 8px; background: #9d6b2a; transform: rotate(45deg); }
#community-hint { font-size: 11px; }
.community-folio { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-left: 1px solid #adb5a1; background: linear-gradient(#fbf5e6e8,#f9f1dce8),url("decor/scroll-paper.webp") center/420px; }
.community-modes { flex: none; display: flex; flex-wrap: wrap; margin: 0 clamp(17px, 2.4vw, 34px); gap: 0 clamp(9px, 1.2vw, 20px); border-bottom: 1px solid var(--rule); }
.community-modes button { position: relative; border: 0; background: transparent; color: #656658; padding: 20px 0 14px; font-size: clamp(13px, 1.2vw, 15px); white-space: nowrap; }
.community-modes button[aria-pressed="true"] { color: #1f4638; font-weight: 700; }
.community-modes button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; inset-inline: 0; height: 3px; background: #446649; }
.community-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#community-content { display: flex; flex-direction: column; align-items: stretch; padding: clamp(18px, 2.8vw, 39px) clamp(17px, 2.4vw, 34px) 30px; }
#community-content h2 { margin: 0 0 12px; font: 700 clamp(24px, 2.3vw, 34px)/1.3 var(--serif); text-wrap: balance; }
#community-content h3 { margin: 18px 0 6px; font: 700 18px/1.4 var(--serif); }
.community-place-row { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
.community-place { color: #50694e; border: 0; background: transparent; padding: 6px 2px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
#community-content > p:not(.community-kicker) { margin: 0; color: #49594b; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.community-trail { display: flex; margin: 0 0 clamp(24px, 3vw, 40px); }
.community-trail button { flex: 1; position: relative; isolation: isolate; padding: 0; border: 0; background: transparent; color: #586450; font-size: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.community-trail button i { display: block; height: 10px; width: 10px; margin: 3px; border: 1px solid #8e947c; border-radius: 50%; background: #eae6d2; }
.community-trail button::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 1px; background: #bbb8a1; z-index: -1; }
.community-trail button:first-child::before { display: none; }
.community-trail button[aria-current] { color: var(--rust); font-weight: 700; }
.community-trail button[aria-current] i { background: var(--rust); border-color: var(--rust); box-shadow: 0 0 0 3px #a3623e25; }
.community-trail button:disabled { cursor: default; color: #777968; }
.community-slip { border-left: 3px solid #b5864b; background: #eae0c664; margin: 20px 0 12px; padding: 13px 16px; }
.community-slip small { color: #766346; font-size: 12px; }
.community-slip p { margin: 7px 0 0; font: 600 clamp(16px,1.4vw,20px)/1.6 var(--serif); }
#community-content > .community-note { font-size: 12px !important; color: #6b6d5d !important; }
.community-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.community-action { align-self: flex-start; border: 1px solid #afad94; background: transparent; color: #3c5948; padding: 11px 16px; border-radius: 5px; font-size: 14px; }
#community-content > .community-action { margin-top: 20px; }
.community-action.primary { background: #2d5748; color: #fff8e5; border-color: #2d5748; }
.community-action.primary:hover { background: #1f473a; }
.community-rows { margin: 18px 0 0; }
.community-rows > div { display: flex; gap: 13px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #c8bfaa9c; font-size: 14px; }
.community-rows dt { flex: none; color: #686958; }
.community-rows dd { text-align: right; margin: 0; color: #2a4939; font-weight: 600; font-variant-numeric: tabular-nums; }
.community-choice { border: 0; padding: 0; margin: 15px 0 0; }
.community-choice legend { margin-bottom: 7px; font-size: 13px; }
.community-choice button, .community-options button { min-height: 38px; border: 1px solid #b8b59d; color: var(--ink); background: transparent; border-radius: 4px; font-size: 14px; }
.community-choice button { min-width: 74px; margin-right: 6px; }
.community-choice [aria-pressed="true"], .community-options [aria-pressed="true"] { background: #e0e7d5; border-color: #657f65; }
.community-options { display: grid; gap: 8px; margin-top: 18px; }
.community-options button { text-align: left; padding: 9px 12px; }
.community-views, .community-journeys > div { display: flex; flex-wrap: wrap; gap: 6px; }
.community-views { margin: 2px 0 7px; }
.community-journeys { border: 0; margin: 7px 0 8px; padding: 0; }
.community-journeys legend { font-size: 13px; color: #5c6454; margin-bottom: 7px; }
.community-journeys button, .community-views button { background: transparent; color: #354f40; border: 1px solid #acae98; border-radius: 4px; font-size: 13px; padding: 7px 10px; }
.community-journeys [aria-pressed="true"], .community-views [aria-pressed="true"] { color: #f8f2e3; background: #335a48; border-color: #335a48; }
#community-content > .community-role { color: var(--rust); font-size: 12px; margin-bottom: 7px; }
.community-sources { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; }
.community-sources a { color: #526343; font-size: 12px; text-underline-offset: 3px; }
.community-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (max-width: 760px) {
  #community-demo { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .community-header { min-height: 56px; padding: max(9px,env(safe-area-inset-top)) 16px 9px; }
  .community-layout { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  .community-atlas { flex: none; height: clamp(260px, 42dvh, 440px); }
  .community-caption { left: 15px; top: 14px; }
  #community-model { inset: 65px 0 32px; }
  .community-original { inset: 66px 12px 39px; }
  .community-caption p { font-size: 11px; margin-bottom: 3px; }
  .community-caption h2 { font-size: 23px; }
  .community-model-controls { right: 9px; bottom: 42px; }
  .community-model-controls button { padding: 6px 8px; }
  .community-atlas[data-pitch] { height: calc(clamp(260px, 42dvh, 440px) + 48px); }
  .community-atlas[data-pitch] #community-model { bottom: 80px; }
  .community-atlas[data-pitch] .community-model-controls { bottom: 35px; }
  .community-model-foot { min-height: 32px; padding: 6px 12px; }
  .community-folio { border-left: 0; flex: 1 0 auto; }
  .community-panel { overflow: visible; }
  .community-modes { gap: 0 clamp(9px, 4vw, 20px); }
  .community-modes button { padding-block: 14px 10px; }
  .community-trail { margin-bottom: 15px; }
  #community-content { padding: 16px 18px max(24px,env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) {
  .community-back, .community-modes button, .community-model-controls button, .community-choice button, .community-options button, .community-trail button { min-height: 44px; }
  .community-views button, .community-journeys button { min-height: 44px; }
}
@media (min-width:761px) and (max-height:550px) {
  #community-demo { height: 100dvh; width: 100vw; margin: 0; border-radius: 0; }
  .community-header { min-height: 44px; padding-block: 5px; }
}
