/* Auction page: teal and rust palette (client design 10/2026). */
.emo-detail-wrap { max-width: 78rem !important; margin: 2.5rem auto 4.5rem !important; color: #26332f; }
.emo-detail-wrap > .emo-tiles { padding-bottom: 1.8rem; border-bottom: 2px solid #e3eae8; margin-bottom: 2.5rem; }
.emo-auction { --emo-primary: #005953; --emo-primary-ink: #005953; --emo-primary-soft: #e8f1f0; --emo-beige: #e8f1f0; --emo-beige-dark: #dbe5e3; --emo-orange: #a65a29; --emo-orange-ink: #8e4a1f; --emo-muted: #6d7874; color: #26332f; }
.emo-auction p { margin: 0; }
.emo-test-note { margin-bottom: 1rem !important; padding: .75rem 1rem; background: #faf8f2; border-left: 3px solid #a07425; font-size: .95rem; }
.emo-test-arm { margin-bottom: 1rem; }
.emo-demo-note { margin-top: 2rem !important; color: var(--emo-muted); font-size: .85rem; text-align: center; }
.emo-result { margin-bottom: 1rem !important; padding: .85rem 1rem; border-left: 4px solid var(--emo-primary); background: var(--emo-primary-soft); }
.emo-result-error { border-color: #b52f2f; background: #fff0f0; }

/* Layout: one column on phones (Timber order), two columns from 960px. */
.emo-detail-grid { display: flex; flex-direction: column; max-width: 46rem; margin: 0 auto; }
.emo-col-main, .emo-col-side { display: contents; }
.emo-detail-title { order: 1; }
.emo-detail-location { order: 2; }
.emo-price-row { order: 3; }
.emo-specs-grid, .emo-registers { order: 4; }
.emo-info { order: 5; }
.emo-contact { order: 6; }
.emo-bidbar { order: 7; }
.emo-buy, .emo-autobid { order: 8; }
.emo-bought { order: 3; }
.emo-status { order: 9; }
.emo-refresh-status { order: 10; }
.emo-recent { order: 11; }
.emo-gallery { order: 12; }
.emo-files { order: 13; }
@media (min-width: 960px) {
  .emo-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; max-width: none; align-items: start; }
  .emo-col-main, .emo-col-side { display: block; }
  .emo-price-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .emo-price-row .emo-time-box { padding-top: 0; }
  .emo-col-side .emo-bidbar { margin-top: 1rem; }
}

.emo-detail-title { margin: .4rem 0 1.6rem !important; color: var(--emo-primary) !important; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; text-align: center; }
.emo-detail-location { padding: 1rem; border-bottom: 3px solid var(--emo-primary); background: var(--emo-beige); text-align: center; font-size: 1.05rem; }
.emo-price-box { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 8.5rem; padding: 1.4rem 1rem 1.6rem; background: var(--emo-primary); color: #fff; text-align: center; }
.emo-price-box::before { content: ''; position: absolute; top: -5rem; right: -4rem; width: 12rem; height: 12rem; border-radius: 50%; background: #003f37; }
.emo-price-box > * { position: relative; }
.emo-price-label { font-size: 1.05rem; font-weight: 700; }
.emo-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.emo-time-box { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.1rem 1rem 0; text-align: center; }
.emo-time-head { display: flex; align-items: center; gap: .4rem; color: var(--emo-muted); font-size: .95rem; }
.emo-time-head .emo-icon { width: 1.3rem; height: 1.3rem; color: var(--emo-orange); }
.emo-countdown { padding: .45rem 1.4rem; border-radius: 999px; background: #f5ebe2; color: #8b4a2c; font-weight: 700; font-variant-numeric: tabular-nums; }
.emo-dates { display: flex; justify-content: center; margin-top: .6rem; }
.emo-dates p { display: flex; flex-direction: column; padding: 0 .65rem; font-size: .85rem; }
.emo-dates p + p { border-left: 1px solid #26332f; }
.emo-dates strong { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Object data: codes and terms on the left, key figures in a narrow column (Timber). */
.emo-specs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; margin-top: 2rem; border-bottom: 2px solid var(--emo-beige); }
.emo-specs-grid.no-facts { grid-template-columns: 1fr; }
.emo-specs { margin: 0; padding: .6rem 0; font-size: .9rem; }
.emo-specs + .emo-specs { border-top: 1px solid var(--emo-beige-dark); }
.emo-specs div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .6rem 1.2rem .6rem 0; }
.emo-specs dd { margin: 0; font-weight: 700; text-align: right; }
.emo-codes { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.emo-codes div { flex-direction: column; gap: .3rem; }
.emo-codes dt { font-size: .85rem; }
.emo-codes dd { font-size: 1.05rem; font-weight: 500; text-align: left; }
.emo-facts { margin: 0; border-left: 1px solid var(--emo-beige-dark); }
.emo-facts div { padding: .7rem 1rem; }
.emo-facts div + div { border-top: 1px solid var(--emo-beige-dark); }
.emo-facts dt { color: var(--emo-muted); font-size: .85rem; }
.emo-facts dd { margin: .2rem 0 0; color: var(--emo-primary); font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.2rem; font-weight: 800; }
.emo-registers { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.emo-registers .emo-icon { flex: none; width: 2.4rem; height: 2.4rem; color: var(--emo-primary); }
.emo-register-links { display: grid; flex: 1; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .75rem; }
.emo-registers a { display: block; padding: .75rem; border-radius: .45rem; background: var(--emo-orange); color: #fff !important; text-align: center; text-decoration: none !important; font-size: .95rem; font-weight: 600; }
.emo-registers a:hover { background: var(--emo-orange-ink); }
.emo-info { margin-top: 1.75rem; }
.emo-info h2 { margin: 0 0 .6rem !important; color: var(--emo-orange) !important; font-size: 1.15rem !important; font-weight: 800; }
.emo-info-body { font-size: .95rem; line-height: 1.6; }
.emo-info-body ul { margin: 0; padding-left: 1.2rem; }
.emo-info-body p + p { margin-top: .8rem; }
.emo-contact { display: flex; align-items: center; gap: 1.25rem; margin: 2rem 0; }
.emo-contact-photo { flex: none; width: 5.3rem; height: 5.3rem; border-radius: 50%; object-fit: cover; background: var(--emo-beige); }
.emo-contact p { display: flex; flex-direction: column; font-size: .85rem; }
.emo-contact strong { font-size: 1rem; }
.emo-contact a { color: var(--emo-primary) !important; text-decoration: none !important; }

/* Bidding: the active button follows the amount (regular bid or under-offer). */
.emo-bidbar { display: grid; grid-template-columns: 3rem minmax(5.5rem, 1fr) 3rem auto auto; margin-top: 1.2rem; border-bottom: 4px solid var(--emo-orange); }
.emo-bidbar .emo-step { padding: 0; border: 0; background: var(--emo-primary-soft); color: var(--emo-primary); font-size: 1.6rem; font-weight: 700; line-height: 1; cursor: pointer; }
.emo-bidbar .emo-step:hover { background: #d6e6e4; }
.emo-amount { display: flex; align-items: center; justify-content: center; gap: .3rem; margin: 0; background: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 700; }
.emo-amount input { width: 100%; min-width: 0; max-width: 7ch; padding: .7rem 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.emo-amount input:focus { outline: none; }
.emo-bid-btn, .emo-offer-btn { display: flex; align-items: center; justify-content: center; min-height: 3.6rem; padding: .5rem 1.2rem; white-space: nowrap; border: 0; background: #e7e9e8; color: #26332f !important; font: inherit; font-size: .95rem; text-align: center; text-decoration: none !important; cursor: pointer; transition: background .15s, color .15s; }
.emo-bid-btn.is-active, .emo-offer-btn.is-active { background: var(--emo-orange); color: #fff !important; font-weight: 700; }
.emo-bid-btn.is-active:hover, .emo-offer-btn.is-active:hover { background: var(--emo-orange-ink); }
.emo-auction .emo-bid-btn:disabled, .emo-auction .emo-offer-btn:disabled { opacity: 1; }
.emo-buy { display: block; box-sizing: border-box; width: 100%; margin-top: 1rem; padding: 1rem; border: 0; border-radius: .45rem; background: #d1342b; color: #fff !important; font: inherit; font-weight: 700; text-align: center; text-decoration: none !important; cursor: pointer; }
.emo-buy:hover { background: #b52a22; }
.emo-bought { margin-top: 1rem !important; padding: .9rem 1rem; border-radius: .45rem; background: #d1342b; color: #fff; font-weight: 700; text-align: center; }
.emo-autobid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; margin-top: 1rem; padding: 1.1rem 1.2rem; background: var(--emo-primary-soft); }
.emo-autobid-active { flex: 1 1 100%; display: flex; align-items: center; margin: 0; font-size: .95rem; }
.emo-autobid > form { display: inline; margin: -.3rem 0 0; }
.emo-autobid-stop { padding: .3rem .8rem; border: 0; border-radius: .3rem; background: #fff; color: #2d3330; font: inherit; font-size: .85rem; cursor: pointer; }
.emo-autobid-field { display: flex; flex: 1 1 12rem; flex-direction: column; gap: .3rem; margin: 0; font-size: .9rem; font-weight: 600; }
.emo-autobid-input { display: flex; align-items: center; gap: .3rem; padding: 0 .7rem; background: #fff; font-size: 1.15rem; }
.emo-autobid-input input { width: 100%; min-width: 0; padding: .6rem 0; border: 0; background: transparent; font: inherit; text-align: right; }
.emo-autobid-input input:focus { outline: none; }
.emo-autobid-btn { flex: 0 1 auto; padding: .75rem 1rem; border: 0; border-radius: .3rem; background: var(--emo-primary); color: #fff !important; font: inherit; font-size: .9rem; font-weight: 600; text-align: center; text-decoration: none !important; cursor: pointer; }
.emo-autobid-btn:hover { background: #00706a; }
/* The limit box and its button share one height and bottom line (the theme adds a bottom margin to labels). */
/* When the button wraps under the box (narrow column), it takes the full row; side by side the box takes the free space. */
.emo-autobid .emo-autobid-field { flex: 1000 1 12rem; margin: 0; }
.emo-autobid-input { box-sizing: border-box; height: 3rem; }
.emo-autobid .emo-autobid-btn { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 3rem; margin: 0; padding: 0 1.1rem; line-height: 1.2; }
.emo-status { margin-top: 1.5rem !important; padding-bottom: .9rem; border-bottom: 2px solid var(--emo-beige); color: var(--emo-primary); font-weight: 700; text-align: center; }
.emo-status a { color: inherit; }
.emo-refresh-status { margin-top: .6rem !important; color: var(--emo-muted); text-align: center; font-size: .9rem; }
.emo-refresh-status:empty { display: none; }
.emo-recent { padding: 1rem 0 1.5rem; border-bottom: 2px solid var(--emo-beige); text-align: center; font-size: .85rem; }
.emo-recent-title { margin-bottom: .9rem !important; color: var(--emo-muted); }
.emo-recent p span + span { margin-left: .6rem; }
.emo-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.emo-gallery img { display: block; width: 100%; height: 11rem; object-fit: cover; }
.emo-files { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--emo-beige); }
.emo-files-title { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem !important; color: var(--emo-primary) !important; font-size: 1.05rem !important; font-weight: 700; }
.emo-files-title .emo-icon { width: 2.2rem; height: 2.2rem; }
.emo-files ul { margin: 0; padding: 0; list-style: none; }
.emo-files li { margin: 0; }
.emo-files li:nth-child(even) { background: var(--emo-beige); }
.emo-files a { display: flex; align-items: center; gap: 1rem; padding: .55rem .5rem; color: #2d3330 !important; text-decoration: none !important; font-size: .9rem; }
.emo-files a:hover .emo-file-name { text-decoration: underline; }
.emo-file-icon { position: relative; flex: none; width: 2rem; height: 2.2rem; color: var(--emo-primary); }
.emo-file-icon .emo-icon { width: 100%; height: 100%; }
.emo-file-icon span { position: absolute; bottom: .15rem; left: -.2rem; padding: 0 .2rem; border-radius: .15rem; background: var(--emo-primary); color: #fff; font-size: .55rem; font-weight: 700; line-height: 1.4; }
.emo-file-name { overflow-wrap: anywhere; }
.emo-auction button:disabled { opacity: .5; cursor: not-allowed; }
.emo-auction :focus-visible { outline: 3px solid #005953; outline-offset: 3px; }

.emo-dialog { width: min(32rem, calc(100vw - 2rem)); padding: 1.75rem; border: 0; border-top: 6px solid #a65a29; border-radius: .6rem; color: #26332f; box-shadow: 0 20px 60px #0004; }
.emo-dialog::backdrop { background: #001f1b99; }
.emo-dialog h3 { margin: 0 0 .75rem; font-size: 1.4rem; }
.emo-dialog p { margin: 0 0 .75rem; }
.emo-dialog-small, .emo-dialog-note { color: #6d7874; font-size: .95rem; }
.emo-dialog-field { display: block; margin: 1rem 0; font-weight: 600; }
.emo-dialog-field input { display: block; box-sizing: border-box; width: 100%; margin-top: .4rem; padding: .8rem; border: 1px solid #bdc8c0; font: inherit; font-size: 1.25rem; }
.emo-dialog-actions { display: flex; gap: .75rem; margin-top: 1.25rem; }
.emo-dialog-actions button { flex: 1; min-height: 3.1rem; padding: .7rem 1rem; border: 0; border-radius: .45rem; font: inherit; font-weight: 700; cursor: pointer; }
.emo-dialog-confirm { background: #a65a29; color: #fff; }
.emo-dialog-confirm:hover { background: #8e4a1f; }
.emo-dialog-cancel { background: #e7e9e8; color: #26332f; }
.emo-dialog-cancel:hover { background: #d8d8d8; }
.emo-history { width: 100%; border-collapse: collapse; }
.emo-history th, .emo-history td { padding: .6rem .5rem; border-bottom: 1px solid #edf0ee; text-align: left; }

@media (max-width: 640px) {
  .emo-bidbar { grid-template-columns: 2.5rem 1fr 2.5rem; }
  .emo-bid-btn, .emo-offer-btn { grid-column: span 3; }
  .emo-gallery { grid-template-columns: 1fr; }
  .emo-specs-grid { grid-template-columns: 1fr; }
  .emo-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--emo-beige-dark); border-left: 0; }
  .emo-facts div + div { border-top: 0; }
  .emo-registers { align-items: flex-start; }
}
