/* Parchment community theme. All fonts and artwork are served locally. */
:root {
  color-scheme: light;
  --bg: #f3eee2;
  --panel: #fffdf6;
  --panel-raised: #ece3cf;
  --border: #d9ceb7;
  --muted: #6c6557;
  --text: #302f27;
  --green: #385b43;
  --gold: #906637;
  --accent: #945434;
  --sidebar: 250px;
  --shadow: 0 4px 18px #4f3c1d08;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 100% 0,#fffdf3 0,transparent 55%),var(--bg); color: var(--text); line-height: 1.55; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
button svg, a svg { width: 20px; height: 20px; flex-shrink: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 12px 18px; background: var(--green); color: white; border-radius: 5px; }
.skip:focus { top: 12px; }
.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; }

/* Navigation resembles the inside cover of a field journal. */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 33px 19px 24px; background: linear-gradient(135deg,#f0e8d7,#e9dfca); border-right: 1px solid #d5c7aa; z-index: 40; overflow-y: auto; }
.sidebar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--green); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 5px; min-width: 0; }
.brand > span:last-child { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -.7px; line-height: 1.2; overflow-wrap: anywhere; }
.brandmark { width: 48px; height: 48px; color: var(--green); border: 1px solid #c2b28d; outline: 1px solid #c2b28d; outline-offset: 3px; border-radius: 50%; background: #f7f1e2; flex-shrink: 0; display: grid; place-items: center; }
.brandmark svg { width: 33px; height: 33px; }
.brand-sub { display: block; margin-top: 5px; font: 600 9px/1.4 ui-sans-serif,system-ui,sans-serif; letter-spacing: 2px; color: var(--muted); }
.nav-label { margin: 35px 0 13px; padding: 0 13px; color: #746449; font-size: 9px; font-weight: 750; letter-spacing: 1.7px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 13px; color: #5e5748; font-size: 13px; font-weight: 550; border: 1px solid transparent; border-radius: 6px; transition: background .15s, color .15s; }
.nav-link:hover { background: #e3d7be; color: var(--text); }
.nav-link.active { color: var(--green); background: #fffbee; border-color: #d3c5a9; box-shadow: 3px 0 0 var(--green) inset,0 2px 7px #4f3c1d08; font-weight: 700; }
.nav-link .nav-badge { margin-left: auto; font-size: 12px; background: #dde5d4; color: var(--green); padding: 2px 6px; border-radius: 4px; }
.sidebar-bottom { margin-top: auto; padding: 44px 7px 0; }
.server-mini { display: flex; align-items: center; gap: 11px; padding-top: 23px; border-top: 1px solid #cebea0; }
.mini-icon { width: 35px; height: 39px; display: grid; place-items: center; background: #ddd0af; color: #76603a; border-radius: 4px; font-family: var(--serif); font-weight: 700; flex-shrink: 0; }
.server-mini strong { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.server-mini span:not(.mini-icon) { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.sidebar-bottom > a { display: inline-flex; align-items: center; gap: 5px; margin-top: 17px; font-size: 11px; color: var(--muted); }
.sidebar-bottom > a:hover { color: var(--green); text-decoration: underline; }
.nav-backdrop { position: fixed; inset: 0; background: #24231880; border: 0; z-index: 35; }
.nav-backdrop[hidden] { display: none; }
.workspace { margin-left: var(--sidebar); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 79px; padding: 16px 40px; border-bottom: 1px solid var(--border); background: #fffcf3; }
.breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 13px; min-width: 0; color: var(--muted); }
.crumb-separator { color: #b7a78c; }
.breadcrumb strong { color: #4e4638; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 20px; min-width: 0; }
.live-chip { font-size: 12px; color: var(--muted); white-space: nowrap; }
.live-chip.online { color: var(--green); }
.live-chip.online::before, .status-label.online::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #729761; margin-right: 8px; }
.account { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 40px; max-width: 190px; border: 1px solid #d8cbb3; border-radius: 5px; background: var(--panel); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account:hover { border-color: var(--green); }
.menu-button { display: none; }
.workspace main { padding: 37px 40px 46px; max-width: 1550px; margin: auto; min-height: calc(100vh - 155px); }
main:focus { outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
h1, h2, h3 { font-family: var(--serif); }
h1 { margin: 0; font-size: clamp(32px,3vw,42px); font-weight: 500; line-height: 1.16; letter-spacing: -1.2px; text-wrap: balance; }
h2 { margin: 0; font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -.4px; text-wrap: balance; }
h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.35; }
p { margin: 10px 0; font-size: 15px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.eyebrow { display: block; margin-bottom: 12px; font-size: 10px; font-weight: 750; letter-spacing: 2.2px; line-height: 1.5; color: var(--accent); overflow-wrap: anywhere; }
.page-heading p { margin: 11px 0 0; font-size: 14px; max-width: 760px; }
.subtle-label { color: var(--muted); font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0 20px; flex-wrap: wrap; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { font-size: 25px; }
.section-heading::after { content: ''; height: 1px; background: var(--border); flex: 1; margin-left: 8px; }

/* Clear, compact controls with strong keyboard focus and readable contrast. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 17px; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: #fffdf5; font-size: 13px; font-weight: 650; line-height: 1.35; text-align: center; transition: background .15s, border-color .15s,box-shadow .15s; }
.button:hover { background: #344e34; border-color: #344e34; }
.button.secondary { background: #fffdf440; border-color: #bbab8d; color: #504534; }
.button.secondary:hover { background: #eee5d2; border-color: #99856b; }
.button.small { min-height: 38px; padding: 8px 12px; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; }
.text-link svg { width: 13px; height: 13px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 23px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: var(--green); }
input, textarea, select { min-width: 0; max-width: 100%; padding: 12px 13px; border: 1px solid #c9ba9e; border-radius: 6px; background: #fffef9; color: var(--text); font-size: 16px; box-shadow: 0 1px 2px #4f3c1d04 inset; }
input::placeholder, textarea::placeholder { color: #887b65; }
input:hover, select:hover, textarea:hover { border-color: #9f8e72; }
input[type=checkbox] { accent-color: var(--green); }
label { display: block; margin: 17px 0; color: #5f523f; font-size: 13px; font-weight: 600; }
label > input, label > select, label > textarea { display: block; width: 100%; margin-top: 9px; resize: vertical; }
.form-row { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 20px; }
.form-error { color: #a23e30; font-size: 14px; }
.form-error:empty { display: none; }
.check-label { display: flex; align-items: center; gap: 12px; }
.check-label input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.danger { color: #a23e30 !important; }

/* A window into the world, framed like a landscape plate in a travel journal. */
.banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 405px; padding: 46px; margin-bottom: 25px; overflow: hidden; border: 1px solid #5c674d; border-radius: 10px; background: #334d36 url('/landscape.jpg') center 60% / cover; box-shadow: 0 8px 25px #59432316; }
.banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#152c23f5 0%,#21362acc 42%,#172c2433 100%),linear-gradient(0deg,#13291a44,transparent 50%); }
.banner::after { content: ''; position: absolute; inset: 10px; border: 1px solid #eee4c750; border-radius: 4px; pointer-events: none; }
.banner-content { position: relative; min-width: 0; max-width: 610px; z-index: 1; }
.banner .eyebrow { color: #e4cca3; font-size: 10px; letter-spacing: 2px; }
.banner h2 { color: #fff7e5; font-size: clamp(40px,4.8vw,64px); font-weight: 500; line-height: 1.05; letter-spacing: -1.8px; text-wrap: balance; overflow-wrap: anywhere; }
.banner p { color: #ede9d8; font-size: 16px; line-height: 1.8; max-width: 470px; margin: 19px 0 25px; }
.banner-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner .button { background: #eddfb6; border-color: #eddfb6; color: #344632; }
.banner .button:hover { background: #fff0c9; }
.banner .button.secondary { background: #172c2440; border-color: #e4d8b687; color: #f5ecd5; }
.banner .button.secondary:hover { background: #263e2fb0; border-color: #efdfba; }
.hero-address { margin: 19px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #ece4d0; font-size: 11px; }
.hero-address code { font: 12px ui-monospace,monospace; color: #f4e7c5; letter-spacing: .2px; overflow-wrap: anywhere; }
.hero-stamp { position: relative; z-index: 1; align-self: flex-end; display: flex; align-items: center; gap: 10px; padding: 12px 15px; color: #fff2d4; border: 1px solid #e6d3a355; border-radius: 4px; background: #19332bbd; font: italic 15px var(--serif); white-space: nowrap; }
.hero-stamp svg { width: 22px; height: 22px; color: #d8be83; }
.status-label { position: absolute; right: 23px; top: 22px; z-index: 1; display: inline-flex; align-items: center; color: #faf1d9; background: #173426c9; border: 1px solid #d9ceab55; padding: 8px 11px; border-radius: 4px; font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.stat { position: relative; min-width: 0; border: 1px solid var(--border); border-top: 2px solid #c4c8ab; background: var(--panel); padding: 20px 22px; border-radius: 8px; box-shadow: var(--shadow); }
.stat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.stat-label svg { width: 17px; height: 17px; color: #a18a63; flex-shrink: 0; }
.stat-value { font-family: var(--serif); font-size: 31px; font-weight: 500; line-height: 1.25; letter-spacing: -.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-value small { font: 14px ui-sans-serif,system-ui,sans-serif; color: #9e927f; }
.stat-note { display: block; font-size: 11px; color: #7b775e; margin-top: 7px; line-height: 1.5; }
.columns { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 24px; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 21px 24px; background: linear-gradient(120deg,#fcf9ed,#f5efdf); border-bottom: 1px solid var(--border); }
.title-icon { display: flex; align-items: center; gap: 10px; }
.title-icon svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.card-body { padding: 24px; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; padding: 35px 25px; text-align: center; }
.empty > .empty-icon { display: grid; place-items: center; padding: 13px; border-radius: 50%; border: 1px solid #d8ccb4; background: #f3ecdc; color: #8c7852; margin-bottom: 18px; }
.empty-icon svg { width: 25px; height: 25px; }
.empty h3 { font-size: 22px; color: #584930; font-weight: 500; }
.empty p { max-width: 380px; font-size: 14px; margin: 10px 0 18px; }
.below { margin-top: 24px; }
.notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 24px; padding: 14px 17px; border: 1px solid #d2c2a1; border-radius: 5px; background: #f1e7d1; color: #655332; font-size: 13px; line-height: 1.6; }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.notice.muted { background: #edeadf; color: var(--muted); border-color: var(--border); }
.announcement { display: flex; gap: 19px; align-items: flex-start; background: #f9edcf; border: 1px solid #dcc696; border-left: 3px solid #a77235; border-radius: 5px; padding: 19px 23px; margin-bottom: 25px; }
.announcement .eyebrow { flex-shrink: 0; margin: 3px 0 0; letter-spacing: 1.5px; }
.announcement p { margin: 0; color: #705126; white-space: pre-wrap; font-size: 14px; }
.quick-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-bottom: 27px; }
.quick-link { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 22px; background: #f7f2e6; border: 1px solid #d4c5a7; border-radius: 8px; box-shadow: var(--shadow); transition: background .15s,border-color .15s; }
.quick-link:hover { background: #e8dcc4; border-color: #b39d72; }
.quick-link > svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--green); }
.quick-link strong { font-family: var(--serif); font-weight: 600; font-size: 18px; display: block; }
.quick-link span { display: block; font-size: 11px; line-height: 1.5; margin-top: 5px; color: var(--muted); }
.quick-link .link-arrow { display: grid; place-items: center; flex-shrink: 0; font-size: 18px; margin-left: auto; color: #9b835c; }
.badge { display: inline-block; padding: 4px 8px; border: 1px solid #d6dcc9; border-radius: 4px; background: #eaf0e0; color: #506043; font-size: 10px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.badge.gold { background: #f1e5c7; border-color: #dac28e; color: #875a20; }
.roster { display: flex; flex-wrap: wrap; gap: 12px; padding: 23px; }
.roster-player { display: inline-flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border: 1px solid #e1d7c4; border-radius: 5px; font-size: 13px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 5px; background: #e4e8d6; color: var(--green); font-size: 11px; font-weight: 750; }

/* Tables, discussions and community details. */
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }
.tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 5px; background: #eae0cb; border: 1px solid #d4c5a9; border-radius: 6px; }
.tab { min-height: 39px; padding: 9px 15px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 550; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--green); background: #fffaf0; border-color: #d8cbb2; box-shadow: 0 1px 3px #6b553315; font-weight: 650; }
.search { width: 265px; font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
th { padding: 15px 23px; background: #f4eddd; color: #897653; text-align: left; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.4px; }
td { padding: 17px 23px; border-top: 1px solid #e6dcc9; }
tbody tr:hover { background: #f8f2e6; }
td.rank { width: 65px; color: #a48449; font-family: var(--serif); font-size: 20px; }
.player { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.score { color: var(--green); font-weight: 600; font-variant-numeric: tabular-nums; }
.supporter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 21px; }
.supporter { position: relative; padding: 30px; border: 1px solid #d5bf8e; border-radius: 6px; background: #fcf5e5; }
.supporter::before { content: ''; position: absolute; left: 25px; right: 25px; top: 8px; height: 1px; background: #dfcea9; }
.supporter .avatar { width: 52px; height: 52px; font-size: 18px; margin-bottom: 22px; border: 1px solid #d4c38f; background: #ede0b9; color: #8a6430; }
.supporter h3 { font-size: 24px; margin-bottom: 14px; overflow-wrap: anywhere; }
.supporter p { font-size: 13px; margin-top: 17px; }
.thread-row { display: flex; align-items: center; gap: 15px; padding: 21px 23px; border-bottom: 1px solid #e3d9c7; }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: #f6f0e4; }
.thread-info { flex: 1; min-width: 0; }
.thread-info h3 { font-size: 18px; overflow-wrap: anywhere; }
.thread-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.reply-count { padding-left: 10px; color: #6d634f; text-align: center; font-family: var(--serif); font-size: 21px; white-space: nowrap; }
.reply-count span { display: block; margin-top: 3px; color: var(--muted); font: 10px ui-sans-serif,system-ui,sans-serif; }
.discussion { padding: 29px; }
.discussion-title { font-size: 33px; margin: 13px 0 17px; overflow-wrap: anywhere; }
.post-body { font-size: 16px; line-height: 1.85; margin: 25px 0 4px; color: #514735; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 12px; }
.post-byline strong { color: #594c34; font-size: 13px; }
.reply, .reply-form { padding: 25px; border-top: 1px solid var(--border); }
.reply-form textarea { display: block; width: 100%; margin: 12px 0; }
.posting-as { font-size: 13px; }
.posting-as strong { color: var(--green); }
.moderation-actions, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.moderation-actions > span, .pagination > span { color: var(--muted); font-size: 12px; }
.info-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 24px; }
.description { font-size: 16px; line-height: 1.85; white-space: pre-wrap; }
.facts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 25px 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.fact-label { display: block; margin-bottom: 9px; color: #8a7656; font-size: 10px; letter-spacing: 1.3px; }
.fact-value { color: #514833; font-size: 14px; }
.mod-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mod { font-size: 12px; padding: 8px 10px; border: 1px solid #ddd1b8; border-radius: 4px; background: #f1ebdd; color: #64583d; }
.info-note { font-size: 13px; line-height: 1.65; margin-top: 18px; }
.step { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid #e0d7c4; }
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: 0; }
.step-num { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; background: #e9eddd; color: var(--green); border: 1px solid #cfd7ba; border-radius: 50%; font-size: 12px; }
.step p { font-size: 13px; margin: 6px 0 0; }
.server-address { font: 13px ui-monospace,monospace; color: var(--green); overflow-wrap: anywhere; }
.rules-content { white-space: pre-wrap; line-height: 1.75; }

/* Accounts and owner controls share the same journal styling. */
.auth-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,470px); gap: 60px; align-items: center; max-width: 1100px; min-height: 65vh; margin: auto; }
.auth-intro { padding: 28px 0; }
.auth-intro::before { content: '✧'; display: block; font-size: 56px; line-height: 1; color: #b19762; margin-bottom: 28px; }
.auth-intro h1 { font-size: clamp(38px,4vw,56px); max-width: 430px; line-height: 1.13; }
.auth-intro p { max-width: 410px; margin: 22px 0; }
.auth-card .card-head { padding: 24px 28px; }
.auth-card .card-body { padding: 14px 28px 28px; }
.auth-submit { width: 100%; margin-top: 13px; }
.auth-switch { text-align: center; font-size: 13px; margin: 23px 0 0; }
.auth-switch a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.account-grid { display: grid; grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); gap: 24px; }
.account-avatar { width: 66px; height: 66px; font-size: 23px; margin-bottom: 23px; border: 1px solid #ccd2b9; }
.account-grid .button { margin: 8px 8px 0 0; }
.owner-tabs { width: fit-content; margin-bottom: 24px; }
.owner-stats .stat-value { display: block; }
#owner-settings-form textarea { min-height: 100px; }
.supporter-editor-row { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.supporter-editor-row label { margin: 0; }
.supporter-editor-row:last-child { margin-bottom: 24px; }

/* Paper map controls sit over the actual server terrain. */
.map-frame { position: relative; height: calc(100vh - 275px); min-height: 520px; border: 1px solid #c6b691; border-radius: 7px; overflow: hidden; background: #e5dfcb; box-shadow: 0 3px 12px #69573510; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-frame .empty { height: 100%; min-height: 520px; background: #ece5d3; }
.map-frame:fullscreen { height: 100vh; border-radius: 0; background: #ddd5bf; }
.map-toolbar { display: flex; align-items: center; gap: 8px; }
.map-caption { color: var(--muted); font-size: 12px; margin: 14px 0; }
#terrain-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#terrain-canvas:active { cursor: grabbing; }
.map-controls { position: absolute; top: 15px; left: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 78px); }
.map-controls button, .map-controls select, .map-toggle { padding: 9px 10px; border: 1px solid #bfae88; border-radius: 4px; background: #fffaeaf2; color: #54462e; font-size: 11px; box-shadow: 0 2px 7px #322a221c; }
.map-controls label { margin: 0; }
.map-layer-label { font-size: 0; color: transparent; }
.map-toggle { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.map-toggle input { margin: 0; }
.map-zoom { position: absolute; top: 15px; right: 15px; display: flex; flex-direction: column; gap: 4px; }
.map-zoom button { width: 38px; height: 38px; border: 1px solid #bfae88; border-radius: 4px; background: #fffaeaf2; color: var(--green); font-size: 25px; }
.map-search { position: absolute; top: 74px; left: 15px; max-width: 270px; width: calc(100% - 85px); }
.map-search > input { width: 100%; font-size: 13px; padding: 11px; background: #fffaeaf2; box-shadow: 0 2px 7px #322a221c; }
.map-search-results { background: #fffaea; }
#map-search-results button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 12px; border: 1px solid #c6b590; background: #fff8e8; color: var(--text); text-align: left; font-size: 12px; }
#map-search-results button:hover { background: #efe5cc; }
#map-search-results button span { color: var(--muted); font-size: 11px; }
.no-map-results { display: block; background: #fff8e8; padding: 12px; font-size: 12px; }
.map-coordinate, .map-date { position: absolute; bottom: 15px; padding: 9px 12px; background: #fff8e8ed; color: #5c4e35; border: 1px solid #c5b48e; border-radius: 4px; font-size: 11px; font-variant-numeric: tabular-nums; }
.map-coordinate { left: 15px; }
.map-date { right: 15px; }
.map-date:empty { display: none; }
.map-help { position: absolute; right: 15px; bottom: 57px; padding: 6px 8px; background: #fff8e8e8; color: #6a5940; font-size: 10px; border-radius: 3px; pointer-events: none; }
.map-popup { position: absolute; top: 130px; left: 15px; min-width: 180px; max-width: 270px; padding: 17px; border: 1px solid #bba579; border-radius: 5px; background: #fffaeef5; color: #4b3e29; font-size: 14px; box-shadow: 0 4px 15px #0002; }
.map-popup strong, .map-popup span { display: block; }
.map-popup span { color: #7c6c4d; font-size: 12px; margin-top: 7px; }
.map-popup p { font-size: 13px; margin: 8px 0; }
.map-popup[hidden] { display: none; }

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 17px 24px; max-width: 1550px; margin: auto; padding: 26px 40px 30px; color: #75684f; font-size: 11px; border-top: 1px solid var(--border); }
.footer > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.footer a:hover { color: var(--green); text-decoration: underline; }
dialog { width: min(660px,calc(100% - 30px)); padding: 28px; border: 1px solid #bda67a; border-radius: 7px; background: var(--panel); color: var(--text); box-shadow: 0 18px 70px #241d1a44; }
dialog::backdrop { background: #25241987; }
.dialog-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog-heading h2 { font-size: 28px; }
.dialog-heading .eyebrow { font-size: 10px; }
.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
#toast { position: fixed; left: calc(50% + var(--sidebar)/2); bottom: 25px; z-index: 70; max-width: calc(100vw - 30px); padding: 13px 20px; border: 1px solid #607350; border-radius: 5px; background: #3d5135; color: #fff8e8; box-shadow: 0 6px 25px #0002; font-size: 13px; opacity: 0; transform: translateX(-50%); pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }
.loading { padding: 50px; color: var(--muted); font-size: 14px; text-align: center; }
.loading::before { content: ''; display: block; width: 23px; height: 23px; margin: 0 auto 18px; border: 2px solid #dfd3b9; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1600px) { :root { --sidebar: 265px; } .workspace main { padding-top: 42px; } .banner { min-height: 380px; } }
@media (max-width: 1200px) {
  :root { --sidebar: 216px; }
  .sidebar { padding: 30px 14px 24px; }
  .brand > span:last-child { font-size: 22px; }
  .brandmark { width: 42px; height: 42px; }
  .brandmark svg { width: 29px; height: 29px; }
  .workspace main { padding: 30px 28px; }
  .topbar, .footer { padding-left: 28px; padding-right: 28px; }
  .banner { padding: 30px; min-height: 330px; }
  .hero-stamp { display: none; }
  .stats { gap: 12px; }
  .stat { padding: 18px; }
  .quick-link { padding: 18px 14px; gap: 10px; }
  .quick-link strong { font-size: 17px; }
  .quick-link .link-arrow { display: none; }
  .auth-layout { gap: 30px; }
}
@media (max-width: 1000px) {
  .columns, .info-grid { grid-template-columns: minmax(0,1fr); }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-links { grid-template-columns: minmax(0,1fr); }
  .quick-link .link-arrow { display: grid; }
  .quick-link { padding: 17px 20px; }
  .quick-link span { font-size: 12px; }
  .supporter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-grid { grid-template-columns: minmax(0,1fr); }
  .supporter-editor-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .supporter-editor-row > button { width: fit-content; }
  .auth-layout { grid-template-columns: minmax(0,1fr); gap: 8px; max-width: 560px; }
  .auth-intro { padding-top: 0; }
  .auth-intro::before { display: none; }
  .auth-intro .back-link { margin-bottom: 0; }
  .map-search { top: 115px; }
  .map-popup { top: 170px; }
}
@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 260px; max-width: calc(100vw - 48px); transform: translateX(-100%); transition: transform .2s; padding: 30px 20px; box-shadow: 8px 0 30px #1e21192b; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-bottom { padding-top: 28px; }
  .topbar { padding: 13px 20px; min-height: 68px; gap: 12px; }
  .menu-button { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; padding: 5px; border: 1px solid #d5c7ae; border-radius: 4px; background: transparent; color: #655b43; }
  .menu-button svg { width: 22px; height: 22px; }
  .crumb-root, .crumb-separator { display: none; }
  .breadcrumb { flex: 1; font-size: 12px; }
  .top-actions { gap: 12px; }
  .live-chip { font-size: 11px; }
  .account { max-width: 130px; padding: 9px 11px; font-size: 12px; }
  .workspace main { padding: 27px 20px 30px; }
  h1 { font-size: 32px; }
  .page-heading { margin-bottom: 23px; align-items: flex-start; }
  .page-heading p { font-size: 13px; }
  .banner { min-height: 355px; padding: 30px 25px; }
  .banner::before { background: linear-gradient(90deg,#172c24ee,#172c24a0 70%,#172c2460); }
  .banner-content { padding-top: 13px; }
  .banner h2 { font-size: 43px; }
  .banner p { font-size: 15px; max-width: 440px; }
  .banner .eyebrow { font-size: 9px; }
  .status-label { right: 18px; top: 16px; padding: 6px 9px; font-size: 10px; }
  .section-heading { margin-top: 27px; }
  .section-heading h2 { font-size: 24px; }
  .announcement { flex-direction: column; gap: 9px; padding: 17px 20px; }
  .stat { padding: 18px; }
  .stat-value { font-size: 29px; }
  .stat-note { font-size: 11px; }
  .card-head { padding: 19px 20px; }
  .card-head h2 { font-size: 21px; }
  .card-body, .discussion, .reply, .reply-form { padding: 22px; }
  .thread-row { padding: 19px 20px; gap: 12px; align-items: flex-start; }
  .thread-info h3 { font-size: 18px; }
  .thread-meta { gap: 6px; }
  .supporter-grid { grid-template-columns: minmax(0,1fr); }
  .filter-bar { gap: 13px; align-items: stretch; }
  .search { width: 100%; }
  .tabs { width: 100%; }
  .tab { flex-grow: 1; white-space: normal; padding: 10px 12px; }
  .owner-tabs { width: 100%; }
  .form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
  .auth-intro h1 { font-size: 40px; }
  .auth-intro p { margin: 16px 0; }
  .auth-card .card-head { padding: 23px; }
  .auth-card .card-body { padding: 8px 23px 23px; }
  .map-frame { height: 600px; min-height: 450px; }
  .map-controls { top: 10px; left: 10px; max-width: calc(100% - 65px); }
  .map-controls button, .map-controls select, .map-toggle { padding: 8px; font-size: 11px; }
  .map-search { top: 145px; left: 10px; max-width: 230px; }
  .map-popup { top: 195px; left: 10px; }
  .map-zoom { right: 10px; top: 10px; }
  .map-coordinate { left: 10px; bottom: 10px; font-size: 10px; }
  .map-date { right: 10px; bottom: 50px; font-size: 10px; max-width: 220px; }
  .map-help { right: 10px; bottom: 10px; font-size: 10px; }
  .footer { padding: 21px 20px 26px; flex-direction: column; font-size: 10px; }
  #toast { left: 50%; }
  .discussion-title { font-size: 29px; }
}
@media (max-width: 420px) {
  .topbar { padding-left: 15px; padding-right: 15px; gap: 9px; }
  .topbar .live-chip { display: none; }
  .workspace main { padding: 25px 16px; }
  .page-heading .button { padding: 10px 12px; font-size: 12px; }
  .banner { padding: 34px 22px 27px; }
  .banner h2 { font-size: 40px; }
  .banner-actions .button { padding: 11px 12px; font-size: 12px; }
  .hero-address { font-size: 10px; gap: 5px; }
  .hero-address code { font-size: 11px; }
  .stats { gap: 10px; }
  .stat { padding: 16px; }
  .stat-label { font-size: 11px; }
  .stat-value { font-size: 25px; }
  .thread-row { padding: 18px 16px; gap: 9px; }
  .thread-row > .avatar { width: 29px; height: 29px; }
  .reply-count { padding-left: 4px; }
  .facts { grid-template-columns: minmax(0,1fr); }
  .supporter-editor-row { grid-template-columns: minmax(0,1fr); }
  .map-search { top: 150px; }
}
@media (max-width: 350px) { .stats { grid-template-columns: minmax(0,1fr); } .banner-actions { align-items: stretch; flex-direction: column; } .banner h2 { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Community screenshots, printed like pages from a field journal. */
.showcase-preview { margin: 30px 0; }
.showcase-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.screenshot-card { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 9px; box-shadow: 0 4px 14px #47351b08; }
.screenshot-open { display: block; position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 7px; background: #e8dfc9; cursor: zoom-in; }
.screenshot-open img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .25s; }
.screenshot-open:hover img { transform: scale(1.025); }
.screenshot-expand { position: absolute; right: 10px; bottom: 10px; padding: 7px; border-radius: 6px; color: #fffdf5; background: #302b22bb; }
.screenshot-expand svg { display: block; width: 18px; height: 18px; }
.screenshot-caption { padding: 15px 9px 12px; }
.screenshot-caption h3 { margin: 0 0 7px; font-family: Georgia,serif; font-size: 20px; overflow-wrap: anywhere; }
.screenshot-caption p { margin: 0 0 12px; line-height: 1.6; white-space: pre-wrap; }
.screenshot-credit { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
body.viewer-open { overflow: hidden; }
.screenshot-viewer { width: min(1100px,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 18px; border: 1px solid var(--border); }
.screenshot-viewer::backdrop { background: #211c15dc; }
.viewer-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.viewer-image-wrap { position: relative; background: #292c24; border-radius: 8px; overflow: hidden; }
.viewer-image-wrap img { display: block; width: 100%; max-height: calc(100dvh - 260px); min-height: 100px; object-fit: contain; }
#viewer-error { margin: 15px; }
#viewer-error[hidden] { display: none; }
.viewer-details { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 16px 4px 0; }
.viewer-details > div { min-width: 0; }
.viewer-details h2 { font-family: Georgia,serif; margin: 0 0 8px; overflow-wrap: anywhere; }
.viewer-details p { margin: 0 0 10px; white-space: pre-wrap; }
.viewer-controls { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
#viewer-position { white-space: nowrap; font-size: 13px; }
.showcase-editor-row { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.showcase-editor-row:first-child { padding-top: 0; }
.showcase-editor-row:last-child { margin-bottom: 20px; }
.showcase-editor-row > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 7px; }
.showcase-editor-fields { min-width: 0; }
.showcase-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1100px) { .showcase-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
 .showcase-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .showcase-editor-row { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .showcase-editor-row > img { max-width: 300px; }
 .viewer-details { flex-direction: column; align-items: stretch; gap: 14px; }
 .viewer-controls { justify-content: center; }
 .screenshot-viewer { padding: 12px; }
 .viewer-image-wrap img { max-height: calc(100dvh - 340px); }
 .viewer-heading .eyebrow { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .screenshot-open img { transition: none; } }

/* Browsing tools stay compact without replacing the reader's active controls. */
.browse-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 16px 24px; margin: 0 0 22px; }
.browse-toolbar label { margin: 0; min-width: 0; }
.browse-toolbar .check-label { min-height: 44px; margin: 0; }
.browse-toolbar .text-link { min-height: 44px; }
.browse-search { flex: 1; min-width: 220px !important; }
.browse-search input { width: 100%; }
.filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; padding: 1px 5px; margin-left: 7px; border-radius: 20px; background: #dbd3c2; font-size: 10px; }
.tab.active .filter-count { background: #f5f0e4; color: var(--green); }
.results-summary { padding: 14px 22px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.browse-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 15px; padding: 18px; border-top: 1px solid var(--border); font-size: 13px; }
.viewer-navigation { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.clipboard-fallback { position: fixed; width: 1px; height: 1px; inset: 0 auto auto -9999px; padding: 0; }
.upload-preview { margin: 16px 0; max-width: 500px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); }
.upload-preview[hidden] { display: none; }
.upload-preview img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: contain; }
.upload-preview figcaption { padding: 10px 14px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.showcase-position { margin: 0 0 14px; }
@media (max-width: 600px) {
 .browse-toolbar { gap: 12px 16px; }
 .browse-toolbar > label { flex: 1 1 100%; }
 .browse-search { min-width: 0 !important; }
 .viewer-navigation { align-self: center; }
}

#live-chip[hidden] { display: none; }

/* Community journal and private screenshot review. */
.heading-actions, .post-tags, .update-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.updates-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.update-card h2 { margin: 14px 0 10px; line-height: 1.3; }
.update-card h2 a { color: var(--text); text-decoration: none; }
.update-card h2 a:hover { color: var(--green); text-decoration: underline; }
.update-card p, .review-card p, .pending-picture p { white-space: pre-wrap; overflow-wrap: anywhere; }
.update-actions { margin-top: 18px; justify-content: space-between; }
.event-date { display: flex; align-items: start; gap: 8px; color: var(--green); font-weight: 600; }
.event-date svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.journal-heading { margin: 26px 0 16px; }
.event-details { margin: 24px 0; padding: 20px; background: var(--bg); border-left: 3px solid var(--green); border-radius: 4px; }
.event-details p { margin: 8px 0; }
.event-details strong { display: block; overflow-wrap: anywhere; }
.past-events summary { cursor: pointer; color: var(--green); font-weight: 600; }
.journal-owner { display: grid; grid-template-columns: minmax(200px,1fr) minmax(0,2fr); gap: 20px; align-items: start; }
.journal-item { display: flex; flex-direction: column; gap: 9px; align-items: start; width: 100%; text-align: left; padding: 16px 0; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.journal-item:hover strong { color: var(--green); text-decoration: underline; }
.journal-item strong { overflow-wrap: anywhere; max-width: 100%; }
.submission-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 20px; align-items: start; }
.pending-picture { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.pending-picture img, .review-card img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 5px; background: var(--bg); margin-bottom: 14px; }
.pending-picture h3 { margin: 14px 0 8px; overflow-wrap: anywhere; }
.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.review-card { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
#event-fields[hidden] { display: none; }
@media (max-width: 1000px) { .journal-owner { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) { .updates-grid, .submission-layout, .review-grid { grid-template-columns: minmax(0,1fr); } .heading-actions { width: 100%; } .review-card { padding: 14px; } }

/* Staff tools, joining guide, inbox and observed server activity. */
.maintenance-notice { display:flex; align-items:start; gap:14px; margin:22px 40px 0; padding:20px; max-width:1470px; border:1px solid #ceb378; background:#eee0ba; border-radius:7px; }
.maintenance-notice svg { width:22px; height:22px; flex-shrink:0; }
.maintenance-notice p { margin:6px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.guide-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:24px; align-items:start; }
.faq-item { padding:14px 0; border-bottom:1px solid var(--border); }
.faq-item summary { color:var(--green); font-weight:600; cursor:pointer; overflow-wrap:anywhere; }
.faq-item .post-body { padding:14px 0 0; }
.content-editor-row { padding:20px; margin-bottom:20px; border:1px solid var(--border); border-radius:6px; background:var(--bg); }
.post-tools { display:flex; flex-wrap:wrap; gap:16px; align-items:center; margin-top:18px; }
.post-tools .subtle-label { margin-right:auto; }
.follow-discussion { margin-top:20px; }
.post-tools-dialog { padding:0; max-height:85dvh; overflow:auto; }
.report-card { padding:20px 0; border-bottom:1px solid var(--border); }
.report-card .post-body { padding:14px 0; }
.inbox-item { display:flex; justify-content:space-between; align-items:start; gap:20px; padding:24px; border-bottom:1px solid var(--border); }
.inbox-item.unread { border-left:4px solid var(--green); background:#eee8d6; }
.inbox-item h2 { font-size:22px; margin:12px 0 8px; overflow-wrap:anywhere; }
.inbox-item a { color:var(--text); text-decoration:none; }
.inbox-item a:hover { text-decoration:underline; }
.inbox-item p { overflow-wrap:anywhere; }
.inbox-item > .text-link { flex-shrink:0; }
.status-facts { display:flex; flex-wrap:wrap; gap:24px 40px; margin:20px 0; }
.status-facts strong { display:block; margin-top:8px; overflow-wrap:anywhere; }
.history-stats { grid-template-columns:repeat(3,minmax(0,1fr)); margin-top:0; }
.history-chart { display:block; width:100%; max-height:360px; color:var(--green); }
.history-chart .chart-axis { fill:none; stroke:var(--border); }
.history-chart .chart-line { fill:none; stroke:var(--green); stroke-width:2; }
.history-chart circle { fill:var(--green); }
.history-chart text { stroke:none; font-weight:400; fill:var(--muted); font-size:11px; font-family:inherit; }
.activity-target { max-width:300px; overflow-wrap:anywhere; white-space:normal; }
.collection-badge { margin:6px 0; }
.link-code { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:16px; background:var(--bg); border:1px solid var(--border); border-radius:5px; }
.link-code code { overflow-wrap:anywhere; font-size:15px; }
#inbox-count[hidden] { display:none; }
@media(max-width:700px) { .guide-layout,.history-stats { grid-template-columns:minmax(0,1fr); } .inbox-item { flex-direction:column; padding:20px; } .content-editor-row { padding:14px; } .status-facts { flex-direction:column; gap:18px; } }

@media(min-width:1815px) { .maintenance-notice { margin-left:auto; margin-right:auto; } }
@media(max-width:1200px) { .maintenance-notice { margin-left:28px; margin-right:28px; } }
@media(max-width:760px) { .maintenance-notice { margin-left:20px; margin-right:20px; } }
@media(max-width:420px) { .maintenance-notice { margin-left:16px; margin-right:16px; } }

/* A common editorial rhythm for welcome pages, guides and community writeups. */
.nav-group-label { margin: 15px 0 5px; padding: 0 13px; color: #786b53; font-size: 9px; font-weight: 750; letter-spacing: 1.6px; text-transform: uppercase; }
.nav-group-label:first-child { margin-top: 0; }
.footer > span { font-weight: 650; color: #62573f; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 21px; }
.footer-links a { padding: 4px 0; color: #5c604a; }
.footer-credit { color: #786b55; }
.section-kicker { display: block; margin: 0 0 10px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 1.8px; text-transform: uppercase; }
.page-intro, .content-intro { margin: 0 0 25px; padding: 23px 26px; border: 1px solid var(--border); border-left: 3px solid #8b9b70; border-radius: 7px; background: #fbf7eb; }
.page-intro h2, .content-intro h2 { font-size: 26px; margin-bottom: 10px; }
.page-intro p, .content-intro p { max-width: 850px; margin: 0 0 10px; line-height: 1.8; }
.page-intro p:last-child, .content-intro p:last-child { margin-bottom: 0; }
.community-story { margin: 36px 0; }
.story-copy { max-width: 850px; margin-bottom: 22px; }
.story-copy h2 { max-width: 680px; font-size: clamp(27px,2.6vw,35px); line-height: 1.22; }
.story-copy > p { margin: 15px 0 0; line-height: 1.85; font-size: 16px; }
.story-copy .description { white-space: pre-wrap; }
.story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.story-card { min-width: 0; position: relative; padding: 25px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.story-card > svg { display: block; width: 28px; height: 28px; margin-bottom: 18px; color: var(--green); }
.story-card h3 { font-size: 22px; margin-bottom: 11px; }
.story-card p { font-size: 14px; line-height: 1.75; margin-bottom: 19px; }
.story-card .text-link { line-height: 1.6; }
.join-ribbon { display: flex; align-items: center; justify-content: space-between; gap: 23px; padding: 26px 29px; margin: 30px 0; border: 1px solid #c6ceb2; border-radius: 8px; background: linear-gradient(120deg,#eef0df,#f8f6e9); }
.join-ribbon > div:first-child { min-width: 0; }
.join-ribbon h2 { font-size: 26px; }
.join-ribbon p { margin: 9px 0 0; max-width: 700px; font-size: 14px; }
.join-ribbon .heading-actions, .join-ribbon .banner-actions { flex-shrink: 0; }
.reading-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); align-items: start; gap: 24px; }
.reading-layout > *, .page-aside { min-width: 0; }
.page-aside > .card + .card, .page-aside > section + section { margin-top: 22px; }
.page-aside .card-head h2 { font-size: 22px; }
.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; margin: 24px 0; }
.help-card { min-width: 0; padding: 23px; background: #faf6e9; border: 1px solid var(--border); border-radius: 8px; }
.help-card > svg { width: 24px; height: 24px; color: var(--green); margin-bottom: 13px; }
.help-card h3 { font-size: 21px; margin-bottom: 9px; }
.help-card p { font-size: 14px; margin: 0 0 14px; line-height: 1.75; }
.help-card p:last-child { margin-bottom: 0; }
.guide-checklist { margin: 19px 0; padding-left: 24px; color: var(--muted); }
.guide-checklist li { padding: 8px 0 8px 7px; font-size: 14px; line-height: 1.8; }
.guide-checklist li::marker { color: var(--green); font-weight: 700; }
.guide-checklist strong { color: var(--text); }
.guide-wayfinding { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }
.card.guide-wayfinding { display: block; margin: 0; padding: 0; }
.card.guide-wayfinding > .card-head { width: 100%; }
.card.guide-wayfinding > .card-body { display: grid; grid-template-columns: minmax(0,1fr); gap: 13px; }
.card.guide-wayfinding > .card-body > .text-link { display: block; line-height: 1.65; overflow-wrap: anywhere; }
.feature-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 25px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); }
.feature-strip > * { min-width: 0; padding: 20px 24px; border-right: 1px solid var(--border); }
.feature-strip > :last-child { border-right: 0; }
.feature-strip > div > strong { display: block; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.5; }
.feature-strip > div > span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.feature-strip h3 { font-size: 19px; }
.feature-strip p { margin: 8px 0 0; font-size: 13px; }
.feature-strip svg { width: 21px; height: 21px; margin-bottom: 10px; color: var(--green); }
.community-principles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 25px 0; }
.community-principles > * { min-width: 0; padding: 20px 22px; border-top: 2px solid #b7c29d; background: #f9f6eb; border-radius: 0 0 6px 6px; }
.community-principles h3 { font-size: 20px; }
.community-principles p { font-size: 14px; margin-bottom: 0; }
.context-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 0 0 28px; }
.context-card { min-width: 0; padding: 22px 24px; border: 1px solid var(--border); border-radius: 8px; background: #faf6e9; }
.context-label { display: block; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 11px; }
.context-card h2, .context-card h3 { font-size: 21px; margin: 0 0 11px; }
.context-card p { font-size: 14px; line-height: 1.75; margin: 0 0 15px; }
.context-card p:last-child { margin-bottom: 0; }
.account-links { display: flex; flex-wrap: wrap; gap: 11px 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.account-links a { font-size: 13px; color: var(--green); }
.account-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Reading, browsing and managing a community all use the same paper surface. */
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading > div { min-width: 0; max-width: 100%; }
.page-heading h1 { overflow-wrap: anywhere; }
.back-link { min-height: 33px; margin-bottom: 18px; }
.button:hover { box-shadow: 0 2px 6px #293e2520; }
.button.secondary:hover { box-shadow: none; }
.empty { min-height: 215px; background: radial-gradient(ellipse at 50% 0,#faf6ea,transparent 70%); }
.notice a:not(.text-link), .info-note a, .map-caption a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.tabs { gap: 5px; background: #e9e2cf; border-radius: 8px; }
.tab { border-radius: 5px; line-height: 1.5; }
.owner-tabs { padding: 6px; gap: 5px; }
.owner-tabs .tab { font-size: 12px; }
.browse-toolbar { padding: 18px 20px; background: #eee7d6; border: 1px solid var(--border); border-radius: 8px; }
.browse-toolbar .browse-search { flex-basis: 260px; }
.browse-toolbar select { margin-top: 7px; }
.browse-toolbar .check-label { font-weight: 550; }
.filter-bar { gap: 16px; }
.results-summary { background: #faf7ed; }
.thread-row > .avatar { border: 1px solid #d9dfca; background: #edf0e2; }
.thread-info h3 { font-size: 19px; line-height: 1.4; }
.thread-meta { line-height: 1.6; }
.discussion-title { max-width: 960px; line-height: 1.23; }
.post-body { max-width: 960px; }
.discussion > .post-body { margin-top: 27px; }
.reply { background: #fffdf7; }
.reply:nth-of-type(even) { background: #faf7ee; }
.reply-form { background: #f7f2e5; }
.moderation-actions { padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px; background: #f0e9d9; }
.reply .post-tools, .discussion .post-tools { padding-top: 14px; border-top: 1px solid #e3dbc8; }
.post-body, .rules-content { line-height: 1.85; }
.facts { gap: 26px 22px; }
.fact-label { color: #766649; font-weight: 650; }
.fact-value { line-height: 1.7; overflow-wrap: anywhere; }
.step { padding: 22px 0; }
.step-num { width: 32px; height: 32px; margin-top: 2px; font-weight: 650; }
.step h3 { font-size: 20px; }
.step p { font-size: 14px; line-height: 1.8; }
.faq-item { padding: 18px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { padding-right: 10px; font-size: 14px; line-height: 1.65; }
.faq-item summary::marker { color: #8c9b6d; }
.faq-item[open] summary { margin-bottom: 5px; }
.faq-item .post-body { margin: 0; font-size: 14px; line-height: 1.85; }
.mod { background: #f8f3e6; color: #5b5343; }
.screenshot-card { border-radius: 9px; background: #fffdf5; box-shadow: var(--shadow); }
.screenshot-caption { padding: 17px 12px 13px; }
.screenshot-caption p { font-size: 14px; }
.screenshot-caption .collection-badge { margin: 3px 0 12px; }
.update-card .card-body { padding: 26px; }
.update-card h2 { font-size: 26px; }
.update-card p { font-size: 14px; line-height: 1.8; }
.update-actions { gap: 15px; }
.past-events { padding: 22px 25px; border: 1px solid var(--border); border-radius: 8px; background: #f8f4e8; }
.past-events[open] > summary { margin-bottom: 20px; }
.supporter { background: linear-gradient(135deg,#fffbef,#f4eddc); border-radius: 9px; }
.supporter p { line-height: 1.8; }
.auth-card { box-shadow: 0 10px 32px #5140240c; }
.auth-intro p { line-height: 1.9; }
.account-grid .card-body > p { line-height: 1.85; }
.content-editor-row { background: #f8f4e8; border-radius: 8px; }
.review-card { background: #fbf8ed; }
.report-card:last-child { border-bottom: 0; }
.inbox-item.unread { background: #f0f1e3; }
.inbox-item h2 { line-height: 1.4; }
.inbox-item > div { min-width: 0; }
.history-chart { padding: 15px 0 5px; background: #fcfaf1; border-radius: 7px; }
.status-facts { padding: 18px 20px; border: 1px solid var(--border); border-radius: 7px; background: #faf6ea; }
.status-facts .fact-label { font-size: 10px; }
.link-code { background: #f1f2e4; border-color: #ced5b9; }
.table-wrap { scrollbar-color: #c9ba9b #f5eedf; }
th { background: #f0ead9; color: #766344; line-height: 1.5; }
td { line-height: 1.7; }
td .button, td .text-link { vertical-align: middle; }
dialog { max-height: calc(100dvh - 32px); overflow: auto; border-radius: 9px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; flex-shrink: 0; border-radius: 5px; }
.icon-button:hover { background: #eee6d5; color: var(--text); }
.post-tools-dialog { padding: 0; }
.screenshot-viewer { padding: 18px; }

@media (min-width:1600px) { .banner { min-height: 430px; } .story-card { padding: 29px; } }
@media (max-width:1200px) {
 .banner { min-height: 375px; padding: 35px; }
 .story-card, .context-card { padding: 22px; }
 .context-grid, .story-grid { gap: 15px; }
 .join-ribbon { flex-direction: column; align-items: flex-start; }
 .join-ribbon .heading-actions { width: auto; }
 .footer-credit { flex-basis: 100%; }
}
@media (max-width:1000px) {
 .reading-layout { grid-template-columns: minmax(0,1fr); }
 .story-grid, .context-grid, .community-principles { grid-template-columns: minmax(0,1fr); }
 .story-card { padding: 22px 24px; }
 .story-card > svg { margin-bottom: 12px; }
 .story-card p { max-width: 760px; }
 .feature-strip { grid-template-columns: minmax(0,1fr); }
 .feature-strip > * { border-right: 0; border-bottom: 1px solid var(--border); }
 .feature-strip > :last-child { border-bottom: 0; }
 .context-grid { gap: 13px; }
 .context-card { padding: 20px 23px; }
 .context-label { margin-bottom: 8px; }
}
@media (max-width:760px) {
 .banner { min-height: 395px; padding: 36px 27px 29px; }
 .banner h2 { font-size: 46px; }
 .banner p { font-size: 15px; line-height: 1.8; }
 .page-intro, .content-intro { padding: 20px; margin-bottom: 22px; }
 .page-intro h2, .content-intro h2, .join-ribbon h2 { font-size: 25px; }
 .story-copy h2 { font-size: 29px; }
 .community-story { margin: 29px 0; }
 .story-copy > p { font-size: 15px; }
 .story-card h3 { font-size: 23px; }
 .help-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
 .help-card { padding: 21px; }
 .join-ribbon { padding: 22px; margin: 26px 0; gap: 20px; }
 .join-ribbon .heading-actions { width: 100%; }
 .reading-layout { gap: 22px; }
 .browse-toolbar { padding: 16px; gap: 15px; }
 .browse-toolbar .browse-search { flex-basis: 100%; }
 .section-heading::after { display: none; }
 .section-heading p { font-size: 14px; }
 .footer { align-items: flex-start; gap: 14px; }
 .footer-links { gap: 9px 18px; font-size: 11px; }
 .footer-credit { flex-basis: auto; }
 .update-card .card-body { padding: 23px; }
 .update-card h2 { font-size: 25px; }
 .past-events { padding: 20px; }
 .status-facts { padding: 19px; }
 .screenshot-viewer { padding: 12px; }
}
@media (max-width:420px) {
 .banner { padding: 37px 23px 29px; min-height: 405px; }
 .banner h2 { font-size: 41px; }
 .banner p { margin-top: 17px; }
 .banner::after { inset: 8px; }
 .hero-address { margin-top: 17px; font-size: 11px; }
 .hero-address code { font-size: 12px; }
 .story-card, .context-card { padding: 21px; }
 .help-card { padding: 20px; }
 .page-intro, .content-intro { padding: 19px; }
 .join-ribbon { padding: 21px; }
 .join-ribbon .button { flex-grow: 1; }
 .guide-wayfinding { align-items: stretch; }
 .guide-wayfinding .button { flex-grow: 1; }
 .discussion, .reply, .reply-form { padding: 21px 19px; }
 .moderation-actions { padding: 12px; }
 .footer { padding-left: 16px; padding-right: 16px; }
 .post-tools { gap: 12px; }
}
@media (max-width:350px) { .banner h2 { font-size: 37px; } .banner-actions .button { width: 100%; } }

/* Published policies and live mod details use readable sections, not dense labels. */
.rules-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 24px; align-items: start; }
.rules-reading { min-width: 0; }
.rules-reading .rules-content { color: #514d3f; font-size: 15px; line-height: 1.9; }
.rule-block { display: flex; align-items: flex-start; gap: 17px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.rule-block:first-child { padding-top: 0; }
.rule-block:last-child { padding-bottom: 0; border-bottom: 0; }
.rule-number { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; margin-top: 1px; border: 1px solid #c4ceb0; border-radius: 50%; background: #eef1e2; color: var(--green); font-size: 13px; font-weight: 700; }
.rule-copy { min-width: 0; }
.rule-copy h2, .rule-copy h3 { font-size: 22px; margin-bottom: 10px; }
.rule-copy p { margin: 0; font-size: 14px; line-height: 1.85; white-space: pre-wrap; }
.rules-summary { padding: 22px; border: 1px solid #cbd2b7; border-radius: 8px; background: #f0f2e5; }
.rules-summary h2, .rules-summary h3 { font-size: 23px; margin-bottom: 13px; }
.rules-summary p { font-size: 14px; }
.rules-summary ul { padding-left: 20px; margin: 15px 0; color: var(--muted); }
.rules-summary li { padding: 6px 0; font-size: 14px; line-height: 1.75; }
.rules-summary li::marker { color: var(--green); }
details.help-card { align-self: start; padding: 0; overflow: hidden; }
details.help-card > summary { padding: 21px 23px; color: #42543a; font-family: var(--serif); font-size: 21px; line-height: 1.45; cursor: pointer; overflow-wrap: anywhere; }
details.help-card > summary::marker { color: #7c8d60; font-size: 14px; }
details.help-card[open] > summary { border-bottom: 1px solid var(--border); background: #f2eddd; }
details.help-card > p { margin: 18px 23px; }
details.help-card > .text-link, details.help-card > .guide-wayfinding { margin: 0 23px 21px; }
details.help-card > div:not(.guide-wayfinding) { padding: 18px 23px; }
.mod-list:has(.mod-list-entry) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.mod-list-entry { min-width: 0; padding: 19px 21px; border: 1px solid var(--border); border-radius: 8px; background: #faf7ec; }
.mod-card-title { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 9px 12px; }
.mod-card-title h3 { font-size: 21px; overflow-wrap: anywhere; }
.mod-card-title .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.mod-identifier { display: block; margin-top: 10px; color: #736850; font: 12px/1.6 ui-monospace,monospace; overflow-wrap: anywhere; }
.mod-description { margin: 14px 0 0; color: #645e4f; font-size: 14px; line-height: 1.75; }
.mod-meta { display: block; margin: 14px 0 0; color: #736850; font-size: 11px; line-height: 1.6; }
@media (max-width:1000px) { .rules-layout { grid-template-columns: minmax(0,1fr); } }
@media (max-width:700px) { .mod-list:has(.mod-list-entry) { grid-template-columns: minmax(0,1fr); } }
@media (max-width:420px) { .rule-block { gap: 12px; } .rule-number { width: 30px; height: 30px; } .rule-copy h2, .rule-copy h3 { font-size: 21px; } .mod-list-entry { padding: 18px; } details.help-card > summary { padding: 19px 20px; } details.help-card > p { margin: 17px 20px; } }

/* Brief feedback makes route changes and clickable surfaces feel intentional. */
@keyframes journal-enter { from { opacity:0; } to { opacity:1; } }
#content.page-enter { animation: journal-enter .32s ease-out both; }
.button, .quick-link, .screenshot-card { transition: transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease; }
@media (hover:hover) and (pointer:fine) {
 .button:not(:disabled):hover { transform: translateY(-1px); }
 .quick-link:hover { transform: translateY(-2px); box-shadow: 0 6px 16px #4f3c1d0d; }
 .screenshot-card:hover { transform: translateY(-2px); border-color: #bcab88; box-shadow: 0 6px 18px #4f3c1d10; }
}
@media (prefers-reduced-motion:reduce) { #content.page-enter { opacity: 1; transform: none; } .button:hover, .quick-link:hover, .screenshot-card:hover { transform: none; } }

/* Full-size pictures fade into place once loaded. */
.viewer-image-wrap img { transition:opacity .18s ease; }
.viewer-image-wrap img.image-loading { opacity:.35; }
@keyframes viewer-appear { from { opacity:0; transform:scale(.985); } to { opacity:1; transform:scale(1); } }
.screenshot-viewer[open] { animation:viewer-appear .2s ease-out; }

[id^=guide-step-], #joining-help, #guide-faq, #server-mods { scroll-margin-top:24px; }

@keyframes journal-heading-enter { from { transform:translateY(7px); } to { transform:translateY(0); } }
#content.page-enter .page-heading { animation:journal-heading-enter .32s ease-out both; }
.guide-mobile-nav { display:none; margin:0 0 22px; }
.guide-mobile-nav > summary { padding:20px; cursor:pointer; color:var(--green); font-weight:650; }
.guide-mobile-nav > nav { display:grid; gap:13px; padding:0 20px 22px; }
@media(max-width:700px) { .guide-mobile-nav { display:block; } .page-aside > .guide-wayfinding { display:none; } }

/* The no-code website editor keeps the working copy and its private preview together. */
#website-editor { min-width:0; }
#website-editor .editor-notice, #website-editor .editor-error, #website-editor .editor-stale { align-items:flex-start; gap:12px; margin-bottom:16px; }
#website-editor .editor-notice > span, #website-editor .editor-error > span, #website-editor .editor-stale > span { flex:1; min-width:0; }
#website-editor .editor-error { background:#faede6; border-color:#d6aa96; color:#783e2d; flex-wrap:wrap; }
#website-editor .editor-stale { background:#f6edda; border-color:#d1b376; color:#72552b; }
#website-editor .editor-error > svg, #website-editor .editor-stale > svg { width:21px; height:21px; flex-shrink:0; }
.editor-toolbar { padding:20px 23px; margin-bottom:24px; }
#editor-controls { display:flex; justify-content:space-between; flex-wrap:wrap; align-items:center; gap:18px; }
.editor-state { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; font-size:13px; }
.editor-state-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; background:var(--green); }
.editor-state-dot.changed { background:var(--gold); }
.editor-save-detail { flex-basis:100%; padding-left:16px; font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.editor-actions { display:flex; flex-wrap:wrap; gap:10px; }
.editor-secondary-actions { display:flex; flex-wrap:wrap; gap:12px 22px; padding-top:17px; margin-top:17px; border-top:1px solid var(--border); }
.editor-secondary-actions .text-link { font-size:12px; }
.editor-layout { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:24px; align-items:start; }
.editor-workbench { min-width:0; }
.editor-section-tabs { display:flex; flex-wrap:wrap; gap:5px; padding:16px; border-bottom:1px solid var(--border); background:var(--panel-raised); }
.editor-section-tabs .tab { font-size:12px; border:1px solid transparent; padding:9px 11px; }
.editor-section-tabs .tab.active { background:var(--panel); border-color:var(--border); color:var(--green); }
.editor-section-tabs .tab:hover { background:var(--panel); }
.editor-form { min-width:0; }
.editor-form .form-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.editor-section-heading { margin-bottom:25px; padding-bottom:21px; border-bottom:1px solid var(--border); }
.editor-section-heading h2 { font-size:27px; margin:7px 0 11px; line-height:1.3; }
.editor-section-heading p { margin:0; color:var(--muted); font-size:13px; line-height:1.8; }
.editor-field { min-width:0; font-size:13px; }
.editor-field > input, .editor-field > textarea, .editor-field > select { width:100%; min-width:0; font-size:14px; background:var(--panel); }
.editor-field > textarea { line-height:1.75; resize:vertical; }
.editor-field-help { display:block; margin-top:8px; font-size:11px; line-height:1.7; font-weight:400; color:var(--muted); overflow-wrap:anywhere; }
.editor-item { min-width:0; margin:25px 0; padding:20px; border:1px solid var(--border); border-radius:7px; background:#f5f0e650; }
.editor-item legend { padding:0 8px; font-size:12px; font-weight:650; color:var(--green); }
.editor-item-actions { display:flex; flex-wrap:wrap; align-items:center; gap:9px 16px; margin-top:18px; }
.editor-item-actions .text-link { font-size:12px; }
.editor-item-actions .button { font-size:11px; }
.editor-list-heading { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-top:23px; }
.editor-list-heading h3 { font-size:23px; }
.editor-list-heading + div > .editor-item:first-child { margin-top:16px; }
.editor-palette-options { padding:0; margin:20px 0 27px; border:0; min-width:0; }
.editor-palette-options legend { font-size:13px; font-weight:650; margin-bottom:12px; }
.editor-palette-option { display:flex; align-items:center; gap:13px; padding:16px; border:1px solid var(--border); border-radius:7px; background:var(--panel); margin:0 0 10px; cursor:pointer; min-width:0; color:var(--text); }
.editor-palette-option:has(input:checked) { outline:2px solid var(--green); outline-offset:0; }
.editor-palette-option input { accent-color:var(--green); width:17px; height:17px; margin:0; flex-shrink:0; }
.editor-palette-option > span:first-of-type { flex:1; min-width:0; }
.editor-palette-option strong { display:block; font-size:14px; }
.editor-palette-option small { display:block; color:var(--muted); font-size:11px; font-weight:400; margin-top:4px; }
.editor-colour-swatch { width:34px; height:34px; border:8px solid var(--panel-raised); border-radius:50%; background:var(--green); flex-shrink:0; }
.editor-preview { position:sticky; top:24px; min-width:0; }
.editor-preview .card-head h2 { display:flex; align-items:center; gap:9px; font-size:23px; }
.editor-preview .card-head svg { width:20px; height:20px; }
.editor-preview-note { display:flex; align-items:flex-start; gap:10px; padding:15px 19px; font-size:11px; line-height:1.7; color:var(--muted); border-bottom:1px solid var(--border); }
.editor-preview-note svg { width:17px; height:17px; flex-shrink:0; margin-top:1px; }
.editor-preview-content { background:var(--bg); padding:18px; color:var(--text); overflow-wrap:anywhere; }
.editor-preview-paper { background:var(--panel); border:1px solid var(--border); border-radius:7px; padding:21px; }
.editor-preview-paper > h2 { font-size:27px; line-height:1.25; margin-bottom:12px; }
.editor-preview-intro { color:var(--muted); font-size:12px; line-height:1.8; margin:0 0 22px; white-space:pre-wrap; }
.editor-preview-hero { position:relative; isolation:isolate; overflow:hidden; min-height:250px; border-radius:6px; background:linear-gradient(125deg,#294737,#52674b); padding:24px 20px; color:#fff9e5; margin:0 0 23px; }
.editor-preview-hero::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#162c26ed,#19312675); z-index:-1; }
.editor-preview-hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.editor-preview-hero .eyebrow { color:#e1d5ad; font-size:8px; letter-spacing:1.4px; }
.editor-preview-hero h3 { font-size:34px; line-height:1.15; margin:14px 0; }
.editor-preview-hero p { font-size:12px; line-height:1.8; margin:0 0 20px; white-space:pre-wrap; }
.editor-preview-button { display:inline-block; padding:9px 11px; border:1px solid var(--green); border-radius:5px; background:var(--green); color:#fffdf6; font-size:10px; font-weight:650; margin:4px 6px 0 0; }
.editor-preview-hero .editor-preview-button { background:#eadab2; color:#344632; border-color:#eadab2; }
.editor-preview-hero .editor-preview-button.secondary { color:#fff9e5; background:#ffffff0d; border-color:#ddd0a7; }
.editor-preview-callout { background:var(--panel-raised); border:1px solid var(--border); border-radius:6px; padding:15px; margin:17px 0 25px; font-size:12px; }
.editor-preview-callout p { margin:8px 0 0; white-space:pre-wrap; line-height:1.8; }
.editor-preview-paper > .eyebrow { font-size:9px; margin-top:7px; }
.editor-preview-story-title { font-size:26px; line-height:1.3; margin:9px 0 12px; }
.editor-preview-text { font-size:12px; line-height:1.85; color:var(--muted); white-space:pre-wrap; margin-bottom:22px; }
.editor-preview-stories { display:grid; gap:12px; }
.editor-preview-stories article { border:1px solid var(--border); border-radius:5px; padding:15px; }
.editor-preview-stories h4 { font-family:var(--serif); font-size:19px; font-weight:600; color:var(--green); margin:0 0 10px; line-height:1.4; }
.editor-preview-stories p { margin:0; font-size:11px; color:var(--muted); line-height:1.8; white-space:pre-wrap; }
.editor-preview-join { margin-top:23px; border:1px solid var(--border); background:var(--panel-raised); border-radius:6px; padding:18px; }
.editor-preview-join h3 { font-size:23px; line-height:1.4; margin:0 0 9px; }
.editor-preview-join p { font-size:12px; line-height:1.8; white-space:pre-wrap; }
.editor-preview-placeholder { padding:17px; background:var(--panel-raised); color:var(--muted); font-size:12px; line-height:1.8; border-radius:5px; }
.editor-preview-rules article { display:flex; gap:13px; border-bottom:1px solid var(--border); padding:17px 0; }
.editor-preview-rules article:last-child { border:0; padding-bottom:0; }
.editor-preview-rules article > span { width:25px; height:25px; flex-shrink:0; display:grid; place-items:center; border-radius:50%; background:var(--panel-raised); color:var(--green); font-size:11px; }
.editor-preview-rules p { font-size:12px; line-height:1.8; white-space:pre-wrap; margin:0; }
.editor-preview-step { padding:18px 0; border-bottom:1px solid var(--border); }
.editor-preview-step > span { font-size:9px; letter-spacing:1.1px; color:var(--gold); font-weight:650; }
.editor-preview-step h3 { font-size:23px; line-height:1.4; margin:9px 0; }
.editor-preview-step p, .editor-preview-faq p { font-size:12px; line-height:1.85; white-space:pre-wrap; color:var(--muted); }
.editor-preview-faq { border-bottom:1px solid var(--border); padding:16px 0; }
.editor-preview-faq strong { font-size:12px; }
.editor-preview-faq:last-child { border:0; }
.editor-bottom-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:24px; align-items:start; margin-top:25px; }
.editor-bottom-grid summary { cursor:pointer; padding:22px; color:var(--green); font-weight:650; font-size:13px; line-height:1.7; }
.editor-history summary .badge { margin-left:10px; font-size:10px; }
.editor-history[open] summary, .editor-template[open] summary { border-bottom:1px solid var(--border); }
.editor-history ol { list-style:none; padding:0; margin:22px 0 0; }
.editor-history li { display:flex; flex-wrap:wrap; gap:13px; align-items:center; justify-content:space-between; border-top:1px solid var(--border); padding:17px 0; }
.editor-history li:last-child { padding-bottom:0; }
.editor-history li > div { display:grid; gap:5px; min-width:0; }
.editor-history li strong { font-size:12px; font-weight:600; }
.editor-history li span { font-size:11px; color:var(--muted); }
.editor-template p { font-size:13px; line-height:1.8; color:var(--muted); }
.editor-template .info-note { font-size:11px; margin-bottom:0; }
.editor-mobile-switch { display:none; }
@media(max-width:1200px) {
 .editor-layout { grid-template-columns:minmax(0,1fr); }
 .editor-preview { position:static; }
 .editor-mobile-switch { display:flex; gap:10px; margin:0 0 20px; }
 .editor-mobile-switch .button { flex:1; }
 .editor-layout[data-editor-view-mode="edit"] > .editor-preview { display:none; }
 .editor-layout[data-editor-view-mode="preview"] > .editor-workbench { display:none; }
 .editor-preview-paper { padding:25px; }
 .editor-preview-stories { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
 .editor-toolbar { padding:19px; }
 .editor-actions { width:100%; }
 .editor-actions .button { flex:1; }
 .editor-secondary-actions { gap:13px 19px; }
 .editor-section-tabs { padding:12px; gap:3px; }
 .editor-section-tabs .tab { font-size:11px; padding:10px; }
 .editor-form .form-row { grid-template-columns:minmax(0,1fr); gap:0; }
 .editor-section-heading h2 { font-size:25px; }
 .editor-item { padding:17px; }
 .editor-bottom-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
 .editor-preview-content { padding:12px; }
 .editor-preview-paper { padding:19px; }
 .editor-preview-stories { grid-template-columns:minmax(0,1fr); }
 .editor-preview-hero h3 { font-size:32px; }
}
@media(max-width:420px) {
 .editor-toolbar { padding:17px; }
 .editor-actions { gap:8px; }
 .editor-actions .button { min-width:0; padding:11px; font-size:11px; }
 .editor-form.card-body { padding:19px; }
 .editor-section-tabs .tab { padding:9px; font-size:10px; }
 .editor-preview .card-head { padding:17px; }
 .editor-preview .card-head h2 { font-size:22px; }
 .editor-preview-content { padding:9px; }
 .editor-preview-paper { padding:15px; }
 .editor-palette-option { padding:13px; gap:10px; }
 .editor-item { padding:14px; }
 .editor-item-actions { gap:9px; }
 .editor-history summary .badge { display:inline-block; margin-left:0; }
}
.editor-preview-device { display:flex; gap:13px; align-items:center; }
.editor-preview-device .text-link { font-size:11px; color:var(--muted); }
.editor-preview-device [aria-pressed="true"] { color:var(--green); font-weight:750; text-decoration:underline; text-underline-offset:4px; }
#editor-preview-body[data-editor-device="mobile"] > .editor-preview-content { max-width:360px; margin-inline:auto; }
#editor-preview-body[data-editor-device="mobile"] .editor-preview-stories { grid-template-columns:minmax(0,1fr); }
#editor-preview-body[data-editor-device="mobile"] .editor-preview-paper { padding:15px; }
#editor-preview-body[data-editor-device="mobile"] .editor-preview-hero h3 { font-size:30px; }
