/* Shared reset, utilities and component extensions.
 * camelCase class names; compose layout, component and utility classes in HTML.
 * Rules retain their cascade order; properties use standard CSS syntax.
 */

/* Общий сброс и настройки доступности. */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: #111413;
  font-family: Arial,sans-serif;
}

a,button,summary,.cursorInteraction {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,textarea,select {
  font: inherit;
}

button: disabled {
  cursor: wait;
  opacity: .7;
}

svg {
  vertical-align: middle;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none!important;
}

form {
  margin: 0;
}

a: focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 2px solid #eee1cc;
  outline-offset: 4px;
}

/* Layout objects: structure is shared; component classes provide appearance. */
.uiButton {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.uiStack {
  display: grid;
}

/* Utilities. */
.skipLink {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  background: #eee1cc;
  color: #171714;
  padding: 12px;
}

.skipLink:focus {
  top: 12px;
}

/* Расширения публичных компонентов. */
#day7Mods .d7Header {
  padding-right: var(--d7Gutter);
}

#day7Mods .d7Collection {
  gap: 26px;
}

#day7Mods .d7Status:empty {
  display: none;
}

#day7Mods .d7Empty {
  padding: 30px;
  border: 1px dashed #6a6046;
  color: #c8bea4;
}

#day7Mods .d7Empty p {
  margin-top: 12px;
}

#day7Mods .d7ImageCover {
  margin: 8px;
  min-height: 280px;
  overflow: hidden;
}

#day7Mods .d7ImageCover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#day7Mods .d7CoverTitle {
  overflow-wrap: anywhere;
}

#day7Mods .d7ReleaseHistory {
  margin-top: 24px;
}

#day7Mods .d7HistoryRow {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  border-top: 1px dashed #5d5c40;
  padding-top: 14px;
  margin-top: 14px;
}

#day7Mods .d7HistoryRow .d7LinkButton {
  white-space: nowrap;
}

#day7Mods .d7Guide {
  scroll-margin-top: 20px;
}

#day7Mods .d7Mod:target {
  outline: 2px solid #c79660;
  outline-offset: 5px;
}

/* Расширения компонентов панели. */
#day7Admin .aHeader {
  padding-right: 28px;
}

#day7Admin .aLayout {
  min-height: calc(100dvh - 78px);
}

#day7Admin .aMain a {
  color: inherit;
}

#day7Admin .aNavButton {
  font-size: 13px;
}

#day7Admin .aField>span,#day7Admin .aButton {
  font-size: 12px;
}

#day7Admin .aField input,#day7Admin .aField textarea,#day7Admin .aField select {
  font-size: 14px;
}

#day7Admin .aModList {
  gap: 12px;
}

#day7Admin .aListCover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#day7Admin .aThumb {
  padding: 0;
}

#day7Admin .aThumb>img {
  display: block;
  width: 100%;
  max-height: 250px;
  object-fit: cover;
}

#day7Admin .aThumbTitle {
  padding: 19px 15px;
  overflow-wrap: anywhere;
}

#day7Admin .aThumbFoot {
  margin: 0 15px 15px;
}

#day7Admin .aError {
  padding: 13px 16px;
  margin-bottom: 18px;
  background: #3a231f;
  border: 1px solid #985647;
  color: #f3ccac;
  font-size: 13px;
}

#day7Admin .aFlash {
  padding: 13px 16px;
  margin-bottom: 18px;
  background: #263024;
  border: 1px solid #586449;
  color: #d6e2c3;
  font-size: 13px;
}

#day7Admin .aSpaceTop {
  margin-top: 18px;
}

#day7Admin .aReleasePanel {
  margin-top: 28px;
}

#day7Admin .aReleasePanel>h2 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 15px;
}

#day7Admin .aVersionCard h3 {
  font-size: 15px;
  font-weight: 500;
}

#day7Admin .aVersionCard .aStatus {
  margin-top: 12px;
}

#day7Admin .aLoginPanel .aError {
  margin-top: 14px;
}

#day7Admin .aFileInput {
  width: 100%;
  height: 100%;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

#day7Admin .aSideBottom .aNavButton {
  white-space: normal;
}

/* Автономная страница ошибки. */
.errorPage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #171714;
  color: #eae1cc;
  padding: 24px;
}

.errorPage main {
  max-width: 520px;
}

.errorPage h1 {
  font: 72px/1 Impact,sans-serif;
  margin: 24px 0 18px;
  color: #c25e42;
}

.errorPage p {
  line-height: 1.7;
}

.errorPage a {
  display: inline-block;
  margin-top: 20px;
  border-bottom: 1px solid #ac8d5c;
  padding-bottom: 4px;
}

.errorBrand {
  font-weight: 700;
  letter-spacing: 3px;
}

#day7Admin .aPublish .aTextButton {
  display: flex;
  max-width: 100%;
  text-align: left;
}

/* Адаптивное поведение и пользовательские ограничения отображения. */
@media(max-width:650px) {
  #day7Mods .d7Header {
    padding-right: var(--d7Gutter);
  }
  #day7Mods .d7ImageCover {
    height: 240px;
    min-height: 0;
  }
  #day7Mods .d7HistoryRow {
    flex-direction: column;
    gap: 8px;
  }
  #day7Admin .aField input,#day7Admin .aField textarea {
    font-size: 16px;
  }
}

/* Адаптивное поведение и пользовательские ограничения отображения. */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
