:root {
  color-scheme: dark;
  --bg: var(--theme-background);
  --surface: #101b1e;
  --surface2: #152326;
  --border: #ffffff12;
  --text: #e8eeeb;
  --muted: #8ca29c;
  --mint: var(--theme-accent);
  --coral: #d9a097;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 115px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    var(--font-sans);
  font-size: 15px;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.header {
  height: 80px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 40px;
  background: color-mix(in srgb, var(--theme-background) 92.94%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.brand {
  font-weight: 750;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.6px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--mint);
  color: #10251f;
  border-radius: 9px;
  font-size: 27px;
}
.brand-dot {
  color: var(--mint);
  margin-left: -10px;
}
.header nav {
  height: 100%;
  display: flex;
  gap: 28px;
  align-items: center;
}
.header nav a {
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.header nav a.active {
  color: var(--mint);
  border-color: var(--mint);
}
.header nav a:hover {
  color: var(--text);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wiki-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #68877d;
}
.search-trigger {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  min-width: 240px;
}
.search-trigger kbd {
  margin-left: auto;
}
kbd {
  font: 10px var(--font-mono);
  border: 1px solid #ffffff20;
  border-radius: 4px;
  padding: 2px 4px;
  color: var(--muted);
}
.layout {
  max-width: 1530px;
  margin: auto;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 205px;
  gap: 48px;
  padding: 0 40px;
}
.sidebar {
  position: sticky;
  top: 80px;
  height: calc(100svh - 80px);
  overflow: auto;
  padding: 36px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: #324943 transparent;
}
.sidebar-heading {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #718b82;
  margin: 0 12px 20px;
}
.sidebar nav a {
  font-size: 13px;
  line-height: 1.45;
  display: block;
  padding: 9px 12px;
  border-radius: 5px;
  margin: 2px 0;
  color: #99ada6;
  transition:
    background 0.15s,
    color 0.15s;
}
.sidebar nav a:hover {
  color: var(--text);
  background: #ffffff05;
}
.sidebar nav a.selected {
  background: color-mix(in srgb, var(--theme-accent) 8.24%, transparent);
  color: var(--mint);
  font-weight: 600;
  box-shadow: inset 2px 0 var(--mint);
}
.nav-group {
  margin: 20px 0;
}
.nav-group summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  color: #d2ddd7;
}
.nav-group summary::-webkit-details-marker {
  display: none;
}
.nav-group summary:after {
  content: '›';
  transform: rotate(90deg);
  color: #728e83;
}
.nav-group:not([open]) summary:after {
  transform: rotate(0);
}
.nav-group .group-links {
  border-left: 1px solid #ffffff12;
  margin: 4px 0 0 12px;
  padding-left: 9px;
}
.back-home {
  display: block;
  margin: 28px 12px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #69887c;
  font-size: 12px;
}
main {
  min-width: 0;
  padding: 36px 0 60px;
  min-height: calc(100svh - 80px);
}
.article-top {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.breadcrumbs {
  font-size: 11px;
  color: #7c968b;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.breadcrumbs a:hover {
  color: var(--mint);
}
.breadcrumbs .current {
  color: #b2c5bb;
}
.edit-button {
  border: 0;
  background: none;
  color: #8ba89b;
  font-size: 11px;
  padding: 5px 0;
  white-space: nowrap;
  display: flex;
  gap: 6px;
  align-items: center;
}
.edit-button:hover {
  color: var(--mint);
}
#article {
  outline: none;
}
.markdown-body,
#article {
  font-size: 15px;
  line-height: 1.85;
  color: #b7c7bf;
  overflow-wrap: anywhere;
}
.markdown-body h1,
#article h1 {
  font-size: 36px;
  letter-spacing: -1.3px;
  line-height: 1.2;
  font-weight: 720;
  color: #f0f5f1;
  margin: 0 0 23px;
}
.markdown-body h2,
#article h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  line-height: 1.4;
  color: #e4eee7;
  margin: 42px 0 16px;
  scroll-margin-top: 110px;
}
.markdown-body h3,
#article h3 {
  font-size: 17px;
  color: #dce9df;
  margin: 28px 0 12px;
  scroll-margin-top: 110px;
}
.markdown-body p,
#article p {
  margin: 0 0 20px;
}
.markdown-body a,
#article a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--theme-accent) 29.02%, transparent);
  text-underline-offset: 4px;
}
.markdown-body a:hover,
#article a:hover {
  text-decoration-color: var(--mint);
}
.markdown-body strong,
#article strong {
  color: #e0ebe3;
  font-weight: 600;
}
.markdown-body blockquote,
#article blockquote {
  margin: 25px 0;
  padding: 14px 18px;
  border-left: 3px solid color-mix(in srgb, var(--theme-accent) 50.2%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 3.53%, transparent);
  border-radius: 0 6px 6px 0;
  color: #a8c6b8;
  font-size: 14px;
}
.markdown-body blockquote p,
#article blockquote p {
  margin: 0;
}
.markdown-body ul,
#article ul,
.markdown-body ol,
#article ol {
  padding-left: 23px;
  margin: 16px 0 24px;
}
.markdown-body li,
#article li {
  padding-left: 3px;
  margin: 7px 0;
}
.markdown-body li::marker,
#article li::marker {
  color: #729f8a;
}
.markdown-body code,
#article code {
  font-family: var(--font-mono);
  background: color-mix(in srgb, var(--theme-accent) 4.31%, transparent);
  color: #b1e5cb;
  border: 1px solid color-mix(in srgb, var(--theme-accent) 10.2%, transparent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.86em;
}
.markdown-body pre,
#article pre {
  padding: 17px;
  background: #071012;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  position: relative;
}
.markdown-body pre code,
#article pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
}
.copy-code {
  float: right;
  border: 1px solid #ffffff20;
  border-radius: 4px;
  background: #192926;
  color: #aac5b8;
  font-size: 10px;
  padding: 4px 7px;
  margin: 0 0 8px 12px;
}
.table-wrap {
  overflow: auto;
}
.markdown-body table,
#article table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin: 22px 0;
}
.markdown-body th,
#article th {
  background: #152521;
  color: #d3e3d9;
  text-align: left;
  font-weight: 600;
}
.markdown-body th,
.markdown-body td,
#article th,
#article td {
  border: 1px solid #ffffff14;
  padding: 12px 14px;
}
.markdown-body hr,
#article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}
.markdown-body img,
#article img {
  max-width: 100%;
  border-radius: 8px;
}
.welcome-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 27px 0;
}
.welcome-card {
  display: flex !important;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-decoration: none !important;
  background: linear-gradient(135deg, #162b251f, transparent);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.welcome-card:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 31.37%, transparent);
  background: color-mix(in srgb, var(--theme-accent) 3.14%, transparent);
}
.welcome-card .card-symbol {
  font-size: 22px;
  line-height: 1;
  color: var(--mint);
  margin-bottom: 14px;
}
.welcome-card b {
  font-size: 14px;
  color: #e0ece4;
  font-weight: 600;
}
.welcome-card small {
  font-size: 12px;
  color: #829e8e;
  margin-top: 5px;
  line-height: 1.5;
}
.article-navigation {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}
.page-link {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 18px 20px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s;
}
.page-link:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 25.1%, transparent);
}
.page-link.next {
  text-align: right;
}
.page-link small {
  font-size: 11px;
  color: #718b7c;
}
.page-link b {
  font-size: 14px;
  font-weight: 550;
  color: #dbe8de;
}
.article-footer {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #647f70;
}
#draft-badge {
  color: var(--coral);
}
.toc {
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100svh - 100px);
  overflow: auto;
  padding-top: 43px;
}
.toc-heading {
  font-size: 11px;
  color: #d6e2da;
  font-weight: 600;
  margin-bottom: 17px;
}
.toc nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.toc nav a {
  font-size: 11px;
  line-height: 1.5;
  padding: 6px 0 6px 14px;
  color: #7e9989;
  border-left: 1px solid transparent;
  margin-left: -1px;
}
.toc nav a.sub {
  padding-left: 24px;
}
.toc nav a.current,
.toc nav a:hover {
  color: var(--mint);
  border-color: var(--mint);
}
.toc-note {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 20px 14px;
  color: #516d5c;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.toc-note span {
  font-size: 21px;
  color: #74a78d;
}
.toc-note p {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.mobile-tools {
  display: none;
}
.skip {
  position: fixed;
  top: -70px;
  left: 20px;
  z-index: 100;
  background: var(--mint);
  color: var(--theme-background);
  padding: 14px;
}
.skip:focus {
  top: 8px;
}
dialog {
  color: var(--text);
  border: 1px solid #476454;
  background: #101b1e;
  border-radius: 12px;
  box-shadow: 0 30px 160px #000b;
  padding: 0;
}
dialog::backdrop {
  background: #020b0dc9;
  backdrop-filter: blur(5px);
}
.search-dialog {
  width: min(620px, calc(100vw - 32px));
  margin: 14svh auto auto;
}
.search-input-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--mint);
}
.search-input-row input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 15px;
}
.search-input-row input:focus-visible {
  outline: none;
}
.icon-button {
  font-size: 25px;
  line-height: 1;
  background: none;
  border: 0;
  color: #88a395;
  padding: 2px 6px;
}
.search-results {
  padding: 10px;
  max-height: 50svh;
  overflow: auto;
}
.search-result {
  display: block;
  padding: 14px;
  border-radius: 6px;
}
.search-result:hover,
.search-result:focus {
  background: color-mix(in srgb, var(--theme-accent) 4.31%, transparent);
}
.search-result strong {
  display: block;
  color: #dbebe0;
  font-size: 14px;
}
.search-result span {
  display: block;
  font-size: 12px;
  color: #7a9786;
  margin-top: 6px;
  line-height: 1.5;
}
.search-results .empty {
  padding: 30px 15px;
  color: #7f9e8b;
  font-size: 13px;
  text-align: center;
}
.search-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: #65836e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-footer kbd {
  margin-left: auto;
}
.editor-dialog {
  width: min(1220px, calc(100vw - 30px));
  max-height: 94svh;
}
.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mint);
}
.editor-header h2 {
  font-size: 21px;
  margin: 6px 0 0;
  letter-spacing: -0.5px;
}
.editor-notice {
  margin: 0 28px 16px;
  padding: 12px 15px;
  border: 1px solid #d9a09726;
  background: #d9a09708;
  color: #b8aba1;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 6px;
}
.toolbar {
  padding: 12px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-block: 1px solid var(--border);
}
.toolbar button {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  background: #172724;
  font-size: 12px;
  min-width: 33px;
}
.toolbar button:hover {
  background: #294338;
}
.editor-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 300px;
  height: 48svh;
}
.source-label {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 18px 0 0 28px;
  color: #738e7b;
  min-height: 0;
}
.source-label textarea {
  margin-top: 12px;
  flex: 1;
  resize: none;
  min-height: 0;
  width: 100%;
  padding: 0 20px 20px 0;
  background: transparent;
  border: 0;
  color: #b9cfc0;
  font:
    12px/1.8 var(--font-mono);
  outline: none;
  tab-size: 2;
}
.source-label textarea:focus-visible {
  outline: none;
}
.preview-pane {
  border-left: 1px solid var(--border);
  overflow: auto;
  padding: 18px 28px;
}
.pane-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #738e7b;
  display: block;
  margin-bottom: 14px;
}
.preview-pane .markdown-body {
  font-size: 13px;
}
.preview-pane .markdown-body h1 {
  font-size: 27px;
}
.preview-pane .markdown-body h2 {
  font-size: 19px;
}
.editor-actions {
  border-top: 1px solid var(--border);
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.editor-actions > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.editor-actions > span {
  font-size: 10px;
  color: #7a9584;
}
.primary-button,
.secondary-button {
  border: 1px solid #ffffff20;
  border-radius: 5px;
  font-size: 11px;
  padding: 10px 14px;
  background: transparent;
}
.primary-button {
  background: var(--mint);
  color: #123529;
  border-color: var(--mint);
  font-weight: 650;
}
.secondary-button:hover {
  border-color: color-mix(in srgb, var(--theme-accent) 41.96%, transparent);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  z-index: 1000;
  background: #213e30;
  border: 1px solid #759e86;
  color: #d1eadb;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 12px;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1500px) {
  .layout {
    gap: 64px;
    grid-template-columns: 252px minmax(0, 1fr) 205px;
  }
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 35px;
    padding: 0 30px;
  }
  .toc {
    display: none;
  }
  .header {
    padding: 0 30px;
    gap: 40px;
  }
  .wiki-label {
    display: none;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 132px;
  }
  .header {
    height: 66px;
    gap: 24px;
    padding: 0 20px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-icon {
    width: 29px;
    height: 29px;
    font-size: 24px;
  }
  .header nav {
    gap: 18px;
  }
  .header nav a {
    font-size: 12px;
  }
  .header-actions {
    display: none;
  }
  .mobile-tools {
    display: flex;
    position: sticky;
    top: 66px;
    z-index: 19;
    align-items: center;
    justify-content: space-between;
    background: #0d181bf5;
    border-bottom: 1px solid var(--border);
    height: 46px;
    padding: 0 20px;
  }
  .mobile-tools button {
    background: none;
    border: 0;
    padding: 10px 0;
    font-size: 12px;
    color: #abc8b7;
  }
  .mobile-tools button span {
    margin-left: 9px;
  }
  .layout {
    display: block;
    padding: 0 22px;
  }
  .sidebar {
    display: none;
    position: fixed;
    top: 112px;
    left: 0;
    bottom: 0;
    z-index: 18;
    background: #0e191c;
    width: min(330px, 92vw);
    height: calc(100svh - 112px);
    padding: 24px 20px;
    box-shadow: 30px 0 100px #0008;
    border-right: 1px solid #395346;
  }
  .sidebar.open {
    display: block;
  }
  main {
    padding-top: 25px;
  }
  .article-top {
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .breadcrumbs {
    font-size: 10px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .edit-button {
    font-size: 10px;
  }
  #article {
    font-size: 14px;
  }
  #article h1 {
    font-size: 31px;
  }
  #article h2 {
    font-size: 22px;
  }
  .welcome-links {
    gap: 10px;
  }
  .welcome-card {
    padding: 16px;
  }
  .welcome-card b {
    font-size: 13px;
  }
  .welcome-card small {
    font-size: 11px;
  }
  .page-link {
    padding: 14px;
  }
  .page-link b {
    font-size: 12px;
  }
  .article-footer {
    flex-direction: column;
  }
  .editor-dialog {
    max-height: 96svh;
  }
  .editor-header {
    padding: 18px;
  }
  .editor-notice {
    margin: 0 18px 12px;
    font-size: 11px;
  }
  .toolbar {
    padding: 10px 18px;
  }
  .toolbar button {
    font-size: 11px;
    padding: 6px 8px;
  }
  .editor-columns {
    grid-template-columns: 1fr;
    height: 45svh;
  }
  .source-label {
    padding: 15px 18px 0;
  }
  .source-label textarea {
    min-height: 200px;
  }
  .preview-pane {
    display: none;
  }
  .editor-actions {
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
  .editor-actions > div {
    width: 100%;
  }
  .editor-actions button {
    padding: 9px;
    font-size: 10px;
  }
  .search-dialog {
    margin-top: 12svh;
  }
  .search-input-row {
    padding: 16px;
  }
  .search-input-row input {
    font-size: 13px;
  }
  .article-navigation {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.header .account-link {
  font-size: 12px;
  color: var(--mint);
  white-space: nowrap;
  margin-left: 0;
}
@media (max-width: 760px) {
  .header {
    gap: 15px;
  }
  .header .account-link {
    margin-left: auto;
    font-size: 11px;
  }
  .header nav {
    gap: 13px;
  }
}

/* Места под видео в статьях. */
.media-slot {
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 160px;
  margin: 12px 0 18px;
  border: 2px dashed #71bcea66;
  border-radius: 12px;
  padding: 16px;
  background: #71bcea0d;
  color: var(--theme-muted, #abb7c6);
  text-align: center;
}
.media-slot strong {
  color: #71bcea;
}
/* Раскрывающиеся правила. */
details.rule {
  margin: 10px 0;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 0 16px;
}
details.rule[open] {
  padding-bottom: 12px;
}
details.rule > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
details.rule > summary::-webkit-details-marker {
  display: none;
}
details.rule > summary::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s;
}
details.rule[open] > summary::before {
  transform: rotate(45deg);
}
details.rule > summary h3 {
  margin: 0;
}

/* Правила: стрелка и название по центру строки, текст внутри на одной линии с названием.
   Через #article, потому что общий стиль заголовков статьи сильнее и добавлял отступы. */
#article details.rule {
  margin: 10px 0;
  border: 1px solid #ffffff1a;
  border-radius: 12px;
  padding: 0 18px;
}
#article details.rule[open] {
  padding-bottom: 14px;
}
#article details.rule > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 0;
  cursor: pointer;
  list-style: none;
}
#article details.rule > summary::before {
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 2px;
}
#article details.rule > summary h3 {
  margin: 0;
  padding: 0;
  font-size: 17px;
  line-height: 1.35;
}
#article details.rule > :not(summary) {
  margin-left: 27px;
}
#article details.rule > :not(summary):first-of-type {
  margin-top: 4px;
}

/* Правила как у карточек: название слева, стрелка справа, внутри крупные подзаголовки. */
#article details.rule > summary::before {
  display: none;
}
#article details.rule > summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0 4px 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s;
}
#article details.rule[open] > summary::after {
  transform: rotate(-135deg);
}
#article details.rule > summary h3 {
  font-size: 16px;
  font-weight: 600;
}
#article details.rule > :not(summary) {
  margin-left: 0;
}
#article details.rule h4 {
  margin: 22px 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
#article details.rule > h4:first-of-type {
  margin-top: 8px;
}
/* Плашки «Наказание» и заметки: значок слева, заголовок и текст справа. */
#article blockquote.callout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  margin: 20px 0 4px;
  border: 0;
  border-left: 4px solid #f5a524;
  border-radius: 12px;
  padding: 16px 20px;
  background: #ffffff0a;
  color: inherit;
  font-style: normal;
}
#article blockquote.callout-note {
  border-left-color: #ef4444;
}
#article .callout-icon {
  width: 24px;
  height: 24px;
  color: #f1f4f8;
}
#article .callout-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
#article .callout-body > * {
  margin: 0;
}
#article .callout-body > * + * {
  margin-top: 8px;
}
#article .callout-title {
  color: #f1f4f8;
  font-weight: 600;
  line-height: 24px;
}

/* Редактор статей убран: кнопка остаётся в разметке только для старого скрипта. */
.edit-button {
  display: none !important;
}
