/* Shared styles for BoozeButler sample pilot deliverables (illustrative only). */
:root {
  --sd-ivory: #fbf7ef;
  --sd-cream: #f4eadc;
  --sd-card: #fffdf8;
  --sd-ink: #171614;
  --sd-brown: #3c2518;
  --sd-muted: #6c5f55;
  --sd-copper: #c47e42;
  --sd-gold: #d9a75f;
  --sd-border: rgba(94, 55, 30, 0.16);
  --sd-shadow: 0 18px 48px rgba(42, 25, 14, 0.1);
  --sd-soft: 0 10px 28px rgba(42, 25, 14, 0.075);
  --sd-blue: #0a66c2;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body.sd-body {
  margin: 0;
  color: var(--sd-ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 14% 0%, rgba(217, 167, 95, 0.24), transparent 26rem),
    radial-gradient(circle at 86% 4%, rgba(117, 67, 38, 0.16), transparent 22rem),
    linear-gradient(180deg, var(--sd-ivory) 0%, #fffaf3 48%, #f7efe4 100%);
}

a { color: inherit; }

.sd-wrap {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 20px 22px 48px;
}

.sd-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.sd-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sd-brown);
  font-weight: 800;
  font-size: 0.95rem;
}

.sd-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
}

.sd-topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.sd-link {
  color: var(--sd-copper);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.sd-link:hover { text-decoration: underline; }

.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--sd-border);
  padding: 10px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  background: var(--sd-card);
  color: var(--sd-brown);
}

.sd-btn:hover { border-color: rgba(196, 126, 66, 0.45); }

.sd-btn--primary {
  background: var(--sd-brown);
  color: #fffaf3;
  border-color: transparent;
}

.sd-btn--primary:hover { opacity: 0.92; }

.sd-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(196, 126, 66, 0.35);
  background: linear-gradient(180deg, #fff8ef, #f6ebdd);
  color: var(--sd-brown);
  font-size: 0.92rem;
  line-height: 1.5;
}

.sd-banner strong {
  color: var(--sd-copper);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  display: block;
  margin-bottom: 4px;
}

.sd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--sd-copper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sd-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--sd-copper);
}

.sd-h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.55rem);
  line-height: 1.12;
  color: var(--sd-ink);
}

.sd-lead {
  margin: 0 0 18px;
  max-width: 42rem;
  color: var(--sd-muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

.sd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 22px;
}

.sd-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--sd-border);
  color: var(--sd-brown);
  font-size: 0.78rem;
  font-weight: 700;
}

.sd-pill--accent {
  background: rgba(196, 126, 66, 0.12);
  border-color: rgba(196, 126, 66, 0.28);
  color: var(--sd-copper);
}

.sd-card {
  background: var(--sd-card);
  border: 1px solid var(--sd-border);
  border-radius: 16px;
  box-shadow: var(--sd-soft);
  padding: 18px 18px 16px;
}

.sd-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sd-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sd-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sd-section {
  margin: 22px 0;
}

.sd-section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--sd-ink);
}

.sd-kicker {
  margin: 0 0 6px;
  color: var(--sd-copper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sd-kpi-value {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sd-ink);
}

.sd-kpi-label {
  margin: 4px 0 0;
  color: var(--sd-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.sd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.sd-table th {
  text-align: left;
  color: var(--sd-copper);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 8px 10px 0;
  border-bottom: 1px solid var(--sd-border);
}

.sd-table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid rgba(94, 55, 30, 0.08);
  vertical-align: top;
}

.sd-table tr:last-child td { border-bottom: none; }

.sd-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(94, 55, 30, 0.08);
  overflow: hidden;
}

.sd-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sd-copper), var(--sd-gold));
}

.sd-note {
  margin: 10px 0 0;
  color: var(--sd-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.sd-footer {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--sd-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--sd-muted);
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .sd-grid-2,
  .sd-grid-3,
  .sd-grid-4 { grid-template-columns: 1fr; }
}

/* Print / Save PDF */
@media print {
  @page {
    size: Letter;
    margin: 0.55in;
  }

  body.sd-body {
    background: #fff !important;
    color: #111;
  }

  .hide-on-print,
  .sd-topbar,
  .sd-print-actions {
    display: none !important;
  }

  .sd-wrap {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .sd-card,
  .sd-banner {
    box-shadow: none !important;
    break-inside: avoid;
  }

  .sd-banner {
    border: 1px solid #d8c7b2;
    background: #f7f0e6 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .sd-bar > span {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  a { text-decoration: none; color: inherit; }
}
