/* Styles for tools/pages/autoplatsile.py only. The shell links this file on that page alone.
   The page itself is calm website mode (site.css). The sample posts are client post mode: the fictional lot
   "Vahtramäe Autod" has its own brand, a dark base and one amber accent, everything aligned to one left edge. */

/* Inter 800 for the lot's post graphics only (site.css loads 400, 600 and 700). SIL OFL 1.1, @fontsource/inter. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/inter-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ap-base: #11181e;    /* the lot's dark base */
  --ap-accent: #f2a93b;  /* the lot's one accent: 9.6:1 on the base */
  --ap-soft: #9fb0bd;    /* secondary text on the base, 7.9:1 */
  --ap-brand: var(--font);
}

.ap-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.ap-lead { margin-top: 20px; }

/* Sample band */
.ap-note { margin-top: 16px; font-weight: 600; }
.ap-note + .muted { margin-top: 4px; }
.ap-posts { align-items: start; }
.ap-kind { font-size: 15px; letter-spacing: 0; color: var(--ink-2); font-weight: 600; margin-bottom: 12px; }

/* Facebook post preview: the familiar frame, kept plain */
.ap-post { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.ap-post-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 0; }
.ap-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ap-base); color: var(--ap-accent);
  font: 800 19px/1 var(--ap-brand);
}
.ap-post-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.ap-post-meta { font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.ap-post-text { padding: 12px 16px 14px; font-size: 15px; line-height: 1.45; }
.ap-post-actions {
  display: flex; justify-content: space-around; padding: 10px 8px;
  border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2);
}

/* The post graphic: square, scales with the width of its frame (container units) */
.ap-post, .ap-video-frame { container-type: inline-size; }
.ap-g {
  position: relative;
  display: flex; flex-direction: column;
  aspect-ratio: 1 / 1;
  padding: 8cqw 8cqw 0;
  background: var(--ap-base); color: #fff;
  font-family: var(--ap-brand);
  overflow: hidden;
}
.ap-g-tag, .ap-g-model, .ap-g-year, .ap-g-band, .ap-g-lot { text-wrap: nowrap; }
.ap-g-tag { font: 800 4.2cqw/1 var(--ap-brand); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ap-accent); }
.ap-g-model { margin-top: 4.5cqw; font: 800 8.4cqw/1.02 var(--ap-brand); letter-spacing: -0.03em; }
.ap-g-year { margin-top: 1.6cqw; font: 800 8.4cqw/1 var(--ap-brand); letter-spacing: -0.03em; color: var(--ap-soft); }
.ap-g-art { position: relative; flex: 1 1 auto; display: flex; align-items: center; min-height: 0; }
.ap-car { width: 70cqw; color: #fff; opacity: 0.92; }
.ap-g-specs { font: 800 4.4cqw/1.2 var(--ap-brand); color: var(--ap-soft); padding-bottom: 4cqw; }
/* The colour band: full bleed, text on the same left edge as everything above */
.ap-g-band {
  margin: 0 -8cqw; padding: 4.4cqw 8cqw;
  background: var(--ap-accent); color: var(--ap-base);
  font: 800 9.6cqw/1 var(--ap-brand); letter-spacing: -0.03em;
}
.ap-g-band-sold { text-transform: uppercase; letter-spacing: 0.04em; }
.ap-g-old { font-size: 5.6cqw; font-weight: 800; opacity: 0.7; margin-right: 2.4cqw; text-decoration-thickness: 0.5cqw; }
.ap-g-lot {
  position: absolute; top: 8cqw; right: 8cqw;
  font: 800 3.6cqw/1 var(--ap-brand); color: var(--ap-soft); letter-spacing: 0.02em;
}

/* Short video: the same design in 9:16 with a play mark */
.ap-video { display: grid; gap: 24px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.ap-video-frame { width: 100%; max-width: 260px; border-radius: var(--radius); overflow: hidden; }
.ap-g-tall { aspect-ratio: 9 / 16; padding-top: 12cqw; }
.ap-g-tall .ap-g-model { font-size: 10cqw; text-wrap: balance; padding-right: 14cqw; }
.ap-g-tall .ap-g-year { font-size: 10cqw; }
.ap-g-tall .ap-g-art { flex: 1 1 auto; padding: 6cqw 0; }
.ap-g-tall .ap-car { width: 100%; opacity: 1; }
.ap-g-facts { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 3cqw; padding-bottom: 6cqw; }
.ap-g-fact { font: 800 8cqw/1.1 var(--ap-brand); letter-spacing: -0.02em; color: var(--ap-soft); }
.ap-g-fact:first-child { color: #fff; }
.ap-g-tall .ap-g-band { font-size: 12cqw; padding-top: 6cqw; padding-bottom: 10cqw; }
.ap-play { position: absolute; top: 10cqw; right: 8cqw; width: 13cqw; height: 13cqw; }
.ap-play-bg { fill: var(--ap-accent); }
.ap-play-mark { fill: var(--ap-base); }
.ap-video-text h3 { margin-bottom: 8px; }
@media (min-width: 768px) {
  .ap-video { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: center; }
}

/* What the price covers: label left, line right on wide screens */
.ap-rows h3 { font-size: 19px; }
.ap-rows p { margin-top: 4px; }
.ap-inline { margin-left: 8px; color: var(--ink); }
@media (min-width: 768px) {
  .ap-rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: baseline; }
  .ap-rows p { margin-top: 0; }
}

/* Ending */
.ap-end-lead { margin-top: 12px; color: #f5f5f7; }
.ap-end-links { margin-top: 20px; }
.ap-end-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.ap-end-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ap-end-links p:first-child a { font-size: clamp(28px, 5vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.ap-end-links p + p a { font-size: 19px; }
@media (min-width: 768px) {
  .ap-end { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
  .ap-end-links { margin-top: 0; text-align: right; }
}
