:root {
  --vt-cream: #f5f1e8;
  --vt-forest: #2d4a3e;
  --vt-gold: #b8956a;
  --vt-ink: #24342e;
  --vt-paper: #fbf8f1;
  --vt-line: rgba(45, 74, 62, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--vt-cream) 0%, #efe9dc 100%);
  color: var(--vt-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.tailor-slip-page {
  min-height: 100vh;
  padding: 32px 18px 44px;
}

.tailor-slip-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.tailor-slip-card {
  background: var(--vt-paper);
  border: 2px solid var(--vt-forest);
  border-radius: 26px;
  box-shadow: 0 16px 48px rgba(45, 74, 62, 0.12);
  overflow: hidden;
}

.tailor-slip-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 28px 28px 16px;
  border-bottom: 1px solid var(--vt-line);
}

.tailor-slip-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(184, 149, 106, 0.1);
  padding: 8px;
}

.tailor-slip-kicker {
  margin: 0 0 4px;
  color: var(--vt-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.tailor-slip-title {
  margin: 0;
  color: var(--vt-forest);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.97;
}

.tailor-slip-subtitle {
  margin: 10px 0 0;
  max-width: 70ch;
  color: rgba(36, 52, 46, 0.82);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tailor-slip-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 28px 8px;
}

.tailor-slip-meta__item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--vt-line);
  border-radius: 16px;
  background: rgba(245, 241, 232, 0.5);
}

.tailor-slip-meta__label {
  color: var(--vt-gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

.tailor-slip-meta__value {
  color: var(--vt-forest);
  font-size: 0.95rem;
}

.tailor-slip-table-wrap {
  padding: 10px 20px 0;
}

.slip-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.slip-table thead th {
  padding: 12px 10px;
  color: var(--vt-forest);
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(45, 74, 62, 0.22);
}

.slip-table tbody td {
  vertical-align: top;
  padding: 12px 10px 14px;
  border-bottom: 1px solid var(--vt-line);
  color: var(--vt-ink);
  font-size: 0.93rem;
  line-height: 1.42;
}

.slip-table__measurement {
  width: 17%;
  color: var(--vt-forest);
  font-weight: 700;
}

.slip-table__how {
  width: 53%;
  color: rgba(36, 52, 46, 0.72);
  font-size: 0.88rem;
}

.slip-table__value {
  width: 22%;
  padding-top: 20px;
}

.slip-table__line {
  display: block;
  height: 20px;
  border-bottom: 1.6px solid var(--vt-gold);
}

.slip-table__unit {
  width: 8%;
  color: rgba(36, 52, 46, 0.68);
  font-size: 0.86rem;
  white-space: nowrap;
}

.tailor-slip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 22px 28px 28px;
}

.tailor-slip-button,
.tailor-slip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.tailor-slip-button:hover,
.tailor-slip-link:hover {
  transform: translateY(-1px);
}

.tailor-slip-button:focus-visible,
.tailor-slip-link:focus-visible {
  outline: 3px solid rgba(184, 149, 106, 0.35);
  outline-offset: 2px;
}

.tailor-slip-button--print {
  background: var(--vt-forest);
  color: var(--vt-cream);
  box-shadow: 0 10px 24px rgba(45, 74, 62, 0.18);
}

.tailor-slip-link--download {
  background: rgba(184, 149, 106, 0.12);
  color: var(--vt-forest);
  border-color: rgba(184, 149, 106, 0.55);
}

.tailor-slip-foot {
  margin: 18px 0 0;
  color: rgba(36, 52, 46, 0.68);
  font-size: 0.84rem;
  text-align: center;
}

@media screen and (max-width: 760px) {
  .tailor-slip-page {
    padding: 18px 12px 28px;
  }

  .tailor-slip-head,
  .tailor-slip-meta,
  .tailor-slip-actions {
    padding-inline: 18px;
  }

  .tailor-slip-meta {
    grid-template-columns: 1fr;
  }

  .slip-table thead {
    display: none;
  }

  .slip-table,
  .slip-table tbody,
  .slip-table tr,
  .slip-table td {
    display: block;
    width: 100%;
  }

  .slip-table tbody td {
    padding-inline: 0;
  }

  .slip-table__measurement,
  .slip-table__how,
  .slip-table__value,
  .slip-table__unit {
    width: auto;
  }

  .slip-table__value {
    padding-top: 10px;
    padding-bottom: 0;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body {
    background: white;
  }

  .tailor-slip-page {
    padding: 0;
  }

  .tailor-slip-shell {
    width: auto;
    margin: 0;
  }

  .tailor-slip-card {
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .tailor-slip-actions { display: none !important; }
  .tailor-slip-foot { display: block !important; margin-top: 4mm; font-size: 8pt; }

  .tailor-slip-head {
    padding-top: 0;
  }

  .tailor-slip-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body, .tailor-slip-page { min-height: 0; }
  .tailor-slip-head { padding: 0 0 5mm; }
  .tailor-slip-title { font-size: 24pt; }
  .tailor-slip-subtitle { font-size: 9pt; line-height: 1.3; }
  .tailor-slip-meta { padding: 4mm 0; }
  .tailor-slip-meta__item { display: block; padding: 2mm; }
  .tailor-slip-meta__value { display: block; font-size: 8pt; }
  .tailor-slip-table-wrap { padding: 0; }
  .slip-table thead th { font-size: 8pt; padding: 3mm 2mm; letter-spacing: 0; }
  .slip-table tbody td { font-size: 9pt; line-height: 1.3; padding: 3mm 2mm; }
  .slip-table tr { break-inside: avoid; height: 14mm; }
  .slip-table__how { color: #55635c; }
  .slip-table__line { height: 7mm; }
}
.slip-table th:nth-child(1) { width: 20%; }
.slip-table th:nth-child(2) { width: 48%; }
.slip-table th:nth-child(3) { width: 24%; }
.slip-table th:nth-child(4) { width: 8%; }
@media print {
  .no-print { display: none !important; }
}

.slip-body { display: grid; grid-template-columns: 26% 74%; padding: 12px 28px 24px; }
.slip-illustration { padding: 10px 18px 0 0; }
.slip-illustration img { width: 100%; height: auto; display: block; }
.slip-illustration__kicker { font-size: 9px; letter-spacing: .12em; color: var(--vt-gold); }
.slip-illustration h2 { font-family: Georgia, serif; font-size: 21px; font-weight: 400; color: var(--vt-forest); }
.slip-illustration p { font-size: 11px; line-height: 1.5; }
.slip-body .tailor-slip-table-wrap { padding: 0; }
@media screen and (max-width: 640px) {
  .slip-body { display: block; padding: 8px 18px; }
  .slip-illustration { max-width: 260px; margin: auto; padding: 0 0 18px; }
}
@media print {
  .slip-body { grid-template-columns: 25% 75%; padding: 0; }
  .slip-illustration { padding-right: 5mm; }
  .slip-illustration h2 { font-size: 13pt; }
  .slip-illustration p { font-size: 8pt; }
  .slip-table tbody td { font-size: 8pt; padding: 2.4mm 1.5mm; }
  .slip-table tr { height: 14mm; }
  .slip-table th:nth-child(1) { width: 22%; }
  .slip-table th:nth-child(2) { width: 48%; }
}
