:root {
  --ink: #315f5b;
  --muted: #6d7a78;
  --line: #eadfce;
  --cream: #fff8ef;
  --paper: #ffffff;
  --teal: #3f9b91;
  --teal-soft: #e7f5f3;
  --orange: #f59e33;
  --shadow: 0 10px 30px rgba(49, 95, 91, 0.06);
  --top: 64px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 0 0, rgba(245, 158, 51, 0.16), transparent 28%),
    var(--cream);
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.6;
}

a { color: var(--teal); }

.w2-skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 50;
}

.w2-skip:focus { top: 8px; }

.w2-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--top);
  padding: 10px 18px;
  background: rgba(255, 248, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.w2-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.w2-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.w2-brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.w2-brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.w2-brand-name span {
  display: block;
  margin-top: 3px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.w2-search {
  flex: 1 1 auto;
  max-width: 460px;
  margin-left: auto;
}

.w2-search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 15px;
}

.w2-search input:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.w2-top-link {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.w2-top-link:hover { color: var(--teal); }

.w2-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

.w2-shell.has-toc { grid-template-columns: 260px minmax(0, 1fr) 210px; }

.w2-side,
.w2-rail {
  position: sticky;
  top: var(--top);
  max-height: calc(100vh - var(--top));
  overflow: auto;
  padding: 18px 12px 40px;
}

.w2-side details { margin: 2px 0 8px; }

.w2-side summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 10px 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.w2-side summary::-webkit-details-marker { display: none; }

.w2-side a,
.w2-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.35;
}

.w2-side a:hover,
.w2-toc a:hover { background: rgba(63, 155, 145, 0.1); }

.w2-side a[aria-current="page"] {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--orange);
  font-weight: 700;
}

.w2-side-home { font-weight: 700; margin-bottom: 6px; }

.w2-main { min-width: 0; padding: 22px 22px 72px; }

.w2-review {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--ink);
  font-size: 14px;
}

.w2-review-links {
  display: block;
  margin-top: 4px;
}

.w2-article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 32px 36px;
}

.w2-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.w2-prose h2:first-of-type {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 700;
}

.w2-prose h2,
.w2-prose h3,
.w2-prose h4 {
  line-height: 1.25;
  scroll-margin-top: 84px;
}

.w2-prose h2 { margin: 2rem 0 0.7rem; font-size: 1.45rem; }
.w2-prose h3 { margin: 1.6rem 0 0.5rem; font-size: 1.15rem; }
.w2-prose h4 { margin: 1.2rem 0 0.35rem; font-size: 1.02rem; }

.w2-prose p,
.w2-prose li { font-size: 1.02rem; }

.w2-prose p { margin: 0.75rem 0; }

.w2-prose a { text-underline-offset: 2px; }

.w2-prose ul,
.w2-prose ol { margin: 0.4rem 0 0.9rem; padding-left: 1.25rem; }

.w2-prose li { margin: 0.28rem 0; }

.w2-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.w2-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0;
}

.w2-table {
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.w2-prose table {
  width: 100%;
  border-collapse: collapse;
  background: #fffdf9;
}

.w2-prose td,
.w2-prose th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.w2-prose tr:last-child td { border-bottom: 0; }

.w2-prose td[align="middle"],
.w2-prose td[align="center"] { text-align: center; }

#chatbox {
  margin-top: 1.5rem;
  padding: 4px 4px 8px;
  border-top: 1px solid var(--line);
}

#chatbox div {
  width: auto !important;
  max-width: 100% !important;
}

.w2-toc p,
.w2-toc-inline p {
  margin: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.w2-toc a.is-h3,
.w2-toc-inline a.is-h3 { padding-left: 18px; font-size: 13.5px; color: var(--muted); }

.w2-toc-inline {
  display: none;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

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

.w2-start a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 128px;
  padding: 14px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.w2-start a:hover { border-color: var(--teal); }

.w2-start-step {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.w2-start strong { font-size: 16px; line-height: 1.3; }

.w2-start span:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.w2-rail-label {
  margin: 8px 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.w2-samples {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 140px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 0 0 22px;
}

.w2-samples img {
  width: 140px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  background: white;
}

.w2-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 1rem 0 1.4rem;
}

.w2-video {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.w2-video button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #1d3d3a;
  cursor: pointer;
}

.w2-video img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0;
}

.w2-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: var(--teal);
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.w2-video figcaption {
  padding: 10px 12px 4px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
}

.w2-video .w2-watch,
.w2-video .w2-video-note {
  padding: 0 12px 12px;
  font-size: 13px;
}

.w2-video-note { margin: 0; color: var(--muted); }

.w2-modal[hidden] { display: none; }

.w2-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(29, 61, 58, 0.72);
}

.w2-modal-card {
  width: min(960px, 100%);
  background: var(--paper);
  border-radius: 18px;
  padding: 14px;
}

.w2-modal-frame {
  position: relative;
  padding-top: 56.25%;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
}

.w2-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.w2-modal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.w2-modal-close {
  border: 0;
  background: var(--teal);
  color: white;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.w2-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.w2-sitemap a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: #fffdf9;
}

.w2-sitemap a:hover { border-color: var(--teal); }

.w2-results { list-style: none; margin: 0; padding: 0; }

.w2-results li {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.w2-results a { font-weight: 700; font-size: 1.05rem; }

.w2-results p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

.w2-results mark {
  background: #ffe7c2;
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.w2-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.w2-pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: #fffdf9;
}

.w2-pager a strong { font-size: 16px; }

.w2-pager span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.w2-pager .is-next { text-align: right; align-items: flex-end; }

.w2-foot {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 22px 28px;
  color: var(--muted);
  font-size: 13px;
}

.w2-foot a { color: var(--muted); }

@media (max-width: 1100px) {
  .w2-shell,
  .w2-shell.has-toc { grid-template-columns: 250px minmax(0, 1fr); }
  .w2-rail { display: none; }
  .w2-toc-inline { display: block; }
  .w2-start { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .w2-menu-btn { display: inline-flex; }
  .w2-brand-name span { display: none; }
  .w2-top-link { display: none; }
  .w2-shell,
  .w2-shell.has-toc { display: block; }
  .w2-side {
    position: fixed;
    z-index: 25;
    top: var(--top);
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    max-height: none;
    background: var(--cream);
    border-right: 1px solid var(--line);
    transform: translateX(-105%);
    transition: transform 0.18s ease;
  }
  body.nav-open .w2-side { transform: none; }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: var(--top) 0 0 0;
    background: rgba(29, 61, 58, 0.35);
    z-index: 24;
  }
  .w2-main { padding: 16px 14px 48px; }
  .w2-article { padding: 20px 16px 24px; border-radius: 16px; }
  .w2-start { grid-template-columns: 1fr; }
  .w2-pager { grid-template-columns: 1fr; }
  .w2-pager .is-next { text-align: left; align-items: flex-start; }
}

@media (max-width: 390px) {
  .w2-search { max-width: none; }
  .w2-top { gap: 8px; padding: 8px 10px; }
}
