.pol {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  column-gap: 72px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.pol-rail {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  margin: 0 -8px;
  padding: 40px 8px 48px;
  scrollbar-width: thin;
}

.pol-rail-inner {
  display: grid;
  gap: 4px;
}

.pol-doc-link {
  position: relative;
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.pol-doc-link:hover {
  background: var(--ground-2);
  color: var(--ink);
}

.pol-doc-link[aria-current='page'] {
  padding-left: 40px;
  background: var(--tag);
  color: var(--tag-ink);
  font-weight: 720;
  --focus: var(--tag-ink);
}

.pol-doc-link[aria-current='page']::before {
  content: '';
  position: absolute;
  left: 15px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: 0 0 0 3px var(--tag-ring);
}

.pol-toc > summary {
  display: none;
}

.pol-toc ol {
  margin: 0;
  padding: 8px 0 18px;
  list-style: none;
}

.pol-toc:not([open]) ol {
  display: none;
}

.pol-toc a {
  display: grid;
  grid-template-columns: 30px 18px minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.pol-toc a:hover {
  background: var(--ground-2);
  color: var(--ink);
}

.pol-toc svg {
  align-self: center;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.pol-toc-n {
  justify-self: start;
  min-width: 26px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ground-2);
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.45;
  text-align: center;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.pol-toc a[aria-current='location'] {
  color: var(--ink);
  font-weight: 620;
}

.pol-toc a[aria-current='location'] .pol-toc-n {
  background: var(--tag);
  color: var(--tag-ink);
}

.pol-doc {
  min-width: 0;
  max-width: 880px;
  padding: 40px 0 128px;
}

.pol-doc h1 {
  font-stretch: 75%;
  font-weight: 870;
  font-size: 96px;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.pol-meta {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.pol-lede {
  max-width: 62ch;
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
}

.pol-key {
  --htag-bg: var(--stock);
  --htag-ink: var(--stock-ink);
  --htag-ink-2: var(--stock-ink-2);
  --htag-ring: var(--stock-ring);
  --focus: var(--stock-ink);
  --hole: 8px;
  --ring: 14px;
  --eye: 36px;
  position: relative;
  isolation: isolate;
  margin-top: 52px;
  padding: 34px 30px 26px 74px;
  color: var(--htag-ink);
  filter: drop-shadow(0 1px 1.5px var(--shadow-near)) drop-shadow(0 18px 30px var(--shadow-far));
}

.pol-key::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 20px;
  background: var(--htag-bg);
  clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%, 0 34px);
  -webkit-mask: radial-gradient(
    circle at var(--eye) var(--eye),
    #0000 var(--hole),
    #000 calc(var(--hole) + 0.6px)
  );
  mask: radial-gradient(
    circle at var(--eye) var(--eye),
    #0000 var(--hole),
    #000 calc(var(--hole) + 0.6px)
  );
}

.pol-key::after {
  content: '';
  position: absolute;
  left: calc(var(--eye) - var(--ring));
  top: calc(var(--eye) - var(--ring));
  width: calc(var(--ring) * 2);
  height: calc(var(--ring) * 2);
  border: calc(var(--ring) - var(--hole)) solid var(--htag-ring);
  border-radius: 50%;
  pointer-events: none;
}

.pol-key h2 {
  font-stretch: 75%;
  font-weight: 840;
  font-size: 34px;
  line-height: 1;
}

.pol-key-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--htag-ink-2);
}

.pol-key-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 20px;
  margin: 18px 0 0 -14px;
  padding: 0;
  list-style: none;
}

.pol-key-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 14px;
  align-content: start;
  height: 100%;
  padding: 14px 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.pol-key-item:hover,
.pol-key-item.is-previewed {
  background: var(--key-hover);
}

.pol-key-item svg {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  fill: currentColor;
}

.pol-key-title {
  font-size: 17px;
  font-weight: 680;
  line-height: 1.35;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

.pol-key-text {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--htag-ink-2);
}

.pol-key-item:hover .pol-key-title,
.pol-key-item.is-previewed .pol-key-title {
  text-decoration-line: underline;
}

.pol-preview {
  position: absolute;
  z-index: 4;
  max-width: 100%;
  padding: 16px 20px 18px;
  border-radius: 16px;
  background: var(--tag);
  color: var(--tag-ink);
  box-shadow:
    0 1px 2px var(--shadow-near),
    0 22px 40px -12px var(--shadow-far);
  opacity: 0;
  transform: translateY(6px) rotate(-0.6deg);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s var(--ease-out),
    transform 0.25s var(--ease-out),
    visibility 0s linear 0.18s;
  --focus: var(--tag-ink);
  --link-line: rgb(23 20 10 / 0.42);
}

.pol-preview.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.pol-pv-short {
  font-size: 17px;
  font-weight: 620;
  line-height: 1.4;
}

.pol-pv-body {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tag-ink-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.pol-pv-body[hidden] {
  display: none;
}

.pol-pv-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 680;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--link-line);
}

.pol-secs {
  margin-top: 112px;
}

.pol-sec {
  scroll-margin-top: 28px;
}

.pol-sec + .pol-sec {
  margin-top: 84px;
}

.pol-sec-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
}

.pol-sec-n {
  display: grid;
  place-items: center;
  align-self: start;
  width: 46px;
  height: 56px;
  padding-top: 12px;
  border-radius: 7px;
  background: var(--tag);
  color: var(--tag-ink);
  font-stretch: 75%;
  font-weight: 900;
  font-size: 23px;
  line-height: 1;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%, 0 12px);
  -webkit-mask: radial-gradient(circle at 50% 11px, #0000 3.5px, #000 4px);
  mask: radial-gradient(circle at 50% 11px, #0000 3.5px, #000 4px);
}

.pol-sec h2 {
  font-stretch: 75%;
  font-weight: 850;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.004em;
}

.pol-sec-head svg {
  width: 30px;
  height: 30px;
  margin-left: 24px;
  fill: var(--ink-3);
}

.pol-sec-short,
.pol-sec-body {
  margin-left: 64px;
}

.pol-sec-short {
  max-width: 62ch;
  margin-top: 18px;
  padding: 16px 20px 17px;
  border-radius: 14px;
  background: var(--tag-soft);
  color: var(--tag-soft-ink);
  font-size: 19px;
  font-weight: 560;
  line-height: 1.45;
}

.pol-sec-body {
  max-width: 68ch;
}

.pol-sec-body p {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.65;
}

.pol-sec-body ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pol-sec-body li {
  position: relative;
  margin-top: 8px;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.6;
}

.pol-sec-body li::before {
  content: '';
  position: absolute;
  top: 0.56em;
  left: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tag);
  box-shadow: inset 0 0 0 1.5px var(--tag-ink);
}

.pol-sec-body strong {
  font-weight: 680;
}

.pol-sec-body a,
.pol-lede a,
.pol-credit a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.pol-sec-body table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}

.pol-sec-body th {
  padding: 0 16px 10px;
  font-size: 13px;
  font-weight: 680;
  text-align: left;
  color: var(--ink-2);
}

.pol-sec-body td {
  padding: 12px 16px;
  vertical-align: top;
}

.pol-sec-body tbody tr:nth-child(odd) {
  background: var(--ground-2);
}

.pol-sec-body tbody tr > :first-child {
  border-radius: 10px 0 0 10px;
}

.pol-sec-body tbody tr > :last-child {
  border-radius: 0 10px 10px 0;
}

.pol-sec-body td:first-child {
  width: 44%;
  font-weight: 600;
}

.pol-close {
  --htag-bg: var(--tag);
  --htag-ring: var(--tag-ring);
  --focus: var(--tag-ink);
  --ph-bg: #fffbea;
  --ph-ink: #3a3008;
  --ph-edge: #ad8a0b;
  --c: 44px;
  --eye-x: 40px;
  --hole: 10px;
  --ring: 18px;
  position: relative;
  isolation: isolate;
  margin-top: 112px;
  padding: 44px 110px 46px 48px;
  color: var(--tag-ink);
  filter: drop-shadow(0 1px 1.5px var(--shadow-near)) drop-shadow(0 18px 30px var(--shadow-far));
}

.pol-close::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 18px;
  background: var(--htag-bg);
  clip-path: polygon(
    0 0,
    calc(100% - var(--c)) 0,
    100% var(--c),
    100% calc(100% - var(--c)),
    calc(100% - var(--c)) 100%,
    0 100%
  );
  -webkit-mask: radial-gradient(
    circle at calc(100% - var(--eye-x)) 50%,
    #0000 var(--hole),
    #000 calc(var(--hole) + 0.6px)
  );
  mask: radial-gradient(
    circle at calc(100% - var(--eye-x)) 50%,
    #0000 var(--hole),
    #000 calc(var(--hole) + 0.6px)
  );
}

.pol-close::after {
  content: '';
  position: absolute;
  right: calc(var(--eye-x) - var(--ring));
  top: calc(50% - var(--ring));
  width: calc(var(--ring) * 2);
  height: calc(var(--ring) * 2);
  border: calc(var(--ring) - var(--hole)) solid var(--htag-ring);
  border-radius: 50%;
  pointer-events: none;
}

.pol-close h2 {
  font-stretch: 75%;
  font-weight: 870;
  font-size: 52px;
  line-height: 0.96;
}

.pol-close p {
  max-width: 60ch;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--tag-ink-2);
}

.pol-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.pol-close .btn {
  background: var(--tag-ink);
  color: var(--tag);
}

.pol-close .btn-quiet {
  background: transparent;
  color: var(--tag-ink);
}

.pol-credit {
  max-width: 68ch;
  margin-top: 56px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

@media (max-width: 1279px) {
  .pol {
    grid-template-columns: 232px minmax(0, 1fr);
    column-gap: 48px;
  }

  .pol-doc h1 {
    font-size: 84px;
  }
}

@media (max-width: 1099px) {
  .pol {
    grid-template-columns: minmax(0, 1fr);
  }

  .pol-rail {
    position: static;
    max-height: none;
    overflow: visible;
    margin: 0;
    padding: 20px 0 0;
  }

  .pol-rail-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
  }

  .pol-doc-link {
    padding: 9px 14px;
    font-size: 15px;
  }

  .pol-doc-link[aria-current='page'] {
    padding-left: 36px;
  }

  .pol-doc-link[aria-current='page']::before {
    left: 13px;
  }

  .pol-toc {
    flex-basis: 100%;
    order: 10;
    margin-top: 6px;
  }

  .pol-toc > summary {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ground-2);
    font-size: 15px;
    font-weight: 680;
    cursor: pointer;
    list-style: none;
  }

  .pol-toc > summary::-webkit-details-marker {
    display: none;
  }

  .pol-toc-count {
    font-weight: 500;
    color: var(--ink-2);
  }

  .pol-toc ol {
    padding: 10px 0 6px;
  }

  .pol-doc {
    padding-top: 36px;
  }

  .pol-doc h1 {
    font-size: 68px;
  }

  .pol-preview {
    display: none;
  }
}

@media (max-width: 720px) {
  .pol-doc h1 {
    font-size: 52px;
  }

  .pol-lede {
    font-size: 17px;
  }

  .pol-key {
    margin-top: 40px;
    padding: 64px 18px 18px;
  }

  .pol-key-list {
    grid-template-columns: minmax(0, 1fr);
    margin-left: -8px;
    margin-right: -8px;
  }

  .pol-key-item {
    padding: 12px 8px 14px;
  }

  .pol-secs {
    margin-top: 80px;
  }

  .pol-sec + .pol-sec {
    margin-top: 64px;
  }

  .pol-sec-head {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .pol-sec-n {
    width: 40px;
    height: 50px;
    font-size: 20px;
  }

  .pol-sec h2 {
    font-size: 32px;
  }

  .pol-sec-head svg {
    width: 26px;
    height: 26px;
    margin-left: 14px;
  }

  .pol-sec-short,
  .pol-sec-body {
    margin-left: 0;
  }

  .pol-sec-short {
    font-size: 18px;
  }

  .pol-sec-body p,
  .pol-sec-body li {
    font-size: 16px;
  }

  .pol-sec-body table {
    font-size: 15px;
  }

  .pol-sec-body th,
  .pol-sec-body td {
    padding-left: 10px;
    padding-right: 10px;
  }

  .pol-close {
    --c: 26px;
    --eye-y: 30px;
    margin-top: 80px;
    padding: 66px 22px 28px;
  }

  .pol-close::before {
    clip-path: polygon(
      var(--c) 0,
      calc(100% - var(--c)) 0,
      100% var(--c),
      100% 100%,
      0 100%,
      0 var(--c)
    );
    -webkit-mask: radial-gradient(
      circle at 50% var(--eye-y),
      #0000 var(--hole),
      #000 calc(var(--hole) + 0.6px)
    );
    mask: radial-gradient(
      circle at 50% var(--eye-y),
      #0000 var(--hole),
      #000 calc(var(--hole) + 0.6px)
    );
  }

  .pol-close::after {
    right: auto;
    left: calc(50% - var(--ring));
    top: calc(var(--eye-y) - var(--ring));
  }

  .pol-close h2 {
    font-size: 40px;
  }
}
