.main.marking-guide {
    --guide-ink: #173149;
    --guide-accent: #006975;
    --guide-line: #d5e4e7;
    --guide-tint: #edf5f6;
    --guide-offset: 140px;
    overflow: visible;
    padding-block: clamp(18px, 4vw, 48px);
    color: var(--guide-ink);
    font: 16px/1.6 'Nunito Sans', system-ui, sans-serif;
}

.marking-guide :is(.marking-guide__intro, .marking-guide__toc, .marking-guide__chapter:not(#setup)) {
    -webkit-user-select: none;
    user-select: none;
}

.marking-guide > .container {
    max-width: 1320px;
    padding-inline: clamp(16px, 3vw, 40px);
}

.marking-guide a {
    color: var(--guide-accent);
    text-decoration: underline;
    text-underline-offset: .18em;
}

.marking-guide :focus-visible {
    outline: 2px solid var(--guide-accent);
    outline-offset: 3px;
}

.marking-guide [id] {
    scroll-margin-top: var(--guide-offset);
}

.marking-guide__intro {
    margin-bottom: clamp(16px, 2.4vw, 24px);
    padding: clamp(14px, 2.3vw, 24px);
    border-top: 4px solid var(--guide-accent);
    background: var(--guide-tint);
}

.marking-guide__intro p {
    margin: 0;
}

.marking-guide h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 800;
    line-height: 1.12;
}

.marking-guide__lead {
    font-size: clamp(1rem, 1.6vw, 1.125rem);
}

.marking-guide__intro .marking-guide__audience {
    margin-top: 6px;
    color: #435c6c;
}

.marking-guide__jump {
    display: none;
}

.marking-guide__layout {
    display: grid;
    grid-template-columns: minmax(205px, 245px) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 44px);
    align-items: start;
}

.marking-guide__sidebar {
    display: grid;
    gap: 10px;
}

.marking-guide__toc {
    padding: 10px 12px;
    border: 1px solid var(--guide-line);
    border-radius: 6px;
    background: #fff;
    font-size: .875rem;
    line-height: 1.35;
}

.marking-guide__toc h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.marking-guide__toc ol {
    margin: 3px 0 0;
}

.marking-guide__toc a {
    padding-block: 2px;
    display: inline-block;
}

@media (min-width: 901px) and (min-height: 740px) {
    .marking-guide__sidebar {
        position: sticky;
        top: var(--guide-offset);
    }
}

.marking-guide__actions {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--guide-line);
    border-radius: 6px;
    background: var(--guide-tint);
}

.marking-guide__contacts {
    display: grid;
    justify-items: center;
    margin: 2px 0 0;
    padding-top: 6px;
    border-top: 1px solid var(--guide-line);
    font-size: .875rem;
    font-style: normal;
    line-height: 1.45;
}

.marking-guide__contacts a {
    padding-block: 3px;
}

.marking-guide .marking-guide__action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--guide-accent);
    border-radius: 5px;
    background: #fff;
    color: var(--guide-accent);
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.marking-guide .marking-guide__action--primary {
    background: var(--guide-accent);
    color: #fff;
}

.marking-guide .marking-guide__action:hover {
    text-decoration: underline;
}

.marking-guide__content {
    min-width: 0;
    overflow-wrap: break-word;
}

.marking-guide__chapter {
    margin-bottom: clamp(24px, 5vw, 58px);
    padding: clamp(16px, 3vw, 32px);
    border: 1px solid var(--guide-line);
    border-radius: 6px;
    background: #fff;
}

.marking-guide__chapter h2 {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 2.7vw, 2rem);
    line-height: 1.2;
}

.marking-guide__chapter h3 {
    margin: 24px 0 8px;
    font-size: 1.125rem;
    line-height: 1.35;
}

.marking-guide__chapter p {
    margin: 0 0 14px;
}

.marking-guide__chapter > :is(p, ul, ol) {
    max-inline-size: 77ch;
}

.marking-guide :is(ul, ol) {
    padding-inline-start: 1.4em;
}

.marking-guide ol {
    list-style: decimal outside;
}

.marking-guide ul {
    list-style: disc outside;
}

.marking-guide__content li + li {
    margin-top: 8px;
}

.marking-guide__table {
    overflow-x: auto;
    margin-block: 16px;
}

.marking-guide__table table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: .9375rem;
    line-height: 1.5;
}

.marking-guide__table caption {
    padding-bottom: 8px;
    text-align: left;
    font-weight: 800;
}

.marking-guide__table :is(th, td) {
    padding: 10px 12px;
    border-bottom: 1px solid var(--guide-line);
    text-align: left;
    vertical-align: top;
}

.marking-guide__table thead th {
    border-bottom: 2px solid #82b9bf;
    background: var(--guide-tint);
}

.marking-guide__table tbody tr:nth-child(even) {
    background: #f3f7f8;
}

.marking-guide__note,
.marking-guide__example {
    margin-block: 16px;
    padding: 14px 16px;
    border-inline-start: 3px solid #82b9bf;
    background: var(--guide-tint);
}

.marking-guide__example h3 {
    margin-top: 0;
}

.marking-guide :is(.marking-guide__note, .marking-guide__example) p {
    margin: 0;
}

.marking-guide__question {
    margin-bottom: 8px;
    border: 1px solid var(--guide-line);
    border-radius: 5px;
}

.marking-guide__question summary {
    padding: 12px;
    cursor: pointer;
    font-weight: 800;
}

.marking-guide__question summary:hover,
.marking-guide__question[open] summary {
    background: var(--guide-tint);
}

.marking-guide__question p {
    margin: 0;
    padding: 12px;
}

.marking-guide__back {
    display: inline-block;
    margin-top: 8px;
    font-size: .9375rem;
}

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

    .marking-guide__toc ol {
        columns: 2;
        column-gap: 28px;
    }

    .marking-guide__toc li {
        break-inside: avoid;
    }

    .marking-guide__jump {
        display: inline-block;
        margin-top: 12px;
    }
}

@media (max-width: 520px) {
    .marking-guide__chapter {
        padding-inline: 12px;
    }

    .marking-guide__toc ol {
        columns: 1;
    }

    .marking-guide__table table:has(thead th:nth-child(2):last-child) {
        min-width: 0;
    }
}

.marking-guide__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.marking-guide__chapter:not(#dates) {
    margin-bottom: 6px;
    padding: 0;
}

.marking-guide__panel > summary {
    padding: 10px clamp(12px, 2vw, 24px);
    line-height: 1.35;
    cursor: pointer;
    color: var(--guide-accent);
}

.marking-guide__panel > summary:hover,
.marking-guide__panel[open] > summary {
    background: var(--guide-tint);
}

.marking-guide__panel > summary h2 {
    display: inline;
    margin: 0;
    color: var(--guide-ink);
    font-size: clamp(1rem, 1.65vw, 1.25rem);
    line-height: inherit;
}

.marking-guide__panel-body {
    padding: 16px clamp(12px, 3vw, 32px);
}

.marking-guide__panel-body > :is(p, ul, ol) {
    max-inline-size: 77ch;
}
