/* Sheet body: field boxes, order rows, matrix */

.wo_main > * {
    margin-top: 0;
    margin-bottom: 0;
}

.wo_main h2 {
    font-family: var(--wo-head-font);
    font-weight: 700;
    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.15;
    color: var(--wo-night);
    margin: 0 0 14px;
}

.wo_main h3 {
    font-family: var(--wo-head-font);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.25;
    color: var(--wo-night);
    margin: 22px 0 8px;
}

.wo_main p,
.wo_main ul,
.wo_main ol {
    margin: 0 0 14px;
    max-width: 68ch;
}

.wo_main li {
    margin-bottom: 6px;
}

.wo_main li::marker {
    color: var(--wo-green);
}

.wo_main .wo_label {
    font: 600 13px/1.3 var(--wo-head-font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wo-muted);
    margin: 0 0 8px;
}

.wo_field {
    background: var(--wo-box);
    border: 2px solid var(--wo-night);
    border-radius: 2px;
    padding: clamp(18px, 3vw, 32px);
}

.wo_field > :last-child {
    margin-bottom: 0;
}

.wo_field h2 {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wo_code {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 34px;
    padding: 0 8px;
    margin-top: -1px;
    background: var(--wo-night);
    color: var(--wo-lime);
    font-family: var(--wo-head-font);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.wo_answer {
    background: var(--wo-sheet);
    border-left: 6px solid var(--wo-green);
    padding: 14px 18px;
    font-size: 18px;
}

.wo_main .wo_answer {
    max-width: none;
}

.wo_note {
    color: var(--wo-muted);
    font-size: 15px;
}

.wo_orders {
    border: 2px solid var(--wo-night);
    background: var(--wo-sheet);
}

.wo_orders > h2 {
    background: var(--wo-night);
    color: #fff;
    margin: 0;
    padding: 12px 18px;
    font-size: 17px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wo_row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    align-items: baseline;
    padding: 18px;
    border-top: 2px solid var(--wo-grid);
}

.wo_orders > h2 + .wo_row {
    border-top: 0;
}

.wo_row .wo_code {
    align-self: flex-start;
}

.wo_row h3 {
    margin: 0;
    flex: 1 1 240px;
    font-size: 22px;
}

.wo_row p {
    flex: 1 1 100%;
    margin: 0;
}

.wo_row a {
    font-family: var(--wo-head-font);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.wo_scroll {
    overflow-x: auto;
    border: 2px solid var(--wo-night);
    background: var(--wo-sheet);
}

.wo_scroll:focus-visible {
    outline: 3px solid var(--wo-green);
    outline-offset: 3px;
}

.wo_table,
.wo_matrix {
    border-collapse: collapse;
    width: 100%;
    font-variant-numeric: tabular-nums;
}

.wo_matrix {
    min-width: 520px;
}

.wo_table caption,
.wo_matrix caption {
    caption-side: top;
    text-align: left;
    padding: 12px 14px;
    font: 600 14px/1.35 var(--wo-head-font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wo-night);
    background: var(--wo-box);
    border-bottom: 2px solid var(--wo-night);
}

.wo_table th,
.wo_table td,
.wo_matrix th,
.wo_matrix td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--wo-grid);
    text-align: left;
    vertical-align: top;
}

.wo_table thead th,
.wo_matrix thead th {
    font: 700 14px/1.2 var(--wo-head-font);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wo-night);
    border-bottom: 2px solid var(--wo-night);
}

.wo_table tbody th,
.wo_matrix tbody th {
    font-weight: 400;
}

.wo_matrix thead th:not(:first-child),
.wo_matrix td {
    text-align: center;
    width: 15%;
}

.wo_tick {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    position: relative;
}

.wo_tick[data-state="done"] {
    background: var(--wo-green);
    border: 2px solid var(--wo-night);
}

.wo_tick[data-state="done"]::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid var(--wo-lime);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.wo_tick[data-state="open"]::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    top: 11px;
    height: 2px;
    background: var(--wo-muted);
}

.wo_main .wo_key {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding: 12px 14px;
    margin: 0;
    font-size: 15px;
    color: var(--wo-muted);
    border-top: 2px solid var(--wo-night);
}

.wo_key span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wo_ask {
    background: var(--wo-sheet);
    border: 2px dashed var(--wo-green);
    padding: clamp(18px, 3vw, 28px);
}

.wo_ask h2 {
    font-size: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wo_ask ol {
    padding-left: 0;
    list-style: none;
    counter-reset: ask;
}

.wo_ask li {
    counter-increment: ask;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.wo_ask li::before {
    content: counter(ask, decimal-leading-zero);
    font: 700 15px/1.7 var(--wo-head-font);
    color: var(--wo-green);
    font-variant-numeric: tabular-nums;
}

.wo_ask > :last-child {
    margin-bottom: 0;
}

.wo_photo {
    margin: 0 0 16px;
    border: 2px solid var(--wo-night);
    background: var(--wo-sheet);
}

.wo_photo figcaption {
    padding: 10px 14px;
    font-size: 15px;
    color: var(--wo-muted);
}

.wo_zones {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0;
    border: 2px solid var(--wo-night);
    background: var(--wo-sheet);
}

.wo_main .wo_zones {
    max-width: none;
}

.wo_zones li {
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--wo-grid);
}

.wo_zones li:last-child {
    border-bottom: 0;
}

.wo_zones b {
    display: block;
    font-family: var(--wo-head-font);
    letter-spacing: 0.04em;
    color: var(--wo-night);
}

.wo_src {
    border-top: 2px solid var(--wo-night);
    padding-top: 18px;
}

.wo_src h2 {
    font-size: 17px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wo_src ul {
    font-size: 15px;
}

.wo_jump {
    border: 2px solid var(--wo-night);
    background: var(--wo-sheet);
    padding: 16px 18px;
}

.wo_jump ol {
    margin: 0;
    columns: 2 220px;
    column-gap: 28px;
}

.wo_close {
    background: var(--wo-night);
    color: #fff;
    padding: clamp(22px, 4vw, 40px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
}

.wo_close h2 {
    color: #fff;
    margin: 0 0 6px;
}

.wo_close p {
    color: var(--wo-pale);
    margin: 0;
}

.wo_close a:focus-visible {
    outline-color: var(--wo-lime);
}

.wo_foot {
    margin-top: clamp(32px, 6vw, 64px);
    background: var(--wo-night);
    color: var(--wo-pale);
    padding: 32px var(--wo-edge) 40px;
    border-top: 6px solid var(--wo-lime);
}

.wo_foot p {
    margin: 0 0 14px;
    font: 700 18px/1.2 var(--wo-head-font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.wo_foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.wo_foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--wo-pale);
    font-family: var(--wo-head-font);
    letter-spacing: 0.04em;
}

.wo_foot a:hover {
    color: var(--wo-lime);
}

.wo_foot a:focus-visible {
    outline-color: var(--wo-lime);
}

@media (min-width: 560px) {
    .wo_row p {
        flex: 1 1 320px;
    }

    .wo_zones {
        grid-template-columns: 1fr 1fr;
    }

    .wo_zones li:nth-child(odd) {
        border-right: 1px solid var(--wo-grid);
    }
}

@media (min-width: 920px) {
    .wo_row {
        flex-wrap: nowrap;
        padding: 20px 24px;
    }

    .wo_row h3 {
        flex: 0 0 260px;
    }

    .wo_row p {
        flex: 1 1 auto;
    }

    .wo_row a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .wo_pair {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: var(--wo-gap);
        align-items: start;
    }
}

@media (min-width: 1280px) {
    .wo_main {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .wo_main > * {
        grid-column: 1 / -1;
    }

    .wo_main > .wo_field,
    .wo_main > .wo_ask,
    .wo_main > .wo_src,
    .wo_main > .wo_jump {
        grid-column: 1 / span 10;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .wo_call,
    .wo_foot a,
    .wo_nav a {
        transition: background-color 0.15s ease, color 0.15s ease;
    }
}

@media print {
    body {
        background: #fff;
        padding-bottom: 0;
    }

    .wo_head {
        position: static;
    }

    .wo_callbar,
    .wo_skip {
        display: none;
    }

    .wo_band,
    .wo_close,
    .wo_foot {
        background: #fff;
        color: #000;
    }
}
