/* The public pages that are not the site (frontend/site/): track an order,
 * verify a certificate, the page after paying a link. The partner's layout
 * (D-115, Faz 5 T3) on main's colours: a title in the serif at its quiet size
 * over a rule, the question on the left and the answer on the right, help in a
 * sunken box. Only what these three pages use — the old landing's rules that
 * lived here went with it (#622). */

/* ── Sayfa iskeleti ───────────────────────────────────────────────────── */
.cw-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.cw-main {
  flex: 1;
}

.cw-main :where(em) {
  font-style: italic;
}

/* The light/dark switch lives with the footer (shared/css/components/footer.css):
 * the guest order form's footer has it too and loads no pages.css (G1). */


/* Yine uzun yazım, yine `class="cw-wrap cw-verify"` aynı elemanda. Formun
 * kendisi `shared/css/components/verify.css`'te: müşterinin kabuk içindeki
 * doğrulama sayfasıyla paylaşılıyor (D-056). */
.cw-verify {
  padding-top: clamp(2rem, 1.5rem + 3vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

/* ── Ödeme sonrası sayfa (D-051) ──────────────────────────────────────────
 * Kendi kabı (`.cw-paid`): bir simge, iki parçalı başlık, giriş, kutudaki
 * not ve iki düğme (D-060, onaylanan maket). `paid.js` adres "ödemeden
 * çıktı" diyorsa başlığı, simgeyi, girişi ve notu değiştiriyor. */
.cw-paid {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  max-width: 40rem;
  padding-top: clamp(2rem, 1.5rem + 3vw, 5rem);
  padding-bottom: 5rem;
}

/* Bir saat, bir onay işareti değil: sayfa ödemenin geçip geçmediğini
 * bilmiyor (adres elle yazılabilir; D-051), ve yeşil bir tik "ödemeniz
 * alındı" derdi. Söyleyebildiği şey "onaylanıyor". */
.cw-paid__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cw-selected-wash);
  color: var(--cw-link);
}

.cw-paid__icon--left {
  background: var(--cw-sunken);
  color: var(--cw-text-muted);
}

/* Sunucu ödemenin kaydını gösterdiğinde (`?s=`, D-085): ancak o zaman tik. */
.cw-paid__icon--done {
  background: var(--cw-state-success-bg);
  color: var(--cw-state-success-text);
}

.cw-paid__icon :where(svg) {
  width: 32px;
  height: 32px;
}

.cw-paid__lead {
  color: var(--cw-text-muted);
  /* running text at the one scale (G2), not the serif reading size */
  font-size: var(--cw-text-body);
}

.cw-paid__note {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--cw-card);
  color: var(--cw-text-muted);
}

.cw-paid__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}


/* ── The partner's layout ─────────────────────────────────────────────── */

/* The title: Newsreader, one colour, the density pass's size (the partner's
 * PublicTitle). Its second word is part of the sentence, not an accent. */
.cw-shell .cw-verify__ask .cw-verify__title,
.cw-shell .cw-paid__title {
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.cw-shell .cw-verify__title :where(em),
.cw-shell .cw-paid__title :where(em) {
  font-style: normal;
  color: inherit;
}

/* The question starts at the top of its column, level with the help box
 * beside it: the rule over it drew a stray line above the title (walk 1). */
.cw-shell .cw-verify__ask {
  padding-top: 0;
}

.cw-shell .cw-verify__lead {
  margin-top: 0.5rem;
  font-family: var(--cw-font-sans);
  font-size: var(--cw-text-body);
  line-height: 1.5;
  color: var(--cw-text-muted);
}

.cw-shell .cw-verify__form .cw-field + .cw-field {
  margin-top: 1rem;
}

.cw-shell .cw-verify__form {
  margin-top: 1.5rem;
}

/* Where the number or the code is printed: help, in a sunken box. */
.cw-shell .cw-verify__where {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--cw-line);
  background: var(--cw-sunken);
}

.cw-shell .cw-verify__where :where(.cw-ui-title) {
  font-size: var(--cw-text-ui);
  font-weight: 600;
}

.cw-shell .cw-verify__where :where(.cw-ui-body) {
  margin-top: 0.25rem;
  color: var(--cw-text-muted);
}

.cw-shell .cw-verify__disclaimer {
  max-width: 36rem;
  color: var(--cw-text-muted);
}

/* ── Track an order (D-102): the order found ─────────────────────────── */

.cw-track__submit {
  margin-top: 0.75rem;
  justify-self: start;
}

.cw-track-card {
  padding: 1.25rem 1.5rem 1.25rem;
  border: 1px solid var(--cw-line-strong);
  border-top-width: 3px;
  border-radius: 2px;
  background: var(--cw-card);
}

/* The rule on top says how the order stands, as the customer's list does. */
.cw-track-card[data-tone="running"],
.cw-track-card[data-tone="waiting"] { border-top-color: var(--cw-selected); }
.cw-track-card[data-tone="done"] { border-top-color: var(--cw-state-success-text); }
.cw-track-card[data-tone="attention"] { border-top-color: var(--cw-link); }
.cw-track-card[data-tone="closed"] { border-top-color: var(--cw-line-strong); }

.cw-track-card__number {
  font-family: var(--cw-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cw-text-muted);
}

.cw-track-card__state {
  margin-top: 0.25rem;
  font-family: var(--cw-font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.cw-track-card__state:focus {
  outline: none;
}

.cw-track-card__note {
  margin-top: 0.5rem;
  color: var(--cw-text-muted);
}

/* Three steps: a line over each, a dot, the step's name. */
.cw-steps3 {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.cw-steps3__step {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}

.cw-steps3__bar {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cw-line);
}

.cw-steps3__step--done .cw-steps3__bar { background: var(--cw-state-success-text); }

.cw-steps3__step--active .cw-steps3__bar {
  background: var(--cw-run-bar);
}

@media (prefers-reduced-motion: no-preference) {
  .cw-steps3__step--active .cw-steps3__bar {
    animation: var(--cw-run);
  }
}

.cw-steps3__label {
  overflow: hidden;
  font-size: 0.65625rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cw-text-muted);
}

.cw-steps3__step--done .cw-steps3__label { color: var(--cw-text-muted); }
.cw-steps3__step--active .cw-steps3__label { font-weight: 600; color: var(--cw-text); }

.cw-track-card .cw-facts {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cw-line);
}

.cw-track-card__act {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cw-line);
}

.cw-track-card__act :where(.cw-ui-body) {
  margin-top: 0.625rem;
  color: var(--cw-text-muted);
}

.cw-track-card__said:empty {
  display: none;
}

@media (max-width: 40rem) {
  .cw-track-card__act :where(.cw-btn) {
    width: 100%;
  }
}

/* Room under the footer's day/night switch for the help button, which is
 * fixed at the window's bottom right and sat on the switch at the page's end
 * (#540). */
.cw-shell .cw-footer {
  padding-bottom: 4.5rem;
}

/* ── An agreement (D-119): one reading column, its version and its PDF ── */
.cw-legal {
  max-width: 38rem;
  padding-top: clamp(2rem, 1.5rem + 3vw, 4rem);
  padding-bottom: 5rem;
}
.cw-legal .cw-alert { margin: 0 0 1.5rem; }
.cw-legal .cw-h1 { margin: 0; color: var(--cw-wordmark); }
.cw-legal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin: 0.75rem 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--cw-line);
  color: var(--cw-text-muted);
  font-size: var(--cw-text-small);
}
.cw-legal__ref { font-family: var(--cw-font-mono); color: var(--cw-text); }
/* The page's own headings and lists; the agreement dialog has its own
 * (shared/css/components/dialog.css), which these pages do not load. */
.cw-legal__text > * + * { margin-top: 0.85rem; }
.cw-legal__h2 { margin: 2.25rem 0 0; font-family: var(--cw-font-serif); font-size: 1.35rem; font-weight: 500; }
.cw-legal__text > .cw-legal__h2:first-child { margin-top: 0; }
.cw-legal__list { margin-bottom: 0; padding-left: 1.25rem; }
.cw-legal__list :where(li + li) { margin-top: 0.5rem; }
