/* Corporate front matter uses the same proportions in the reader and A4 print. */
.dc-corporate-sheet {
    container-type: inline-size;
    background: #fff;
    color: var(--dc-text, #17251d);
    overflow: hidden;
}
.dc-corporate-layout {
    --corporate-ink: var(--dc-deep, #103e2a);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 4cqw;
    width: 100%;
    height: 100%;
    padding: 6cqw;
    box-sizing: border-box;
}
.dc-corporate-masthead,
.dc-corporate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5cqw;
    font-size: 2.25cqw;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.dc-corporate-masthead {
    padding-block-end: 2.6cqw;
    border-block-end: 1px solid var(--dc-line, #e5e9e2);
}
.dc-corporate-masthead img {
    width: min(var(--corporate-logo-width, 35cqw), 55%);
    height: 9cqw;
    object-fit: contain;
    object-position: left center;
}
[dir="rtl"] .dc-corporate-masthead img { object-position: right center; }
.dc-corporate-intro { min-width: 0; }
.dc-corporate-kicker {
    display: block;
    padding-inline-start: 2cqw;
    border-inline-start: .8cqw solid var(--dc-accent, #50b848);
    color: var(--corporate-ink);
    font-size: 2.2cqw;
    font-weight: 750;
    letter-spacing: .06em;
}
.dc-corporate-intro :is(h1, h2) {
    margin: 2cqw 0 0;
    color: var(--corporate-ink);
    font-size: var(--corporate-title-size, 6cqw);
    line-height: 1.08;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.dc-corporate-intro p {
    margin: 2cqw 0 0;
    color: var(--dc-muted, #425749);
    font-size: 2.75cqw;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.dc-corporate-photo {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: var(--corporate-ink);
}
.dc-corporate-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--corporate-fit);
    object-position: var(--corporate-position);
    transform: scale(var(--corporate-scale));
}
.dc-corporate-cover .dc-corporate-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / var(--corporate-shade, .18));
}
.dc-corporate-footer {
    position: relative;
    padding-block-start: 2.4cqw;
    background: #fff;
    border-block-start: 1px solid var(--dc-line, #e5e9e2);
    color: var(--corporate-ink);
}
.dc-book-contents-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8cqw;
    color: var(--dc-text, #17251d);
}
.dc-book-contents header {
    border-block-end: 1px solid var(--dc-line, #e5e9e2);
    padding-block-end: 3cqw;
}
.dc-book-contents header p {
    margin: 0;
    color: var(--dc-muted, #425749);
    font-size: 2.4cqw;
    font-weight: 700;
}
.dc-book-contents h2 {
    margin: 1cqw 0 0;
    color: var(--dc-deep, #103e2a);
    font-size: 7cqw;
    line-height: 1.1;
}
.dc-book-contents ol {
    list-style: none;
    margin: 3cqw 0;
    padding: 0;
}
.dc-book-contents-entry {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(1cqw, 1fr) auto;
    align-items: baseline;
    gap: 1.5cqw;
    width: 100%;
    padding: 1.55cqw 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 2.9cqw;
    line-height: 1.3;
    text-align: start;
    overflow-wrap: anywhere;
}
button.dc-book-contents-entry { cursor: pointer; }
button.dc-book-contents-entry:is(:hover, :focus-visible) { color: var(--dc-deep, #103e2a); text-decoration: underline; }
.dc-book-contents-entry i { border-block-end: 1px dotted var(--dc-muted, #425749); }
.dc-book-contents-entry span:last-child { font-variant-numeric: tabular-nums; }
.dc-book-contents footer {
    margin-block-start: auto;
    padding-block-start: 2cqw;
    border-block-start: 1px solid var(--dc-line, #e5e9e2);
    text-align: end;
    font-size: 2.5cqw;
}
