/* Identity: university research-report family ("Where the Instrument Stands",
       WeasyPrint/DejaVu). DejaVu Serif is not installed on this machine;
       PT Serif is the substituted body face and Verdana substitutes for
       DejaVu Sans inside the figures. */
    @page {
      size: A4;
      margin: 17mm;
      @bottom-right {
        content: counter(page);
        font-family: "PT Serif", "Charter", "Georgia", serif;
        font-size: 8pt;
        color: #717171;
      }
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      color: #111111;
      background: #ffffff;
      font-family: "PT Serif", "Charter", "Georgia", serif;
      font-size: 10.5pt;
      line-height: 1.5;
      text-align: left;
      counter-reset: sec;
    }

    h1,
    h2,
    h3 {
      color: #111111;
      font-weight: 700;
      letter-spacing: 0;
      page-break-after: avoid;
    }

    h1 {
      font-size: 18pt;
      line-height: 1.15;
      margin: 0 0 5pt 0;
    }

    .meta {
      color: #3f3f3f;
      font-size: 11pt;
      line-height: 1.5;
      margin: 0 0 10pt 0;
    }

    .title-rule {
      border: none;
      border-top: 1.1pt solid #111111;
      margin: 0 0 20pt 0;
    }

    h2 {
      font-size: 13pt;
      line-height: 1.2;
      margin: 22pt 0 10pt 0;
      counter-increment: sec;
      counter-reset: subsec;
    }

    h2::before {
      content: counter(sec);
      margin-right: 0.68em;
    }

    h3 {
      font-size: 11.5pt;
      line-height: 1.2;
      margin: 16pt 0 8pt 0;
      counter-increment: subsec;
    }

    h3::before {
      content: counter(sec) "." counter(subsec);
      margin-right: 0.68em;
    }

    p {
      margin: 0 0 9pt 0;
    }

    ul {
      margin: 9pt 0 9pt 0;
      padding: 0 0 0 14pt;
    }

    li {
      margin-bottom: 5pt;
    }

    .figure {
      margin: 14pt 0 14pt 0;
      page-break-inside: avoid;
    }

    .figure svg {
      display: block;
      width: 100%;
      height: auto;
    }

    .figure-caption {
      font-size: 9.5pt;
      line-height: 1.45;
      color: #555555;
      margin-top: 8pt;
    }

    .figure-caption strong {
      font-weight: 400;
      color: #555555;
    }

    .table-scroll {
      overflow-x: auto;
    }

    .cohort-evidence-table {
      width: 100%;
      border-collapse: collapse;
      font-family: Verdana, Arial, sans-serif;
      font-size: 0.86rem;
      font-variant-numeric: tabular-nums;
    }

    .cohort-evidence-table th,
    .cohort-evidence-table td {
      padding: 0.7rem 0.75rem;
      border-bottom: 1px solid #c8c8c8;
      text-align: right;
      vertical-align: top;
    }

    .cohort-evidence-table th:first-child,
    .cohort-evidence-table td:first-child {
      text-align: left;
    }

    .cohort-evidence-table thead th {
      border-top: 1px solid #111111;
      border-bottom: 1px solid #111111;
    }

    @media screen {
      html {
        background: #efeee9;
      }

      body {
        width: min(100%, 980px);
        min-height: 100vh;
        margin: 0 auto;
        padding: clamp(32px, 6vw, 72px) clamp(24px, 7vw, 84px) 96px;
        background: #ffffff;
        box-shadow: 0 0 36px rgb(17 17 17 / 8%);
        font-size: 17px;
        line-height: 1.68;
      }

      h1 {
        max-width: 18ch;
        font-size: clamp(2rem, 5vw, 3.15rem);
        line-height: 1.08;
        letter-spacing: -0.025em;
        margin-bottom: 0.4rem;
      }

      .meta {
        font-size: 0.96rem;
        margin-bottom: 1rem;
      }

      .title-rule {
        margin-bottom: clamp(2.75rem, 7vw, 4.75rem);
      }

      h2 {
        font-size: clamp(1.35rem, 2.5vw, 1.65rem);
        line-height: 1.25;
        margin: 3.5rem 0 1.1rem;
      }

      h3 {
        font-size: 1.16rem;
        line-height: 1.35;
        margin: 2.4rem 0 0.9rem;
      }

      p {
        margin-bottom: 1.15rem;
      }

      ul {
        padding-left: 1.3rem;
        margin: 1.2rem 0 1.6rem;
      }

      li {
        margin-bottom: 0.7rem;
      }

      .figure {
        margin: 2.5rem 0 2.75rem;
      }

      .figure-caption {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-top: 1rem;
      }

      a {
        color: #173e70;
        text-decoration-thickness: 0.08em;
        text-underline-offset: 0.16em;
      }

      a:hover {
        color: #0b2545;
      }

      .term {
        position: relative;
        color: inherit;
        text-decoration-line: underline;
        text-decoration-style: dotted;
        text-decoration-color: #66788c;
        cursor: help;
      }

      .term::after {
        content: attr(data-definition);
        position: absolute;
        z-index: 10;
        left: 50%;
        bottom: calc(100% + 12px);
        width: min(330px, calc(100vw - 48px));
        padding: 0.8rem 0.95rem;
        border: 1px solid #b9c1c9;
        border-radius: 4px;
        background: #111820;
        color: #ffffff;
        box-shadow: 0 12px 32px rgb(17 24 32 / 22%);
        font-family: Verdana, Arial, sans-serif;
        font-size: 0.82rem;
        font-weight: 400;
        line-height: 1.45;
        letter-spacing: 0;
        text-align: left;
        text-decoration: none;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 5px);
        transition: opacity 120ms ease, transform 120ms ease;
      }

      .term:hover::after,
      .term:focus-visible::after {
        opacity: 1;
        transform: translate(-50%, 0);
      }

      .term:focus-visible {
        border-radius: 2px;
        outline: 2px solid #173e70;
        outline-offset: 3px;
      }

      .external-link::after {
        content: ' \2197';
        font-family: Verdana, Arial, sans-serif;
        font-size: 0.78em;
        text-decoration: none;
      }

      .glossary-list {
        display: grid;
        gap: 1.25rem;
        padding-left: 0;
        list-style: none;
      }

      .glossary-entry {
        margin: 0;
        scroll-margin-top: 2rem;
      }

      .glossary-entry > strong {
        display: block;
        margin-bottom: 0.18rem;
      }

      .glossary-entry:target {
        margin-inline: -0.75rem;
        padding: 0.55rem 0.75rem;
        border-left: 3px solid #173e70;
        background: #edf3f8;
      }

      .read-more {
        white-space: nowrap;
      }

    }

    @media screen and (max-width: 640px) {
      html {
        background: #ffffff;
      }

      body {
        padding: 28px 20px 72px;
        box-shadow: none;
        font-size: 16px;
      }

      h2 {
        margin-top: 3rem;
      }

      .term::after {
        display: none;
      }
    }
