/* Presentation of TaxBEN (November 2026): a book whose pages can be turned, in the colours of
   oecd.org. The page fills the window or the frame that shows it (the oecd.org page embeds it). */

@font-face {
    font-family: "TaxBEN Noto Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../css/fonts/noto-sans-latin-400-normal.woff2) format("woff2");
}

@font-face {
    font-family: "TaxBEN Noto Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../css/fonts/noto-sans-latin-700-normal.woff2) format("woff2");
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #101d40;
    font-family: "TaxBEN Noto Sans", "Noto Sans", Arial, sans-serif;
    font-size: 15px;
}

.deck-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Header, only on the page itself (inside a frame, the page around it has the title) ---- */

.deck-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background-color: #101d40;
    color: #fff;
}

.deck-in-frame .deck-header,
.deck-fullscreen .deck-header {
    display: none;
}

.deck-header h1 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.deck-header a {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 700;
}

/* ---- The book ---- */

.deck {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

/* Until the slides are read from the PDF (or if they cannot be read) */
.deck-loading {
    margin: 32px 16px;
    color: #586179;
    text-align: center;
}

.deck-ready .deck-loading {
    display: none;
}

.deck-hint,
.deck-bar {
    display: none;
}

/* With the scripts */
.deck-ready .deck-stage {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
    background-color: #f0f4f8;
}

.deck-ready .deck-book-area {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
}

/* The width of the book is set by book.js, so that it fits the space; the height follows. */
.deck-ready .deck-hint {
    display: block;
    flex: 0 0 auto;
    margin: 8px 0 0 0;
    color: #586179;
    font-size: 14px;
    visibility: hidden;
}

.deck-ready .tb-closed-front + .deck-hint {
    visibility: visible;
}

/* ---- Bar under the book ---- */

.deck-ready .deck-bar {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid #dee3e9;
    background-color: #fff;
}

.deck-count {
    min-width: 76px;
    text-align: center;
    font-weight: 700;
}

.deck-tools {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 16px;
}

.deck-button {
    box-sizing: border-box;
    min-width: 40px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #156df9;
    border-radius: 4px;
    background-color: #156df9;
    color: #fff;
    font: inherit;
    font-size: 15px;
    line-height: 34px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.deck-button:hover {
    background-color: #0660ef;
}

.deck-button:disabled {
    border-color: #c3cad6;
    background-color: #c3cad6;
    cursor: default;
}

.deck-text-button {
    background-color: #fff;
    color: #0b52c9;
    font-weight: 700;
}

.deck-text-button:hover {
    background-color: #e0f2ff;
}

.deck-button:focus-visible,
.deck-header a:focus-visible {
    outline: 3px solid #101d40;
    outline-offset: 2px;
}

/* "Full screen": the real full screen where the browser allows it; inside a frame that does not
   allow it, the presentation opens in a new tab, where it takes the whole window. */
.deck-full,
.deck-newtab {
    display: none;
}

.deck-can-fullscreen .deck-full,
.deck-in-frame:not(.deck-can-fullscreen) .deck-newtab {
    display: inline-block;
}

/* ---- Full screen ---- */

.deck-fullscreen .deck-stage {
    background-color: #1e2a4a;
}

.deck-fullscreen .deck-hint {
    color: #dfe6f0;
}

/* ---- Phones ---- */

@media (max-width: 600px) {
    .deck-header {
        padding: 8px 12px;
    }

    .deck-header h1 {
        font-size: 14px;
    }

    .deck-header a {
        font-size: 13px;
    }

    .deck-ready .deck-stage {
        padding: 6px;
    }

    .deck-tools {
        margin-left: 0;
    }

    .deck-button {
        height: 34px;
        padding: 0 10px;
        font-size: 14px;
        line-height: 32px;
    }
}
