/*
 * Booking Guide Stylesheet
 * Staff how-to guide for the Barefoot Bowls booking system.
 * Enqueued on the guide page via inc/latepoint-overrides.php
 */

/* ── Variables ── */
:root {
  --bg-brand: #2b6f7b;
  --bg-dark: #1a1a2e;
  --bg-mid: #4a4a6a;
  --bg-light: #f4f6f9;
  --bg-border: #dde1ea;
  --bg-accent: #2980b9;
  --bg-green: #27ae60;
  --bg-yellow: #f39c12;
  --bg-white: #ffffff;
  --bg-radius: 8px;
  --bg-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* Hide the top banner on the booking guide page */
.page-id-40843 .top-banner-static {
  display: none;
}

/* ── Reset & Base ── */
.booking-guide *,
.booking-guide *::before,
.booking-guide *::after {
  box-sizing: border-box;
}

.booking-guide {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  padding: 80px 0 0 0;
}

/* ── Layout ── */
.bg-wrap {
  margin: 0 auto;
}

/* ── Header ── */
.bg-header {
  background: var(--bg-dark);
  color: var(--bg-white);
  padding: 48px 40px;
  border-radius: var(--bg-radius);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.bg-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #7e785e;
}

.bg-header h1 {
  font-size: 3rem;
  font-weight: 700;
  position: relative;
  margin-bottom: 8px;
  color: #fff;
  margin-top: 1em;
}

.page-id-40843 .entry-content p,
.page-id-40843 .entry-content h3 {
  margin-top: 0;
}

.bg-header p {
  font-size: .95rem;
  opacity: .8;
  position: relative;
  margin: 0;
}

.bg-header .bg-tag {
  display: inline-block;
  background: var(--bg-brand);
  color: var(--bg-white);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
  position: relative;
}

/* ── Table of Contents ── */
.bg-toc {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius);
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: var(--bg-shadow);
}

.bg-toc h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bg-mid);
  margin-bottom: 16px;
}

.bg-toc ol {
  padding-left: 18px;
  margin: 0;
}

.bg-toc>ol>li {
  margin-bottom: 8px;
  font-weight: 600;
}

.bg-toc>ol>li>ol {
  margin-top: 4px;
  font-weight: 400;
}

.bg-toc>ol>li>ol>li {
  margin-bottom: 2px;
}

.bg-toc a {
  color: var(--bg-accent);
  text-decoration: none;
}

.bg-toc a:hover {
  text-decoration: underline;
}

/* ── Part Divider ── */
.bg-part-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 28px;
}

.bg-part-divider .bg-part-badge {
  flex-shrink: 0;
  background: var(--bg-brand);
  color: var(--bg-white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
}

.bg-part-divider h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin: 0;
}

/* ── Sections ── */
.bg-section {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--bg-radius);
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: var(--bg-shadow);
  scroll-margin-top: 20px;
}

.bg-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.bg-section h3 .bg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--bg-brand);
  color: var(--bg-white);
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bg-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bg-mid);
  margin: 18px 0 8px;
}

.bg-section p {
  margin-bottom: 12px;
}

.bg-section p:last-child {
  margin-bottom: 0;
}

.bg-section ul,
.bg-section ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.bg-section li {
  margin-bottom: 5px;
}

/* ── Callout Boxes ── */
.bg-callout {
  border-radius: var(--bg-radius);
  padding: 14px 18px;
  margin: 14px 0;
  font-size: .88rem;
  line-height: 1.6;
}

.bg-callout-tip {
  background: #eaf6ec;
  border-left: 4px solid var(--bg-green);
}

.bg-callout-note {
  background: #fef9e7;
  border-left: 4px solid var(--bg-yellow);
}

.bg-callout-info {
  background: #eaf3fb;
  border-left: 4px solid var(--bg-accent);
}

.bg-callout-warn {
  background: #fdf2f1;
  border-left: 4px solid var(--bg-brand);
}

.bg-callout strong {
  display: block;
  margin-bottom: 3px;
}

/* ── Nav Path ── */
.bg-nav-path {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid var(--bg-border);
  border-radius: 4px;
  padding: 5px 12px;
  font-size: .82rem;
  font-family: 'SFMono-Regular', Consolas, monospace;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}

.bg-nav-path .bg-arrow {
  color: #aaa;
}

.bg-nav-path span {
  color: var(--bg-dark);
  font-weight: 500;
}

/* ── Table ── */
.bg-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: .88rem;
}

.bg-table th {
  background: var(--bg-dark);
  color: var(--bg-white);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}

.bg-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--bg-border);
}

.bg-table tr:nth-child(even) td {
  background: var(--bg-light);
}

/* ── Badges ── */
.bg-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.bg-badge-green {
  background: #d5f5e3;
  color: #1e8449;
}

.bg-badge-blue {
  background: #d6eaf8;
  color: #1a6fa8;
}

.bg-badge-red {
  background: #fadbd8;
  color: #a93226;
}

.bg-badge-yellow {
  background: #fef9e7;
  color: #9a7d0a;
}

/* ── Footer ── */
.bg-footer {
  text-align: center;
  margin-top: 60px;
  font-size: .82rem;
  color: #999;
}

.bg-footer p {
  margin-bottom: 4px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .bg-header {
    padding: 32px 20px;
  }

  .bg-header h1 {
    font-size: 1.5rem;
  }

  .bg-section {
    padding: 20px 18px;
  }

  .bg-toc {
    padding: 20px 18px;
  }
}