:root {
  --bg: #f2f7ff;
  --card: #ffffff;
  --text: #172133;
  --muted: #5b667a;
  --primary: #2f6bff;
  --primary-dark: #1e4ed8;
  --border: #d9e3f5;
  --shadow: 0 20px 45px rgba(23, 33, 51, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 auto !important;
  max-width: 1100px !important;
  padding: 28px !important;
  color: var(--text) !important;
  background:
    radial-gradient(1200px 500px at 20% -10%, #dce8ff 0%, rgba(220, 232, 255, 0) 70%),
    radial-gradient(900px 400px at 95% 5%, #e2f3ff 0%, rgba(226, 243, 255, 0) 70%),
    var(--bg) !important;
  font-family: "Inter", "Segoe UI", "SF Pro Display", "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.65;
}

/* Floating top action bar injected by include-before-body */
.top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.btn-download {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #bfd1ff;
  color: #0f3eb6 !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: #eef4ff;
  transition: all 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-1px);
  background: #e5efff;
  border-color: #9cb7ff;
}

h1:first-of-type {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding: 22px 22px 16px;
  border-radius: 18px;
  color: #ffffff;
  font-size: clamp(1.6rem, 1.15rem + 1.8vw, 2.5rem);
  line-height: 1.2;
  background:
    linear-gradient(120deg, rgba(26, 62, 173, 0.8), rgba(34, 109, 255, 0.85)),
    linear-gradient(180deg, #2358e6, #2f6bff);
  box-shadow: var(--shadow);
}

h1#southeast-asia-trip---november-2026 {
  display: none;
}

h1:first-of-type + p,
h1:first-of-type + h2,
h1:first-of-type + hr {
  margin-top: 16px;
}

h2 {
  margin-top: 1.9rem !important;
  margin-bottom: 0.7rem !important;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  background: #f8fbff;
}

h3 {
  margin-top: 1.4rem !important;
  margin-bottom: 0.4rem !important;
  color: #1f2f4f;
}

p,
li,
td,
th {
  font-size: 0.97rem;
}

a {
  color: var(--primary-dark) !important;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0), rgba(47, 107, 255, 0.4), rgba(47, 107, 255, 0));
  margin: 1.4rem 0;
}

table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  margin: 0.7rem 0 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(19, 42, 80, 0.08);
}

thead th {
  background: #edf3ff;
  color: #1f2f4f;
  font-weight: 700;
}

th,
td {
  border-bottom: 1px solid #e9eef9 !important;
  padding: 10px 12px !important;
  text-align: left;
}

tbody tr:nth-child(odd) {
  background: #fbfdff;
}

tbody tr:last-child td {
  border-bottom: none !important;
}

pre {
  border-radius: 12px;
  border: 1px solid #d6e2ff;
  background: #0f172a !important;
  color: #dbe7ff !important;
  padding: 14px !important;
  overflow: auto;
}

code {
  font-size: 0.9em;
}

ul.task-list {
  padding-left: 1.3rem;
}

blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid #9fb8ff;
  background: #f4f8ff;
  color: #2b3a57;
  border-radius: 8px;
}

/* Keep generated TOC readable when enabled */
nav#TOC {
  border: 1px dashed #c7d8ff;
  border-radius: 12px;
  background: #f6f9ff;
  padding: 12px 14px;
  margin-bottom: 12px;
}

nav#TOC ul {
  margin: 0;
  padding-left: 1rem;
}

@media (max-width: 900px) {
  body {
    padding: 14px !important;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
