/* Built by tools/build_skin.py from tools/skin_src/tiered/. Edit the source, not this file. */
/* pbn.red tiered links order page (11/12/2026, /tiered-links). Markup: app/pbnred/pages.py tiered_page; fields and
 * errors reuse hunt.css (.hunt, .hunt__field, .hunt__opt, .hunt__err, .hunt__check). Order summary = ink panel,
 * sticky beside the form on wide screens, under it on phones. No accordions: every optional part shows open.
 * Source: tools/skin_src/tiered/ (build_skin.py copies it).
 */

.tl-hero { background: var(--color-red); color: var(--color-on-red); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.tl-hero .sec-h { max-width: 18ch; }
.tl-hero__lead { margin-top: var(--space-md); font-size: var(--text-md); font-weight: 500; line-height: 1.42; max-width: 60ch; }
.tl-hero__facts { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.tl-hero__facts li { position: relative; padding-left: 1.4rem; font-weight: 600; }
.tl-hero__facts li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.7rem; background: var(--color-paper); }
.tl-hero__facts b { font-weight: 800; }

.tl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: var(--space-xl) clamp(2rem, 4vw, 4rem);
      align-items: start; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.tl .hunt.tl__fields { max-width: 46rem; gap: var(--space-lg); }
.tl__h { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(1.5rem, 1.2vw + 1.1rem, 2.1rem);
         line-height: 1.05; letter-spacing: -0.03em; }
.tl__h--extras { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 3px solid var(--color-ink); }
.tl__fields .hunt__field > label i, .tl__fields legend i { font-style: normal; color: var(--color-red); }
.tl__help { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); max-width: 62ch; line-height: 1.5; }
.tl__group { display: grid; gap: var(--space-2xs); }
.tl__check { align-items: flex-start; font-weight: 600; line-height: 1.4; }
.tl__check input { margin-top: 0.15rem; }
.tl__count { float: right; margin-top: calc(-1 * var(--space-xs) - 1.3em); font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.tl__count.is-short { color: var(--color-red-deep); }

.tl__select {
  display: block; width: 100%; height: 3.5rem; border: 0; border-radius: 0; padding: 0 2.6rem 0 1rem;
  background: var(--color-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 1rem center;
  box-shadow: inset 0 0 0 2px var(--color-ink); color: var(--color-ink); font: inherit; font-size: var(--text-md); font-weight: 500;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.tl__select:hover { box-shadow: inset 0 0 0 3px var(--color-ink); }
.tl__select:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

.tl__pick .hunt__opts { gap: var(--space-xs); }
.tl__pick .hunt__box { min-width: 7.5rem; }
.tl__more { margin-top: var(--space-md); }
.js .tl__more { display: none; }
.js .tl__more.is-on { display: block; }

.tl__extra { display: grid; gap: var(--space-sm); padding: clamp(1rem, 2vw, 1.4rem); background: var(--color-paper-2); }
.tl__extra h3 { font-size: var(--text-md); font-weight: 800; letter-spacing: -0.01em; }
.tl__extra .tl__help { margin-top: 0; }
.tl__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.tl__file { display: block; width: 100%; padding: 0.9rem 1rem; background: var(--color-paper); box-shadow: inset 0 0 0 2px var(--color-ink); font: inherit; cursor: pointer; }
.tl__file:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.tl .hunt input[type="tel"] {
  display: block; width: 100%; min-width: 0; border: 0; border-radius: 0; background: var(--color-paper); color: var(--color-ink);
  box-shadow: inset 0 0 0 2px var(--color-ink); font: inherit; font-size: var(--text-md); font-weight: 500; padding: 0 1rem; height: 3.5rem;
}
.tl .hunt input[type="tel"]:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.tl .hunt__field.is-bad textarea, .tl .hunt__field.is-bad .tl__file { box-shadow: inset 0 0 0 3px var(--color-red); }
.tl__pick.is-bad .hunt__err { display: grid; }
.tl .msg { margin: 0; }

/* the order summary */
.tl__side { position: sticky; top: var(--space-lg); }
.tl-sum { display: grid; gap: var(--space-sm); padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--color-ink); color: var(--color-paper); }
.tl-sum__h { font-size: var(--text-sm); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.tl-sum__what { font-weight: 700; }
.tl-sum__total { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: clamp(2.6rem, 2vw + 2rem, 3.4rem);
                 line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tl-sum__inc { font-size: var(--text-sm); font-weight: 600; opacity: 0.92; }
.tl-sum__lines { list-style: none; margin: 0; padding: var(--space-sm) 0 0; border-top: 1px solid rgb(255 255 255 / 0.25); display: grid; gap: var(--space-2xs); }
.tl-sum__lines li { display: flex; justify-content: space-between; gap: var(--space-sm); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.tl-sum__btn {
  margin-top: var(--space-xs); width: 100%; border: 0; border-radius: 0; cursor: pointer; padding: 1.05rem 1.2rem;
  background: var(--color-red); color: var(--color-paper); font: inherit; font-size: var(--text-lg); font-weight: 900; letter-spacing: -0.01em;
  box-shadow: 0 0 0 3px var(--color-paper);
}
.tl-sum__btn:hover { background: var(--color-red-deep); }
.tl-sum__btn:active { transform: translateY(1px); }
.tl-sum__btn:focus-visible { outline: 3px solid var(--color-paper); outline-offset: 5px; }
.tl-sum__btn[aria-busy="true"] { cursor: progress; opacity: 0.85; }
.tl-sum__fine { font-size: var(--text-sm); opacity: 0.9; }

/* admin: one order */
.tl-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 63.99rem) {
  .tl { grid-template-columns: minmax(0, 1fr); }
  .tl__side { position: static; }
}
@media (max-width: 47.99rem) {
  .tl__grid { grid-template-columns: minmax(0, 1fr); }
  .tl__pick .hunt__box { min-width: 0; }
  .tl__count { float: none; margin: 0 0 var(--space-xs); }
}
