/* Лесная тропа — обложка полевого определителя с арочным окном. */
[data-theme="forest"] .corner-sheet {
    background: #fffdf5;
    color: #193f31;
}
[data-theme="forest"] .corner-sheet-head {
    display: grid;
    align-content: center;
    min-height: 31cqw;
    padding: 4cqw 5cqw 4cqw 45cqw;
    border: 0;
    background: #183f32;
    color: #fff8dd;
}
[data-theme="forest"] .corner-theme-art {
    position: absolute;
    left: 4.5%;
    bottom: 0;
    width: 36%;
    height: 89%;
    border: .45cqw solid #d8be7e;
    border-bottom: 0;
    border-radius: 50% 50% 0 0 / 62% 62% 0 0;
    object-position: 50% 64%;
}
[data-theme="forest"] .corner-sheet-head p {
    margin: 0 0 1.5cqw;
    color: #f4cf89;
    font: 700 2.25cqw/1.4 system-ui, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}
[data-theme="forest"] .corner-sheet-head h3 {
    font: 600 6.7cqw/1.02 Georgia, serif;
    letter-spacing: -.035em;
}
[data-theme="forest"] .corner-week { gap: 3.5cqw 5cqw; }
[data-theme="forest"] .corner-day h4,
[data-theme="forest"] .corner-duties dt {
    display: flex;
    align-items: center;
    gap: 1.25cqw;
    margin: 0 0 1cqw;
    padding: 0;
    border: 0;
    color: #244e34;
    font: 700 3.7cqw/1.25 Georgia, serif;
}
[data-theme="forest"] .corner-day h4::before,
[data-theme="forest"] .corner-duties dt::before {
    content: "";
    flex: 0 0 2cqw;
    height: 2.4cqw;
    border-radius: 85% 0 85% 0;
    background: #ad552b;
}
[data-theme="forest"] .corner-day ol {
    margin-left: .9cqw;
    padding-left: 5cqw;
    border-left: 1px dashed #b5bca6;
}
[data-theme="forest"] .corner-duties dd { margin-left: 3.25cqw; border-color: #9ca993; }
[data-theme="forest"] .corner-rules { list-style-type: upper-roman; }
[data-theme="forest"] .corner-rules li {
    border-color: #c4c6ac;
    font-family: Georgia, serif;
}
[data-theme="forest"] .corner-rules li::marker { color: #90522d; }

/* Северное сияние — ночная панорама и ступенчатая кромка льда. */
[data-theme="arctic"] .corner-sheet-head {
    isolation: isolate;
    display: grid;
    align-content: center;
    min-height: 34cqw;
    padding: 4cqw 47cqw 5.5cqw 5cqw;
    border: 0;
    background: linear-gradient(140deg, #243b6e, #121e47 70%);
    color: #fff;
}
[data-theme="arctic"] .corner-theme-art {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 auto;
    width: 73%;
    height: 100%;
    object-position: 50% 59%;
    mask-image: linear-gradient(90deg, transparent, #0002 9%, #000 44%);
}
[data-theme="arctic"] .corner-sheet-head::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 2.7cqw;
    background: #fff;
    clip-path: polygon(0 47%, 18% 67%, 31% 22%, 45% 68%, 60% 37%, 71% 75%, 88% 12%, 100% 49%, 100% 100%, 0 100%);
}
[data-theme="arctic"] .corner-sheet-head p {
    display: flex;
    align-items: center;
    gap: 1.25cqw;
    margin: 0 0 1.7cqw;
    color: #c3fff3;
    font: 700 2.4cqw/1.35 system-ui, sans-serif;
    letter-spacing: .08em;
}
[data-theme="arctic"] .corner-sheet-head p::before {
    content: "";
    flex: 0 0 2.7cqw;
    height: 2.7cqw;
    background: currentColor;
    clip-path: polygon(50% 0, 63% 38%, 100% 50%, 63% 62%, 50% 100%, 37% 62%, 0 50%, 37% 38%);
}
[data-theme="arctic"] .corner-sheet-head h3 {
    font: 700 7.6cqw/1.01 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.055em;
}
[data-theme="arctic"] .corner-week { gap: 2.5cqw; padding: 3cqw 4cqw 5cqw; }
[data-theme="arctic"] .corner-day {
    padding: 1.5cqw 2.2cqw;
    border-top: .45cqw solid #769bbd;
    background: linear-gradient(118deg, #eaf5fb, #f8fbff);
}
[data-theme="arctic"] .corner-day:nth-child(even) { border-color: #9e97c9; background: #f3f2fa; }
[data-theme="arctic"] .corner-day h4 { border: 0; padding: 0; color: #233e66; }
[data-theme="arctic"] .corner-duties {
    display: grid;
    gap: 2.25cqw;
    padding: 4cqw 5cqw 6cqw;
}
[data-theme="arctic"] .corner-duties > div {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr);
    gap: 2.2cqw;
    align-items: stretch;
    padding: 0 2.5cqw 0 0;
    background: linear-gradient(125deg, #d5e8ed, #f3f8ff 78%, #e5eef9);
    clip-path: polygon(0 0, 98% 0, 100% 25%, 100% 100%, 2% 100%, 0 78%);
}
[data-theme="arctic"] .corner-duties dt {
    display: flex;
    align-items: center;
    min-height: 11cqw;
    padding: 1.6cqw 2.5cqw 1.6cqw 2cqw;
    margin: 0;
    background: #294670;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%);
    font: 700 3.15cqw/1.25 "Segoe UI", sans-serif;
}
[data-theme="arctic"] .corner-duties > div:nth-child(even) dt { background: #4d497c; }
[data-theme="arctic"] .corner-duties dd {
    align-self: end;
    margin: 1.5cqw 0 2.3cqw;
    border-bottom: .2cqw solid #7390ae;
}
[data-theme="arctic"] .corner-rules {
    display: grid;
    gap: 1.8cqw;
    padding: 3.5cqw 5cqw 6cqw;
    list-style: none;
    counter-reset: polar-rule;
}
[data-theme="arctic"] .corner-rules li {
    display: grid;
    grid-template-columns: 9cqw minmax(0, 1fr);
    align-items: center;
    gap: 2.7cqw;
    padding: 1.25cqw 2.8cqw 1.25cqw 1.3cqw;
    border: 0;
    background: linear-gradient(135deg, #edf7fa, #e8eefb);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.9cqw), calc(100% - 2.7cqw) 100%, 0 100%);
    counter-increment: polar-rule;
}
[data-theme="arctic"] .corner-rules li::before {
    content: counter(polar-rule, decimal-leading-zero);
    display: grid;
    place-items: center;
    min-height: 7.5cqw;
    background: #294670;
    color: #d8fff9;
    clip-path: polygon(22% 0, 100% 0, 100% 67%, 76% 100%, 0 100%, 0 32%);
    font: 700 3.5cqw/1 Consolas, monospace;
}
[data-theme="arctic"] .corner-rules li:nth-child(even)::before { background: #4d497c; }
/* Вершины и тропы — туристическая афиша над маршрутной ведомостью. */
[data-theme="mountains"] .corner-sheet { background: #fffcf1; }
[data-theme="mountains"] .corner-sheet-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    padding: 2.5cqw 3cqw 0;
    border: 0;
    background: #f6dfaa;
    color: #214f47;
}
[data-theme="mountains"] .corner-sheet-head p {
    margin: 0 0 .45cqw;
    color: #814322;
    font: 800 2.35cqw/1.25 system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: .13em;
}
[data-theme="mountains"] .corner-sheet-head h3 {
    margin: 0 0 2cqw;
    font: 900 6.6cqw/1.1 "Arial Black", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: -.045em;
}
[data-theme="mountains"] .corner-theme-art {
    position: static;
    display: block;
    width: 100%;
    height: 17cqw;
    object-position: 50% 19%;
    border-block: .45cqw solid #2e5749;
}
[data-theme="mountains"] .corner-week {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 2cqw 4cqw 4cqw;
}
[data-theme="mountains"] .corner-day { align-content: center; }
[data-theme="mountains"] .corner-day,
[data-theme="mountains"] .corner-duties > div {
    display: grid;
    grid-template-columns: 26% minmax(0, 1fr);
    align-items: start;
    gap: 1.6cqw;
    padding: 2cqw 0;
    border-bottom: 1px solid #c4b697;
}
[data-theme="mountains"] .corner-day h4,
[data-theme="mountains"] .corner-duties dt {
    margin: 0;
    padding: .8cqw 2.1cqw .8cqw 1.25cqw;
    color: #fff8dc;
    background: #235647;
    clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
    border: 0;
    font: 800 2.72cqw/1.35 system-ui, sans-serif;
}
[data-theme="mountains"] .corner-day ol {
    columns: 2;
    column-gap: 5cqw;
    padding-left: 4.2cqw;
    font-size: 2.85cqw;
}
[data-theme="mountains"] .corner-day li { break-inside: avoid; }
[data-theme="mountains"] .corner-duties dd { border: 0; }
[data-theme="mountains"] .corner-rules li { border-bottom: 1px dashed #b3a781; }
[data-theme="mountains"] .corner-rules li::marker {
    color: #9c4c25;
    font-family: "Arial Black", system-ui, sans-serif;
}

/* Океанские друзья — иллюминатор, бумажные волны и мягкие карточки. */
[data-theme="ocean"] .corner-sheet-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2cqw 4cqw 3.5cqw;
    border: 0;
    background:
        radial-gradient(circle at 20% 62%, transparent 1.4cqw, #7ec6c4 1.5cqw 1.7cqw, transparent 1.8cqw),
        radial-gradient(circle at 16% 43%, transparent .6cqw, #7ec6c4 .7cqw .9cqw, transparent 1cqw),
        radial-gradient(circle at 77% 24%, transparent 1.8cqw, #7ec6c4 1.9cqw 2.1cqw, transparent 2.2cqw),
        radial-gradient(circle at 82% 48%, transparent .7cqw, #7ec6c4 .8cqw 1cqw, transparent 1.1cqw),
        #d8f3ed;
    color: #164f58;
    text-align: center;
}
[data-theme="ocean"] .corner-sheet-head::after {
    position: absolute;
    content: "";
    inset: auto 0 -1px;
    height: 1.6cqw;
    background: radial-gradient(ellipse at 50% 110%, white 64%, transparent 67%) 0 0 / 7cqw 2cqw repeat-x;
}
[data-theme="ocean"] .corner-theme-art {
    position: static;
    order: -1;
    width: 20cqw;
    height: 20cqw;
    border: .65cqw solid white;
    border-radius: 50%;
    outline: .35cqw solid #358b8a;
    object-position: 53% 50%;
}
[data-theme="ocean"] .corner-sheet-head p {
    position: relative;
    margin: -1.6cqw 0 .8cqw;
    padding: .3cqw 2cqw .5cqw;
    border-radius: 3cqw;
    background: #155763;
    color: white;
    font: 700 2.45cqw/1.3 system-ui, sans-serif;
}
[data-theme="ocean"] .corner-sheet-head h3 { font: 800 6.25cqw/1.07 "Trebuchet MS", sans-serif; }
[data-theme="ocean"] .corner-week { gap: 2.6cqw; padding: 3cqw 4cqw 5cqw; }
[data-theme="ocean"] .corner-day h4,
[data-theme="ocean"] .corner-duties dt {
    margin: 0 0 1cqw;
    padding: .45cqw 1.75cqw;
    border-radius: 4cqw 4cqw 4cqw .65cqw;
    border: 0;
    background: #dbf1ed;
    color: #145661;
    font: 700 3.5cqw/1.35 "Trebuchet MS", sans-serif;
}
[data-theme="ocean"] .corner-day:nth-child(even) h4,
[data-theme="ocean"] .corner-duties > div:nth-child(even) dt { background: #ffeadb; color: #854323; }
[data-theme="ocean"] .corner-day ol { margin-left: 1.6cqw; }
[data-theme="ocean"] .corner-duties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5cqw;
}
[data-theme="ocean"] .corner-duties dd { min-height: 9cqw; border-bottom: 2px dotted #7ca9a4; }
[data-theme="ocean"] .corner-rules li { border-bottom: 2px dotted #8fbfba; }
[data-theme="ocean"] .corner-rules li::marker { color: #176b73; }

/* Цветущий луг — акварельный гербарий с овальным титульным картушем. */
[data-theme="meadow"] .corner-sheet { background: #fffdf6; }
[data-theme="meadow"] .corner-sheet-head {
    display: grid;
    align-content: center;
    justify-items: center;
    isolation: isolate;
    min-height: 31cqw;
    padding: 5cqw 20cqw;
    border: 0;
    color: #6e3e44;
    background: #faf1db;
    text-align: center;
}
[data-theme="meadow"] .corner-theme-art {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: 50% 47%;
}
[data-theme="meadow"] .corner-sheet-head::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1.8cqw 12cqw;
    background: #fff9e9;
    border: .55cqw double #a99c77;
    border-radius: 50%;
    box-shadow: 0 0 0 .55cqw #fff9e9;
}
[data-theme="meadow"] .corner-sheet-head p {
    margin: 0 0 .8cqw;
    color: #4c6348;
    font: 500 2.5cqw/1.3 Georgia, serif;
    letter-spacing: .05em;
}
[data-theme="meadow"] .corner-sheet-head h3 {
    font: italic 500 7cqw/1.01 Georgia, serif;
    letter-spacing: -.035em;
}
[data-theme="meadow"] .corner-week { gap: 3cqw 4cqw; padding: 4cqw 6cqw; }
[data-theme="meadow"] .corner-day h4,
[data-theme="meadow"] .corner-duties dt {
    display: flex;
    align-items: center;
    gap: 1.3cqw;
    margin: 0 0 .8cqw;
    padding: 0;
    border: 0;
    color: #804348;
    font: italic 600 3.8cqw/1.25 Georgia, serif;
}
[data-theme="meadow"] .corner-day h4::after,
[data-theme="meadow"] .corner-duties dt::after {
    content: "";
    flex: 1;
    height: .55cqw;
    border-block: 1px solid #bdc2a4;
}
[data-theme="meadow"] .corner-day ol,
[data-theme="meadow"] .corner-rules li { font-family: Georgia, serif; }
[data-theme="meadow"] .corner-duties dd { border-color: #b5bca4; }
[data-theme="meadow"] .corner-rules li { border-color: #ccc8b0; }
[data-theme="meadow"] .corner-day li::marker,
[data-theme="meadow"] .corner-rules li::marker { color: #81484e; font-style: italic; }
