/* ============================================================
   BASE RESET & PAGE LAYOUT
   ============================================================ */

/* Golos Text - SIL Open Font License, see ../fonts/OFL-GolosText.txt.
    One variable file per script subset, so a page loads only the scripts it shows;
    the unicode-range lines are the ones Google Fonts serves for this family.
    Weight range 400-900: there is no light weight. */
@font-face {
    font-family: 'Golos Text';
    src: url('../fonts/GolosText-cyrillic-ext.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'Golos Text';
    src: url('../fonts/GolosText-cyrillic.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Golos Text';
    src: url('../fonts/GolosText-latin-ext.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Golos Text';
    src: url('../fonts/GolosText-latin.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Golos Text', sans-serif;
    /* The base every piece of text falls back to. Without it the fallback was the
       browser's 16px, which is not a step of the scale and belongs to no component -
       so anything whose rules went quiet was set in a size the design never chose.
       odf-service has said 13px on its own body since it was written; this is the
       main app catching up. */
    font-size: var(--dc-text-md);
    background: var(--dc-n-25);
    padding: 0;
}

.container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: white;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    overflow: hidden;
}

.header {
    background: var(--dc-n-0);
    color: var(--dc-n-950);
    padding: 10px 20px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--dc-n-100);
}

.header h1 {
    font-size: var(--dc-text-lg);
    margin: 0;
    white-space: nowrap;
}

.header p {
    opacity: 0.8;
    font-size: var(--dc-text-sm);
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    flex-direction: row-reverse; /* Menu on right */
}

.canvas-area {
    flex: 1;
    padding: 20px;
    background: var(--dc-n-25);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
}

/* The direct child column-flex div in canvas-area must stretch too */
.canvas-area > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.canvas-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 300px;
    color: var(--dc-n-300);
    font-size: var(--dc-text-lg);
    text-align: center;
    user-select: none;
}

.canvas-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    line-height: 1.6;
}

