/* The document follows the Word file's reading order and figure groupings. */
.eyedle-detail {
  --eyedle-heading: #f0eee7;
  --eyedle-chapter: #c7daa1;
  --eyedle-subheading: #d5dfc3;
  --eyedle-copy: #cecfc8;
  --eyedle-muted: #a8ada1;
  --eyedle-rule: #3c4238;
  font-family: "Segoe UI", Arial, sans-serif;
  padding-bottom: 72px;
}

.eyedle-detail > .detail-nav {
  gap: 16px;
}

.eyedle-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  max-width: 840px;
  margin: 22px auto 0;
  padding: 12px 0 17px;
  border-bottom: 1px solid var(--eyedle-rule);
  color: var(--eyedle-muted);
  font-size: 13px;
  line-height: 1.6;
}

.eyedle-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-block: 5px;
  text-underline-offset: 5px;
}

.eyedle-toc a:hover {
  color: var(--eyedle-chapter);
  text-decoration: underline;
}

.eyedle-document {
  width: 100%;
  max-width: 840px;
  min-width: 0;
  margin: 34px auto 0;
  color: var(--eyedle-copy);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.eyedle-document :is(h1, h2, h3, h4) {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 650;
  line-height: 1.35;
  text-wrap: balance;
  scroll-margin-top: 28px;
}

.eyedle-document h1 {
  margin: 0 0 24px;
  color: var(--eyedle-heading);
  font-size: clamp(32px, 4vw, 40px);
  letter-spacing: -.035em;
}

.eyedle-document h2 {
  margin: 42px 0 17px;
  color: var(--eyedle-chapter);
  font-size: 26px;
  letter-spacing: -.02em;
}

.eyedle-document h3 {
  margin: 28px 0 13px;
  color: var(--eyedle-subheading);
  font-size: 21px;
  letter-spacing: -.012em;
}

.eyedle-document h4 {
  margin: 23px 0 10px;
  color: var(--eyedle-subheading);
  font-size: 18px;
}

.eyedle-document p {
  margin: 0 0 14px;
}

.eyedle-document strong,
.eyedle-document b {
  color: #e7e9df;
  font-weight: 650;
}

.eyedle-document :is(h1, h2, h3, h4) strong {
  color: inherit;
  font-weight: inherit;
}

.eyedle-document :is(ul, ol) {
  margin: 0 0 18px;
  padding-left: 1.5em;
}

.eyedle-document li + li {
  margin-top: 7px;
}

.eyedle-document a:not(.eyedle-picture) {
  color: #c7dda9;
  text-decoration: underline;
  text-decoration-color: #c7dda966;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.eyedle-document a:not(.eyedle-picture):hover {
  color: #e4efcf;
  text-decoration-color: currentColor;
}

.eyedle-document .eyedle-reference,
.eyedle-document .eyedle-source-link {
  color: var(--eyedle-muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.eyedle-document .eyedle-reference {
  margin-bottom: 10px;
}

.eyedle-figures {
  --eyedle-figure-gap: clamp(12px, 2vw, 20px);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--group-gap, 2.5%);
  width: min(100%, var(--group-width, 100%));
  min-width: 0;
  margin: 24px auto 28px;
}

.eyedle-figure-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.eyedle-figures[data-kind="screenshots"] {
  display: grid;
  grid-template-columns: repeat(var(--figure-columns), minmax(0, 1fr));
  align-items: start;
  gap: var(--eyedle-figure-gap);
  width: 100%;
}

.eyedle-figures[data-kind="screenshots"][data-count="1"] {
  max-width: 280px;
}

.eyedle-figures[data-kind="screenshots"][data-count="2"] {
  max-width: 560px;
}

.eyedle-figures[data-kind="screenshots"][data-count="3"] {
  max-width: 760px;
}

/* The Search screen and reward illustration need less space between them than in Word. */
#eyedle-block-053 {
  align-items: center;
  gap: clamp(24px, 6vw, 56px);
  width: min(100%, 560px);
}

#eyedle-block-053 > .eyedle-picture {
  flex-basis: 0;
  flex-grow: 1;
}

#eyedle-block-053 > .eyedle-picture:last-child {
  flex-grow: .72;
}

.eyedle-picture {
  display: block;
  flex: var(--picture-flex, 1) 1 0;
  min-width: 0;
  max-width: 100%;
  border-radius: 3px;
  outline: 1px solid transparent;
  outline-offset: 3px;
  cursor: zoom-in;
}

.eyedle-picture:hover {
  outline-color: #c7daa18c;
}

.eyedle-picture:focus-visible {
  outline: 2px solid var(--eyedle-chapter);
  outline-offset: 4px;
}

.eyedle-picture-frame {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 3px;
}

.eyedle-picture-frame img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.eyedle-level-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5%;
  margin: 20px 0 8px;
  color: var(--eyedle-subheading);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.eyedle-level-labels + .eyedle-figures {
  margin-top: 8px;
}

.eyedle-document .eyedle-equipment-label {
  margin: 21px 0 8px;
  color: var(--eyedle-subheading);
  font-size: 16px;
  font-weight: 600;
}

.eyedle-equipment-label + .eyedle-figures {
  margin-top: 10px;
}

.eyedle-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin: 20px 0 25px;
  border: 1px solid var(--eyedle-rule);
  border-radius: 3px;
  overscroll-behavior-x: contain;
  scrollbar-color: #647055 #20231e;
  scrollbar-width: thin;
}

.eyedle-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--eyedle-copy);
  font-size: 14px;
  line-height: 1.65;
}

.eyedle-table-wrap :is(th, td) {
  padding: 11px 13px;
  border-right: 1px solid var(--eyedle-rule);
  border-bottom: 1px solid var(--eyedle-rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.eyedle-table-wrap :is(th, td):last-child {
  border-right: 0;
}

.eyedle-table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}

.eyedle-table-wrap th {
  color: #d9e7c5;
  background: #282e24;
  font-weight: 650;
}

.eyedle-table-wrap td {
  background: #1c1f1b;
}

.eyedle-table-wrap p {
  margin: 0 0 8px;
}

.eyedle-table-wrap p:last-child {
  margin-bottom: 0;
}

.eyedle-extra-media {
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
}

.eyedle-extra-media figure + figure {
  margin-top: 24px;
}

.eyedle-extra-media :is(img, video) {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.eyedle-extra-media figcaption {
  margin-top: 9px;
  color: var(--eyedle-muted);
  font-size: 13px;
  line-height: 1.65;
}

.eyedle-extra-media[data-format="portrait"] {
  width: min(100%, 520px);
  margin-inline: auto;
}

.eyedle-extra-media video {
  background: #111410;
}


.eyedle-clip-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 12px;
}
.eyedle-document .eyedle-clip-heading h4 {
  margin: 0;
  font-size: 18px;
}
.eyedle-clip-heading > span {
  color: var(--eyedle-muted);
  font-size: 11px;
}

.eyedle-clip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 8px;
  font-size: 12px;
}

.eyedle-clip-actions button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--eyedle-rule);
  border-radius: 4px;
  color: var(--eyedle-subheading);
  background: #ffffff06;
  cursor: pointer;
}

.eyedle-clip-actions button:hover {
  border-color: var(--eyedle-chapter);
  background: #c7daa110;
}

@media (max-width: 680px) {
  .eyedle-detail {
    padding-bottom: 45px;
  }

  .eyedle-toc {
    gap: 2px 18px;
    margin-top: 14px;
    padding-bottom: 13px;
    font-size: 12px;
  }

  .eyedle-document {
    margin-top: 28px;
    font-size: 15px;
  }

  .eyedle-document h1 {
    font-size: 32px;
    margin-bottom: 21px;
  }

  .eyedle-document h2 {
    margin-top: 34px;
    font-size: 24px;
  }

  .eyedle-document h3 {
    font-size: 20px;
  }

  .eyedle-figures {
    margin-block: 18px 21px;
  }

  .eyedle-figures[data-kind="screenshots"] {
    width: 100%;
  }

  .eyedle-figures[data-kind="screenshots"]:is([data-count="3"], [data-count="4"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .eyedle-figures[data-kind="screenshots"][data-count="3"] > .eyedle-picture:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--eyedle-figure-gap)) / 2);
  }

  .eyedle-table-wrap :is(th, td) {
    padding: 10px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyedle-detail *,
  .eyedle-detail *::before,
  .eyedle-detail *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .eyedle-detail {
    --eyedle-heading: #171b15;
    --eyedle-chapter: #314d25;
    --eyedle-subheading: #3c5132;
    --eyedle-copy: #292c27;
    --eyedle-muted: #555d51;
    --eyedle-rule: #bbc1b7;
    padding: 0;
  }

  .eyedle-detail > .detail-nav,
  .eyedle-toc {
    display: none;
  }

  .eyedle-document {
    max-width: none;
    margin: 0;
    font-size: 11pt;
  }

  .eyedle-document :is(h1, h2, h3, h4) {
    break-after: avoid;
  }

  .eyedle-figures,
  .eyedle-extra-media figure,
  .eyedle-table-wrap tr {
    break-inside: avoid;
  }

  .eyedle-table-wrap {
    overflow: visible;
  }

  .eyedle-table-wrap table {
    min-width: 0;
    font-size: 9pt;
  }

  .eyedle-table-wrap :is(th, td) {
    color: #292c27;
    background: transparent;
  }

  .eyedle-document :is(strong, b, a:not(.eyedle-picture)) {
    color: #25391c;
  }
}
