/* ==========================================================================
   Auction (/auction, /fr/auction, /de/auction) and the owner's /admin/auction.
   Loaded after styles.css and blog.css; pages are rendered by src/auction.js.
   ========================================================================== */
/* the page itself (its own page, not the blog's; the owner page also loads blog.css for its form) */
.page-auction main { background: #18110d; }
.page-auction [hidden] { display: none !important; }
@media (max-width: 560px) { .page-auction .nav a.nav-sec { display: none; } }
.auc-page {
  position: relative; isolation: isolate; min-height: 100svh;
  padding: calc(var(--section) * .6 + 40px) 0 var(--section);
}
.auc-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--patina) right -280px top -60px / 680px no-repeat,
    var(--patina) left -340px bottom -220px / 760px no-repeat;
}
.auc-page .wall-lede a, .auc-priv-sec a { color: var(--toxic); text-underline-offset: 3px; }
.auc-priv-sec { max-width: 760px; margin-top: clamp(36px, 5vw, 56px); }
.auc-descr { margin-top: clamp(28px, 4vw, 44px); font-family: var(--f-serif); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem); line-height: 1.55; color: var(--bone); font-weight: 500; }
.auc-descr p + p { margin-top: 1em; }
.auc-h { margin-top: 10px; font-size: clamp(2.4rem, 6vw, 4.6rem); overflow-wrap: anywhere; }

.auc-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 48px); align-items: start;
}
@media (max-width: 860px) { .auc-grid { grid-template-columns: 1fr; } }

/* the photo: a paper print, like a blog post's */
.auc-photo {
  position: relative; margin: 0; padding: 12px; background: var(--paper); border: var(--ink-line);
  box-shadow: 10px 12px 0 var(--ink-deep); transform: rotate(-.6deg);
}
.auc-main { display: block; width: 100%; height: auto; max-height: 75svh; object-fit: contain; border: var(--ink-line); background: var(--ink-3); }
.auc-stamp {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg);
  padding: .1em .45em; border: 6px solid var(--blood); color: var(--blood); background: color-mix(in srgb, var(--paper) 78%, transparent);
  font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: .08em; text-transform: uppercase;
  line-height: 1; pointer-events: none; box-shadow: 4px 4px 0 var(--ink-deep);
}
.auc-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.auc-thumbs a { display: block; border: 3px solid var(--line); }
.auc-thumbs a[aria-current] { border-color: var(--toxic); }
.auc-thumbs a:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }
.auc-thumbs img { display: block; width: 72px; height: 72px; object-fit: cover; }

/* the bid card */
.auc-card {
  display: grid; gap: 14px; padding: clamp(18px, 3vw, 28px);
  background: var(--stain-a) right -190px top -200px / 300px no-repeat, var(--paper);
  color: var(--paper-ink); border: var(--ink-line); box-shadow: 10px 12px 0 var(--ink-deep);
}
.auc-card > * { margin: 0; }
#auc-live { display: grid; gap: 10px; }
#auc-live > * { margin: 0; }
.auc-label { font-family: var(--f-mono); font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.auc-time { font-family: var(--f-serif); font-size: 1.1rem; line-height: 1.4; color: var(--paper-soft); font-weight: 500; }
.auc-countdown { font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; letter-spacing: .04em; color: var(--paper-ink); font-variant-numeric: tabular-nums; }
.auc-countdown.soon { color: var(--blood); }
.auc-big { font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); line-height: .95; letter-spacing: .02em; color: var(--paper-ink); overflow-wrap: anywhere; }
.auc-count, .auc-next, .auc-commit, .auc-who { font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.4; font-weight: 500; color: var(--paper-soft); }
.auc-next strong { color: var(--paper-ink); }
.auc-me { padding: 8px 12px; border: var(--ink-line); font-family: var(--f-ui); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.auc-me-top { background: var(--toxic); }
.auc-me-out { background: #f2c6bd; }
.auc-won { padding: 12px 14px; background: var(--toxic); border: var(--ink-line); font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.4; font-weight: 500; }
.auc-who a, .auc-card a:not(.btn) { color: var(--paper-ink); text-underline-offset: 3px; }

.auc-form { display: grid; gap: 10px; }
.auc-form label { font-family: var(--f-ui); font-weight: 700; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; }
.auc-row { display: flex; flex-wrap: wrap; gap: 12px; }
.auc-row input {
  flex: 1 1 140px; min-width: 0; min-height: 60px; padding: 0 14px; border: var(--ink-line); border-radius: 0; background: #fffaf0;
  color: var(--paper-ink); font-family: var(--f-display); font-weight: 900; font-size: 1.8rem; font-variant-numeric: tabular-nums;
}
.auc-row input:focus-visible { outline: 3px solid var(--ink-deep); outline-offset: 2px; }
.auc-row .btn { flex: 0 0 auto; }
.auc-form button[disabled] { opacity: .6; cursor: progress; }
.auc-msg { min-height: 1.4em; font-family: var(--f-serif); font-size: 1.15rem; font-weight: 500; }
.auc-msg.bad { color: var(--blood); }
.auc-signin .btn { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; text-align: left; }
.auc-g { flex: none; background: #fff; padding: 3px; border: 2px solid var(--ink-deep); width: 30px; height: 30px; }

.auc-hist-h { margin-top: 8px; font-family: var(--f-mono); font-weight: 700; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.auc-hist { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--paper-muted); max-height: 320px; overflow-y: auto; }
.auc-hist li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 2px; border-bottom: 1px solid color-mix(in srgb, var(--paper-muted) 45%, transparent); font-family: var(--f-serif); font-size: 1.1rem; font-weight: 500; }
.auc-hist li span:last-child { font-family: var(--f-display); font-weight: 700; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.auc-hist li:first-child { font-weight: 700; }
.auc-hist li.mine { background: color-mix(in srgb, var(--toxic) 40%, transparent); }
.auc-hist em { font-style: italic; color: var(--paper-soft); }

.auc-descr { max-width: 860px; }
.auc-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 7vw, 88px); }
.auc-how { margin: 16px 0 0; padding-left: 1.4em; display: grid; gap: 10px; font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.45; font-weight: 500; color: var(--bone); }
.auc-how li::marker { font-family: var(--f-display); font-weight: 900; color: var(--toxic); }
.auc-privacy { margin-top: 16px; font-family: var(--f-serif); font-size: 1.1rem; line-height: 1.5; font-weight: 500; color: var(--bone-dim); }
.auc-insta { margin-top: 36px; }

/* owner's page */
.auc-owner-card { margin-top: 32px; padding: clamp(18px, 4vw, 32px); display: grid; gap: 14px; background: var(--paper); color: var(--paper-ink); border: var(--ink-line); box-shadow: 10px 12px 0 var(--ink-deep); }
.auc-owner-card > * { margin: 0; }
.auc-owner-card p { font-family: var(--f-serif); font-size: 1.15rem; font-weight: 500; }
.auc-owner-card a:not(.btn):not(.adm-small) { color: var(--paper-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.auc-owner-card .adm-small { display: inline-flex; align-items: center; text-decoration: none; }
.auc-owner-card .adm-list-h { color: var(--oxblood); }
.auc-winner { display: grid; gap: 10px; padding: 14px; border: var(--ink-line); background: color-mix(in srgb, var(--toxic) 30%, var(--paper)); }
.auc-winner > * { margin: 0; }
.auc-checks { display: flex; gap: 24px; flex-wrap: wrap; }
.auc-checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-ui); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auc-checks input { width: 24px; height: 24px; accent-color: var(--ink-deep); }
.auc-tab { width: 100%; border-collapse: collapse; font-family: var(--f-serif); font-size: 1.05rem; font-weight: 500; }
.auc-tab th { text-align: left; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood); padding: 6px 8px 6px 0; border-bottom: 2px solid var(--paper-muted); }
.auc-tab td { padding: 7px 8px 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--paper-muted) 45%, transparent); vertical-align: top; overflow-wrap: anywhere; }
.auc-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) {
  .auc-2col { grid-template-columns: 1fr; }
  .auc-tab thead { display: none; }
  .auc-tab tr { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--paper-muted); }
  .auc-tab td { border: 0; padding: 0; }
  .auc-tab td:nth-child(n+3) { grid-column: 1 / -1; }
}
.page-auction .adm-row-text span { color: var(--bone); font-size: 1.2rem; font-weight: 500; }
.page-auction .adm-row-text small a { color: var(--bone-dim); }
.page-auction .adm-preview img { max-width: 140px; max-height: 140px; }
/* the footer carries the language links here too: on phones the line of text gets its own row */
@media (max-width: 560px) {
  .page-auction .footer-inner { flex-wrap: wrap; }
  .page-auction .footer-inner > p { flex: 1 1 calc(100% - 60px); }
}

/* ---------------------------------------------------------------- the clock: hands show the time left,
   the yellow wedge the share of the auction still to run; red in the last 5 minutes */
.auc-clock-wrap { display: flex; align-items: center; gap: 16px; }
.auc-clock-wrap > p { margin: 0; }
.auc-clock { flex: none; width: 132px; height: 132px; filter: drop-shadow(5px 5px 0 var(--ink-deep)); }
.ck-face { fill: #fffaf0; stroke: var(--ink-deep); stroke-width: 7; }
.ck-left { fill: var(--toxic); stroke: var(--ink-deep); stroke-width: 2; }
.ck-ticks line { stroke: var(--ink-deep); stroke-linecap: square; }
.ck-h, .ck-m { stroke: var(--ink-deep); stroke-linecap: square; }
.ck-h { stroke-width: 9; }
.ck-m { stroke-width: 6; }
.ck-s { stroke: var(--oxblood); stroke-width: 3; stroke-linecap: square; }
.ck-pin { fill: var(--ink-deep); }
.ck-days { font-family: var(--f-display); font-weight: 900; font-size: 22px; letter-spacing: .04em; fill: var(--ink-deep); }
.auc-clock-wrap.soon .ck-left { fill: var(--blood); }
.auc-clock-wrap.soon .ck-s { stroke: var(--blood); }
.auc-clock-wrap.soon .ck-face { fill: #fde7e1; }
@media (max-width: 380px) { .auc-clock { width: 104px; height: 104px; } .auc-countdown { font-size: 1.6rem; } }

/* who is winning, and the bidder's own nickname */
.auc-by { font-family: var(--f-ui); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--oxblood); overflow-wrap: anywhere; }
.auc-nick { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid color-mix(in srgb, var(--paper-muted) 45%, transparent); }
.auc-nick label { font-family: var(--f-ui); font-weight: 700; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; }
.auc-nick .auc-row input { font-family: var(--f-serif); font-weight: 500; font-size: 1.3rem; min-height: 52px; }
.auc-nick .btn { min-height: 52px; }
.auc-nick-now { margin: 0; font-family: var(--f-serif); font-size: 1.15rem; font-weight: 500; color: var(--paper-soft); }
.auc-nick-now strong { color: var(--paper-ink); overflow-wrap: anywhere; }
.auc-hint { margin: 0; font-family: var(--f-serif); font-size: 1rem; color: var(--paper-muted); font-weight: 500; }
.auc-link { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--paper-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auc-link:focus-visible { outline: 3px solid var(--ink-deep); outline-offset: 2px; }

/* videos in the gallery: the poster with a play mark on the thumbnail */
video.auc-main { width: 100%; background: var(--ink-deep); }
.auc-thumbs a { position: relative; }
.auc-thumbs a.is-video::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%);
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--toxic);
  filter: drop-shadow(2px 2px 0 var(--ink-deep));
}

/* the owner's own texts */
.auc-text { margin-top: clamp(40px, 6vw, 72px); max-width: 860px; }
.auc-text .auc-descr { margin-top: 14px; }
.auc-descr ul, .auc-rules ul { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.auc-descr ul + p, .auc-descr p + ul, .auc-rules p + ul, .auc-rules ul + p, .auc-rules p + p { margin-top: 1em; }
.auc-rules { margin-top: 16px; font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.45; font-weight: 500; color: var(--bone); }
.auc-rules li::marker, .auc-descr li::marker { color: var(--toxic); }

/* owner page additions */
.auc-fs { display: grid; gap: 14px; margin: 0; padding: 16px; border: var(--ink-line); }
.auc-fs legend { padding: 0 8px; font-family: var(--f-ui); font-weight: 700; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; }
.auc-reqs { padding: 12px 14px; background: #fffaf0; border: 2px solid var(--paper-muted); font-family: var(--f-serif); font-size: 1.05rem; font-weight: 500; line-height: 1.4; }
.auc-reqs ul { margin: 6px 0; padding-left: 1.2em; }
.auc-format { margin: 0; font-family: var(--f-serif); font-size: 1.05rem; font-weight: 500; color: var(--paper-soft); }
.auc-langs { display: grid; gap: 14px; }
.auc-langs summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-family: var(--f-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auc-langs[open] { gap: 14px; }
.auc-langs[open] > label { margin-top: 12px; }
.auc-check { display: flex !important; align-items: center; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font-family: var(--f-serif) !important; }
.auc-check input { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- the list of auctions (/auction) */
.auc-n { display: inline-grid; place-items: center; min-width: 1.4em; padding: 0 .2em; margin-left: .15em; background: var(--toxic); color: var(--ink-deep); border: var(--ink-line); font-size: .55em; vertical-align: middle; box-shadow: 4px 4px 0 var(--blood); }
/* one or two auctions fill the row as cards up to 520 px wide; three or more go three across (design review 2026-10-18) */
.auc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 520px)); justify-content: start; gap: clamp(28px, 4vw, 48px); margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.auc-item { display: grid; background: var(--paper); color: var(--paper-ink); border: var(--ink-line); box-shadow: 10px 12px 0 var(--ink-deep); }
.auc-item:nth-child(3n+1) { transform: rotate(-.5deg); }
.auc-item:nth-child(3n+2) { transform: rotate(.4deg); }
.auc-item-link { display: grid; gap: 10px; padding: 12px 12px 0; color: inherit; text-decoration: none; }
.auc-item-link:focus-visible { outline: 3px solid var(--toxic); outline-offset: 3px; }
.auc-item-pic { position: relative; display: block; }
.auc-item-pic img, .auc-nopic { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border: var(--ink-line); background: var(--ink-3); }
.auc-item-title { font-family: var(--f-display); font-weight: 900; font-size: var(--t-card); line-height: .95; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.auc-item-link:hover .auc-item-title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.auc-item-info { display: grid; gap: 12px; padding: 12px; }
.auc-item-info > * { margin: 0; }
.auc-item-price { display: grid; gap: 2px; }
.auc-item-price > * { margin: 0; }
.auc-mid { font-family: var(--f-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--paper-ink); }
.auc-item .btn { justify-self: start; }
.auc-item.is-ended { opacity: .92; }
.auc-ended-h { margin-top: clamp(56px, 8vw, 88px); }
.auc-stamp-sm { font-size: clamp(1.8rem, 5vw, 2.6rem); border-width: 4px; }
.auc-clock-sm .auc-clock { width: 92px; height: 92px; }
.auc-clock-sm .auc-countdown { font-size: 1.5rem; }
.auc-page .post-back { margin: 0 0 8px; }
.auc-page .post-back a { font-family: var(--f-ui); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bone-dim); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.auc-page .post-back a:hover { color: var(--toxic); }
@media (prefers-reduced-motion: reduce) { .auc-item { transform: none !important; } }

/* buy-it-now offer, share, notes */
.auc-offer { display: grid; gap: 10px; padding-top: 12px; border-top: 2px solid color-mix(in srgb, var(--paper-muted) 45%, transparent); }
.auc-offer summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-family: var(--f-ui); font-weight: 700; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; }
.auc-offer summary:focus-visible { outline: 3px solid var(--ink-deep); outline-offset: 2px; }
.auc-offer[open] { gap: 10px; }
.auc-offer label { font-family: var(--f-ui); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.auc-offer input, .auc-offer textarea { width: 100%; min-height: 48px; padding: 8px 12px; border: var(--ink-line); border-radius: 0; background: #fffaf0; color: var(--paper-ink); font-family: var(--f-serif); font-size: 1.2rem; font-weight: 500; }
.auc-offer .btn { justify-self: start; }
.auc-note { padding: 8px 12px; border: 2px dashed var(--ink-deep); font-family: var(--f-serif); font-size: 1.1rem; font-weight: 500; line-height: 1.4; }
.auc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.auc-share .auc-msg { color: var(--bone-dim); }

/* Rules and Your data sit on a solid card, so the text stays readable over the rust blots (phones above all) */
.auc-info > section { padding: clamp(16px, 3vw, 24px); background: color-mix(in srgb, var(--ink-deep) 92%, transparent); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--ink-deep); }
.auc-info > section .hand-title { margin-top: 0; }
.auc-privacy { color: var(--bone); }
