:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --paper: #ffffff;
  --ink: #333333;
  --muted: #777777;
  --line: #dddddd;
  --line-strong: #a3aab7;
  --brand: #337ab7;
  --brand-dark: #23527c;
  --brand-mid: #286090;
  --accent: #ffe2a8;
  --accent-soft: #fffbf1;
  --alt: #e7ebf0;
  --danger: #a94442;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

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

body > * {
  max-width: 100%;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
}

a {
  color: var(--brand);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  border-bottom: 1px solid #e7e7e7;
  color: var(--ink);
  padding: 0 20px 18px;
}

.hero {
  display: grid;
  gap: 14px;
  width: min(1170px, 100%);
  max-width: 100%;
  margin: 0 auto;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
}

.site-logo {
  display: block;
  width: min(250px, 70vw);
  height: auto;
  padding: 5px 0;
  background: #ffffff;
}

.brand-label {
  margin: 0;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand-mid);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy {
  max-width: none;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 4px;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.hero-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.hero-security {
  margin-top: 12px !important;
  padding: 10px 12px;
  background: #fcf8e3;
  border: 1px solid #faebcc;
  border-radius: 4px;
  color: #6f5b2f !important;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  width: min(1170px, 100%);
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  margin: 18px auto 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.toc h2 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
}

.toc ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding: 7px 9px;
  border-radius: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.toc a:hover {
  background: var(--bg-soft);
  color: var(--brand-dark);
  text-decoration: underline;
}

.content {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  padding: 24px clamp(16px, 3vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.content h2 {
  margin: 34px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.1;
}

.content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.content [id] {
  scroll-margin-top: 24px;
}

.content a[id] {
  display: block;
}

.content p {
  max-width: 100%;
  margin: 0 0 14px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  text-align: left;
}

.content ul,
.content ol {
  max-width: 100%;
  margin: 0 0 18px 1.2rem;
  padding: 0;
  overflow-wrap: anywhere;
}

.content li {
  max-width: 100%;
  margin: 0 0 8px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0.2rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.content a,
.content span {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.content strong,
.content .c5,
.content .c7,
.content .c15 {
  font-weight: 800;
}

.content .c13 {
  font-style: italic;
}

.content .c21 {
  display: block;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
}

.email-link {
  display: inline;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--brand);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.email-link:hover {
  background: transparent;
  color: var(--brand-dark);
}

.content .security-note {
  margin: 4px 0 18px;
  padding: 10px 12px;
  background: #fcf8e3;
  border: 1px solid #faebcc;
  border-radius: 4px;
  color: #6f5b2f;
}

.security-title {
  font-weight: 700;
}

.content .c29,
.content .c6,
.content .c24 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.content .c17,
.content .c31 {
  display: block;
  width: 100% !important;
  padding: 14px 16px !important;
  border: 0 !important;
  border-left: 4px solid var(--brand) !important;
  border-radius: 4px;
}

.content .c17 {
  background: #d9edf7 !important;
}

.content .c31 {
  background: var(--accent-soft) !important;
}

.content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  border-collapse: collapse;
  table-layout: fixed;
}

.content td,
.content th {
  width: auto !important;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.content img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 18px auto 24px !important;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.content span[style*="inline-block"] {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.content hr {
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: var(--line);
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  max-width: 100%;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 880px) {
  .layout {
    display: block;
    width: 100%;
    max-width: 760px;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 18px;
  }

  .toc {
    position: static;
    max-height: none;
    margin-bottom: 18px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 24px 18px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 24px 0 30px;
  }

  .hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-row {
    display: grid;
    justify-items: start;
    gap: 12px;
  }

  .brand-label {
    font-size: 0.78rem;
  }

  .content h2 {
    margin-top: 34px;
  }

  .content {
    padding: 18px 12px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .site-header,
  .toc,
  .site-footer {
    display: none;
  }

  .layout,
  .content {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
