/*
 * Базові стилі сайту — підключаються одразу після Bootstrap, до компонентів (css/components) і сторінок (css/pages).
 * Зведено зі старих reset-css.css, css/styles/*, css/main.css і css_ref/main.css (етап 4.5d) зі збереженням
 * того, що реально діяло: скидання відступів, шрифт і темний фон, базова типографіка, каркас сторінки.
 */

/* Скидання: без відступів, рамок і браузерних розмірів шрифту */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--color-ink);
    color: #000;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
}

div,
section {
    position: relative;
    display: block;
}

ol,
ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

b,
strong {
    font-weight: bolder;
}

small {
    font-size: 80%;
}

code,
kbd,
samp,
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

img {
    border-style: none;
}

/* Типографіка за замовчуванням (компоненти задають свою) */
p {
    color: #828282;
    font-size: 14px;
    line-height: 1.7;
}

a,
a:hover,
a:visited,
a:active {
    text-decoration: none;
}

p a {
    color: inherit;
    border-bottom: 1px solid #ffa07f;
    transition: all 200ms ease;
}

p a:hover {
    background: #ffa07f;
    color: #fff;
}

p a:active {
    color: #ff6347;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Roboto, sans-serif;
    font-weight: 500;
}

@media (max-width: 575px) {
    h2 {
        font-size: 24px;
    }

    p {
        font-size: 13px;
    }
}

/* Поля форм: шрифт сторінки, без стрілок у числових полях */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
}

button,
select {
    text-transform: none;
}

textarea {
    overflow: auto;
    resize: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}

[type="search"] {
    outline-offset: -2px;
    -webkit-appearance: textfield;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

select {
    display: inline;
    width: auto;
    border: 0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
}

[hidden] {
    display: none;
}

/* Рамка фокусу лише з клавіатури (раніше body * { outline: none !important } прибирала її взагалі) */
:focus:not(:focus-visible),
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Сторінка помилки Identity (Areas/Identity/Pages/Error.cshtml) */
.text-danger {
    display: block;
    margin-bottom: 10px;
    color: #cd3d3d !important;
}

/* Каркас сторінки (_Layout): футер притиснутий донизу, контент на всю ширину */
html,
body {
    height: 100%;
}

.page {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    background: var(--color-ink);
}

.page__main {
    flex: 1 1 auto;
    width: 100%;
}
