/**
 * @file        sg-listing.css
 * @description Business claims and price extras (I8-01 to I8-07, D8-05, D8-06): entry block, owner badge, claim list, owner form, price change split bar, working-time figure; mobile first, light and dark through the sg.css variables
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         7b2f4e1c-9a3d-4c58-b6e2-5d8f0a1c3e97
 * @version     0.1.0.1
 * @created     2026-12-01
 * @updated     2026-12-01
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* Owner badge: navy chip, so the one orange focal point of a page stays its main action. */
.sg-listing-badge { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Entry block on the contact page (I8-01) and the owner's business data. */
.sg-listing-block h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sg-listing-owner__name { font-family: var(--font-head); font-weight: 600; margin: 0 0 8px; overflow-wrap: anywhere; }
.sg-listing-owner__text { overflow-wrap: anywhere; }
.sg-listing-data { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; margin: 0 0 12px; }
.sg-listing-data dt { font-weight: 600; }
.sg-listing-data dd { margin: 0 0 8px; overflow-wrap: anywhere; }
@media (min-width: 600px) {
  .sg-listing-data { grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); }
  .sg-listing-data dd { margin: 0; }
}

/* Claim list (I8-03) and admin queue (D8-06). */
.sg-listing-claims, .sg-listing-admin-claims, .sg-listing-split__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sg-listing-claim p, .sg-listing-admin-claim p { margin: 0 0 6px; overflow-wrap: anywhere; }
.sg-listing-state--approved { border-color: var(--navy); }
.sg-listing-state--refused, .sg-listing-state--failed { border-color: var(--mahogany); }
.sg-listing-proof { margin-top: 12px; }
.sg-listing-form textarea, .sg-listing-form input { width: 100%; max-width: 100%; }
.sg-listing-verify #f-code { font-family: var(--font-mono); letter-spacing: 0.2em; max-width: 12rem; }

/* Price change split (I8-06): one bar, local price and exchange rate side by side. */
.sg-listing-split__item { padding: 12px 0; border-top: 1px solid var(--border); }
.sg-listing-split__item:first-child { border-top: 0; }
.sg-listing-split__head, .sg-listing-split__total { margin: 0 0 6px; overflow-wrap: anywhere; }
.sg-listing-split__bar { display: block; margin: 4px 0 8px; border-radius: var(--radius-sm); }
.sg-listing-split__local { fill: var(--navy); }
.sg-listing-split__rate { fill: var(--ink-muted); }
.sg-listing-split__legend { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; margin: 0; }
.sg-listing-split__legend dt { display: flex; align-items: center; gap: 6px; }
.sg-listing-split__legend dd { margin: 0; text-align: right; }
.sg-listing-split__key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; flex: none; }
.sg-listing-split__key--local { background: var(--navy); }
.sg-listing-split__key--rate { background: var(--ink-muted); }

/* Working-time figure (I8-07): small, under the price; source and year on tap. */
.sg-listing-work { font-family: var(--font-body); font-size: 0.85rem; font-weight: 400; white-space: normal; text-align: left; margin-top: 2px; }
.sg-listing-work summary { cursor: pointer; color: var(--ink-muted); }
.sg-listing-work .sg-chip { font-size: 0.75rem; }
.sg-listing-work p { margin: 4px 0 0; }
