/* ReBBu Unified Web: the building blocks of the content pages (registration, settings, shop, community ...):
   a page head, a layout with a main and a side column, form rows, lists of items and pagination. */

.uw-page-head { margin: 0 0 36px 0; }
.uw-page-head .uw-h1 { color: var(--uw-night); text-shadow: 0 2px 0 rgba(255, 255, 255, .4); }
.uw-page-head .uw-lead { color: #1d3550; max-width: 46em; }

.uw-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--uw-gap); align-items: start; }
.uw-layout-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.uw-layout-side-left { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.uw-stack > * + * { margin-top: var(--uw-gap); }
.uw-layout > .uw-panel + .uw-panel { margin-top: 0; }

/* forms */
.uw-form-row.uw-form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uw-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.uw-field-error > span, .uw-field-error .uw-field-hint { color: #ff9b9e; }
.uw-field-error .uw-input { border-color: var(--uw-danger); }
.uw-field-hint { display: block; margin-top: 5px; font-size: 13px; color: var(--uw-muted); }
.uw-select { appearance: auto; }
.uw-form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.uw-check-block { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; color: var(--uw-text); }
.uw-check-block input { margin-top: 3px; }
.uw-captcha-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.uw-captcha-row img { border-radius: 10px; background: #fff; }
/* the round mark of an option (the settings page) */
.uw-choice-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--uw-line); display: grid; place-items: center; }

/* lists of items: rooms, groups, threads, news */
.uw-list { list-style: none; margin: 0; padding: 0; }
.uw-list > li + li { border-top: 1px solid var(--uw-line); }
.uw-item { display: flex; align-items: center; gap: 18px; padding: 16px 0; }
.uw-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uw-item-main strong, .uw-item-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uw-item-meta { font-size: 13px; color: var(--uw-muted); }
.uw-item img { flex: none; }
.uw-badge-hotel { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--uw-classic-dark); color: #fff; white-space: nowrap; }
.uw-badge-hotel-modern { background: var(--uw-modern-dark); }

.uw-pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.uw-pagination a, .uw-pagination span { padding: 8px 15px; border-radius: 10px; background: var(--uw-panel-raised); text-decoration: none; }
.uw-pagination span[aria-current] { background: var(--uw-gold); color: #3a2600; font-weight: 700; }

.uw-prose { line-height: 1.7; max-width: 72ch; }
.uw-prose img { max-width: 100%; height: auto; border-radius: var(--uw-radius-small); }
.uw-prose h2, .uw-prose h3 { font-family: var(--uw-font-display); margin: 1.4em 0 .5em 0; }

@media (max-width: 900px) {
	.uw-layout, .uw-layout-side-left { grid-template-columns: minmax(0, 1fr); }
}

/* narrow pages: a message, a short form (logout, error, forgotten password ...) */
.uw-narrow { max-width: 760px; margin: 0 auto; }
.uw-narrow-wide { max-width: 1120px; }
.ux-card { padding-top: 40px; padding-bottom: 40px; }
.ux-card .uw-h1 { font-size: 40px; margin-bottom: 4px; }
.ux-card .uw-lead { color: var(--uw-muted); margin-bottom: 8px; }
.ux-card .uw-note { margin-top: 18px; box-shadow: none; background: var(--uw-night); }
.ux-small { font-size: 14px; margin: 22px 0 0 0; }

/* the credit history: months to page through, one row a movement */
.ux-month-bar { justify-content: space-between; }
.ux-month-bar .uw-h2 { flex: none; text-align: center; }
.ux-month-bar a, .ux-month-bar span { flex: 1; font-size: 14px; }
.ux-month-bar a:last-child { text-align: right; }
.ux-tx-amount { flex: none; font: 700 18px/1 var(--uw-font-display); color: #8fe0ae; }
.ux-tx-out { color: #ffb3b5; }

/* the title above personal and group pages (templates/unified_page_head.php) */
.upg-head { display: flex; align-items: center; gap: 22px; text-align: left; font: 400 16px/1.6 var(--uw-font); }
.upg-head-badge { flex: none; width: 84px; height: 84px; padding: 14px; box-sizing: border-box; border-radius: var(--uw-radius); background: var(--uw-night); image-rendering: pixelated; box-shadow: var(--uw-shadow); }
.upg-head .uw-h1 { overflow-wrap: anywhere; }
.upg-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0 0; }
.upg-chips .uw-chip { background: var(--uw-night); }
.upg-chips .upg-chip-plain::before { display: none; }
.upg-actions { margin-left: auto; align-self: flex-end; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.uw-page a.upg-action { background: var(--uw-night); color: #fff; }
@media (max-width: 760px) { .upg-head { flex-wrap: wrap; } .upg-actions { margin-left: 0; justify-content: flex-start; } }

/* the help: topics on the left, the answers open in place */
.ux-help-search { display: flex; gap: 10px; }
.ux-help-search .uw-input { flex: 1; min-width: 0; }
.ux-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ux-topics a { display: block; padding: 10px 14px; border-radius: var(--uw-radius-small); text-decoration: none; }
.uw-page .ux-topics a { color: var(--uw-text); }
.ux-topics a:hover { background: var(--uw-panel-raised); }
.uw-page .ux-topics a[aria-current="page"] { background: var(--uw-panel-raised); box-shadow: inset 4px 0 0 var(--uw-gold); }
.ux-help-intro { margin-bottom: 18px; }
.ux-faq { border-top: 1px solid var(--uw-line); }
.ux-faq:last-child { border-bottom: 1px solid var(--uw-line); }
.ux-faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ux-faq summary::-webkit-details-marker { display: none; }
.ux-faq summary::after { content: "+"; color: var(--uw-gold); font-size: 20px; line-height: 1; }
.ux-faq[open] summary::after { content: "–"; }
.ux-faq .uw-prose { padding: 0 0 18px 0; color: var(--uw-muted); }
.ux-disc { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, var(--uw-gold) 0 4px, var(--uw-night) 5px 11px, #2a3550 12px 100%); box-shadow: inset 0 0 0 2px var(--uw-line); }

/* the help tool: the steps done above the current one */
.ux-step-done { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; margin-bottom: 16px; }
.ux-step-done > span { display: flex; flex-direction: column; }
.ux-step-options { margin: 16px 0 20px 0; }
.ux-code { width: 160px; }
.ux-message { min-height: 160px; resize: vertical; }
.ux-maintenance { text-align: center; margin-top: 8vh; }
.ux-maintenance img { margin-bottom: 18px; }

/* links that stand right on the sky, outside a panel */
.uw-page-head a:not(.uw-button), .uw-narrow > p > a, .uw-page-head .uw-lead a { color: #0b4a7a; font-weight: 500; }
.uw-page-head a:hover, .uw-narrow > p > a:hover { color: #062e4d; }
/* the way back from a sub page (one category of the news, ...): a dark pill above the title */
.uw-page a.uw-back { margin: 0 0 16px 0; background: var(--uw-night); color: #fff; text-transform: none; letter-spacing: 0; font-weight: 500; }
