:root {
  --orange: #F97316;
  --orange-lt: #FFF0E6;
  --blue: #2B7EC1;
  --blue-lt: #E8F3FB;
  --cream: #FAF2E8;
  --cream-2: #F5E8D8;
  --ink: #1A1A24;
  --ink-2: #3D3D4A;
  --sub: #6B6F7A;
  --card: #FFFFFF;
  --border: #EADBC8;
  --shadow-sm: 0 4px 16px rgba(46, 38, 30, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Nunito', -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 242, 232, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(234, 219, 200, 0.6);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none
}

.brand img {
  width: 28px;
  height: 28px;
  object-fit: contain
}

.brand .b {
  color: var(--blue)
}

.brand .o {
  color: var(--orange)
}

.back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color .15s, color .15s;
}

.back:hover {
  color: var(--orange);
  border-color: var(--orange);
  text-decoration: none
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start
}

.sidebar {
  position: sticky;
  top: 80px
}

.toc-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 12px
}

.toc a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
  margin-bottom: 2px;
}

.toc a:hover {
  background: var(--orange-lt);
  color: var(--orange);
  border-color: var(--orange)
}

.content-header {
  margin-bottom: 40px
}

.eyebrow {
  font-size: 12px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px
}

.updated {
  font-size: 13px;
  color: var(--sub);
  font-weight: 600
}

.intro-box {
  background: var(--orange-lt);
  border: 1px solid #F9C09A;
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
}

.intro-box strong {
  color: var(--orange)
}

.section {
  margin-bottom: 48px;
  scroll-margin-top: 90px
}

.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px
}

h2 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px
}

h2 .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 17px
}

p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 12px
}

p:last-child {
  margin-bottom: 0
}

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

li {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 6px;
  line-height: 1.6
}

li:last-child {
  margin-bottom: 0
}

strong {
  color: var(--ink);
  font-weight: 800
}

.warn-box {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-2);
}

.warn-box strong {
  color: #B45309
}

.contact-card {
  background: linear-gradient(135deg, var(--orange) 0%, #FB923C 60%, var(--blue) 140%);
  border-radius: 20px;
  padding: 28px 32px;
  color: #fff;
  margin-top: 16px;
}

.contact-card h4 {
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 6px
}

.contact-card p {
  font-size: 14px;
  opacity: 0.95;
  margin-bottom: 0;
  color: #fff
}

.contact-card a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline
}

/* Footer */
footer {
  background: var(--ink);
  color: #fff;
  padding: 60px 24px 30px;
}

.foot-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px
}

.foot-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain
}

.foot-brand .name {
  font-weight: 900;
  font-size: 20px
}

.foot-brand .name .b {
  color: #60A5FA
}

.foot-brand .name .o {
  color: #FB923C
}

footer p.tag {
  color: #9CA3AF;
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px
}

.foot-col h5 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #FB923C
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: #D1D5DB;
  margin-bottom: 10px;
  transition: color .15s
}

.foot-col a:hover {
  color: #fff
}

.foot-bottom {
  max-width: 1160px;
  margin: 0 auto;
  border-top: 1px solid #2A2A38;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #9CA3AF;
}

.bg-orange-lt {
  background: var(--orange-lt)
}

.bg-blue-lt {
  background: var(--blue-lt)
}

.bg-green-lt {
  background: #E8F8F0
}

.bg-yellow-lt {
  background: #FEF3C7
}

.bg-purple-lt {
  background: #F3E8FF
}

.bg-red-lt {
  background: #FEE2E2
}

@media(max-width:860px) {
  .page {
    grid-template-columns: 1fr
  }

  .sidebar {
    display: none
  }
}

@media(max-width:560px) {
  .section-card {
    padding: 24px 20px
  }
}