:root {
  --ink: #17211f;
  --ink-soft: #485653;
  --muted: #66736f;
  --line: #dce4e1;
  --line-strong: #c7d3cf;
  --paper: #ffffff;
  --canvas: #f4f7f6;
  --brand: #0f766e;
  --brand-dark: #0a4f4a;
  --brand-soft: #e5f4f1;
  --blue: #2563a9;
  --blue-soft: #eaf2fb;
  --amber: #a86308;
  --amber-soft: #fff5dc;
  --red: #b42318;
  --red-soft: #fff0ee;
  --shadow: 0 8px 24px rgba(25, 45, 40, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover {
  color: var(--brand);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

svg {
  flex: 0 0 auto;
}

code,
.formula,
.code-block,
.highlight {
  font-family: Consolas, "SFMono-Regular", monospace;
}

code {
  padding: 2px 5px;
  border: 1px solid #d3e4df;
  border-radius: 4px;
  background: #edf7f4;
  color: #075e57;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(199, 211, 207, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.02);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: var(--brand-dark);
  color: #fff;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a {
  padding: 8px 11px;
  border-radius: 5px;
  color: #394542;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-alert {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--red) !important;
}

.nav-alert svg {
  width: 16px;
  height: 16px;
}

.menu-button {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.menu-button svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  padding: 8px 20px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 11px 2px;
  border-bottom: 1px solid #edf1f0;
  color: var(--ink);
  font-weight: 600;
}

.page-intro,
.home-intro {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.home-intro .shell,
.page-intro .shell {
  padding-block: 54px 50px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

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

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  background: var(--brand);
  content: "";
}

.home-intro h1,
.page-intro h1 {
  max-width: 900px;
  margin: 0;
  color: #10211e;
  font-size: 42px;
  line-height: 1.2;
}

.home-intro .lead,
.page-intro .lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.intro-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.intro-meta svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.search-wrap {
  position: relative;
  max-width: 680px;
  margin-top: 28px;
}

.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 49px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(18, 46, 40, 0.05);
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.page-main {
  min-height: 55vh;
}

.section-band {
  padding-block: 64px;
  border-bottom: 1px solid var(--line);
}

.section-band.paper {
  background: var(--paper);
}

.section-band:last-child {
  border-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading > div {
  max-width: 760px;
}

.section-kicker,
.section-label {
  display: block;
  margin-bottom: 7px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.section-heading h2,
.section-head h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.3;
}

.section-heading p,
.section-head p {
  margin: 9px 0 0;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
}

.section-link svg {
  width: 16px;
  height: 16px;
}

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

.topic-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(23, 33, 31, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: #9dc5bd;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.topic-card.is-hidden {
  display: none;
}

.topic-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.topic-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.topic-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.topic-icon.red {
  background: var(--red-soft);
  color: var(--red);
}

.topic-icon svg {
  width: 20px;
  height: 20px;
}

.topic-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.topic-card p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.topic-card .card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.card-action svg {
  width: 15px;
  height: 15px;
}

.search-empty {
  display: none;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.search-empty.is-visible {
  display: block;
}

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

.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.guide-copy {
  padding: 20px 22px 22px;
}

.guide-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.guide-card h3 {
  margin: 8px 0 7px;
  font-size: 19px;
}

.guide-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.guide-card figure {
  margin: 0;
  border-top: 1px solid var(--line);
  background: #eef2f1;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
}

.guide-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.zoomable {
  cursor: zoom-in;
}

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

.recommendation {
  padding: 22px 0 6px;
  border-top: 3px solid var(--brand);
}

.recommendation:nth-child(2) {
  border-color: var(--amber);
}

.recommendation:nth-child(3) {
  border-color: var(--blue);
}

.recommendation h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.recommendation p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.phone-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.phone-step img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  background: #eef2f1;
}

.phone-step figcaption {
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.note,
.callout,
.warn,
.safe,
.tip,
.tip-box,
.warning-box,
.formula,
.disclaimer {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #f7fbfa;
}

.note.warning,
.warn,
.warning-box {
  border-color: #f0cf91;
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.note.danger,
.disclaimer {
  border-color: #efb4ad;
  border-left-color: var(--red);
  background: var(--red-soft);
}

.post-gallery-note {
  margin-top: 18px;
}

.safe,
.tip,
.tip-box {
  border-color: #b8d9d2;
  border-left-color: var(--brand);
  background: var(--brand-soft);
}

.formula {
  border-left-color: var(--blue);
  background: var(--blue-soft);
  color: #164d82;
}

.tip-title,
.warning-title {
  margin-bottom: 4px;
  font-weight: 800;
}

.warning-title {
  color: var(--amber);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.faq-item summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  transition: transform 160ms ease;
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.faq-answer > :first-child {
  margin-top: 0;
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-answer img {
  max-width: min(100%, 820px);
  margin: 18px auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.faq-answer img[src*="binance-"] {
  max-width: 320px;
}

.faq-answer ul,
.faq-answer ol,
.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.faq-answer li,
.article-body li {
  margin-block: 6px;
}

.article-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-block: 44px 72px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 850px) 240px;
  justify-content: space-between;
  gap: 54px;
}

.article-layout.no-toc {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.article-body {
  min-width: 0;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 50px 0 16px;
  padding-top: 4px;
  color: #18312c;
  font-size: 25px;
  line-height: 1.35;
}

.article-body h3 {
  margin: 32px 0 10px;
  font-size: 19px;
  line-height: 1.4;
}

.article-body h4 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.article-body p {
  margin: 13px 0;
}

.article-body a:not(.button-link) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-toc {
  align-self: start;
  position: sticky;
  top: 94px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.page-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.page-toc nav {
  display: grid;
  gap: 4px;
}

.page-toc a {
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-toc a.sub {
  padding-left: 12px;
  font-size: 12px;
}

.page-toc a:hover,
.page-toc a.is-active {
  color: var(--brand-dark);
  font-weight: 700;
}

.table-wrap,
.table-container {
  width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

.account-table {
  min-width: 0;
  table-layout: fixed;
}

.account-table th,
.account-table td {
  padding-inline: 10px;
  text-align: center;
  overflow-wrap: anywhere;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef4f2;
  color: #273b37;
  font-size: 14px;
}

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

tbody tr:nth-child(even) {
  background: #fafcfb;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #edf2f0;
}

.tab-button,
.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.tab-button svg,
.nav-tab svg {
  width: 17px;
  height: 17px;
}

.tab-button[aria-selected="true"],
.nav-tab.active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 1px 4px rgba(23, 33, 31, 0.1);
}

.tab-panel,
.tab-content {
  display: none;
}

.tab-panel.is-active,
.tab-content.active {
  display: block;
}

.section,
.sub-section {
  margin-bottom: 46px;
}

.section-title,
.sub-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: #18312c;
  font-size: 21px;
  font-weight: 800;
}

.section-title .icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
}

.step {
  margin-bottom: 14px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid #9fc9c1;
  border-radius: 6px;
  background: #fff;
}

.step-title {
  font-weight: 800;
}

.step-number {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
}

.step-desc {
  margin: 8px 0 0 33px;
  color: var(--ink-soft);
}

.code-block {
  margin: 10px 0;
  padding: 13px;
  overflow-x: auto;
  border-radius: 6px;
  background: #17211f;
  color: #dfe9e6;
  font-size: 13px;
}

.chat-summary,
.summary-box {
  margin-bottom: 28px;
  padding: 19px;
  border: 1px solid #e9d39e;
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: var(--amber-soft);
}

.summary-box h3 {
  margin: 0 0 8px;
}

.summary-box ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.summary-box li {
  margin: 7px 0;
}

.tag {
  display: inline-block;
  margin-right: 7px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #f3d587;
  color: #604000;
  font-size: 12px;
  font-weight: 800;
}

.chat-container {
  display: grid;
  gap: 12px;
}

.message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7eeec;
  color: var(--brand-dark);
  font-size: 0;
}

.avatar::after {
  width: 18px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0, 68% 7%, 78% 23%, 79% 43%, 70% 58%, 100% 79%, 100% 100%, 0 100%, 0 79%, 30% 58%, 21% 43%, 22% 23%, 32% 7%);
  content: "";
}

.message-content {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.message.user1 .message-content {
  border-left: 3px solid var(--blue);
}

.message.user2 .message-content {
  border-left: 3px solid var(--amber);
}

.message.user3 .message-content {
  border-left: 3px solid var(--brand);
}

.username {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.time {
  margin-top: 5px;
  color: #88938f;
  font-size: 11px;
  text-align: right;
}

.screenshot {
  max-width: 320px;
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.full-screenshot {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.screenshot-label {
  padding: 9px 13px;
  background: #edf2f0;
  font-weight: 700;
}

.highlight {
  padding: 1px 4px;
  border-radius: 3px;
  background: #fff1bd;
  color: #73500a;
}

.section-head {
  margin-bottom: 22px;
}

.notice-grid,
.terms,
.split,
.single-leg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.notice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice,
.term,
.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.notice strong,
.term h3,
.panel h3 {
  margin: 0 0 7px;
  color: #18312c;
}

.notice p,
.term p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.timeline {
  margin-top: 50px;
}

.timeline > .step {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 26px;
  margin-bottom: 28px;
  padding: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.timeline .step-copy {
  padding: 24px;
}

.step-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.timeline .step-copy h3 {
  margin: 7px 0 10px;
  font-size: 21px;
}

.checklist {
  padding-left: 1.2em;
}

.shot {
  margin: 0;
  border-left: 1px solid var(--line);
  background: #e8eeec;
}

.shot img {
  width: 100%;
  height: auto;
}

.shot figcaption {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.shot figcaption span:first-child {
  color: var(--ink);
  font-weight: 700;
}

/* The full tutorial gives application screenshots the primary reading width. */
.bnmt-page .shell,
.bnmt-page .article-shell {
  width: min(1480px, calc(100% - 40px));
}

.bnmt-page .article-layout {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
}

.bnmt-page .timeline {
  margin-top: 38px;
}

.bnmt-page .timeline > .step {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.bnmt-page .timeline .step-copy {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 34px;
  padding: 28px 30px;
}

.bnmt-page .step-heading h3 {
  margin: 7px 0 0;
  font-size: 23px;
}

.bnmt-page .step-details > :first-child {
  margin-top: 0;
}

.bnmt-page .step-details > :last-child {
  margin-bottom: 0;
}

.bnmt-page .shot {
  border-top: 1px solid var(--line);
  border-left: 0;
  background: #fff;
}

.bnmt-page .shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bnmt-page .shot figcaption {
  padding: 14px 18px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.video-copy {
  padding: 18px;
}

.video-copy h3 {
  margin: 7px 0 4px;
}

.video-copy p {
  margin: 0;
  color: var(--muted);
}

.video-tag {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #101715;
}

.video-frame video {
  width: 100%;
  height: 100%;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(16, 23, 21, 0.58);
  color: #fff;
  cursor: pointer;
}

.play-overlay.hidden {
  display: none;
}

.play-content {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.play-icon {
  width: 48px;
  height: 48px;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  position: relative;
}

.play-icon::after {
  position: absolute;
  top: 13px;
  left: 18px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  content: "";
}

.play-title {
  font-weight: 800;
}

.play-note {
  color: #dce4e1;
  font-size: 12px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  padding: 58px 24px 24px;
  background: rgba(10, 17, 15, 0.92);
}

.lightbox.is-open {
  display: grid;
  place-items: center;
}

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.site-footer {
  border-top: 1px solid #273d38;
  background: #15221f;
  color: #b8c5c1;
}

.footer-shell {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 24px;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
}

.footer-copy {
  max-width: 650px;
  margin: 4px 0 0;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: #d3ddda;
  font-size: 13px;
}

@media (max-width: 1280px) {
  .bnmt-page .article-shell {
    width: calc(100% - 24px);
  }

  .bnmt-page .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bnmt-page .page-toc {
    display: none;
  }
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-toc {
    display: none;
  }

  .timeline > .step {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .shell,
  .article-shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-shell {
    min-height: 62px;
  }

  .brand-copy small {
    display: none;
  }

  .home-intro .shell,
  .page-intro .shell {
    padding-block: 38px 36px;
  }

  .home-intro h1,
  .page-intro h1 {
    font-size: 32px;
  }

  .home-intro .lead,
  .page-intro .lead {
    font-size: 16px;
  }

  .section-band {
    padding-block: 48px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .section-heading h2,
  .section-head h2 {
    font-size: 25px;
  }

  .topic-grid,
  .guide-grid,
  .recommendations,
  .notice-grid,
  .terms,
  .split,
  .single-leg-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-card {
    min-height: 160px;
  }

  .step-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-shell {
    padding-block: 34px 54px;
  }

  .article-body h2 {
    margin-top: 40px;
    font-size: 23px;
  }

  .tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-table th,
  .account-table td {
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.55;
  }

  .step-desc {
    margin-left: 0;
  }

  .message {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .avatar {
    width: 30px;
    height: 30px;
  }

  .avatar::after {
    width: 14px;
    height: 14px;
  }

  .timeline .step-copy {
    padding: 19px;
  }

  .bnmt-page .article-shell,
  .bnmt-page .shell {
    width: min(100% - 28px, 1480px);
  }

  .bnmt-page .timeline .step-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .footer-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .home-intro h1,
  .page-intro h1 {
    font-size: 28px;
  }

  .step-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .phone-step img {
    aspect-ratio: 10 / 15;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
