/* ============================================================
   AUCTION HOUSE guide (/plugins/auction-house/): the hub and the step by step guides.
   Look: the in-game window's gold on deep navy, set like a trading floor ledger. Standalone on top of style.css.
   Renders: /images/auction-house/<screen>.webp (+ <screen>@2x.webp), screen names from the plugin team's list.
   ============================================================ */
.ah {
  --ah-bg: #070a12;
  --ah-navy: #0d1424;
  --ah-navy-2: #121b30;
  --ah-panel: #151d31;
  --ah-line: rgba(255, 217, 100, 0.16);
  --ah-line-2: rgba(255, 255, 255, 0.08);
  --ah-gold: #e6c84a;
  --ah-gold-hi: #ffd964;
  --ah-gold-dim: rgba(230, 200, 74, 0.12);
  --ah-text: #eef1f7;
  --ah-muted: #a9b2c6;
  --ah-sell: #5fe39a;
  --ah-buy: #74b9ff;
  --ah-warn: #ffb35c;
  --ah-cond: "Roboto Condensed", "Arial Narrow", Inter, system-ui, sans-serif;
  background: var(--ah-bg);
  color: var(--ah-text);
  overflow-x: clip;
}
.ah *, .ah *::before, .ah *::after { box-sizing: border-box; }
.ah a { color: var(--ah-gold-hi); }
.ah a:hover { color: #fff; }
/* the site content column, the same as every plugin page (.container) */
.ah-wrap { width: min(1240px, 94%); margin: 0 auto; }
.ah code, .ah kbd { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.88em; padding: 0.08em 0.4em; border-radius: 5px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--ah-line-2); color: #fff; }
.ah-ui { font-family: var(--ah-cond); font-weight: 700; letter-spacing: 0.02em; color: var(--ah-gold-hi); white-space: nowrap; }

/* ---------- hero ---------- */
.ah-hero { position: relative; padding: 2.2rem 0 3.4rem; isolation: isolate; border-bottom: 1px solid var(--ah-line-2); }
.ah-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 78% 30%, rgba(230, 200, 74, 0.14), transparent 60%),
    radial-gradient(700px 380px at 10% 0%, rgba(116, 185, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #0b1020, var(--ah-bg));
}
.ah-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35;
  background-image: linear-gradient(var(--ah-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--ah-line-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.ah-crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.82rem; color: var(--ah-muted); margin: 0 0 1.2rem; }
.ah-crumbs a { color: var(--ah-muted); text-decoration: none; }
.ah-crumbs a:hover { color: var(--ah-gold-hi); }
.ah-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.4rem; align-items: center; }
.ah-kicker { margin: 0 0 0.6rem; font: 700 0.78rem/1 Inter, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ah-gold); }
.ah-title { margin: 0; font-family: Cinzel, serif; font-weight: 700; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.02; letter-spacing: 0.02em; color: #fff; text-shadow: 0 4px 30px rgba(230, 200, 74, 0.25); }
.ah-title span { color: var(--ah-gold-hi); }
.ah-lede { margin: 1rem 0 0; font-size: 1.08rem; line-height: 1.6; color: #d7ddea; max-width: 34rem; }
.ah-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.5rem 0 0; }
.ah-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0.7rem 1.2rem; border-radius: 10px; font: 700 0.95rem/1 Inter, sans-serif; text-decoration: none; border: 1px solid var(--ah-gold); color: #1a1503 !important; background: linear-gradient(180deg, var(--ah-gold-hi), var(--ah-gold)); box-shadow: 0 8px 26px rgba(230, 200, 74, 0.25); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ah-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(230, 200, 74, 0.35); }
.ah-btn.is-ghost { background: rgba(255, 255, 255, 0.03); color: var(--ah-gold-hi) !important; border-color: var(--ah-line); box-shadow: none; }
.ah-btn.is-ghost:hover { border-color: var(--ah-gold); }

/* the window: a framed render, tilted on wide screens */
.ah-window { position: relative; perspective: 1600px; }
.ah-window-frame {
  position: relative; border-radius: 14px; padding: 8px;
  background: linear-gradient(145deg, rgba(255, 217, 100, 0.55), rgba(255, 217, 100, 0.08) 40%, rgba(116, 185, 255, 0.25));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotateY(-9deg) rotateX(4deg); transform-origin: 60% 50%;
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
.ah-window:hover .ah-window-frame { transform: rotateY(-3deg) rotateX(1deg); }
.ah-window-frame .ah-shot { margin: 0; border-radius: 8px; }
.ah-window-glow { position: absolute; inset: 10% -6% -10% 8%; z-index: -1; background: radial-gradient(closest-side, rgba(230, 200, 74, 0.25), transparent); filter: blur(30px); }

/* ---------- facts ticker ---------- */
/* five facts as cards in the content column, lifted onto the hero edge like the stat cards on the rank and plugin pages */
.ah-facts-wrap { position: relative; z-index: 2; margin-top: -1.4rem; }
.ah-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.ah-facts li { padding: 0.95rem 0.9rem 0.9rem; text-align: center; border-radius: 8px; background: linear-gradient(180deg, var(--ah-navy-2), var(--ah-navy)); border: 1px solid var(--ah-line-2); border-top: 2px solid var(--ah-line); }
.ah-facts b { display: block; font-family: var(--ah-cond); font-size: 1.05rem; color: var(--ah-gold-hi); letter-spacing: 0.02em; }
.ah-facts span { display: block; margin-top: 0.2rem; font-size: 0.84rem; color: var(--ah-muted); line-height: 1.4; }

/* ---------- sections ---------- */
.ah-sec { padding: 3.2rem 0 0; }
.ah-sec-head { display: flex; align-items: center; gap: 0.85rem; margin: 0 0 1.2rem; }
.ah-sec-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--ah-line), transparent); }
.ah-sec-num { font: 700 0.8rem/1 var(--ah-cond); letter-spacing: 0.14em; color: var(--ah-gold); border: 1px solid var(--ah-line); border-radius: 999px; padding: 0.35rem 0.6rem; }
.ah-h2 { margin: 0; font-family: Cinzel, serif; font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: #fff; letter-spacing: 0.04em; text-transform: uppercase; }
.ah-sec-intro { margin: -0.4rem 0 1.4rem; max-width: 46rem; color: #cdd4e2; line-height: 1.6; }

/* how to open it: two doors */
.ah-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ah-door { position: relative; padding: 1.4rem 1.4rem 1.3rem; border-radius: 14px; background: linear-gradient(180deg, var(--ah-navy-2), var(--ah-navy)); border: 1px solid var(--ah-line); overflow: hidden; }
.ah-door::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(230, 200, 74, 0.16), transparent); }
.ah-door h3 { margin: 0 0 0.5rem; font-family: var(--ah-cond); font-size: 1.25rem; color: #fff; letter-spacing: 0.02em; }
.ah-door p { margin: 0; color: #cdd4e2; line-height: 1.55; }
.ah-door .ah-cmd { display: inline-flex; margin: 0 0 0.9rem; padding: 0.55rem 0.9rem; border-radius: 10px; font: 700 1.5rem/1 "JetBrains Mono", ui-monospace, monospace; color: var(--ah-gold-hi); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--ah-line); }

/* the tab bar replica: each tab is a door into its guide */
.ah-tabmap { border-radius: 16px; padding: 1rem; background: linear-gradient(180deg, #0f1628, #0a0f1c); border: 1px solid var(--ah-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.ah-tabmap-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.4rem 0.5rem 1rem; border-bottom: 1px solid var(--ah-line); }
.ah-tabmap-title { font: 700 1.35rem/1 var(--ah-cond); letter-spacing: 0.04em; color: var(--ah-gold-hi); margin-right: auto; }
.ah-tabmap-bal { font: 700 0.95rem/1 var(--ah-cond); color: var(--ah-gold-hi); }
.ah-tabmap-x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #5a1d22; color: #ffb3b3; font: 700 0.9rem/1 var(--ah-cond); }
.ah-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.ah-tab { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; padding: 1rem; border-radius: 12px; text-decoration: none; color: var(--ah-text) !important; border: 1px solid var(--ah-line); background: rgba(255, 255, 255, 0.02); transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.ah-tab:hover, .ah-tab:focus-visible { border-color: var(--ah-gold); background: var(--ah-gold-dim); transform: translateY(-2px); }
.ah-tab-name { display: flex; align-items: center; gap: 0.5rem; font: 700 1.1rem/1 var(--ah-cond); letter-spacing: 0.04em; color: #fff; }
.ah-tab-name svg { width: 20px; height: 20px; fill: none; stroke: var(--ah-gold-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ah-tab-badge { margin-left: auto; padding: 0.15rem 0.45rem; border-radius: 6px; background: #b8323a; color: #fff; font-size: 0.78rem; }
.ah-tab p { margin: 0; font-size: 0.9rem; color: var(--ah-muted); line-height: 1.5; }
.ah-tab-go { margin-top: auto; font: 700 0.82rem/1 Inter, sans-serif; color: var(--ah-gold-hi); }

/* sell offer vs buy offer */
.ah-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ah-lane { border-radius: 14px; padding: 1.3rem; border: 1px solid var(--ah-line-2); background: var(--ah-navy); }
.ah-lane.is-sell { border-top: 3px solid var(--ah-sell); }
.ah-lane.is-buy { border-top: 3px solid var(--ah-buy); }
.ah-lane h3 { margin: 0 0 0.3rem; font: 700 1.3rem/1.2 var(--ah-cond); color: #fff; }
.ah-lane > p { margin: 0 0 1rem; color: #cdd4e2; line-height: 1.55; }
.ah-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.ah-flow li { padding: 0.45rem 0.7rem; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ah-line-2); font-size: 0.86rem; }
.ah-flow li + li::before { content: "\2192"; margin: 0 0.55rem 0 -0.15rem; color: var(--ah-gold); }
.ah-lane.is-sell .ah-flow b { color: var(--ah-sell); }
.ah-lane.is-buy .ah-flow b { color: var(--ah-buy); }

/* I want to... */
.ah-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.ah-path { display: flex; gap: 0.9rem; align-items: flex-start; height: 100%; padding: 1rem 1.1rem; border-radius: 12px; text-decoration: none; color: var(--ah-text) !important; background: linear-gradient(180deg, var(--ah-navy-2), var(--ah-navy)); border: 1px solid var(--ah-line-2); transition: border-color 0.15s ease, transform 0.15s ease; }
.ah-path:hover, .ah-path:focus-visible { border-color: var(--ah-gold); transform: translateY(-2px); }
.ah-path-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--ah-gold-dim); border: 1px solid var(--ah-line); }
.ah-path-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ah-gold-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ah-path b { display: block; font-size: 1rem; color: #fff; }
.ah-path span { display: block; margin-top: 0.2rem; font-size: 0.86rem; color: var(--ah-muted); line-height: 1.45; }

/* the guides list */
.ah-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: g; }
.ah-guide { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ah-text) !important; background: var(--ah-navy); border: 1px solid var(--ah-line-2); transition: border-color 0.15s ease, transform 0.15s ease; }
.ah-guide:hover, .ah-guide:focus-visible { border-color: var(--ah-gold); transform: translateY(-3px); }
.ah-guide .ah-shot { margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--ah-line-2); aspect-ratio: 16 / 9; }
.ah-guide .ah-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ah-guide-body { padding: 1rem 1.1rem 1.1rem; }
.ah-guide-n { font: 700 0.75rem/1 var(--ah-cond); letter-spacing: 0.16em; color: var(--ah-gold); }
.ah-guide h3 { margin: 0.35rem 0 0.35rem; font: 700 1.2rem/1.2 var(--ah-cond); color: #fff; letter-spacing: 0.01em; }
.ah-guide p { margin: 0; font-size: 0.9rem; color: var(--ah-muted); line-height: 1.5; }

/* the rules strip */
.ah-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.ah-rules li { padding: 1rem; border-radius: 12px; background: rgba(255, 179, 92, 0.05); border: 1px solid rgba(255, 179, 92, 0.25); }
.ah-rules b { display: block; color: #ffd2a0; font-size: 0.95rem; }
.ah-rules span { display: block; margin-top: 0.3rem; font-size: 0.86rem; color: var(--ah-muted); line-height: 1.45; }

/* the slot for the coming web interface (hidden until it exists) */
.ah-web { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: 14px; border: 1px dashed var(--ah-line); background: rgba(255, 255, 255, 0.02); }
.ah-web[hidden] { display: none; }

/* ---------- renders ---------- */
.ah-shot { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #0a0f1c; border: 1px solid var(--ah-line-2); }
.ah-shot img { display: block; width: 100%; height: auto; }
.ah-shot.is-zoom { cursor: zoom-in; }
.ah-shot figcaption { padding: 0.6rem 0.85rem; font-size: 0.84rem; color: var(--ah-muted); border-top: 1px solid var(--ah-line-2); background: rgba(0, 0, 0, 0.25); }
/* a render that is not in yet (framework previews only; nothing ships with one) */
.ah-shot.is-pending { aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #0c1222 0 14px, #0e1528 14px 28px); }
.ah-shot.is-pending::before { content: "Render: " attr(data-shot); font: 700 0.9rem/1 "JetBrains Mono", monospace; color: var(--ah-gold); padding: 0.5rem 0.8rem; border: 1px dashed var(--ah-line); border-radius: 8px; }
.ah-shot.is-pending img { display: none; }

/* ---------- guide pages ---------- */
.ah-guide-hero { padding: 2rem 0 1.6rem; position: relative; isolation: isolate; border-bottom: 1px solid var(--ah-line); }
.ah-guide-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 300px at 85% 0%, rgba(230, 200, 74, 0.12), transparent 60%), linear-gradient(180deg, #0b1020, var(--ah-bg)); }
.ah-guide-hero .ah-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.ah-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ah-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.84rem; font-weight: 600; text-decoration: none; color: var(--ah-muted) !important; border: 1px solid var(--ah-line-2); background: rgba(255, 255, 255, 0.02); }
.ah-chips a:hover { color: #fff !important; border-color: var(--ah-line); }
.ah-chips a[aria-current="page"] { color: #1a1503 !important; background: var(--ah-gold); border-color: var(--ah-gold); }
.ah-doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.4rem; padding: 2rem 0 1rem; }
.ah-rail { position: sticky; top: calc(var(--zl-header-bottom, 70px) + 16px); align-self: start; max-height: calc(100vh - var(--zl-header-bottom, 70px) - 32px); overflow: auto; }
.ah-rail-t { margin: 0 0 0.6rem; font: 700 0.74rem/1 Inter, sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ah-muted); }
.ah-rail ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--ah-line-2); }
.ah-rail a { display: flex; gap: 0.55rem; align-items: baseline; padding: 0.4rem 0 0.4rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.88rem; line-height: 1.35; text-decoration: none; color: var(--ah-muted) !important; }
.ah-rail a b { font: 700 0.78rem/1 var(--ah-cond); color: var(--ah-gold); min-width: 1.1rem; }
.ah-rail a:hover { color: #fff !important; }
.ah-rail a.is-on { color: #fff !important; border-left-color: var(--ah-gold); }
.ah-steps { margin: 0; padding: 0; list-style: none; }
.ah-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; padding: 0 0 2.4rem; scroll-margin-top: calc(var(--zl-header-bottom, 70px) + 16px); position: relative; }
.ah-step::before { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0.4rem; width: 2px; background: linear-gradient(var(--ah-line), transparent); }
.ah-step:last-child::before { display: none; }
.ah-step-n { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font: 700 1.3rem/1 var(--ah-cond); color: #1a1503; background: radial-gradient(circle at 35% 30%, var(--ah-gold-hi), var(--ah-gold)); box-shadow: 0 0 0 5px rgba(230, 200, 74, 0.12), 0 8px 20px rgba(0, 0, 0, 0.4); }
.ah-step h2 { margin: 0.65rem 0 0.5rem; font: 700 1.45rem/1.2 var(--ah-cond); color: #fff; letter-spacing: 0.01em; }
.ah-step p, .ah-step li { color: #d2d8e6; line-height: 1.65; }
.ah-step p { margin: 0 0 0.8rem; }
.ah-step ul { margin: 0 0 0.9rem; padding-left: 1.2rem; }
.ah-step .ah-shot { margin: 0.4rem 0 0.4rem; }
.ah-note { display: flex; gap: 0.7rem; margin: 0.8rem 0; padding: 0.8rem 1rem; border-radius: 10px; background: var(--ah-gold-dim); border: 1px solid var(--ah-line); font-size: 0.92rem; line-height: 1.55; color: #e8dfbd; }
.ah-note::before { content: "\2605"; color: var(--ah-gold-hi); }
.ah-note.is-warn { background: rgba(255, 179, 92, 0.07); border-color: rgba(255, 179, 92, 0.3); color: #ffe2c2; }
.ah-note.is-warn::before { content: "!"; font-weight: 800; color: var(--ah-warn); }
.ah-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 1rem 0 3rem; }
.ah-pager a { display: block; padding: 1rem 1.2rem; border-radius: 12px; text-decoration: none; border: 1px solid var(--ah-line-2); background: var(--ah-navy); color: #fff !important; }
.ah-pager a:hover { border-color: var(--ah-gold); }
.ah-pager small { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ah-muted); }
.ah-pager b { display: block; margin-top: 0.3rem; font-family: var(--ah-cond); font-size: 1.15rem; color: var(--ah-gold-hi); }
.ah-pager .is-next { text-align: right; grid-column: 2; }

/* the lightbox for a render */
.ah-lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 10, 0.9); cursor: zoom-out; }
.ah-lb[hidden] { display: none; }
.ah-lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* a gentle slide only: content is never hidden, so a failed script or an anchor jump still shows everything */
  .ah [data-rise].is-low { transform: translateY(14px); transition: transform 0.6s ease; }
  .ah [data-rise].is-low.is-in { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ah-window-frame { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .ah-hero-grid { grid-template-columns: 1fr; }
  .ah-window-frame { transform: none; }
  .ah-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-tabs, .ah-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-paths, .ah-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-doc { grid-template-columns: 1fr; }
  .ah-rail { position: static; max-height: none; }
  .ah-rail ol { display: flex; flex-wrap: wrap; gap: 0.3rem; border: 0; }
  .ah-rail a { padding: 0.3rem 0.6rem; border: 1px solid var(--ah-line-2); border-radius: 999px; margin: 0; }
}
@media (max-width: 640px) {
  .ah-facts, .ah-tabs, .ah-rules, .ah-paths, .ah-guides, .ah-doors, .ah-lanes, .ah-pager { grid-template-columns: 1fr; }
  .ah-pager .is-next { grid-column: 1; }
  .ah-step { grid-template-columns: 40px minmax(0, 1fr); gap: 0.7rem; }
  .ah-step-n { width: 40px; height: 40px; font-size: 1.05rem; }
  .ah-step::before { left: 19px; top: 40px; }
  .ah-step h2 { margin-top: 0.4rem; font-size: 1.25rem; }
}

/* numbered markers on a picture, with the legend under it */
.ah-shot-pic { position: relative; display: block; }
.ah-pin { position: absolute; z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; border-radius: 50%; font: 700 0.8rem/1 var(--ah-cond); color: #1a1503; background: var(--ah-gold-hi); box-shadow: 0 0 0 3px rgba(7, 10, 18, 0.85), 0 0 0 5px rgba(255, 217, 100, 0.45), 0 6px 14px rgba(0, 0, 0, 0.6); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .ah-pin { animation: ah-pin 2.8s ease-in-out infinite; } }
@keyframes ah-pin { 0%, 100% { box-shadow: 0 0 0 3px rgba(7, 10, 18, 0.85), 0 0 0 5px rgba(255, 217, 100, 0.45), 0 6px 14px rgba(0, 0, 0, 0.6); } 50% { box-shadow: 0 0 0 3px rgba(7, 10, 18, 0.85), 0 0 0 9px rgba(255, 217, 100, 0.15), 0 6px 14px rgba(0, 0, 0, 0.6); } }
.ah-legend { margin: 0.5rem 0 0; padding: 0; list-style: none; counter-reset: pin; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1.2rem; }
.ah-legend li { counter-increment: pin; display: flex; gap: 0.55rem; align-items: baseline; font-size: 0.86rem; color: #cdd4e2; line-height: 1.4; }
.ah-legend li::before { content: counter(pin); flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font: 700 0.72rem/1 var(--ah-cond); color: #1a1503; background: var(--ah-gold-hi); }
.ah-legend b { color: #fff; }
.ah-shot.has-pins figcaption { padding: 0.8rem 0.95rem 0.9rem; }
/* small pictures side by side (panes, refusal windows) */
.ah-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; align-items: start; margin: 0.4rem 0; }
.ah-pair .ah-shot { margin: 0; }
/* tall panes stay a sensible size */
.ah-shot.is-pane { max-width: 380px; }
@media (max-width: 640px) {
  .ah-legend, .ah-pair { grid-template-columns: 1fr; }
  .ah-pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 0.66rem; }
}

.ah-npc { margin-top: 1rem; }
.ah-npc[hidden] { display: none; }

/* wide guide pages: pictures as large as the screen allows */
.ah-wrap.is-wide { width: min(1240px, 94%); }
.ah-wrap.is-wide .ah-doc { grid-template-columns: 220px minmax(0, 1fr); gap: 2.6rem; }
/* phones and tablets: the step rail goes above the steps (this wide rule outranks the general one, so it repeats here) */
@media (max-width: 980px) { .ah-wrap.is-wide .ah-doc { grid-template-columns: 1fr; gap: 1.6rem; } }
.ah-step p, .ah-step ul, .ah-step .ah-note { max-width: 50rem; }
/* a close-up: the 2x render cut to one part of the window by CSS */
.ah-shot-pic.is-crop { overflow: hidden; }
.ah-shot-pic.is-crop img { position: absolute; max-width: none; height: auto; }
.ah-shot.is-close { border-color: var(--ah-line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.ah-shot.is-close.is-crop-tall { max-width: 560px; }
.ah-trio .ah-shot.is-crop-tall { max-width: none; }
/* three close-ups side by side */
.ah-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; align-items: start; margin: 0.4rem 0; }
.ah-trio .ah-shot { margin: 0; }
.ah-pair .ah-shot.is-pane { max-width: none; }
@media (max-width: 760px) { .ah-trio { grid-template-columns: 1fr; } }
/* lightbox: scrolls when the picture is bigger than the screen; tap anywhere or the close button */
.ah-lb { overflow: auto; place-items: start center; }
.ah-lb img { margin: auto; touch-action: pinch-zoom; }
.ah-lb-x { position: fixed; top: 12px; right: 12px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ah-line); background: rgba(13, 20, 36, 0.92); color: #fff; font: 700 1.2rem/1 Inter, sans-serif; cursor: pointer; }

/* outline boxes around controls, numbered on the corner: they frame the text, never sit on it */
.ah-mark { position: absolute; z-index: 2; border: 2px solid var(--ah-gold-hi); border-radius: 6px; box-shadow: 0 0 0 2px rgba(7, 10, 18, 0.6), 0 0 14px rgba(255, 217, 100, 0.35); pointer-events: none; }
.ah-mark b { position: absolute; left: -2px; top: -2px; transform: translate(-45%, -45%); min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; font: 700 0.75rem/1 var(--ah-cond); color: #1a1503; background: var(--ah-gold-hi); box-shadow: 0 0 0 2px rgba(7, 10, 18, 0.9); }
@media (prefers-reduced-motion: no-preference) { .ah-mark { animation: ah-mark 3s ease-in-out infinite; } }
@keyframes ah-mark { 50% { box-shadow: 0 0 0 2px rgba(7, 10, 18, 0.6), 0 0 22px rgba(255, 217, 100, 0.55); } }
.ah-shot-pic.is-crop { overflow: hidden; }
@media (max-width: 640px) { .ah-mark b { min-width: 18px; height: 18px; font-size: 0.64rem; } .ah-mark { border-width: 1.5px; } }
/* the two ways in sit at equal height: the Auctioneer's picture sits beside his text at a modest size, so neither card
   leaves dead space (owner 2026-11-17); the web market card spans both columns under them */
.ah-doors { align-items: stretch; }
.ah-door.is-npc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 36%); gap: 1.1rem; align-items: center; }
/* the /ah card's content sits in the middle of the shared height */
.ah-doors > .ah-door:not(.is-npc) { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ah-door.is-npc .ah-npc { margin: 0; }
.ah-door.is-npc .ah-shot { margin: 0; }
.ah-door.is-npc figcaption { font-size: 0.8rem; }
.ah-web { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; padding: 1.1rem 1.4rem; border-radius: 14px; border: 1px solid var(--ah-gold); background: linear-gradient(100deg, rgba(230, 200, 74, 0.14), rgba(116, 185, 255, 0.06) 60%, var(--ah-navy)); text-decoration: none; color: var(--ah-text) !important; transition: border-color 0.15s ease, transform 0.15s ease; }
.ah-web:hover { transform: translateY(-2px); border-color: var(--ah-gold-hi); }
.ah-web:focus-visible { outline: 2px solid var(--ah-gold-hi); outline-offset: 3px; }
.ah-web-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--ah-line); }
.ah-web-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--ah-gold-hi); stroke-width: 1.7; }
.ah-web-text b { display: block; margin-bottom: 0.25rem; font: 700 1.25rem/1.2 var(--ah-cond); color: #fff; letter-spacing: 0.02em; }
.ah-web-text span { display: block; color: #cdd4e2; line-height: 1.5; }
@media (max-width: 760px) {
  .ah-door.is-npc { grid-template-columns: minmax(0, 1fr); }
  .ah-door.is-npc .ah-npc { max-width: 360px; }
  .ah-web { grid-template-columns: auto minmax(0, 1fr); }
  .ah-web .ah-btn { grid-column: 1 / -1; justify-content: center; }
}
