/* Malta Car Meets: the bits styles.css (shared with TS Malta Time) doesn't have. */

/* Own stamp instead of TS Malta Time's 峠 */
.brand::before { content: "MT"; font: 900 .62em/1 var(--font-display); font-style: italic; letter-spacing: -.02em; }
.brand { color: var(--ink); text-decoration: none; font: 800 italic 1.6rem/1 var(--font-display); text-transform: uppercase; }

/* ---------- The 3D map of the island ---------- */
.island-box { display: grid; gap: 8px; }
.island-map { min-height: 200px; }
.c3d.i3d { aspect-ratio: 16 / 8; max-height: 72vh; }
.island-map.small .c3d.i3d { aspect-ratio: 16 / 9; max-height: 60vh; }
@media (max-width: 560px) { .c3d.i3d { aspect-ratio: 4 / 5; } .island-map.small .c3d.i3d { aspect-ratio: 1; } }
.island-map:empty { aspect-ratio: 16 / 8; background: #05010f; border: 2px solid #7a1cff; }
.c3d.i3d.picking .c3d-canvas { cursor: crosshair; }
.i3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; font-family: var(--font-body); }
.i3d-label { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; display: grid; gap: 2px; text-align: left; max-width: 190px;
  padding: 5px 8px; border: 2px solid #5dff3a; background: rgba(5, 1, 15, .85); color: #fff; box-shadow: 0 0 10px rgba(93, 255, 58, .45); font: inherit; }
.i3d-label b { font: 700 .82rem/1.15 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i3d-label small { font: 500 10px/1.2 var(--font-data); color: #5dff3a; }
.i3d-label.next { border-color: #ff2a4a; box-shadow: 0 0 14px rgba(255, 42, 74, .6); z-index: 2; }
.i3d-label.next small { color: #ff8a9c; }
.i3d-label.far small { display: none; }
.i3d-label.far { padding: 3px 6px; }
.i3d-label:hover, .i3d-label:focus-visible { background: #000; z-index: 3; }
.i3d-home { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; font-size: 22px; line-height: 1;
  border: 2px solid #27e8ff; background: rgba(5, 1, 15, .75); color: #fff; cursor: pointer; }
.c3d.i3d.theme-real .i3d-label { background: rgba(255, 255, 255, .92); color: #1d2a30; border-color: #e8332a; box-shadow: none; }
.c3d.i3d.theme-real .i3d-label small { color: #b3261e; }
.c3d.i3d.theme-real .i3d-label.next { border-color: #d4a017; }
.c3d.i3d.theme-real .i3d-home { background: rgba(255, 255, 255, .9); color: #1d2a30; border-color: #2b3a42; }
.c3d.i3d.theme-blueprint .i3d-label { background: rgba(2, 11, 26, .88); border-color: #ffd23f; box-shadow: none; }
.c3d.i3d.theme-blueprint .i3d-label small { color: #ffd23f; }
.c3d.i3d.theme-blueprint .i3d-home { border-color: #7fb8ff; background: rgba(2, 11, 26, .82); }
.c3d.i3d.theme-initiald .i3d-label { background: rgba(10, 10, 12, .9); border-color: #ff6a00; box-shadow: none; }
.c3d.i3d.theme-initiald .i3d-label small { color: #ff9a4d; }
.c3d.i3d.theme-initiald .i3d-home { border-color: #e8e8e8; background: rgba(10, 10, 12, .85); }
.c3d.i3d.theme-wangan .i3d-label { background: rgba(1, 3, 12, .9); border-color: #ffa63d; box-shadow: 0 0 10px rgba(255, 166, 61, .4); }
.c3d.i3d.theme-wangan .i3d-label small { color: #ffa63d; }
.c3d.i3d.theme-wangan .i3d-home { border-color: #3d7bff; background: rgba(1, 3, 12, .85); }
.meet-map:empty { aspect-ratio: 16 / 9; background: #05010f; border: 2px solid #7a1cff; }

/* ---------- Meets ---------- */
.meet-group { margin-top: 8px; }
.meet-card .event-top { color: inherit; text-decoration: none; }
.meet-card:hover { border-color: var(--ink); }
.meet-card .sub { overflow-wrap: anywhere; }
.event .event-top { color: inherit; text-decoration: none; }
.meet-cover { aspect-ratio: 21 / 9; }
.meet-cover img { object-fit: cover; }
.meet-acts { justify-content: space-between; }
.rsvp .field.inline { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.rsvp .field.inline select { width: auto; max-width: 60vw; }
.ev-people li small { color: var(--muted); display: block; }
.ev-people .avatar { width: 40px; height: 40px; }
.ev-people .avatar span { font-size: 1.1rem; }
.comment-list .c-head .avatar { width: 28px; height: 28px; }
.comment-list .c-head .avatar span { font-size: .9rem; }
.comment-form textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.linkish.armed { color: var(--danger); }
.post-acts { gap: 6px 14px; }
.organiser-tools { border-left: 4px solid var(--accent); }

/* ---------- Forms ---------- */
.field { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { font-weight: 400; font-size: 1rem; }
.field input[type="datetime-local"] { min-height: 40px; }
.meet-size { display: grid; gap: 6px; }
.meet-size input[type="range"] { width: 100%; max-width: 420px; }
.up-photos, #cover, #avatar-edit { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.up-photo { margin: 0; width: 140px; display: grid; gap: 4px; }
.up-photo img { width: 140px; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--line); }
.up-photo figcaption { display: flex; gap: 4px; justify-content: space-between; align-items: center; }
.up-add { cursor: pointer; }
.model-stage.small { max-width: 480px; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--danger); }
.notify-kinds { display: grid; gap: 8px; }
.order-row input[type="number"] { width: 70px; font: inherit; padding: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* ---------- Garage, profiles, shop ---------- */
.mod-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.plain-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.car-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.driver-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.product-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 18px; align-items: start; }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; } }
.product { color: inherit; text-decoration: none; }
.forum-cats .btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.forum-list a { color: inherit; text-decoration: none; }
.forum-list a:hover b { color: var(--accent); }
.thread-posts .c-head { align-items: center; }

/* ---------- Admin ---------- */
.admin-users td { vertical-align: top; }
.admin-users select { font: inherit; padding: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.fee-in { width: 64px; font: inherit; padding: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.admin-users td.acts { display: flex; flex-wrap: wrap; gap: 6px; }
.pw { font-family: var(--font-data); user-select: all; }
.table-box { overflow-x: auto; }

/* ---------- Members ---------- */
.mc-body .role-badge { justify-self: start; margin-top: 4px; }

/* ---------- Meeting spots (shared with TS Malta Time) ---------- */
.i3d-label.spot { border-color: #27e8ff; box-shadow: 0 0 8px rgba(39, 232, 255, .4); padding: 3px 7px; }
.i3d-label.spot b { font-size: .74rem; }
.c3d.i3d.theme-real .i3d-label.spot { border-color: #1d6fd6; }
.c3d.i3d.theme-blueprint .i3d-label.spot { border-color: #7fb8ff; }
.c3d.i3d.theme-initiald .i3d-label.spot { border-color: #e8e8e8; }
.c3d.i3d.theme-wangan .i3d-label.spot { border-color: #3d7bff; }
.spot-strip .row { gap: 6px; }
.spot-chip { text-decoration: none; }
.spot-list li small { display: block; }

/* ---------- Organiser tools ---------- */
.announce { display: flex; gap: 10px; align-items: flex-start; }
.announce > span:first-child { flex: 0 0 auto; }
.announce > div { display: grid; gap: 2px; flex: 1 1 auto; }
.announce small { color: var(--muted); font-weight: 400; }
.announce-form textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; box-sizing: border-box; }
.host-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.host-lists > div { display: grid; gap: 6px; align-content: start; }
.host-lists p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.host-lists input, .ev-checkin input { font: inherit; padding: 7px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; flex: 1 1 160px; }
.ev-checkin input { text-transform: uppercase; letter-spacing: .15em; max-width: 160px; }
.chip { display: inline-flex; gap: 4px; align-items: center; border: 1px solid var(--line); padding: 3px 8px; background: var(--bg); }
.chip a { color: inherit; }
.ev-people li.here { border-color: #2fbf4a; }
.here-tick { color: #2fbf4a !important; font-weight: 600; }
.checkin-code a img { display: block; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.album figure { margin: 0; display: grid; gap: 4px; }
.album img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--line); }
.album figcaption { font-size: .8rem; color: var(--muted); }

/* Stats: one series per chart, bars from the baseline with a rounded end and the value beside them */
.hbars { margin: 0; display: grid; gap: 6px; }
.hbars figcaption { margin-bottom: 4px; }
.hbar { display: grid; grid-template-columns: minmax(70px, 30%) 1fr 3ch; gap: 8px; align-items: center; }
.hbar-k { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { display: block; height: 14px; }
.hbar-track i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 3px; }
.hbar:hover .hbar-track i { filter: brightness(1.15); }
.hbar-v { font: 600 .85rem var(--font-data); text-align: right; }
.hbar-table summary { cursor: pointer; color: var(--muted); font-size: .85rem; margin-top: 6px; }
