@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..800&family=Poppins:wght@500;600;700;800&display=optional');
body {padding:0px;margin:0px;background:#fafafa;font-family:\'Roboto\';}
a {text-decoration:none;color:#00527b;}
h2{font-family: sans-serif;color:#2d2d2d;margin-bottom:8px;}
.l-main div > .ht{font-family:sans-serif;color:#000;font-size:24px;margin:57px 0px 23px;padding:10px;background:#7ac1ff;}
.body {width:1085px;margin: 0 auto;}
body img {display:table;margin:31px auto;max-width:100%;}
.schl img {display:table;margin:0px;max-width:5%;}
.head {height:60px;padding:3px 14px;}
.bg {background:#fff;box-shadow:0 0 10px rgba(0, 0, 0.1, 0.3);}
.tt{background:#fff;position:fixed;width:1076px;top:0;color:#fff;text-align:center;height:90px;}
table {padding-bottom:4px;display:block;overflow-x:auto;width:100%;}
.title h1 {font-size:24px;font-weight:normal;margin:0;border-bottom:1px solid #e1e1e1;padding-bottom:22px;}
.l-head {float:left;margin-top:24px;text-indent:-1008em;width:161px;}
.l-head a {font-size:15px;background:url(/static/alphapedia-20260907/logo.svg) no-repeat;background-size:153px;display:block;height:35px;}
.r-head {float:right;margin-top:17px;margin-right:2px;display:table;margin-bottom:4px;}
.r-head img {display:inline;}
.title-circle {height:19px;width:19px;background:#f37322;border-radius:100px;display:inline-block;vertical-align:middle;border:3px solid #fff;position:relative;}
.search-form {border:0;border-bottom:1px solid #DDD;margin-right:4px;width:200px;font-size:15px;padding:10px;}
.search-box {cursor:pointer;background-image: url(data:image/svg+xml;utf8;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjNTY1NjU2Ij48cGF0aCBkPSJNMTAuNDQyIDEwLjQ0MmExIDEgMCAwIDEgMS40MTUgMGwzLjg1IDMuODVhMSAxIDAgMCAxLTEuNDE0IDEuNDE1bC0zLjg1LTMuODVhMSAxIDAgMCAxIDAtMS40MTV6Ii8+PHBhdGggZD0iTTYuNSAxMmE1LjUgNS41IDAgMSAwIDAtMTEgNS41IDUuNSAwIDAgMCAwIDExek0xMyA2LjVhNi41IDYuNSAwIDEgMS0xMyAwIDYuNSA2LjUgMCAwIDEgMTMgMHoiLz48L2c+PC9zdmc+);
margin-top:1px;background-size:contain;background-repeat:no-repeat;width:20px;height:20px;display:block;float:left;margin-right:13px;}
.l-main {background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.1);margin-top:26px;padding:9px}
.l-main div {line-height:27px;margin-bottom:5px;}
.slc-main {border-bottom:1px solid #e1e1e1;padding:10px 0px;text-align:right;margin-bottom:18px;}
.edit {font-size:14px;cursor:pointer;color:#3e3e3e;border-radius:4px;padding:5px 8px;border:1px solid #3e3e3e;}
.update {color:#444;font-size:15px;margin-bottom:23px;margin-top:18px;}
th {font-weight:normal;font-family:arial;font-size:18px;padding:5px;text-align:left;border: 1px solid #e1d8d8;}
td img {vertical-align:middle;border-radius:4px;margin:1px;}
p img {vertical-align:middle;border-radius:4px;margin:1px;}
a img {vertical-align:middle;border-radius:4px;margin:1px;}
.list {margin-top:14px;}
.list div {font-size:17px;margin-right:15px;float: left;}
.list a {color:#fff;}
td{border:1px solid #e1d8d8;margin-bottom:5px;}
tr img {vertical-align:middle;border-radius:4px;margin:1px;}
table {width:100%;margin-bottom:4px;}
p {line-height:27px;margin-bottom:3px;color:#1a1a1a;font-size:17px;font-family:sans-serif;}
.ul_main,.clirg {background:#e7f1fb;border-radius:6px;}
.ul_main li,.clirg li {padding:7px;font-size:19px;color:#1b55c4;}
.sub {vertical-align:middle;display:table-cell;}
.login {vertical-align:middle;display:table-cell;}
.sub span{display:block;border:1px solid #555;border-radius:8px;cursor:pointer;color: #557;}
.sub img{margin:0px;height:28px;vertical-align:middle;margin-left:4px;}
.login span{vertical-align: middle;padding:7px 1px 7px 15px;border-radius:4px;cursor:pointer;color:#556;}
.tt{width:1062px;height:149px;background:url(/alfa_c.jpg) no-repeat;background-size:contain;background-position:center;}
.a {background:#d61515;width:400px;margin:36px auto 0px;padding:11px;border-radius:8px;}
@media (max-width:500px) {.a {width:95%;box-sizing:border-box;}}
@media (max-width:1094px) {
.body{width:auto;margin:0 5px;}.tt{left:0;right:0;margin:0 5px;width: auto;height:auto;}
.tt{width:auto;height:130px;background:url(/alpha_c1.jpg) no-repeat;background-size:cover;background-position:center;}
}
@media (max-height:455px) {
.tt{width:auto;height:90px;background:url(/alpha_c1.jpg) no-repeat;background-size:contain;background-position:center;}
}
@media (max-width:671px) {.search-form{display:none;}}
.content-wrapper {display:flex;gap:20px;}
.content-main {flex:1;min-width:0;}
.content-sidebar {width:300px;flex-shrink:0;}
.sticky-banner {position:sticky;top:20px;}
@media (max-width:900px) {.content-sidebar{display:none;}}
@media (max-width:509px) {
.tt{width:auto;height:129px;background:url(/alpha_c2.jpg) no-repeat;background-size:cover;background-position:center;}
}
.search-box- input {width:100%;box-sizing:border-box;border-radius:4px;}
.slg {font-size:20px;margin-bottom:3px;}
.wrap{background:#fff;position:fixed;top:0;right:0;bottom:0;left:0;padding-bottom:5px;}
.wrap img{display:inline;margin:0px 0px 5px 0px;}




:root {
  --bg: #f4f7fb;
  --bg-2: #eef4f9;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --surface-soft: #f8fbfe;
  --surface-muted: #f2f6fb;
  --text: #253041;
  --text-2: #536175;
  --text-3: #75839a;
  --line: rgba(38, 60, 91, 0.10);
  --line-strong: rgba(38, 60, 91, 0.16);
  --shadow-sm: 0 10px 30px rgba(36, 56, 84, 0.06);
  --shadow-md: 0 24px 60px rgba(34, 51, 84, 0.10);
  --shadow-lg: 0 36px 90px rgba(31, 52, 85, 0.14);
  --brand: #3abbd0;
  --brand-deep: #2c93af;
  --brand-soft: rgba(58, 187, 208, 0.10);
  --accent: #8cc938;
  --accent-soft: rgba(140, 201, 56, 0.12);
  --link: #4d7398;
  --link-hover: #2f5c84;
  --footer: #121923;
  --footer-2: #192230;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', 'Roboto', Arial, sans-serif !important;
  color: var(--text) !important;
  background:
    radial-gradient(circle at top left, rgba(58, 187, 208, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(140, 201, 56, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 38%, #f3f6fb 100%) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

#a1,
#tnk1 {
  display: none !important;
}

.bg {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(28, 45, 72, 0.08) !important;
  box-shadow: 0 8px 30px rgba(28, 47, 72, 0.04) !important;
}

.head {
  height: 82px !important;
  padding: 0 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  max-width: 100% !important;
}

.l-head,
.r-head {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.l-head {
  width: 178px !important;
  flex: 0 0 178px !important;
}

.l-head a {
  display: block !important;
  width: 100% !important;
  height: 38px !important;
  background-size: 160px auto !important;
  background-position: left center !important;
  filter: saturate(0.95) contrast(1.02);
}

.r-head {
  gap: 14px !important;
  justify-content: flex-end !important;
}

.s-button,
.search-box,
.search-box-m {
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background-color: var(--surface-solid) !important;
  border: 1px solid rgba(36, 57, 89, 0.10) !important;
  box-shadow: 0 8px 18px rgba(40, 60, 92, 0.08) !important;
}

.search-form,
.search-box- input {
  font-family: inherit !important;
  border: 1px solid rgba(41, 63, 94, 0.12) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--text) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 24px rgba(43, 63, 94, 0.06) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form:focus,
.search-box- input:focus {
  outline: none !important;
  border-color: rgba(58, 187, 208, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(58, 187, 208, 0.10), 0 12px 28px rgba(43, 63, 94, 0.08) !important;
}

.body {
  width: min(1280px, calc(100vw - 32px)) !important;
  margin: 0 auto !important;
  position: relative !important;
}

@media (min-width: 1440px) {
  .body {
    margin-left: max(16px, calc((100vw - 1280px) / 2 - 56px)) !important;
    margin-right: auto !important;
  }
}

.content-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 28px !important;
  align-items: start !important;
  margin-top: 26px !important;
}

.content-main {
  min-width: 0 !important;
}

.content-sidebar {
  width: 300px !important;
  flex-shrink: 0 !important;
  min-height: 1px !important;
}

.sticky-banner {
  position: sticky !important;
  top: 108px !important;
}

.sticky-banner:empty {
  min-height: 1px !important;
}

.l-main {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(251,253,255,0.98) 100%) !important;
  border: 1px solid rgba(31, 51, 82, 0.08) !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: var(--radius-lg) !important;
  margin-top: 0 !important;
  padding: 34px 36px 40px !important;
  overflow: hidden !important;
}

.title h1,
h1,
h2,
h3,
.slg,
.l-main div > .ht {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  letter-spacing: -0.03em;
}

.title h1 {
  margin: 0 !important;
  padding: 0 0 22px !important;
  border-bottom: 1px solid var(--line) !important;
  color: #263142 !important;
  font-size: clamp(2rem, 3vw, 2.9rem) !important;
  line-height: 1.08 !important;
  font-weight: 700 !important;
}

h2,
h3 {
  color: #2d3748 !important;
}

.l-main div > .ht {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: transparent !important;
  color: #253041 !important;
  font-size: clamp(1.38rem, 1.8vw, 1.7rem) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  margin: 40px 0 16px !important;
  padding: 8px 0 14px !important;
  border-bottom: 1px solid var(--line) !important;
}

.l-main div > .ht::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow: 0 0 0 6px rgba(58, 187, 208, 0.10);
  flex: 0 0 12px;
}

.slc-main {
  display: none !important;
}

p,
li,
td,
th,
.update,
.body > div {
  font-family: 'Inter', 'Roboto', Arial, sans-serif !important;
}

p {
  margin: 0 0 1.15em !important;
  color: var(--text) !important;
  font-size: 1.05rem !important;
  line-height: 1.78 !important;
}

.l-main > div,
.l-main div {
  line-height: 1.72 !important;
}

ul,
ol {
  padding-left: 1.5rem !important;
}

li {
  color: var(--text) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

a {
  color: var(--link) !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 0.06em !important;
  text-underline-offset: 0.14em !important;
  text-decoration-color: rgba(77, 115, 152, 0.24) !important;
  transition: color 0.18s ease, text-decoration-color 0.18s ease, opacity 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover) !important;
  text-decoration-color: rgba(47, 92, 132, 0.40) !important;
}

.l-main a,
.references a,
.ul_main a,
.list a {
  font-weight: 500 !important;
}

.title a,
.l-head a,
.r-head a,
.bl_main a,
.list a,
.search-box,
.search-box-m {
  text-decoration: none !important;
}

.l-main img,
.content-main img,
body img {
  max-width: 100% !important;
}

/* Главная: карточки свежих статей */
div[style*="display:table;width:100%"] {
  display: flex !important;
  gap: 28px !important;
  width: 100% !important;
  margin: 0 0 28px !important;
}

.bl_main {
  display: flex !important;
  flex-direction: column !important;
  width: calc(33.333% - 18.67px) !important;
  min-width: 0 !important;
  padding: 18px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(35, 55, 84, 0.08) !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 18px 40px rgba(34, 54, 82, 0.08) !important;
  vertical-align: top !important;
}

.bl_main > div:first-child {
  margin-bottom: 16px !important;
}

.bl_main img {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 18px !important;
  margin: 0 !important;
  background: linear-gradient(180deg, #dde7f0 0%, #eef4f9 100%) !important;
  box-shadow: 0 14px 30px rgba(40, 59, 89, 0.12) !important;
}

.bl_main p {
  margin: 0 0 0.9rem !important;
  font-size: 0.98rem !important;
  line-height: 1.72 !important;
  color: var(--text-2) !important;
}

.bl_main p:first-of-type {
  margin-bottom: 0.75rem !important;
}

.bl_main p:first-of-type a {
  display: inline-block !important;
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #26384f !important;
}

.bl_main p:first-of-type a:hover {
  color: var(--brand-deep) !important;
}

.slg {
  font-size: clamp(2rem, 4vw, 3.8rem) !important;
  line-height: 1.03 !important;
  text-decoration: none !important;
  color: #2c3647 !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

/* Иллюстрации в статье */
.l-main > div > img,
.l-main > div p > img,
.l-main > div a > img,
.l-main img:not(.noviewer):not([width="12"]):not([width="13"]):not([width="16"]) {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 26px auto !important;
  border-radius: 20px !important;
  box-shadow: 0 18px 44px rgba(33, 53, 81, 0.14) !important;
}

.l-main p img,
.l-main td img,
.l-main a img {
  vertical-align: middle !important;
}

img.noviewer,
.l-main img.noviewer,
.l-main img[width="12"],
.l-main img[width="13"],
.l-main img[width="16"] {
  display: inline !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 8px 0 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

/* Инфобокс в начале статьи */
.ltbl {
  width: min(390px, 42%) !important;
  float: right !important;
  clear: right !important;
  margin: 6px 0 28px 32px !important;
  background: linear-gradient(180deg, #fcfeff 0%, #f6fbff 100%) !important;
  border: 1px solid rgba(45, 74, 108, 0.12) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 44px rgba(39, 61, 93, 0.10) !important;
}

.ltbl th,
.ltbl td {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}

.ltbl th {
  background: #eef6fc !important;
}

.ltbl tr:first-child th {
  background: linear-gradient(135deg, rgba(58,187,208,0.14) 0%, rgba(140,201,56,0.12) 100%) !important;
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #27405d !important;
}

.ltbl tr:first-child + tr td {
  background: rgba(255,255,255,0.75) !important;
  font-weight: 600 !important;
}

.ltbl td[colspan="2"] img,
.ltbl img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto 12px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(36, 56, 86, 0.10) !important;
}

/* Фотографии в распознанном сайдбаре используют всю ширину ячейки; JS
   исключает флаги, иконки, схемы, карты и небольшие служебные изображения. */
:where(
  .ltbl,
  .infobox,
  .ap-forced-sidebar-table,
  [data-ap-sidebar-lead="1"],
  [data-ap-sidebar-follow="1"]
) :is(a, picture):has(> img.ap-sidebar-fill-image),
:where(
  .content-sidebar,
  .sidebar,
  .ap-sidebar-stack,
  aside,
  [role="complementary"]
) :is(a, picture):has(> img.ap-sidebar-fill-image) {
  display: block !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
}

:where(
  .ltbl,
  .infobox,
  .ap-forced-sidebar-table,
  [data-ap-sidebar-lead="1"],
  [data-ap-sidebar-follow="1"],
  .content-sidebar,
  .sidebar,
  .ap-sidebar-stack,
  aside,
  [role="complementary"]
) img.ap-sidebar-fill-image {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  block-size: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.ltbltr th[scope="row"] {
  width: 38% !important;
}

/* Таблицы */
table {
  width: 100% !important;
  margin: 24px 0 28px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: var(--surface-solid) !important;
  box-shadow: 0 18px 42px rgba(34, 54, 82, 0.08) !important;
  border: 1px solid rgba(36, 58, 90, 0.10) !important;
  display: block !important;
  overflow-x: auto !important;
}

table tbody {
  width: 100% !important;
}

th,
td {
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(34, 54, 82, 0.08) !important;
  border-right: 1px solid rgba(34, 54, 82, 0.06) !important;
  text-align: left !important;
  color: var(--text) !important;
  background: rgba(255,255,255,0.94) !important;
}

tr:last-child td,
tr:last-child th {
  border-bottom: 0 !important;
}

tr td:last-child,
tr th:last-child {
  border-right: 0 !important;
}

th {
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  color: #2d435f !important;
  background: linear-gradient(180deg, #eff6fb 0%, #eaf3fb 100%) !important;
}

tr:nth-child(even) td {
  background: #fbfdff !important;
}

/* Содержание, списки ссылок и литературы */
.ul_main,
.clirg,
.references {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 24px !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.ul_main li,
.clirg li,
.references li {
  position: relative !important;
  padding: 16px 18px 16px 52px !important;
  margin: 0 0 12px !important;
  background: linear-gradient(180deg, #f7fbff 0%, #f4f8fd 100%) !important;
  border: 1px solid rgba(39, 62, 94, 0.09) !important;
  border-radius: 18px !important;
  color: var(--text) !important;
  font-size: 0.99rem !important;
  line-height: 1.7 !important;
  box-shadow: 0 10px 26px rgba(38, 57, 88, 0.05) !important;
}

.ul_main li::before,
.clirg li::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow: 0 0 0 5px rgba(58, 187, 208, 0.10);
}

.references {
  counter-reset: refs;
}

.references li {
  counter-increment: refs;
}

.references li::before {
  content: counter(refs);
  position: absolute;
  top: 15px;
  left: 16px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #28527c;
  background: rgba(58, 187, 208, 0.12);
  border: 1px solid rgba(58, 187, 208, 0.18);
}

.references a,
.ul_main a,
.clirg a {
  color: #40698f !important;
  text-decoration-color: rgba(64, 105, 143, 0.24) !important;
}

.references a:hover,
.ul_main a:hover,
.clirg a:hover {
  color: #2b557e !important;
  text-decoration-color: rgba(43, 85, 126, 0.38) !important;
}

/* Кнопки, бейджи, служебные блоки */
.edit,
.sub span,
.login span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  border: 1px solid rgba(34, 53, 82, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.94) !important;
  color: #3e566f !important;
  box-shadow: 0 10px 24px rgba(37, 58, 88, 0.06) !important;
}

.update {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 28px 0 10px !important;
  color: var(--text-2) !important;
  font-size: 0.96rem !important;
}

.update::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(140, 201, 56, 0.12);
}

/* Футер */
.schl,
div[style*="background:#0e365a"] {
  background: linear-gradient(180deg, var(--footer) 0%, #0d141d 100%) !important;
  color: #d5deea !important;
  height: auto !important;
  margin-top: 34px !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}

.schl .body,
div[style*="background:#0e365a"] .body {
  padding: 30px 0 34px !important;
  margin-top: 0 !important;
  font-size: 0.98rem !important;
}

.schl a,
div[style*="background:#0e365a"] a {
  color: #eaf1fa !important;
  text-decoration-color: rgba(234, 241, 250, 0.16) !important;
}

.schl a:hover,
div[style*="background:#0e365a"] a:hover {
  color: #ffffff !important;
  text-decoration-color: rgba(255, 255, 255, 0.34) !important;
}

.list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 8px !important;
  align-items: center !important;
  margin-top: 18px !important;
}

.list div {
  float: none !important;
  margin: 0 !important;
  font-size: 0.94rem !important;
}

.list > div:first-child {
  width: 100% !important;
  margin-bottom: 6px !important;
  color: #9eb0c3 !important;
  font-size: 0.92rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.list a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.list a:hover {
  background: rgba(255,255,255,0.14) !important;
}

/* Технические и вспомогательные блоки */
.wrap {
  background: rgba(247, 250, 253, 0.98) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.er {
  color: #d24a43 !important;
}

/* Мобильная и планшетная адаптация */
@media (max-width: 1180px) {
  .content-wrapper {
    grid-template-columns: minmax(0, 1fr) 280px !important;
    gap: 22px !important;
  }

  .content-sidebar {
    width: 280px !important;
  }

  .l-main {
    padding: 28px 26px 32px !important;
  }
}

@media (max-width: 960px) {
  .body {
    width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
  }

  .content-wrapper {
    grid-template-columns: 1fr !important;
  }

  .content-sidebar {
    display: none !important;
  }

  .ltbl {
    float: none !important;
    width: 100% !important;
    margin: 12px 0 24px !important;
  }

  div[style*="display:table;width:100%"] {
    flex-direction: column !important;
    gap: 18px !important;
    margin-bottom: 18px !important;
  }

  .bl_main {
    width: 100% !important;
  }

  .bl_main img {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
  }
}

@media (max-width: 640px) {
  .head {
    height: 74px !important;
    padding: 0 16px !important;
  }

  .l-head {
    width: 150px !important;
    flex-basis: 150px !important;
  }

  .l-head a {
    height: 34px !important;
    background-size: 145px auto !important;
  }

  .body {
    width: calc(100vw - 16px) !important;
  }

  .l-main {
    padding: 22px 16px 24px !important;
    border-radius: 22px !important;
  }

  .title h1 {
    padding-bottom: 18px !important;
  }

  .l-main div > .ht {
    margin-top: 32px !important;
  }

  p,
  li,
  td,
  th {
    font-size: 0.98rem !important;
  }

  .bl_main {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .bl_main img {
    height: 208px !important;
    min-height: 208px !important;
    max-height: 208px !important;
    border-radius: 16px !important;
  }

  .ul_main li,
  .clirg li,
  .references li {
    padding: 14px 14px 14px 44px !important;
  }

  .ul_main li::before,
  .clirg li::before {
    left: 18px;
    top: 20px;
  }

  .references li::before {
    left: 14px;
    top: 14px;
  }

  table {
    border-radius: 18px !important;
  }

  th,
  td {
    padding: 12px 12px !important;
  }

  .search-form,
  .search-box- input {
    font-size: 16px !important;
  }
}

/* ==========================================================
   Geometry normalization for legacy article/table structures
   ========================================================== */

/* Known sidebars must paint in their final table geometry before JS runs. */
@media (min-width: 1181px) {
  html body :where(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article
  ) > :where(table, div > table):is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [align="right"]
  ) {
    display: table !important;
    inline-size: min(390px, 42%) !important;
    min-inline-size: 0 !important;
    max-inline-size: min(390px, 42%) !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
  }
}

/* Some imports use .ht as a whole section wrapper containing a table. */
html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ht:is(:has(> table), :has(> .ap-table-scroll)) {
  display: block !important;
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  box-sizing: border-box !important;
  font-family: 'Inter', 'Roboto', Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ht:is(:has(> table), :has(> .ap-table-scroll)) > .ap-table-scroll {
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  box-sizing: border-box !important;
}

/* A second legacy .ht variant is a whole section (label + list, sometimes
   nested sections), not a heading.  Keeping the heading flex layout on it
   puts every child on one unbounded horizontal line. */
html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) div > .ht:is(:has(> ul), :has(> ol), :has(> .ht)) {
  display: block !important;
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: anywhere !important;
  font-family: 'Inter', 'Roboto', Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: 1.65 !important;
  margin: 18px 0 !important;
  padding: 0 !important;
  border-block-end: 0 !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) div > .ht:is(:has(> ul), :has(> ol), :has(> .ht))::before {
  display: none !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ht:is(:has(> ul), :has(> ol), :has(> .ht)) > :is(ul, ol) {
  inline-size: auto !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  margin-block: 8px 18px !important;
  white-space: normal !important;
}

/* Every nesting level inside a sidebar must remain inside the sidebar width. */
html body :where(
  table.ltbl,
  table.infobox,
  table.ap-forced-sidebar-table,
  table[data-ap-sidebar-lead="1"]
) .ap-sidebar-inner-table-scroll,
html body :where(
  table.ltbl,
  table.infobox,
  table.ap-forced-sidebar-table,
  table[data-ap-sidebar-lead="1"]
) .ap-sidebar-inner-table-scroll table {
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  box-sizing: border-box !important;
}

html body :where(
  table.ltbl,
  table.infobox,
  table.ap-forced-sidebar-table,
  table[data-ap-sidebar-lead="1"]
) .ap-sidebar-inner-table-scroll table {
  display: table !important;
  table-layout: fixed !important;
}

html body :where(
  table.ltbl,
  table.infobox,
  table.ap-forced-sidebar-table,
  table[data-ap-sidebar-lead="1"]
) .ap-sidebar-inner-table-scroll :is(th, td) {
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  box-sizing: border-box !important;
}


/* === PATCH: расширяем именно белую контентную область, а не сжимаем карточки === */

/* общий внешний контейнер страницы */
html body .body {
  width: min(1560px, calc(100vw - 40px)) !important;
  max-width: 1560px !important;
  margin-left: clamp(16px, 2vw, 34px) !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* layout контент + сайдбар */
html body .content-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px !important;
  gap: 28px !important;
  align-items: start !important;
}

/* основная колонка */
html body .content-main {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

/* белый блок */
html body .l-main {
  width: 100% !important;
  max-width: none !important;
  padding: 36px 40px 42px !important;
}

/* сайдбар уже не такой прожорливый */
html body .content-sidebar {
  width: 220px !important;
  max-width: 220px !important;
  min-width: 220px !important;
}

/* если сайдбар по факту пустой — убираем его совсем,
   и белая область занимает всю доступную ширину */
html body .content-wrapper:has(.content-sidebar > .sticky-banner):not(:has(.content-sidebar > .sticky-banner > *)) {
  grid-template-columns: minmax(0, 1fr) !important;
}

html body .content-wrapper:has(.content-sidebar > .sticky-banner):not(:has(.content-sidebar > .sticky-banner > *)) .content-sidebar {
  display: none !important;
}

/* главная: карточки остаются нормальной ширины, а не узкими столбиками */
html body .bl_main {
  width: 33.333% !important;
  padding: 0 14px 12px !important;
  vertical-align: top !important;
}

html body .bl_main img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  border-radius: 22px !important;
  display: block !important;
}

/* Главная: изображение доходит до краёв карточки, но текст сохраняет
   внутренние поля. Ограничиваем bleed только реальным первым media-блоком. */
html body .bl_main > div:first-child:has(img) {
  inline-size: calc(100% + 28px) !important;
  width: calc(100% + 28px) !important;
  max-inline-size: none !important;
  max-width: none !important;
  margin-inline: -14px !important;
}

html body .bl_main > div:first-child:has(img) > :is(a, picture) {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
}

/* Outrank the generic article-image selector, which otherwise restores
   width:auto inside the homepage's .l-main container. */
html body .l-main .bl_main img:not(.noviewer):not([width="12"]):not([width="13"]):not([width="16"]) {
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 100% !important;
  min-width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 961px) {
  html body .l-main .bl_main img:not(.noviewer):not([width="12"]):not([width="13"]):not([width="16"]) {
    block-size: 240px !important;
    height: 240px !important;
    min-block-size: 240px !important;
    min-height: 240px !important;
    max-block-size: 240px !important;
    max-height: 240px !important;
    object-fit: cover !important;
  }
}

/* на очень широких экранах делаем белую область ещё свободнее */
@media (min-width: 1680px) {
  html body .body {
    width: min(1640px, calc(100vw - 48px)) !important;
    max-width: 1640px !important;
  }

  html body .content-wrapper {
    grid-template-columns: minmax(0, 1fr) 200px !important;
  }

  html body .content-sidebar {
    width: 200px !important;
    max-width: 200px !important;
    min-width: 200px !important;
  }
}

/* планшеты */
@media (max-width: 1180px) {
  html body .body {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  html body .content-wrapper {
    grid-template-columns: 1fr !important;
  }

  html body .content-sidebar {
    display: none !important;
  }

  html body .l-main {
    padding: 26px 22px 30px !important;
  }
}


/* === PATCH: корректная центровка без сайдбара + больше воздуха на меньших экранах === */

/* базово центрируем общий холст */
html body .body {
  width: min(1660px, calc(100vw - 72px)) !important;
  max-width: 1660px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* основной layout */
html body .content-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px !important;
  gap: 28px !important;
  align-items: start !important;
}

/* если сайдбар отсутствует или фактически пустой — белая область занимает всю ширину и центрируется */
html body .content-wrapper:not(:has(.content-sidebar)),
html body .content-wrapper:has(.content-sidebar:empty),
html body .content-wrapper:has(.content-sidebar > .sticky-banner:empty),
html body .content-wrapper:has(.content-sidebar > .sticky-banner:not(:has(*))) {
  grid-template-columns: minmax(0, 1fr) !important;
}

html body .content-wrapper:not(:has(.content-sidebar)) .content-sidebar,
html body .content-wrapper:has(.content-sidebar:empty) .content-sidebar,
html body .content-wrapper:has(.content-sidebar > .sticky-banner:empty) .content-sidebar,
html body .content-wrapper:has(.content-sidebar > .sticky-banner:not(:has(*))) .content-sidebar {
  display: none !important;
}

html body .content-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

html body .l-main {
  width: 100% !important;
  max-width: none !important;
  padding: 40px 42px 46px !important;
  box-sizing: border-box !important;
}

/* сайдбар, когда он реально есть */
html body .content-sidebar {
  width: 220px !important;
  max-width: 220px !important;
  min-width: 220px !important;
}

/* === большие экраны: всё строго по центру === */
@media (min-width: 1600px) {
  html body .body {
    width: min(1700px, calc(100vw - 96px)) !important;
    max-width: 1700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* === экраны поменьше: добавляем больше воздуха вокруг контейнера === */
@media (max-width: 1480px) {
  html body .body {
    width: min(1540px, calc(100vw - 88px)) !important;
  }

  html body .l-main {
    padding: 38px 40px 44px !important;
  }
}

@media (max-width: 1280px) {
  html body .body {
    width: calc(100vw - 96px) !important; /* больше воздуха по бокам */
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body .content-wrapper {
    grid-template-columns: 1fr !important;
  }

  html body .content-sidebar {
    display: none !important;
  }

  html body .l-main {
    padding: 34px 36px 40px !important;
  }
}

@media (max-width: 1024px) {
  html body .body {
    width: calc(100vw - 84px) !important;
  }

  html body .l-main {
    padding: 30px 30px 36px !important;
  }
}

@media (max-width: 768px) {
  html body .body {
    width: calc(100vw - 40px) !important;
  }

  html body .l-main {
    padding: 24px 20px 28px !important;
    border-radius: 26px !important;
  }
}

/* =========================
   IMAGE FALLBACK
   ========================= */

.img-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-height: 0;
  padding: 10px 14px;
  margin: 8px 0;
  border: 1px dashed rgba(43, 59, 89, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
  color: #657187;
  font-size: 14px;
  line-height: 1.45;
  vertical-align: top;
  box-sizing: border-box;
}

.img-fallback::before,
.img-fallback .img-fallback__icon {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 999px;
  position: relative;
  background:
    linear-gradient(45deg,
      transparent calc(50% - 1px),
      #9ba8bc calc(50% - 1px),
      #9ba8bc calc(50% + 1px),
      transparent calc(50% + 1px)),
    linear-gradient(-45deg,
      transparent calc(50% - 1px),
      #9ba8bc calc(50% - 1px),
      #9ba8bc calc(50% + 1px),
      transparent calc(50% + 1px));
  box-shadow: inset 0 0 0 1px rgba(155, 168, 188, 0.35);
}

.article-content .img-fallback,
.entry-content .img-fallback,
.post-content .img-fallback,
.mw-parser-output .img-fallback,
#content .img-fallback {
  display: inline-flex;
}

/* случаи, где картинки вообще не заданы */
img:not([src]),
img[src=""],
img[src="#"] {
  display: none !important;
}

/* чтобы обычные картинки не вылезали */
.article-content img,
.entry-content img,
.post-content img,
.mw-parser-output img,
#content img {
  max-width: 100% !important;
  height: auto !important;
}


/* =========================
   REAL FOOTER FIX FOR ALPHAPEDIA
   ========================= */

html body .schl,
html body div[style*="background:#0e365a"] {
  background:
    radial-gradient(1200px 320px at 12% 0%, rgba(7,146,229,0.10), transparent 58%),
    linear-gradient(135deg, #08111f 0%, #09172a 48%, #07111f 100%) !important;
  color: #d7deea !important;
  border-radius: 30px !important;
  width: min(1660px, calc(100vw - 72px)) !important;
  max-width: 1660px !important;
  margin: 30px auto 36px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow:
    0 22px 60px rgba(6, 18, 38, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
  overflow: hidden !important;
}

html body .schl .body,
html body div[style*="background:#0e365a"] .body {
  width: 100% !important;
  max-width: 1380px !important;
  margin: 0 auto !important;
  padding: 34px 42px 38px !important;
  box-sizing: border-box !important;
}

/* верхние ссылки в футере */
html body .schl .body > div:first-child,
html body div[style*="background:#0e365a"] .body > div:first-child {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px 24px !important;
  text-align: center !important;
  margin-bottom: 18px !important;
}

html body .schl a,
html body div[style*="background:#0e365a"] a {
  color: #eaf1fa !important;
  text-decoration: none !important;
  opacity: 0.94 !important;
}

html body .schl a:hover,
html body div[style*="background:#0e365a"] a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* блок "СПИСОК МАТЕРИАЛОВ" */
html body .schl .list,
html body div[style*="background:#0e365a"] .list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px 10px !important;
  margin: 18px auto 0 !important;
  text-align: center !important;
}

html body .schl .list > div:first-child,
html body div[style*="background:#0e365a"] .list > div:first-child {
  width: 100% !important;
  margin: 0 0 10px !important;
  color: #99abc1 !important;
  font-size: 0.92rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.10em !important;
  text-align: center !important;
}

html body .schl .list div,
html body div[style*="background:#0e365a"] .list div {
  float: none !important;
  margin: 0 !important;
}

html body .schl .list a,
html body div[style*="background:#0e365a"] .list a {
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #eaf1fb !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
  font-weight: 600 !important;
}

html body .schl .list a:hover,
html body div[style*="background:#0e365a"] .list a:hover {
  background: rgba(255,255,255,0.12) !important;
  transform: translateY(-1px) !important;
}

/* адаптив */
@media (max-width: 1280px) {
  html body .schl,
  html body div[style*="background:#0e365a"] {
    width: calc(100vw - 96px) !important;
    border-radius: 26px !important;
  }

  html body .schl .body,
  html body div[style*="background:#0e365a"] .body {
    padding: 26px 28px 30px !important;
  }
}

@media (max-width: 768px) {
  html body .schl,
  html body div[style*="background:#0e365a"] {
    width: calc(100vw - 40px) !important;
    border-radius: 22px !important;
  }

  html body .schl .body,
  html body div[style*="background:#0e365a"] .body {
    padding: 22px 18px 24px !important;
  }

  html body .schl .list,
  html body div[style*="background:#0e365a"] .list {
    gap: 10px 8px !important;
  }

  html body .schl .list a,
  html body div[style*="background:#0e365a"] .list a {
    min-width: 38px !important;
    height: 38px !important;
  }
}




/* вторая таблица, которую принудительно отправляем в правый стек */
.l-main table.ap-forced-sidebar-table,
#content table.ap-forced-sidebar-table,
.mw-parser-output table.ap-forced-sidebar-table,
.content table.ap-forced-sidebar-table,
article table.ap-forced-sidebar-table {
  float: right !important;
  clear: right !important;
  width: min(390px, 100%) !important;
  max-width: min(390px, 100%) !important;
  margin: 0 0 24px 32px !important;
  display: table !important;
  table-layout: auto !important;
}

/* если таблице уже добавился класс ltbl — сохраняем аккуратный стек */
.l-main table.ltbl.ap-forced-sidebar-table,
#content table.ltbl.ap-forced-sidebar-table,
.mw-parser-output table.ltbl.ap-forced-sidebar-table {
  float: right !important;
  clear: right !important;
}

/* на узких экранах всё складываем обратно в поток */
@media (max-width: 1180px) {
  .l-main table.ap-forced-sidebar-table,
  #content table.ap-forced-sidebar-table,
  .mw-parser-output table.ap-forced-sidebar-table,
  .content table.ap-forced-sidebar-table,
  article table.ap-forced-sidebar-table {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 24px !important;
  }
}


/* =========================
   FIX: оглавление и похожие карточечные списки
   не должны заезжать под правый infobox
   ========================= */

.l-main .ul_main,
.l-main .clirg,
.l-main .references {
  display: flow-root !important;
  max-width: 100% !important;
}

.l-main .ul_main > li,
.l-main .clirg > li,
.l-main .references > li {
  display: flow-root !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* вложенные пункты тоже */
.l-main .ul_main li .ul_main,
.l-main .ul_main li .clirg,
.l-main .clirg li .ul_main,
.l-main .clirg li .clirg {
  display: flow-root !important;
  max-width: 100% !important;
}

.l-main .ul_main li .ul_main > li,
.l-main .ul_main li .clirg > li,
.l-main .clirg li .ul_main > li,
.l-main .clirg li .clirg > li {
  display: flow-root !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}


/* =========================
   FIX: вторая таблица в правом стеке
   должна быть той же ширины, что и первая
   ========================= */

.l-main table.ap-forced-sidebar-table {
  float: right !important;
  clear: right !important;
  width: var(--ap-sidebar-stack-width, 390px) !important;
  min-width: var(--ap-sidebar-stack-width, 390px) !important;
  max-width: var(--ap-sidebar-stack-width, 390px) !important;
  margin: 0 0 24px 32px !important;

  display: table !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  overflow-x: visible !important;
}

/* вернуть нормальную табличную модель именно для этой таблицы */
.l-main table.ap-forced-sidebar-table > tbody,
.l-main table.ap-forced-sidebar-table > thead,
.l-main table.ap-forced-sidebar-table > tfoot {
  display: table-row-group !important;
  width: 100% !important;
}

.l-main table.ap-forced-sidebar-table > tbody > tr,
.l-main table.ap-forced-sidebar-table > thead > tr,
.l-main table.ap-forced-sidebar-table > tfoot > tr {
  display: table-row !important;
}

.l-main table.ap-forced-sidebar-table > tbody > tr > th,
.l-main table.ap-forced-sidebar-table > tbody > tr > td,
.l-main table.ap-forced-sidebar-table > thead > tr > th,
.l-main table.ap-forced-sidebar-table > thead > tr > td,
.l-main table.ap-forced-sidebar-table > tfoot > tr > th,
.l-main table.ap-forced-sidebar-table > tfoot > tr > td {
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* если в этой таблице есть медиа/иконки */
.l-main table.ap-forced-sidebar-table img,
.l-main table.ap-forced-sidebar-table audio,
.l-main table.ap-forced-sidebar-table svg {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 1180px) {
  .l-main table.ap-forced-sidebar-table {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 18px 0 24px !important;
  }
}


/* =========================
   CONTENT TABLES FULL WIDTH
   кроме таблиц в сайдбаре
   ========================= */

.l-main table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]),
#content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]),
.mw-parser-output table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]),
.content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]),
article table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  display: table !important;
  table-layout: auto !important;
  float: none !important;
  clear: both !important;
  margin: 18px 0 26px !important;
  box-sizing: border-box !important;
}

/* вернуть нормальную табличную механику */
.l-main table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > tbody,
.l-main table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > thead,
.l-main table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > tfoot,
#content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > tbody,
#content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > thead,
#content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > tfoot,
.mw-parser-output table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > tbody,
.mw-parser-output table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > thead,
.mw-parser-output table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) > tfoot {
  display: table-row-group !important;
  width: 100% !important;
}

.l-main table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) tr,
#content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) tr,
.mw-parser-output table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) tr {
  display: table-row !important;
}

.l-main table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) th,
.l-main table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) td,
#content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) th,
#content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) td,
.mw-parser-output table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) th,
.mw-parser-output table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) td {
  display: table-cell !important;
  width: auto !important;
  max-width: none !important;
  vertical-align: top !important;
}

/* если внутри обычной таблицы есть большая картинка — не ломаем ширину */
.l-main table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) img,
#content table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) img,
.mw-parser-output table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) img {
  max-width: 100% !important;
  height: auto !important;
}










.ap-toc-columns-zone .ap-toc-columns-list li::before,
.ap-toc-columns-zone .ap-toc-columns-list > li::before,
.ap-toc-columns-zone .ap-toc-columns-list .ul_main > li::before,
.ap-toc-columns-zone .ap-toc-columns-list .clirg > li::before {
  content: none !important;
  display: none !important;
}

.ap-toc-columns-zone .ap-toc-columns-list li,
.ap-toc-columns-zone .ap-toc-columns-list > li,
.ap-toc-columns-zone .ap-toc-columns-list .ul_main > li,
.ap-toc-columns-zone .ap-toc-columns-list .clirg > li {
  padding-left: 0 !important;
  text-indent: 0 !important;
}





.ap-toc-columns-zone {
  margin-top: 2px !important;
}

.ap-toc-columns-zone .ap-toc-columns-list a:hover,
.ap-toc-columns-zone .ap-toc-columns-list .ap-toc-anchor:hover {
  color: #2f5f8f !important;
}




.ap-toc-columns-zone .ap-toc-columns-list,
.ap-toc-columns-zone .ap-toc-columns-list li,
.ap-toc-columns-zone .ap-toc-columns-list a,
.ap-toc-columns-zone .ap-toc-columns-list .ap-toc-anchor {
  font-size: 1.02rem !important;
}








/* ===== restore horizontal scroll for wide content tables ===== */

.ap-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0 28px;
}

.ap-table-scroll > table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) {
  display: table !important;
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
  table-layout: auto !important;
}

.ap-table-scroll > table > thead,
.ap-table-scroll > table > tbody,
.ap-table-scroll > table > tfoot {
  width: auto !important;
}

.ap-table-scroll > table tr {
  width: auto !important;
}

.ap-table-scroll > table th,
.ap-table-scroll > table td {
  white-space: normal;
}









/* =========================
   CARD LISTS AUTO-COMPACT
   кроме содержания
   ========================= */

.ap-card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(var(--ap-card-min, 280px), 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 16px 0 24px !important;
}

.ap-card-grid > li {
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* если блок уже и так разбит на несколько колонок — только косметика */
.ap-card-grid--already-columns {
  width: 100% !important;
  max-width: 100% !important;
}

/* компактные карточки с медиа */
.ap-card-grid--media > li,
.ap-card-grid > li.ap-card-has-media {
  padding-top: 12px !important;
  padding-right: 16px !important;
  padding-bottom: 12px !important;
  padding-left: 16px !important;
  min-height: 0 !important;
}

/* у медийных карточек скрываем зелёную точку */
.ap-card-grid--media > li::before,
.ap-card-grid > li.ap-card-has-media::before {
  content: none !important;
  display: none !important;
}

/* у карточек с картинками/фоллбэком убираем лишние отступы медиа */
.ap-card-grid--media img,
.ap-card-grid--media .img-fallback,
.ap-card-grid > li.ap-card-has-media img,
.ap-card-grid > li.ap-card-has-media .img-fallback {
  margin: 0 !important;
  align-self: center !important;
}

/* делаем фоллбэк компактнее в карточках */
.ap-card-grid--media .img-fallback,
.ap-card-grid > li.ap-card-has-media .img-fallback {
  padding: 8px 10px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  max-width: 100% !important;
}

/* если в карточке есть медиа, даём ей более плотную вертикаль */
.ap-card-grid > li.ap-card-has-media a,
.ap-card-grid > li.ap-card-has-media,
.ap-card-grid--media > li a,
.ap-card-grid--media > li {
  line-height: 1.38 !important;
}

/* не трогаем мобильную одну колонку */
@media (max-width: 900px) {
  .ap-card-grid {
    grid-template-columns: 1fr !important;
  }
}





/* === Единый внешний контур обычных контентных таблиц === */

.ap-table-scroll {
  border-radius: 22px !important;
  background: var(--surface-solid) !important;
  border: 1px solid rgba(36, 58, 90, 0.10) !important;
  box-shadow: 0 18px 42px rgba(34, 54, 82, 0.08) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  background-clip: padding-box !important;
  isolation: isolate;
}

/* внутренняя таблица больше не рисует второй внешний контур */
.ap-table-scroll > table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* Фоны ячеек клипуются единственной внешней обёрткой. */
.ap-table-scroll > table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) th,
.ap-table-scroll > table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table):not([align="right"]):not([style*="float:right"]):not([style*="float: right"]) td {
  background-clip: padding-box !important;
  border-radius: 0 !important;
}

@media (max-width: 640px) {
  .ap-table-scroll {
    border-radius: 18px !important;
  }

}


/* Вложенная таблица внутри сайдбара не рисует вторую карточку. */

.ltbl table,
.infobox table,
.ap-forced-sidebar-table table,
.ltbl table table,
.infobox table table,
.ap-forced-sidebar-table table table {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: table !important;
  overflow: hidden !important;
  overflow-x: visible !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 0 !important;
}

.ltbl table tbody,
.infobox table tbody,
.ap-forced-sidebar-table table tbody {
  width: auto !important;
}

.ltbl table th,
.ltbl table td,
.infobox table th,
.infobox table td,
.ap-forced-sidebar-table table th,
.ap-forced-sidebar-table table td {
  box-shadow: none !important;
  background-clip: padding-box !important;
}

/* Углы принадлежат только внешнему сайдбару. */
.ltbl table > *:first-child > tr:first-child > *:first-child,
.infobox table > *:first-child > tr:first-child > *:first-child,
.ap-forced-sidebar-table table > *:first-child > tr:first-child > *:first-child {
  border-top-left-radius: 0 !important;
}

.ltbl table > *:first-child > tr:first-child > *:last-child,
.infobox table > *:first-child > tr:first-child > *:last-child,
.ap-forced-sidebar-table table > *:first-child > tr:first-child > *:last-child {
  border-top-right-radius: 0 !important;
}

.ltbl table > *:last-child > tr:last-child > *:first-child,
.infobox table > *:last-child > tr:last-child > *:first-child,
.ap-forced-sidebar-table table > *:last-child > tr:last-child > *:first-child {
  border-bottom-left-radius: 0 !important;
}

.ltbl table > *:last-child > tr:last-child > *:last-child,
.infobox table > *:last-child > tr:last-child > *:last-child,
.ap-forced-sidebar-table table > *:last-child > tr:last-child > *:last-child {
  border-bottom-right-radius: 0 !important;
}

/* если вложенная таблица лежит прямо в ячейке — без лишнего отступа */
.ltbl td > table,
.ltbl th > table,
.infobox td > table,
.infobox th > table,
.ap-forced-sidebar-table td > table,
.ap-forced-sidebar-table th > table {
  margin: 0 !important;
}




/* moved-before-ht infobox: доводим до вида обычного сайдбарного блока */
.l-main table[data-ap-sidebar-lead="1"] caption,
#content table[data-ap-sidebar-lead="1"] caption,
.mw-parser-output table[data-ap-sidebar-lead="1"] caption {
  caption-side: top !important;
  padding: 12px 16px 10px !important;
  text-align: center !important;
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-size: 0.94rem !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: #4a6079 !important;
  background: rgba(255,255,255,0.92) !important;
  border-bottom: 1px solid rgba(34, 54, 82, 0.08) !important;
}

.l-main table[data-ap-sidebar-lead="1"] > tbody > tr:first-child > td[colspan="2"],
.l-main table[data-ap-sidebar-lead="1"] > tbody > tr:nth-child(2) > td[colspan="2"],
#content table[data-ap-sidebar-lead="1"] > tbody > tr:first-child > td[colspan="2"],
#content table[data-ap-sidebar-lead="1"] > tbody > tr:nth-child(2) > td[colspan="2"],
.mw-parser-output table[data-ap-sidebar-lead="1"] > tbody > tr:first-child > td[colspan="2"],
.mw-parser-output table[data-ap-sidebar-lead="1"] > tbody > tr:nth-child(2) > td[colspan="2"] {
  text-align: center !important;
  background: rgba(255,255,255,0.78) !important;
  font-weight: 600 !important;
}

.l-main table[data-ap-sidebar-lead="1"] .img-fallback,
#content table[data-ap-sidebar-lead="1"] .img-fallback,
.mw-parser-output table[data-ap-sidebar-lead="1"] .img-fallback {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  max-width: 100% !important;
}

.l-main table[data-ap-sidebar-lead="1"] .ul_main,
.l-main table[data-ap-sidebar-lead="1"] .clirg,
#content table[data-ap-sidebar-lead="1"] .ul_main,
#content table[data-ap-sidebar-lead="1"] .clirg,
.mw-parser-output table[data-ap-sidebar-lead="1"] .ul_main,
.mw-parser-output table[data-ap-sidebar-lead="1"] .clirg {
  list-style: disc !important;
  margin: 6px 0 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: block !important;
}

.l-main table[data-ap-sidebar-lead="1"] .ul_main > li,
.l-main table[data-ap-sidebar-lead="1"] .clirg > li,
#content table[data-ap-sidebar-lead="1"] .ul_main > li,
#content table[data-ap-sidebar-lead="1"] .clirg > li,
.mw-parser-output table[data-ap-sidebar-lead="1"] .ul_main > li,
.mw-parser-output table[data-ap-sidebar-lead="1"] .clirg > li {
  display: list-item !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  line-height: 1.5 !important;
}

.l-main table[data-ap-sidebar-lead="1"] .ul_main > li::before,
.l-main table[data-ap-sidebar-lead="1"] .clirg > li::before,
#content table[data-ap-sidebar-lead="1"] .ul_main > li::before,
#content table[data-ap-sidebar-lead="1"] .clirg > li::before,
.mw-parser-output table[data-ap-sidebar-lead="1"] .ul_main > li::before,
.mw-parser-output table[data-ap-sidebar-lead="1"] .clirg > li::before {
  content: none !important;
  display: none !important;
}







/* === Главная страница: мобильные карточки на всю ширину === */
@media (max-width: 960px) {
  .content-main > div[style*="text-align:center"][style*="padding:35px 0 20px"] + .l-main div[style*="display:table;width:100%"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
  }

  .content-main > div[style*="text-align:center"][style*="padding:35px 0 20px"] + .l-main div[style*="display:table;width:100%"] > .bl_main {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .content-main > div[style*="text-align:center"][style*="padding:35px 0 20px"] + .l-main div[style*="display:table;width:100%"] > .bl_main > div:first-child {
    width: 100% !important;
  }

  .content-main > div[style*="text-align:center"][style*="padding:35px 0 20px"] + .l-main div[style*="display:table;width:100%"] > .bl_main > div:first-child:has(img) {
    inline-size: calc(100% + 28px) !important;
    width: calc(100% + 28px) !important;
    max-inline-size: none !important;
    max-width: none !important;
    margin-inline: -14px !important;
  }

  .content-main > div[style*="text-align:center"][style*="padding:35px 0 20px"] + .l-main div[style*="display:table;width:100%"] > .bl_main img {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

@media (max-width: 640px) {
  .content-main > div[style*="text-align:center"][style*="padding:35px 0 20px"] + .l-main div[style*="display:table;width:100%"] > .bl_main {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .content-main > div[style*="text-align:center"][style*="padding:35px 0 20px"] + .l-main div[style*="display:table;width:100%"] > .bl_main img {
    border-radius: 16px !important;
  }
}



table,
table * {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  white-space: normal !important;
}






/* отдельные картинки статьи должны ужиматься до свободного места слева от правого infobox */
.l-main table.ltbl ~ img.imgall,
.l-main table.ap-forced-sidebar-table ~ img.imgall,
.l-main table[align="right"] ~ img.imgall,
#content table.ltbl ~ img.imgall,
#content table.ap-forced-sidebar-table ~ img.imgall,
#content table[align="right"] ~ img.imgall,
.mw-parser-output table.ltbl ~ img.imgall,
.mw-parser-output table.ap-forced-sidebar-table ~ img.imgall,
.mw-parser-output table[align="right"] ~ img.imgall {
  display: table !important;
  clear: none !important;
  float: none !important;
  margin: 24px 0 !important;
  margin-right: auto !important;
  max-width: calc(100% - var(--ap-sidebar-stack-width, 390px) - 32px) !important;
  height: auto !important;
  box-sizing: border-box !important;
}

/* если рядом есть правый стек таблиц, обычные standalone-картинки без inline style тоже не растягиваем */
.l-main table.ltbl ~ img:not([style]),
.l-main table.ap-forced-sidebar-table ~ img:not([style]),
.l-main table[align="right"] ~ img:not([style]),
#content table.ltbl ~ img:not([style]),
#content table.ap-forced-sidebar-table ~ img:not([style]),
#content table[align="right"] ~ img:not([style]),
.mw-parser-output table.ltbl ~ img:not([style]),
.mw-parser-output table.ap-forced-sidebar-table ~ img:not([style]),
.mw-parser-output table[align="right"] ~ img:not([style]) {
  display: table !important;
  clear: none !important;
  float: none !important;
  margin: 24px 0 !important;
  margin-right: auto !important;
  max-width: calc(100% - var(--ap-sidebar-stack-width, 390px) - 32px) !important;
  height: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 1180px) {
  .l-main table.ltbl ~ img.imgall,
  .l-main table.ap-forced-sidebar-table ~ img.imgall,
  .l-main table[align="right"] ~ img.imgall,
  .l-main table.ltbl ~ img:not([style]),
  .l-main table.ap-forced-sidebar-table ~ img:not([style]),
  .l-main table[align="right"] ~ img:not([style]),
  #content table.ltbl ~ img.imgall,
  #content table.ap-forced-sidebar-table ~ img.imgall,
  #content table[align="right"] ~ img.imgall,
  #content table.ltbl ~ img:not([style]),
  #content table.ap-forced-sidebar-table ~ img:not([style]),
  #content table[align="right"] ~ img:not([style]),
  .mw-parser-output table.ltbl ~ img.imgall,
  .mw-parser-output table.ap-forced-sidebar-table ~ img.imgall,
  .mw-parser-output table[align="right"] ~ img.imgall,
  .mw-parser-output table.ltbl ~ img:not([style]),
  .mw-parser-output table.ap-forced-sidebar-table ~ img:not([style]),
  .mw-parser-output table[align="right"] ~ img:not([style]) {
    max-width: 100% !important;
  }
}


html body .schl .list,
html body div[style*="background:#0e365a"] .list {
  gap: 10px 8px !important;
}

html body .schl .list a,
html body div[style*="background:#0e365a"] .list a {
  min-width: 38px !important;
  padding: 0 10px !important;
}

@media (max-width: 760px) {
  table.ap-mobile-sidebar-normalized {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 16px 0 24px !important;
    float: none !important;
    clear: both !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  table.ap-mobile-sidebar-normalized > caption,
  table.ap-mobile-sidebar-normalized > tbody,
  table.ap-mobile-sidebar-normalized > thead,
  table.ap-mobile-sidebar-normalized > tfoot,
  table.ap-mobile-sidebar-normalized > tbody > tr,
  table.ap-mobile-sidebar-normalized > thead > tr,
  table.ap-mobile-sidebar-normalized > tfoot > tr {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  table.ap-mobile-sidebar-normalized > tbody > tr > th,
  table.ap-mobile-sidebar-normalized > tbody > tr > td,
  table.ap-mobile-sidebar-normalized > thead > tr > th,
  table.ap-mobile-sidebar-normalized > thead > tr > td,
  table.ap-mobile-sidebar-normalized > tfoot > tr > th,
  table.ap-mobile-sidebar-normalized > tfoot > tr > td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  table.ap-mobile-sidebar-normalized > tbody > tr > th:not([colspan]),
  table.ap-mobile-sidebar-normalized > thead > tr > th:not([colspan]),
  table.ap-mobile-sidebar-normalized > tfoot > tr > th:not([colspan]) {
    border-bottom: 0 !important;
    padding-bottom: 8px !important;
  }

  table.ap-mobile-sidebar-normalized > tbody > tr > td:not([colspan]),
  table.ap-mobile-sidebar-normalized > thead > tr > td:not([colspan]),
  table.ap-mobile-sidebar-normalized > tfoot > tr > td:not([colspan]) {
    border-top: 0 !important;
    padding-top: 0 !important;
  }

  table.ap-mobile-sidebar-normalized table,
  table.ap-mobile-sidebar-normalized .ap-sidebar-inner-table-scroll,
  table.ap-mobile-sidebar-normalized .ap-sidebar-paired-columns,
  table.ap-mobile-sidebar-normalized .ap-sidebar-paired-column-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  table.ap-mobile-sidebar-normalized table {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    table-layout: fixed !important;
  }

  table.ap-mobile-sidebar-normalized table > caption,
  table.ap-mobile-sidebar-normalized table > tbody,
  table.ap-mobile-sidebar-normalized table > thead,
  table.ap-mobile-sidebar-normalized table > tfoot,
  table.ap-mobile-sidebar-normalized table > tbody > tr,
  table.ap-mobile-sidebar-normalized table > thead > tr,
  table.ap-mobile-sidebar-normalized table > tfoot > tr,
  table.ap-mobile-sidebar-normalized table > tbody > tr > th,
  table.ap-mobile-sidebar-normalized table > tbody > tr > td,
  table.ap-mobile-sidebar-normalized table > thead > tr > th,
  table.ap-mobile-sidebar-normalized table > thead > tr > td,
  table.ap-mobile-sidebar-normalized table > tfoot > tr > th,
  table.ap-mobile-sidebar-normalized table > tfoot > tr > td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  table.ap-mobile-sidebar-normalized th,
  table.ap-mobile-sidebar-normalized td,
  table.ap-mobile-sidebar-normalized caption,
  table.ap-mobile-sidebar-normalized a,
  table.ap-mobile-sidebar-normalized span,
  table.ap-mobile-sidebar-normalized div,
  table.ap-mobile-sidebar-normalized p,
  table.ap-mobile-sidebar-normalized li {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }

  table.ap-mobile-sidebar-normalized col,
  table.ap-mobile-sidebar-normalized colgroup {
    width: auto !important;
  }

  table.ap-mobile-sidebar-normalized img,
  table.ap-mobile-sidebar-normalized svg,
  table.ap-mobile-sidebar-normalized audio,
  table.ap-mobile-sidebar-normalized video,
  table.ap-mobile-sidebar-normalized iframe,
  table.ap-mobile-sidebar-normalized .img-fallback {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  table.ap-mobile-sidebar-normalized .ap-sidebar-inner-table-scroll {
    overflow: hidden !important;
  }
}

/* Semantic cross-reference card for legacy loose text/link runs. */
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-related-callout {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  /* Keep the left-aligned label/pills, but centre the complete row vertically
     inside the intentionally generous callout card. */
  align-items: center !important;
  align-content: center !important;
  gap: 12px !important;
  inline-size: auto !important;
  max-inline-size: 100% !important;
  margin: clamp(12px, 1.2vw, 20px) 0 clamp(18px, 1.8vw, 28px) !important;
  padding: clamp(13px, 1.1vw, 17px) clamp(15px, 1.5vw, 22px) !important;
  border: 1px solid color-mix(in srgb, #54c7df 36%, #a5b4fc 34%, transparent) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(236, 254, 255, .9), rgba(245, 243, 255, .82) 52%, rgba(240, 253, 244, .86)) !important;
  box-shadow:
    0 14px 36px rgba(30, 64, 175, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  color: #334155 !important;
  font-size: clamp(.92rem, .88rem + .12vw, 1rem) !important;
  line-height: 1.65 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  clear: none !important;
}

html body .ap-related-callout::before {
  content: "↗" !important;
  display: grid !important;
  place-items: center !important;
  inline-size: 28px !important;
  block-size: 28px !important;
  margin-block-start: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #22d3ee, #818cf8 58%, #86efac) !important;
  color: #fff !important;
  font: 800 15px/1 Inter, Roboto, Arial, sans-serif !important;
  box-shadow: 0 7px 18px rgba(79, 70, 229, .22) !important;
}

html body .ap-related-callout::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: auto -42px -54px auto !important;
  inline-size: 150px !important;
  block-size: 150px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(34, 211, 238, .14), transparent 68%) !important;
  pointer-events: none !important;
}

html body .ap-related-callout-content {
  align-self: center !important;
  min-inline-size: 0 !important;
  overflow-wrap: anywhere !important;
  text-wrap: pretty !important;
}

html body .ap-related-callout-label {
  color: #334155 !important;
  font-weight: 750 !important;
  letter-spacing: .01em !important;
}

html body .ap-related-callout a {
  /* inline-flex discards whitespace-only anonymous flex items created by the
     long-token safety wrapper (e.g. "Римское королевство").  Inline-block
     keeps the pill intact while preserving real word spaces. */
  display: inline-block !important;
  max-inline-size: 100% !important;
  margin: 2px 3px !important;
  padding: 3px 9px 4px !important;
  border: 1px solid rgba(99, 102, 241, .2) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .72) !important;
  color: #3f6f9f !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  box-shadow: 0 3px 10px rgba(30, 64, 175, .06) !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

html body .ap-related-callout a:hover {
  border-color: rgba(34, 211, 238, .52) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 6px 15px rgba(14, 116, 144, .12) !important;
}

html body .ap-related-callout a:focus-visible {
  outline: 3px solid #0e7490 !important;
  outline-offset: 2px !important;
}

@media (max-width: 760px) {
  html body .ap-related-callout {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 9px !important;
    border-radius: 15px !important;
    padding: 12px 13px !important;
  }

  html body .ap-related-callout::before {
    inline-size: 24px !important;
    block-size: 24px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  html body .ap-related-callout a {
    margin-inline: 1px !important;
    padding-inline: 7px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .ap-related-callout a {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  html body .ap-related-callout,
  html body .ap-related-callout a {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }
}

/* Compact semantic note for legacy redirect/disambiguation text. */
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-hatnote {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 24px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  inline-size: auto !important;
  max-inline-size: min(100%, 82ch) !important;
  margin: 8px 0 20px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(56, 189, 248, .25) !important;
  border-inline-start: 3px solid #38bdf8 !important;
  border-radius: 12px !important;
  background: linear-gradient(105deg, rgba(240, 249, 255, .92), rgba(248, 250, 252, .82)) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .055) !important;
  color: #526173 !important;
  font-size: clamp(.86rem, .83rem + .09vw, .94rem) !important;
  line-height: 1.55 !important;
  box-sizing: border-box !important;
  clear: none !important;
}

html body .ap-hatnote::before {
  content: "↪" !important;
  display: grid !important;
  place-items: center !important;
  inline-size: 24px !important;
  block-size: 24px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #22d3ee, #60a5fa) !important;
  color: #fff !important;
  font: 800 14px/1 Inter, Roboto, Arial, sans-serif !important;
}

html body .ap-hatnote-content {
  min-inline-size: 0 !important;
  overflow-wrap: anywhere !important;
  text-wrap: pretty !important;
}

html body .ap-hatnote a {
  color: #3f6f9f !important;
  font-weight: 650 !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
}

html body .ap-hatnote a:focus-visible {
  outline: 3px solid #0e7490 !important;
  outline-offset: 2px !important;
  border-radius: 3px !important;
}

@media (max-width: 760px) {
  html body .ap-hatnote {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 8px !important;
    max-inline-size: 100% !important;
    padding: 9px 11px !important;
  }

  html body .ap-hatnote::before {
    inline-size: 22px !important;
    block-size: 22px !important;
    font-size: 13px !important;
  }
}

@media (forced-colors: active) {
  html body .ap-hatnote {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }
}


/* =========================
   ARTICLE MEDIA SAFETY LAYER
   ========================= */

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) :where(img) {
  max-width: 100% !important;
  max-inline-size: 100% !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  height: auto !important;
  block-size: auto !important;
  box-sizing: border-box !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) :is(
  img.ap-flag-image,
  img[src*="/flag_" i],
  img[src*="/flag-" i],
  img[src*="/flag." i],
  img[src*="_flag" i],
  img[src*="-flag" i],
  img[src*="flag_" i],
  img[src*="flag-" i],
  img[src*="flag." i]
) {
  display: inline-block !important;
  width: auto !important;
  inline-size: auto !important;
  max-width: 3.25rem !important;
  max-inline-size: 3.25rem !important;
  height: auto !important;
  block-size: auto !important;
  max-height: 2.25rem !important;
  max-block-size: 2.25rem !important;
  object-fit: contain !important;
  margin: 0.1em 0.35em !important;
  padding: 0 !important;
  vertical-align: middle !important;
  float: none !important;
  border-radius: 0.15rem !important;
  box-shadow: none !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) video.ap-article-video {
  display: block !important;
  width: min(100%, 56rem) !important;
  inline-size: min(100%, 56rem) !important;
  max-width: 100% !important;
  max-inline-size: 100% !important;
  height: auto !important;
  block-size: auto !important;
  aspect-ratio: auto 4 / 3;
  object-fit: contain !important;
  margin: 1.5rem auto !important;
  border: 0 !important;
  border-radius: 1rem !important;
  background: #0b1422 !important;
  box-shadow: 0 18px 44px rgba(20, 34, 54, 0.18) !important;
  box-sizing: border-box !important;
}


/* Semantic layout profiles: flag directories and image-driven content tables. */
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) .ap-flag-directory-list > .ap-flag-card > :is(
  .ap-flag-image,
  .ap-flag-fallback
) + a {
  margin-inline-start: 0.625rem !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table.ap-content-media-table {
  inline-size: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  table-layout: fixed !important;
  box-sizing: border-box !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table.ap-content-media-table :is(th, td) {
  min-width: 0 !important;
  min-inline-size: 0 !important;
  max-inline-size: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  box-sizing: border-box !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table.ap-content-media-table :is(
  img:not(.ap-flag-image),
  svg,
  canvas,
  .img-fallback:not(.ap-flag-fallback)
) {
  max-width: 100% !important;
  max-inline-size: 100% !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  height: auto !important;
  block-size: auto !important;
  object-fit: contain !important;
  box-sizing: border-box !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table.ap-content-media-table :is(
  img.ap-content-cell-media:not(.ap-flag-image),
  svg.ap-content-cell-media,
  canvas.ap-content-cell-media,
  .img-fallback.ap-content-cell-media:not(.ap-flag-fallback)
) {
  width: auto !important;
  inline-size: auto !important;
  height: auto !important;
  block-size: auto !important;
  max-width: min(100%, var(--ap-media-inline-cap, 100%)) !important;
  max-inline-size: min(100%, var(--ap-media-inline-cap, 100%)) !important;
  max-height: var(--ap-media-block-cap, 300px) !important;
  max-block-size: var(--ap-media-block-cap, 300px) !important;
  margin-block: 0.375rem !important;
  margin-inline: auto !important;
  object-fit: contain !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table.ap-content-media-table > colgroup[data-ap-generated-media-columns="1"] + :is(
  thead,
  tbody,
  tfoot
) > tr:first-child > :first-child {
  border-top-left-radius: 22px !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table.ap-content-media-table > colgroup[data-ap-generated-media-columns="1"] + :is(
  thead,
  tbody,
  tfoot
) > tr:first-child > :last-child {
  border-top-right-radius: 22px !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

@media (max-width: 900px) {
  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article,
    .article-content,
    .entry-content,
    .post-content
  ) table.ap-content-media-table.ap-wide-table {
    width: max(100%, var(--ap-content-table-mobile-min, 100%)) !important;
    inline-size: max(100%, var(--ap-content-table-mobile-min, 100%)) !important;
    min-width: var(--ap-content-table-mobile-min, 100%) !important;
    min-inline-size: var(--ap-content-table-mobile-min, 100%) !important;
    max-width: none !important;
    max-inline-size: none !important;
  }

  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article,
    .article-content,
    .entry-content,
    .post-content
  ) table.ap-content-media-table > colgroup[data-ap-generated-media-columns="1"] + :is(
    thead,
    tbody,
    tfoot
  ) > tr:first-child > :first-child {
    border-top-left-radius: 22px !important;
  }

  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article,
    .article-content,
    .entry-content,
    .post-content
  ) table.ap-content-media-table > colgroup[data-ap-generated-media-columns="1"] + :is(
    thead,
    tbody,
    tfoot
  ) > tr:first-child > :last-child {
    border-top-right-radius: 22px !important;
  }
}

@media (max-width: 640px) {
  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article,
    .article-content,
    .entry-content,
    .post-content
  ) table.ap-content-media-table > colgroup[data-ap-generated-media-columns="1"] + :is(
    thead,
    tbody,
    tfoot
  ) > tr:first-child > :first-child {
    border-top-left-radius: 18px !important;
  }

  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article,
    .article-content,
    .entry-content,
    .post-content
  ) table.ap-content-media-table > colgroup[data-ap-generated-media-columns="1"] + :is(
    thead,
    tbody,
    tfoot
  ) > tr:first-child > :last-child {
    border-top-right-radius: 18px !important;
  }
}

/* Final-cascade geometry guards (kept last deliberately). */
@media (min-width: 1181px) {
  html body :where(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article
  ) table:is(.ltbl, .infobox, .ap-forced-sidebar-table, [align="right"]) {
    display: table !important;
    inline-size: min(390px, 42%) !important;
    min-inline-size: 0 !important;
    max-inline-size: min(390px, 42%) !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
  }
}

html body :is(
  table.ltbl,
  table.infobox,
  table.ap-forced-sidebar-table,
  table[data-ap-sidebar-lead="1"]
) .ap-sidebar-inner-table-scroll table {
  display: table !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  box-sizing: border-box !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-extracted-article-flow {
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  overflow-wrap: anywhere !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-extracted-sidebar-table {
  display: table !important;
  float: none !important;
  clear: both !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  min-width: 0 !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  margin: 24px 0 !important;
  box-sizing: border-box !important;
}

html body .ap-site-footer {
  display: block !important;
  float: none !important;
  clear: both !important;
  inline-size: min(1660px, calc(100vw - 72px)) !important;
  width: min(1660px, calc(100vw - 72px)) !important;
  min-inline-size: 0 !important;
  max-inline-size: calc(100vw - 72px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

html body .ap-site-footer > .ap-site-footer-inner {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 1380px !important;
  box-sizing: border-box !important;
}

html body .ap-site-footer > .ap-site-footer-inner > .list {
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  overflow: visible !important;
}

html body .ap-page-metadata {
  display: block !important;
  float: none !important;
  clear: both !important;
  inline-size: min(1560px, calc(100vw - 40px)) !important;
  max-inline-size: 1560px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

/* Legacy article cells occasionally reuse the global full-screen overlay class. */
html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(td, th).wrap {
  position: static !important;
  inset: auto !important;
  display: table-cell !important;
  inline-size: auto !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  backdrop-filter: none !important;
  box-sizing: border-box !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) video.ap-empty-article-video {
  display: none !important;
}

@media (max-width: 768px) {
  html body .ap-site-footer {
    inline-size: calc(100vw - 40px) !important;
    width: calc(100vw - 40px) !important;
    max-inline-size: calc(100vw - 40px) !important;
  }
}

@media (max-width: 640px) {
  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article,
    .article-content,
    .entry-content,
    .post-content
  ) video.ap-article-video {
    margin-block: 1rem !important;
    border-radius: 0.75rem !important;
  }
}

/* ===== table geometry invariant: one shell, one rounded contour ===== */

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table:is(
  .ltbl,
  .infobox,
  .ap-forced-sidebar-table,
  [data-ap-sidebar-lead="1"],
  [data-ap-sidebar-follow="1"],
  [align="right"],
  [style*="float:right"],
  [style*="float: right"]
):has(> caption) {
  border-block-start: 0 !important;
  border-radius: 0 0 22px 22px !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table:is(
  .ltbl,
  .infobox,
  .ap-forced-sidebar-table,
  [data-ap-sidebar-lead="1"],
  [data-ap-sidebar-follow="1"],
  [align="right"],
  [style*="float:right"],
  [style*="float: right"]
) > caption {
  box-sizing: border-box !important;
  inline-size: 100% !important;
  padding: 12px 16px 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(36, 58, 90, 0.10) !important;
  border-block-end-color: rgba(34, 54, 82, 0.08) !important;
  border-radius: 22px 22px 0 0 !important;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) table:is(
  .ltbl,
  .infobox,
  .ap-forced-sidebar-table,
  [data-ap-sidebar-lead="1"],
  [data-ap-sidebar-follow="1"]
) > :is(thead, tbody, tfoot) > tr > :is(th, td) {
  border-radius: 0 !important;
}

/* Broken/missing flag assets keep the same compact rhythm as real flags. */
html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) .ap-flag-fallback {
  display: inline-block !important;
  inline-size: 1.8rem !important;
  width: 1.8rem !important;
  min-inline-size: 1.8rem !important;
  min-width: 1.8rem !important;
  max-inline-size: 1.8rem !important;
  max-width: 1.8rem !important;
  block-size: 1.1rem !important;
  height: 1.1rem !important;
  min-block-size: 1.1rem !important;
  min-height: 1.1rem !important;
  max-block-size: 1.1rem !important;
  max-height: 1.1rem !important;
  margin-block: 0.1em !important;
  margin-inline: 0 0.625rem !important;
  padding: 0 !important;
  vertical-align: middle !important;
  border: 1px dashed rgba(43, 59, 89, 0.18) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html body :where(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) .ap-flag-fallback::before {
  content: none !important;
  display: none !important;
}

/* Wide-and-shallow content matrices are transposed only after JS has
   excluded sidebars and validated their full logical cell grid. */
.ap-table-scroll.ap-table-transposed-shell > table.ap-table-transposed {
  display: table !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 100% !important;
  min-width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.ap-table-scroll.ap-table-transposed-shell > table.ap-table-transposed :is(th, td) {
  min-inline-size: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  vertical-align: top !important;
}

.ap-table-scroll.ap-table-transposed-shell > table.ap-table-transposed > tbody > tr > :first-child {
  background: linear-gradient(180deg, #eff6fb 0%, #eaf3fb 100%) !important;
  font-weight: 600 !important;
}

.ap-table-scroll.ap-table-transposed-shell > table.ap-table-transposed > tbody >
tr.ap-table-transposed-head > :is(th, td) {
  background: linear-gradient(180deg, #eff6fb 0%, #eaf3fb 100%) !important;
  font-weight: 600 !important;
}

.ap-table-scroll.ap-table-transposed-shell > table.ap-table-transposed > tbody >
tr.ap-table-transposed-band > :only-child {
  inline-size: auto !important;
  width: auto !important;
}

/* Media tables previously rounded their first cells too; the scroll shell now
   owns those corners, so this removes the last possible inner contour. */
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) .ap-table-scroll > table.ap-content-media-table > colgroup[data-ap-generated-media-columns="1"] + :is(
  thead,
  tbody,
  tfoot
) > tr:first-child > :is(:first-child, :last-child) {
  border-radius: 0 !important;
}

@media (max-width: 760px) {
  html body :where(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article,
    .article-content,
    .entry-content,
    .post-content
  ) table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"],
    [align="right"],
    [style*="float:right"],
    [style*="float: right"]
  ):has(> caption) {
    border-radius: 0 0 18px 18px !important;
  }

  html body :where(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article,
    .article-content,
    .entry-content,
    .post-content
  ) table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"],
    [align="right"],
    [style*="float:right"],
    [style*="float: right"]
  ) > caption {
    border-radius: 18px 18px 0 0 !important;
  }

  .ap-table-scroll.ap-table-transposed-shell > table.ap-table-transposed {
    inline-size: max(100%, var(--ap-transposed-mobile-min, 680px)) !important;
    width: max(100%, var(--ap-transposed-mobile-min, 680px)) !important;
    min-inline-size: var(--ap-transposed-mobile-min, 680px) !important;
    min-width: var(--ap-transposed-mobile-min, 680px) !important;
    max-inline-size: none !important;
    max-width: none !important;
  }
}


/* ==========================================================
   ALPHAPEDIA WOW LAYER · 2026
   Visual-only enhancement: no content reordering or geometry changes.
   ========================================================== */

:root {
  --ap-wow-cyan: #26c6da;
  --ap-wow-blue: #4e7cff;
  --ap-wow-violet: #8b5cf6;
  --ap-wow-lime: #91d33f;
  --ap-wow-ink: #1f2b3d;
  --ap-wow-line: rgba(67, 91, 126, 0.13);
  --ap-wow-glow: rgba(38, 198, 218, 0.18);
  --ap-scroll-progress: 0;
  color-scheme: light;
}

@supports (color: oklch(70% 0.16 210)) {
  :root {
    --ap-wow-cyan: oklch(76% 0.14 205);
    --ap-wow-blue: oklch(64% 0.17 260);
    --ap-wow-violet: oklch(66% 0.18 295);
    --ap-wow-lime: oklch(79% 0.17 130);
    --ap-wow-ink: oklch(31% 0.035 255);
  }
}

html {
  background: #eef5f8;
  scroll-padding-block-start: 100px;
  scrollbar-color: rgba(78, 124, 255, 0.42) rgba(232, 240, 246, 0.74);
}

body {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 74% 46% at 9% -8%, rgba(38, 198, 218, 0.16), transparent 70%),
    radial-gradient(ellipse 62% 42% at 94% 3%, rgba(139, 92, 246, 0.11), transparent 70%),
    radial-gradient(ellipse 52% 38% at 78% 92%, rgba(145, 211, 63, 0.10), transparent 72%),
    linear-gradient(145deg, #f6fbfc 0%, #edf5f8 44%, #f5f3fb 100%) !important;
  background-attachment: scroll !important;
}

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  opacity: 0.52;
}

body::before {
  inline-size: min(54vw, 880px);
  block-size: min(54vw, 880px);
  inset-block-start: -30vw;
  inset-inline-start: -18vw;
  background: radial-gradient(circle, rgba(38, 198, 218, 0.20), rgba(78, 124, 255, 0.07) 44%, transparent 72%);
}

body::after {
  inline-size: min(48vw, 760px);
  block-size: min(48vw, 760px);
  inset-block-start: 24vh;
  inset-inline-end: -28vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), rgba(145, 211, 63, 0.07) 48%, transparent 72%);
}

::selection {
  color: #142034;
  background: rgba(38, 198, 218, 0.28);
  text-shadow: none;
}

::-webkit-scrollbar {
  inline-size: 11px;
  block-size: 11px;
}

::-webkit-scrollbar-track {
  background: rgba(232, 240, 246, 0.72);
}

::-webkit-scrollbar-thumb {
  min-block-size: 44px;
  border: 3px solid rgba(232, 240, 246, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(38, 198, 218, 0.72), rgba(78, 124, 255, 0.68));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(38, 198, 218, 0.94), rgba(78, 124, 255, 0.90));
}

.bg {
  background:
    linear-gradient(100deg, rgba(255,255,255,0.86), rgba(248,253,255,0.72) 52%, rgba(252,250,255,0.82)) !important;
  border-block-end-color: rgba(61, 87, 122, 0.10) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.92) inset,
    0 12px 40px rgba(38, 59, 88, 0.07) !important;
}

.bg::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  inset-block-end: -1px;
  block-size: 2px;
  transform: scaleX(var(--ap-scroll-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--ap-wow-cyan), var(--ap-wow-blue), var(--ap-wow-violet), var(--ap-wow-lime));
  box-shadow: 0 0 16px rgba(38, 198, 218, 0.38);
  transition: transform 80ms linear;
}

.l-head a {
  filter: drop-shadow(0 5px 13px rgba(31, 48, 73, 0.10)) saturate(1.04) contrast(1.03) !important;
}

.title-circle {
  overflow: hidden;
  border-color: rgba(255,255,255,0.88) !important;
  background:
    radial-gradient(circle at 35% 28%, #ffffff 0 7%, transparent 8%),
    conic-gradient(from 210deg, var(--ap-wow-cyan), var(--ap-wow-blue), var(--ap-wow-violet), var(--ap-wow-lime), var(--ap-wow-cyan)) !important;
  box-shadow:
    0 0 0 1px rgba(54, 79, 112, 0.10),
    0 10px 30px rgba(66, 92, 126, 0.15),
    0 0 38px rgba(38, 198, 218, 0.14) !important;
}

.title-circle::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,255,255,0.12) 48%, transparent 49%);
  pointer-events: none;
}

/* The legacy header contains an empty, non-interactive .s-button div.
   Keep its reserved geometry, but present it honestly as an ambient prism. */
.s-button {
  position: relative;
  pointer-events: none !important;
  cursor: default !important;
  border-color: rgba(255,255,255,0.86) !important;
  background:
    radial-gradient(circle at 33% 27%, rgba(255,255,255,0.96) 0 7%, transparent 8%),
    conic-gradient(from 218deg, rgba(38,198,218,0.92), rgba(78,124,255,0.88), rgba(139,92,246,0.82), rgba(145,211,63,0.78), rgba(38,198,218,0.92)) !important;
  box-shadow:
    0 0 0 1px rgba(54,79,112,0.10),
    0 10px 28px rgba(55,79,112,0.15),
    0 0 34px rgba(38,198,218,0.13) !important;
}

.s-button::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.74), rgba(255,255,255,0.10) 48%, transparent 49%);
}

.l-main {
  position: relative !important;
  isolation: isolate;
  background:
    radial-gradient(circle 620px at 50% 12%, rgba(38, 198, 218, 0.075), transparent 62%),
    radial-gradient(circle 520px at 68% 0%, rgba(139, 92, 246, 0.045), transparent 64%),
    linear-gradient(152deg, rgba(255,255,255,0.985) 0%, rgba(252,254,255,0.965) 54%, rgba(249,252,255,0.985) 100%) !important;
  border-color: rgba(65, 91, 127, 0.11) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 0 0 1px rgba(255,255,255,0.62) inset,
    0 30px 80px rgba(34, 55, 88, 0.105),
    0 4px 18px rgba(42, 69, 101, 0.045) !important;
}

.l-main::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255,255,255,0.52), transparent 24% 76%, rgba(78,124,255,0.035)),
    repeating-linear-gradient(135deg, rgba(45, 77, 113, 0.012) 0 1px, transparent 1px 12px);
}

.l-main :is(.ht, h2, h3, h4, .ap-table-scroll, table[id]) {
  scroll-margin-block-start: 100px;
}

.title h1 {
  position: relative;
  color: var(--ap-wow-ink) !important;
  text-wrap: balance;
  border-block-end-color: rgba(63, 87, 119, 0.12) !important;
  text-shadow: 0 8px 28px rgba(49, 75, 109, 0.08);
}

.title h1::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -1px;
  inline-size: clamp(72px, 16%, 190px);
  block-size: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ap-wow-cyan), var(--ap-wow-blue), transparent);
  box-shadow: 0 0 14px rgba(38, 198, 218, 0.24);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .title h1 {
    background: linear-gradient(108deg, #202c3f 0%, #304b70 58%, #31536c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.l-main div > .ht:not(:has(> table, > .ap-table-scroll, > ul, > ol, > .ht)) {
  position: relative;
  text-wrap: balance;
  border-block-end-color: rgba(62, 88, 122, 0.11) !important;
}

.l-main div > .ht:not(:has(> table, > .ap-table-scroll, > ul, > ol, > .ht))::before {
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.92) 0 12%, transparent 13%),
    conic-gradient(from 205deg, var(--ap-wow-cyan), var(--ap-wow-blue), var(--ap-wow-violet), var(--ap-wow-lime), var(--ap-wow-cyan)) !important;
  box-shadow:
    0 0 0 6px rgba(38, 198, 218, 0.085),
    0 8px 22px rgba(58, 106, 144, 0.16) !important;
}

.l-main div > .ht:not(:has(> table, > .ap-table-scroll, > ul, > ol, > .ht))::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -1px;
  inline-size: min(220px, 30%);
  block-size: 1px;
  background: linear-gradient(90deg, rgba(38,198,218,0.72), rgba(78,124,255,0.36), transparent);
}

p {
  text-wrap: pretty;
}

.l-main a:not(:has(> img)) {
  text-decoration-color: rgba(71, 112, 154, 0.28) !important;
  text-decoration-thickness: 0.065em !important;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    text-shadow 180ms ease !important;
}

.l-main a:not(:has(> img)):hover {
  color: #315f91 !important;
  text-decoration-color: rgba(38, 198, 218, 0.62) !important;
  text-shadow: 0 0 18px rgba(38, 198, 218, 0.12);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #087f96 !important;
  outline-offset: 3px !important;
  border-radius: max(4px, 0.35em);
}

:where(.bl_main, .ap-card-grid > li, .ul_main > li, .clirg > li, .references > li) {
  border-color: rgba(58, 86, 122, 0.10) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.97), rgba(247,251,255,0.94)) padding-box,
    linear-gradient(125deg, rgba(38,198,218,0.20), rgba(78,124,255,0.10), rgba(139,92,246,0.12)) border-box !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.94) inset,
    0 14px 36px rgba(37, 61, 92, 0.065) !important;
  transition: transform 260ms cubic-bezier(.2,.75,.25,1), box-shadow 260ms ease, border-color 260ms ease !important;
}

:where(.ltbl, .infobox, .ap-forced-sidebar-table, [data-ap-sidebar-lead="1"], [data-ap-sidebar-follow="1"]) {
  background:
    radial-gradient(circle at 100% 0%, rgba(145,211,63,0.08), transparent 34%),
    linear-gradient(155deg, rgba(255,255,255,0.985), rgba(246,251,255,0.975)) !important;
  border-color: rgba(58, 89, 124, 0.13) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 24px 58px rgba(36, 58, 91, 0.115),
    0 0 0 1px rgba(255,255,255,0.54) !important;
  transform-origin: 50% 12%;
  transition: transform 340ms cubic-bezier(.2,.8,.2,1), box-shadow 340ms ease !important;
}

:where(.ltbl, .infobox, .ap-forced-sidebar-table, [data-ap-sidebar-lead="1"], [data-ap-sidebar-follow="1"]) > caption,
:where(.ltbl, .infobox, .ap-forced-sidebar-table, [data-ap-sidebar-lead="1"], [data-ap-sidebar-follow="1"]) > :is(thead, tbody) > tr:first-child > :is(th, td) {
  background:
    radial-gradient(circle at 12% 20%, rgba(38,198,218,0.13), transparent 44%),
    linear-gradient(112deg, rgba(236,249,251,0.98), rgba(244,248,255,0.98) 55%, rgba(242,250,235,0.98)) !important;
}

.ap-table-scroll {
  border-color: rgba(57, 84, 118, 0.12) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,251,255,0.96)) padding-box,
    linear-gradient(120deg, rgba(38,198,218,0.25), rgba(78,124,255,0.12), rgba(139,92,246,0.14)) border-box !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.96) inset,
    0 22px 52px rgba(34, 56, 89, 0.09) !important;
  transition: box-shadow 260ms ease, border-color 260ms ease !important;
  scrollbar-color: rgba(78,124,255,0.42) rgba(235,242,248,0.72);
}

.ap-table-scroll > table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table) th {
  color: #2a4464 !important;
  background:
    radial-gradient(circle at 8% -40%, rgba(38,198,218,0.15), transparent 58%),
    linear-gradient(180deg, #f1f7fc 0%, #eaf3fa 100%) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.82);
}

.ap-table-scroll > table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table) td {
  transition: background-color 180ms ease, color 180ms ease !important;
}

.ap-table-scroll.ap-table-transposed-shell > table.ap-table-transposed > tbody > tr > :first-child,
.ap-table-scroll.ap-table-transposed-shell > table.ap-table-transposed > tbody > tr.ap-table-transposed-head > :is(th, td) {
  background:
    radial-gradient(circle at 8% 0%, rgba(38,198,218,0.14), transparent 62%),
    linear-gradient(180deg, #eff7fb, #e9f2fa) !important;
}

.l-main :is(img, video):not(.noviewer):not(.ap-flag-image):not([width="12"]):not([width="13"]):not([width="16"]) {
  outline: 1px solid rgba(255,255,255,0.72);
  outline-offset: -1px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.76) inset,
    0 20px 48px rgba(32, 53, 83, 0.15) !important;
  transition: transform 360ms cubic-bezier(.2,.8,.2,1) !important;
}

:where(.edit, .sub span, .login span, .list a, .search-box, .search-box-m) {
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease !important;
}

.ap-site-footer,
.schl,
div[style*="background:#0e365a"] {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 110% at 10% 0%, rgba(38,198,218,0.14), transparent 64%),
    radial-gradient(ellipse 60% 100% at 90% 100%, rgba(139,92,246,0.13), transparent 66%),
    linear-gradient(145deg, #111a27 0%, #0c1420 54%, #111827 100%) !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow:
    0 -1px 0 rgba(255,255,255,0.025) inset,
    0 24px 70px rgba(4, 12, 23, 0.24) !important;
}

.ap-site-footer::before,
.schl::before,
div[style*="background:#0e365a"]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 14px);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :where(.bl_main, .ap-card-grid > li, .ul_main > li, .clirg > li, .references > li):hover {
    transform: translate3d(0, -3px, 0);
    border-color: rgba(38, 198, 218, 0.24) !important;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.96) inset,
      0 22px 50px rgba(35, 63, 97, 0.115),
      0 0 30px rgba(38,198,218,0.055) !important;
  }

  :where(.ltbl, .infobox, .ap-forced-sidebar-table, [data-ap-sidebar-lead="1"], [data-ap-sidebar-follow="1"]):hover {
    transform: translate3d(0, -3px, 0) scale(1.002);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.98) inset,
      0 32px 72px rgba(34, 59, 94, 0.15),
      0 0 42px rgba(38,198,218,0.07) !important;
  }

  .ap-table-scroll:hover {
    border-color: rgba(38,198,218,0.22) !important;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.98) inset,
      0 28px 62px rgba(35, 61, 96, 0.125),
      0 0 34px rgba(38,198,218,0.05) !important;
  }

  .ap-table-scroll > table:not(.ltbl):not(.infobox):not(.ap-forced-sidebar-table) tr:hover > td {
    background: rgba(237, 249, 252, 0.72) !important;
  }

  .l-main :is(img, video):not(.noviewer):not(.ap-flag-image):not([width="12"]):not([width="13"]):not([width="16"]):hover {
    transform: translate3d(0, -3px, 0) scale(1.006);
  }

  :where(.edit, .sub span, .login span, .list a, .search-box, .search-box-m):hover {
    transform: translate3d(0, -2px, 0);
    border-color: rgba(38,198,218,0.24) !important;
    box-shadow: 0 14px 30px rgba(34, 62, 96, 0.13) !important;
  }
}

@supports (background: color-mix(in oklab, white 50%, black)) {
  .l-main {
    border-color: color-mix(in oklab, var(--ap-wow-blue) 13%, transparent) !important;
  }

  .ap-table-scroll {
    border-color: color-mix(in oklab, var(--ap-wow-cyan) 18%, rgba(57,84,118,0.12)) !important;
  }
}

@media (max-width: 760px) {
  body::before,
  body::after {
    opacity: 0.28;
    animation: none !important;
    will-change: auto;
  }

  .bg {
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .l-main {
    background:
      radial-gradient(circle 360px at 50% 0%, rgba(38,198,218,0.055), transparent 66%),
      linear-gradient(152deg, rgba(255,255,255,0.99), rgba(250,253,255,0.985)) !important;
    box-shadow:
      0 1px 0 rgba(255,255,255,0.96) inset,
      0 20px 52px rgba(34, 55, 88, 0.10) !important;
  }

  html {
    scroll-padding-block-start: 86px;
  }

  .l-main :is(.ht, h2, h3, h4, .ap-table-scroll, table[id]) {
    scroll-margin-block-start: 86px;
  }
}

@media (prefers-contrast: more) {
  .l-main,
  .ap-table-scroll,
  :where(.ltbl, .infobox, .ap-forced-sidebar-table) {
    border-color: rgba(25, 48, 77, 0.32) !important;
  }

  a {
    text-decoration-color: currentColor !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  body::before,
  body::after {
    animation: none !important;
    transform: none !important;
  }

  :where(
    .bg,
    .l-main,
    .title-circle,
    .bl_main,
    .ap-card-grid > li,
    .ul_main > li,
    .clirg > li,
    .references > li,
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    .ap-table-scroll,
    .l-main img,
    .l-main video,
    .edit,
    .sub span,
    .login span,
    .list a,
    .s-button,
    .search-box,
    .search-box-m
  ),
  :where(
    .bg,
    .l-main,
    .title-circle,
    .bl_main,
    .ap-card-grid > li,
    .ul_main > li,
    .clirg > li,
    .references > li,
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    .ap-table-scroll
  )::before,
  :where(
    .bg,
    .l-main,
    .title-circle,
    .bl_main,
    .ap-card-grid > li,
    .ul_main > li,
    .clirg > li,
    .references > li,
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    .ap-table-scroll
  )::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  :where(
    .bl_main,
    .ap-card-grid > li,
    .ul_main > li,
    .clirg > li,
    .references > li,
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"],
    .l-main img,
    .l-main video,
    .edit,
    .sub span,
    .login span,
    .list a,
    .search-box,
    .search-box-m
  ) {
    transform: none !important;
    filter: none !important;
  }
}

@media (forced-colors: active) {
  .title h1 {
    color: CanvasText !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
  }

  .title h1::after,
  .bg::after {
    background: Highlight !important;
    box-shadow: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .bg,
  .l-main {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .bg {
    background: #ffffff !important;
  }
}


/* ===== semantic media captions + natural photo rows ===== */

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article,
  .article-content,
  .entry-content,
  .post-content
) :where(
  figcaption,
  .thumbcaption,
  .gallerytext,
  .sidebar-caption,
  .wp-caption-text,
  .image-caption,
  .ap-media-caption
) {
  display: block !important;
  box-sizing: border-box !important;
  inline-size: auto !important;
  max-inline-size: min(100%, 62ch) !important;
  margin: 0.58rem 0 1.35rem !important;
  padding: 0 !important;
  color: #64748a !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: 'Inter', 'Roboto', Arial, sans-serif !important;
  font-size: clamp(0.78rem, 0.74rem + 0.12vw, 0.88rem) !important;
  font-weight: 520 !important;
  font-style: normal !important;
  line-height: 1.5 !important;
  letter-spacing: 0.005em !important;
  text-align: start !important;
  text-wrap: pretty;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption::before {
  content: '';
  display: block;
  inline-size: clamp(18px, 3vw, 30px);
  block-size: 2px;
  margin-block-end: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #26c6da, #6a8dff 58%, #91d33f);
  opacity: 0.72;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--inline {
  inline-size: min(100%, var(--ap-caption-media-width, 100%)) !important;
  max-inline-size: min(100%, var(--ap-caption-media-width, 52ch)) !important;
  margin-inline: 0 !important;
  text-align: start !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--wide {
  inline-size: min(82%, var(--ap-caption-media-width, 82%)) !important;
  max-inline-size: min(82%, 68ch) !important;
  margin-inline: auto !important;
  text-align: center !important;
}

/* A historical standalone flag may have a real prose caption.  Keep the flag
   at its genuine small size while giving the caption a readable side column. */
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-standalone-flag-caption-block {
  display: grid !important;
  grid-template-columns: auto minmax(220px, 34ch) !important;
  align-items: start !important;
  gap: 12px !important;
  inline-size: fit-content !important;
  max-inline-size: 100% !important;
  margin: 1rem 0 1.5rem !important;
  clear: both !important;
  box-sizing: border-box !important;
}

html body .ap-standalone-flag-caption-block > :is(
  img,
  .img-fallback,
  a,
  picture
) {
  grid-column: 1 !important;
  margin: 0 !important;
  align-self: start !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-standalone-flag-caption-block > .ap-media-caption--flag {
  grid-column: 2 !important;
  inline-size: auto !important;
  max-inline-size: 34ch !important;
  margin: 0 !important;
  text-align: start !important;
}

html body .ap-standalone-flag-caption-block > .ap-media-caption--flag::before {
  margin-inline: 0 !important;
}

@media (max-width: 420px) {
  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article
  ) .ap-standalone-flag-caption-block {
    grid-template-columns: auto minmax(0, 1fr) !important;
    inline-size: 100% !important;
  }
}

/* Nested legacy infobox tables sometimes keep a two-column track even when a
   row contains one colspan cell.  On phones that cell must own the complete
   normalized sidebar row, including empty structural spacer rows. */
@media (max-width: 760px) {
  html body table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"]
  ) table,
  html body table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"]
  ) table > :is(thead, tbody, tfoot),
  html body table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"]
  ) table > :is(thead, tbody, tfoot) > tr {
    display: block !important;
    inline-size: 100% !important;
    width: 100% !important;
    min-inline-size: 0 !important;
    min-width: 0 !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body table.ap-mobile-sidebar-normalized
    :is(thead, tbody, tfoot) > tr > :is(th, td):only-child,
  html body table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"]
  ) table :is(thead, tbody, tfoot) > tr > :is(th, td):only-child {
    display: block !important;
    inline-size: 100% !important;
    width: 100% !important;
    min-inline-size: 0 !important;
    min-width: 0 !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
  }
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--wide::before,
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--sidebar::before,
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--gallery::before,
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--table::before {
  margin-inline: auto;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(
  .ap-media-caption--sidebar,
  .ap-media-caption--gallery,
  .ap-media-caption--table
) {
  margin: 0.46rem auto 0.95rem !important;
  text-align: center !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--sidebar {
  max-inline-size: min(100%, 38ch) !important;
  font-size: 0.78rem !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--gallery {
  max-inline-size: min(100%, 42ch) !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption--table {
  max-inline-size: min(100%, 46ch) !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-caption a {
  font-size: inherit !important;
  line-height: inherit !important;
  overflow-wrap: anywhere !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) .ap-media-row {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: clamp(14px, 1.7vw, 24px) !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  margin: 1.35rem 0 2rem !important;
  clear: both !important;
  box-sizing: border-box !important;
}

html body .ap-media-row > .ap-inline-image-anchor {
  display: none !important;
}

html body .ap-media-row > .ap-inline-image-block {
  display: block !important;
  flex: 0 0 var(--ap-row-item-inline) !important;
  inline-size: var(--ap-row-item-inline) !important;
  width: var(--ap-row-item-inline) !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
}

html body .ap-media-row > .ap-inline-image-block > :is(img, video, .img-fallback),
html body .ap-media-row > .ap-inline-image-block > :is(a, picture),
html body .ap-media-row > .ap-inline-image-block > :is(a, picture) > :is(img, video, .img-fallback) {
  display: block !important;
  inline-size: auto !important;
  width: auto !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  block-size: auto !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

html body .ap-media-row > .ap-inline-image-block > .ap-media-caption {
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  margin: 0.58rem 0 0 !important;
}

/* Section boundaries and floats have deliberately different semantics.
   H2 starts a new article section and must wait for both media columns;
   lower-level headings remain part of the current section and may wrap. */
html body :is(.l-main, #content, .mw-parser-output, .content, article) :is(h2, .ht) {
  clear: both !important;
}

html body :is(.l-main, #content, .mw-parser-output, .content, article) :is(h3, h4, h5, h6) {
  clear: none !important;
}

/* Unlike an ordinary h2/.ht section, the contents block is explicitly
   allowed to use the column that remains beside the lead sidebar. */
html body .ap-toc-columns-zone > :is(.ht, h2) {
  clear: none !important;
}

/* Static article fallback.
   The legacy /25.html articles do not load the wiki layout coordinator (and
   their optional article stylesheet may be unavailable), but they still use
   the same pair of right-floated .ltbl cards.  A flex heading establishes a
   formatting context as wide as the full article and is consequently pushed
   below the complete sidebar stack even with clear:none.  Keep these legacy
   headings as ordinary blocks: their line boxes then use the free left track
   exactly like the surrounding paragraphs and automatically return to full
   width once the floats end.  Wiki pages opt out as soon as their explicit
   .ap-sidebar-content-flow owner is active. */
@media (min-width: 1181px) {
  html body :is(#ap-static-article-layout, .l-main:has(> div > table.ltbl img.article-logo)) > div > .ap-toc-columns-zone {
    display: flow-root !important;
    clear: none !important;
    inline-size: auto !important;
    width: auto !important;
    min-inline-size: 0 !important;
    max-inline-size: none !important;
    box-sizing: border-box !important;
  }

  html body :is(#ap-static-article-layout, .l-main:has(> div > table.ltbl img.article-logo)) > div > :is(.ht, h2),
  html body :is(#ap-static-article-layout, .l-main:has(> div > table.ltbl img.article-logo)) > div > div.ap-toc-columns-zone > :is(.ht, h2) {
    display: block !important;
    clear: none !important;
    inline-size: auto !important;
    width: auto !important;
    min-inline-size: 0 !important;
    max-inline-size: none !important;
  }

  html body :is(#ap-static-article-layout, .l-main:has(> div > table.ltbl img.article-logo)) > div > .ht::before,
  html body :is(#ap-static-article-layout, .l-main:has(> div > table.ltbl img.article-logo)) > div > .ap-toc-columns-zone > .ht::before {
    display: inline-block !important;
    margin-inline-end: 12px !important;
    vertical-align: 0.08em !important;
  }
}

/* One temporary article column owns every block that begins while the lead
   right sidebar is still active. Its measured BFC fits before the sidebar's
   margin edge, so nested table/media BFCs no longer avoid the outer sidebar
   a second time. The first later block returns to the full-width stream. */
@media (min-width: 1181px) {
  html body :is(.l-main, #content, .mw-parser-output, .content, article) .ap-sidebar-content-flow {
    display: block !important;
    float: none !important;
    clear: none !important;
    inline-size: var(--ap-sidebar-flow-inline) !important;
    width: var(--ap-sidebar-flow-inline) !important;
    min-inline-size: 0 !important;
    max-inline-size: var(--ap-sidebar-flow-inline) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  html body .ap-sidebar-content-flow > * {
    clear: none !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    box-sizing: border-box !important;
  }

  html body .ap-sidebar-content-flow :is(h2, .ht, h3, h4, h5, h6),
  html body .ap-sidebar-content-flow :is(.ap-toc-columns-zone, .ap-media-row, .ap-media-flow, .ap-media-float-pair) {
    clear: none !important;
    max-inline-size: 100% !important;
  }

  html body .ap-sidebar-content-flow > :is(table, .ap-table-scroll) {
    inline-size: 100% !important;
    width: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
  }

  html body .ap-sidebar-content-flow :is(img, video, .img-fallback) {
    max-inline-size: 100% !important;
  }
}

@media (max-width: 1180px) {
  html body .ap-sidebar-content-flow {
    display: contents !important;
    inline-size: auto !important;
    width: auto !important;
    max-inline-size: none !important;
  }
}

/* Near-fit photo pair.  The second card is the only item allowed to shrink
   (down to 80% of its preferred width).  Both cards float inside a local BFC:
   once the first card ends, later prose and h3-h6 headings naturally occupy
   the space to the left of the still-active second card. */
html body :is(.l-main, #content, .mw-parser-output, .content, article) .ap-media-float-pair {
  display: flow-root !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  margin: 1.25rem 0 1.9rem !important;
  padding: 0 !important;
  clear: both !important;
  box-sizing: border-box !important;
}

html body .ap-media-float-pair > :is(.ap-inline-image-anchor, .ap-media-pair-marker) {
  display: none !important;
}

html body .ap-media-float-pair > .ap-media-pair-first,
html body .ap-media-float-pair > .ap-media-pair-second {
  box-sizing: border-box !important;
}

html body .ap-media-float-pair > .ap-media-pair-first > :is(img, video, .img-fallback),
html body .ap-media-float-pair > .ap-media-pair-first > :is(a, picture),
html body .ap-media-float-pair > .ap-media-pair-first > :is(a, picture) > :is(img, video, .img-fallback),
html body .ap-media-float-pair > .ap-media-pair-second > :is(img, video, .img-fallback),
html body .ap-media-float-pair > .ap-media-pair-second > :is(a, picture),
html body .ap-media-float-pair > .ap-media-pair-second > :is(a, picture) > :is(img, video, .img-fallback) {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  block-size: auto !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
}

html body .ap-media-float-pair > :is(.ap-media-pair-first, .ap-media-pair-second) > .ap-media-caption {
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  margin: 0.58rem 0 0 !important;
}

html body .ap-media-float-pair > :is(p, h3, h4, h5, h6, .hatnote, .dablink, .rellink) {
  clear: none !important;
}

/* Wait only for the shorter float, then fill the readable space beside the
   taller one.  The JS keeps a 30%/320px minimum and falls back to both. */
html body .ap-media-float-pair.ap-media-float-pair--copy-after-right > :is(p, h3, h4, h5, h6, .hatnote, .dablink, .rellink) {
  clear: right !important;
}

html body .ap-media-float-pair.ap-media-float-pair--copy-after-left > :is(p, h3, h4, h5, h6, .hatnote, .dablink, .rellink) {
  clear: left !important;
}

html body .ap-media-float-pair.ap-media-float-pair--clear-copy > :is(p, h3, h4, h5, h6, .hatnote, .dablink, .rellink) {
  clear: both !important;
}

html body .img-fallback[data-ap-full-size-promoted="1"] {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-block-size: 0 !important;
  block-size: auto !important;
  height: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Scoped prose wrapping.  A flow owns only one source image/run and the
   paragraphs that immediately follow it.  The wrapper is a local BFC, so a
   right infobox cannot create the page-wide blank column caused by global
   image floats; headings and the next media run remain outside it. */
html body :is(.l-main, #content, .mw-parser-output, .content, article) .ap-media-flow {
  display: flow-root !important;
  inline-size: 100% !important;
  width: 100% !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  margin: 1.2rem 0 1.8rem !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body .ap-media-flow > .ap-media-flow-media {
  display: block !important;
  float: left !important;
  clear: none !important;
  inline-size: min(100%, var(--ap-media-flow-inline)) !important;
  width: min(100%, var(--ap-media-flow-inline)) !important;
  max-inline-size: calc(100% - 320px) !important;
  margin: 0 var(--ap-media-flow-gap, 24px) 0.9rem 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

html body .ap-media-flow-media > :is(.ap-inline-image-block, .ap-media-row) {
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  margin: 0 0 1.15rem !important;
  float: none !important;
  clear: none !important;
}

html body .ap-media-flow-media > .ap-inline-image-block > :is(img, .img-fallback),
html body .ap-media-flow-media > .ap-inline-image-block > :is(a, picture),
html body .ap-media-flow-media > .ap-inline-image-block > :is(a, picture) > :is(img, .img-fallback) {
  max-inline-size: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

/* A flow may reserve the proven full-source width only after the Wikimedia
   thumbnail was promoted (or a full-size standalone vector was identified).
   Expand the complete carrier chain as well as the image; otherwise a legacy
   fit-content link keeps the bitmap at its authored thumbnail width and leaves
   a false empty gutter before the wrapped prose. */
html body .ap-media-flow-media > .ap-inline-image-block.ap-media-flow-expanded-block,
html body .ap-media-flow-media > .ap-inline-image-block.ap-media-flow-expanded-block > :is(a, picture) {
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
}

html body .ap-media-flow-media > .ap-inline-image-block.ap-media-flow-expanded-block > :is(img, .img-fallback),
html body .ap-media-flow-media > .ap-inline-image-block.ap-media-flow-expanded-block > :is(a, picture) > :is(img, .img-fallback) {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  block-size: auto !important;
  height: auto !important;
  margin-inline: 0 !important;
}

html body .ap-media-flow-media img[data-ap-media-flow-expanded="1"] {
  inline-size: min(100%, var(--ap-media-flow-expanded-inline)) !important;
  width: min(100%, var(--ap-media-flow-expanded-inline)) !important;
  block-size: auto !important;
  height: auto !important;
}

/* Pronunciation loudspeakers are inline controls, not article media. */
html body :is(.l-main, #content, .mw-parser-output, .content, article)
  p img:is([src*="Loudspeaker" i], [alt*="Об этом звуке" i]) {
  display: inline-block !important;
  float: none !important;
  clear: none !important;
  inline-size: 1em !important;
  width: 1em !important;
  max-inline-size: 1em !important;
  max-width: 1em !important;
  block-size: auto !important;
  height: auto !important;
  margin: 0 .12em !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  vertical-align: -.08em !important;
  object-fit: contain !important;
}

html body .ap-media-flow > :is(p, .hatnote, .dablink, .rellink) {
  margin-block-start: 0 !important;
}

html body .ap-media-flow > :is(h3, h4, h5, h6) {
  clear: none !important;
}

@media (max-width: 900px) {
  html body .ap-media-float-pair > :is(.ap-media-pair-first, .ap-media-pair-second) {
    float: none !important;
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem !important;
  }

  html body .ap-media-flow > .ap-media-flow-media {
    float: none !important;
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    margin: 0 0 1rem !important;
  }
}

/* A responsive sidebar can become wider than its legacy two-column grid.
   Keep every top-level row group tied to the actual table width; JS expands
   confident one-content/one-empty rows across the original logical columns. */
@media (max-width: 1180px) {
  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article
  ) > table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"],
    [align="right"]
  ),
  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article
  ) table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"]
  ) {
    inline-size: 100% !important;
    width: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    box-sizing: border-box !important;
  }

  html body table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"]
  ) > :is(thead, tbody, tfoot),
  html body table:is(
    .ltbl,
    .infobox,
    .ap-forced-sidebar-table,
    [data-ap-sidebar-lead="1"],
    [data-ap-sidebar-follow="1"]
  ) > :is(thead, tbody, tfoot) > tr {
    inline-size: 100% !important;
    width: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Page metadata follows exactly the same outer grid as the article/footer. */
html body .ap-page-metadata {
  inline-size: min(1660px, calc(100vw - 72px)) !important;
  width: min(1660px, calc(100vw - 72px)) !important;
  max-inline-size: calc(100vw - 72px) !important;
  margin-inline: auto !important;
}

@media (max-width: 768px) {
  html body .ap-page-metadata {
    inline-size: calc(100vw - 40px) !important;
    width: calc(100vw - 40px) !important;
    max-inline-size: calc(100vw - 40px) !important;
  }

  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article
  ) .ap-media-caption--wide {
    inline-size: min(94%, var(--ap-caption-media-width, 94%)) !important;
    max-inline-size: min(94%, 68ch) !important;
  }
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery {
  --ap-gallery-gap: clamp(16px, 2vw, 28px);
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: var(--ap-gallery-gap) !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  margin: 1.35rem 0 2rem !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery > li.ap-media-gallery-item {
  display: block !important;
  flex: 0 0 calc((100% - var(--ap-gallery-gap)) / 2) !important;
  inline-size: calc((100% - var(--ap-gallery-gap)) / 2) !important;
  width: calc((100% - var(--ap-gallery-gap)) / 2) !important;
  min-inline-size: 0 !important;
  max-inline-size: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

/* Gallery invariant: two equal cards per row.  If the item count is odd,
   the final card occupies the complete gallery line instead of leaving a
   visually empty second column. */
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery > li.ap-media-gallery-item:last-child:nth-child(odd) {
  flex-basis: 100% !important;
  inline-size: 100% !important;
  width: 100% !important;
}

/* Preserve source order and the two-column rule while packing each column
   independently.  Unlike CSS columns, explicit odd/even grid columns never
   reorder the reading sequence; unlike a conventional grid, a tall card in
   one column no longer creates a blank shelf below its shorter neighbour. */
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery.ap-gallery-masonry-ready {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 1px !important;
  grid-auto-flow: row !important;
  column-gap: var(--ap-gallery-gap) !important;
  row-gap: 0 !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery.ap-gallery-masonry-ready > li.ap-media-gallery-item {
  grid-row-end: span var(--ap-gallery-row-span, 1) !important;
  inline-size: 100% !important;
  width: 100% !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery.ap-gallery-masonry-ready > li.ap-media-gallery-item:nth-child(odd) {
  grid-column: 1 !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery.ap-gallery-masonry-ready > li.ap-media-gallery-item:nth-child(even) {
  grid-column: 2 !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery.ap-gallery-masonry-ready > li.ap-media-gallery-item:last-child:nth-child(odd) {
  grid-column: 1 / -1 !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery > li.ap-media-gallery-item::before,
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery > li.ap-media-gallery-item::marker {
  content: none !important;
  display: none !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery > li.ap-media-gallery-item > :is(img, video, .img-fallback),
html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery > li.ap-media-gallery-item > :is(a, picture) > :is(img, video, .img-fallback) {
  display: block !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  max-width: 100% !important;
  block-size: auto !important;
  height: auto !important;
  margin: 0 auto !important;
}

html body :is(
  .l-main,
  #content,
  .mw-parser-output,
  .content,
  article
) :is(ul.gallery, ol.gallery).ap-media-gallery > li.ap-media-gallery-item > .ap-media-caption--gallery {
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  margin: 0.58rem 0 0 !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article
  ) :is(ul.gallery, ol.gallery).ap-media-gallery > li.ap-media-gallery-item {
    flex-basis: 100% !important;
    inline-size: 100% !important;
    width: 100% !important;
  }

  html body :is(
    .l-main,
    #content,
    .mw-parser-output,
    .content,
    article
  ) :is(ul.gallery, ol.gallery).ap-media-gallery.ap-gallery-masonry-ready {
    display: flex !important;
  }
}

@media (max-width: 760px) {
  html body tr.ap-responsive-single-cell-row {
    display: block !important;
    inline-size: 100% !important;
    width: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    box-sizing: border-box !important;
  }

  html body tr.ap-responsive-single-cell-row > :is(th, td):not([style*="display: none"]) {
    display: block !important;
    inline-size: 100% !important;
    width: 100% !important;
    min-inline-size: 0 !important;
    min-width: 0 !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
  }
}

.ap-search-root,
.ap-search-root * {
  box-sizing: border-box;
}

.ap-search-root[hidden] {
  display: none !important;
}

.ap-search-root {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: min(12vh, 96px) 18px 24px;
  font-family: Roboto, Arial, sans-serif;
}

.ap-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 23, 38, .62);
  backdrop-filter: blur(5px);
}

.ap-search-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - min(12vh, 96px) - 24px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  background: #fff;
  color: #17212b;
  box-shadow: 0 28px 90px rgba(3, 18, 33, .3);
}

.ap-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 27px 13px;
}

.ap-search-head h2 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #122236 !important;
  font: 700 26px/1.25 Roboto, Arial, sans-serif !important;
}

.ap-search-head p {
  margin: 0;
  color: #68798a;
  font: 14px/1.45 Roboto, Arial, sans-serif;
}

.ap-search-close {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: -5px -5px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #536577;
  background: #eef3f7;
  font: 300 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.ap-search-close:hover,
.ap-search-close:focus-visible {
  color: #152b3f;
  background: #e1eaf1;
}

.ap-search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 27px 14px;
}

.ap-search-field-icon {
  position: absolute;
  z-index: 1;
  left: 45px;
  top: 25px;
  display: grid;
  place-items: center;
  color: #6b7c8e;
  pointer-events: none;
}

.ap-search-field-icon svg,
.ap-search-trigger svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ap-search-form input {
  width: 100%;
  min-width: 0;
  height: 56px;
  margin: 0;
  padding: 0 18px 0 51px;
  border: 1px solid #cbd7e1;
  border-radius: 15px;
  outline: 0;
  color: #15283b;
  background: #f9fbfc;
  font: 17px/1 Roboto, Arial, sans-serif;
  box-shadow: none;
}

.ap-search-form input:focus {
  border-color: #1683bf;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 131, 191, .13);
}

.ap-search-submit {
  min-width: 92px;
  height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: #075f8e;
  font: 700 15px/1 Roboto, Arial, sans-serif;
  cursor: pointer;
}

.ap-search-submit:hover,
.ap-search-submit:focus-visible {
  background: #064e75;
}

.ap-search-status {
  min-height: 39px;
  padding: 4px 29px 13px;
  color: #66798a;
  font: 14px/1.5 Roboto, Arial, sans-serif;
}

.ap-search-status[data-state="loading"]::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin: 0 8px -2px 0;
  border: 2px solid #c5d5df;
  border-top-color: #0877ad;
  border-radius: 50%;
  animation: ap-search-spin .7s linear infinite;
}

.ap-search-status[data-state="error"] {
  color: #a52b2b;
}

.ap-search-results {
  display: grid;
  gap: 1px;
  margin: 0 !important;
  padding: 0 19px 20px !important;
  list-style: none !important;
}

.ap-search-results li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ap-search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 49px;
  padding: 11px 12px;
  border-radius: 11px;
  color: #075f8e !important;
  font: 500 16px/1.45 Roboto, Arial, sans-serif;
  text-decoration: none !important;
}

.ap-search-results a:hover,
.ap-search-results a:focus-visible {
  outline: 0;
  color: #053c5a !important;
  background: #edf6fb;
}

.ap-search-result-arrow {
  flex: 0 0 auto;
  color: #8ba0b1;
  font: 300 28px/1 Arial, sans-serif;
}

.ap-search-trigger {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #d4dfe6;
  border-radius: 50%;
  color: #4c6375;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 47, 70, .08);
}

.ap-search-trigger:hover,
.ap-search-trigger:focus-visible {
  outline: 0;
  color: #075f8e;
  border-color: #98bfd3;
  background: #f4fafc;
}

.ap-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ap-search-legacy-hidden {
  display: none !important;
}

.ap-search-host {
  position: relative;
  box-sizing: border-box;
  font-family: Roboto, Arial, sans-serif;
}

.ap-search-host--hero {
  isolation: isolate;
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
}

.ap-search-host--hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -26px -36px -30px;
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 45%, rgba(38, 198, 218, .24), transparent 37%),
    radial-gradient(circle at 76% 46%, rgba(139, 92, 246, .19), transparent 39%);
  filter: blur(15px);
  opacity: .78;
}

.ap-inline-search {
  position: relative;
  width: 100%;
  margin: 0;
}

.ap-inline-search__field {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  height: 58px;
  padding: 4px 5px 4px 18px;
  border: 1px solid transparent;
  border-radius: 19px;
  background:
    linear-gradient(rgba(255,255,255,.97), rgba(249,252,255,.98)) padding-box,
    linear-gradient(120deg, #26c6da, #4e7cff 48%, #8b5cf6 76%, #91d33f) border-box;
  box-shadow:
    0 1px 0 rgba(255,255,255,.98) inset,
    0 16px 40px rgba(29, 61, 102, .14),
    0 0 0 5px rgba(78, 124, 255, .055);
  transition: box-shadow .2s ease, transform .2s ease;
}

.ap-inline-search--hero .ap-inline-search__field {
  height: 64px;
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.98) inset,
    0 22px 55px rgba(29, 61, 102, .17),
    0 0 0 6px rgba(38, 198, 218, .06);
}

.ap-inline-search__field:focus-within {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.98) inset,
    0 24px 58px rgba(33, 73, 122, .20),
    0 0 0 5px rgba(38, 198, 218, .15);
}

.ap-inline-search__icon,
.ap-inline-search__mobile-trigger {
  color: #416079;
}

.ap-inline-search__icon {
  display: grid;
  place-items: center;
  margin-right: 11px;
  pointer-events: none;
}

.ap-inline-search__icon svg,
.ap-inline-search__mobile-trigger svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ap-inline-search input {
  width: 100% !important;
  min-width: 0 !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 10px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: #14283b !important;
  background: transparent !important;
  font: 500 16px/1.2 Roboto, Arial, sans-serif !important;
  box-shadow: none !important;
  appearance: none;
}

.ap-inline-search--hero input {
  font-size: 18px !important;
}

.ap-inline-search input::placeholder {
  color: #718497;
  opacity: 1;
}

.ap-inline-search__submit {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  height: 48px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #087caf, #315fd1 60%, #6949c9);
  font: 700 15px/1 Roboto, Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(45, 92, 181, .23);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ap-inline-search__submit:hover,
.ap-inline-search__submit:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.12);
  box-shadow: 0 14px 29px rgba(45, 92, 181, .30);
}

.ap-inline-search__submit:focus-visible,
.ap-inline-search__mobile-trigger:focus-visible {
  outline: 3px solid rgba(38, 198, 218, .35);
  outline-offset: 2px;
}

.ap-inline-search__status {
  min-height: 25px;
  padding: 8px 7px 0;
  color: #60768a;
  text-align: left;
  font: 13px/1.4 Roboto, Arial, sans-serif;
}

.ap-inline-search__status[data-state="loading"]::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 7px -2px 0;
  border: 2px solid #c5d5df;
  border-top-color: #0877ad;
  border-radius: 50%;
  animation: ap-search-spin .7s linear infinite;
}

.ap-inline-search__status[data-state="error"] {
  color: #a52b2b;
}

.ap-inline-search__panel,
.ap-search-modal-panel {
  overflow: auto;
  max-height: min(60vh, 480px);
  border: 1px solid rgba(55, 83, 118, .12);
  border-radius: 18px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 24px 65px rgba(21, 49, 83, .20);
}

.ap-inline-search__panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
}

.ap-inline-search__panel[hidden],
.ap-search-modal-panel[hidden] {
  display: none !important;
}

.ap-inline-search__panel .ap-search-results,
.ap-search-modal-panel .ap-search-results {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.ap-inline-search__all {
  display: block;
  margin: 0 14px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #075f8e !important;
  background: #edf7fb;
  text-align: center;
  font: 700 14px/1.35 Roboto, Arial, sans-serif;
  text-decoration: none !important;
}

.ap-inline-search__all[hidden] {
  display: none !important;
}

.ap-inline-search__mobile-trigger {
  display: none;
}

.head .r-head {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.head .s-button.ap-search-host--header {
  display: block !important;
  flex: 1 1 440px !important;
  width: min(44vw, 520px) !important;
  max-width: 520px !important;
  min-width: 220px !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: auto !important;
  pointer-events: auto !important;
}

.head .s-button.ap-search-host--header::after {
  display: none !important;
}

.ap-inline-search--header .ap-inline-search__field {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-content: center;
  height: 48px;
  padding: 3px 4px 3px 15px;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(34, 65, 103, .11);
}

.ap-inline-search--header input {
  height: 40px !important;
}

.ap-inline-search--header .ap-topic-orb {
  position: relative;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin: 0 2px 0 7px;
  border: 3px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 27%, rgba(255,255,255,.9) 0 7%, transparent 9%),
    conic-gradient(from 215deg, #f37322, #ffb52d, #9bd33d, #27c5d7, #4e70df, #9a59df, #f37322);
  box-shadow:
    0 7px 17px rgba(85, 83, 184, .25),
    0 0 0 1px rgba(255,255,255,.7) inset,
    0 0 0 1px rgba(74, 102, 155, .12);
  cursor: pointer;
  text-decoration: none !important;
  transform: rotate(0deg) scale(1);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}

.ap-inline-search--header .ap-topic-orb::after {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(32, 49, 95, .22);
}

.ap-inline-search--header .ap-topic-orb::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px rgba(255,255,255,.95);
  opacity: .95;
}

.ap-inline-search--header .ap-topic-orb:hover,
.ap-inline-search--header .ap-topic-orb:focus-visible,
.ap-inline-search--header .ap-topic-orb[aria-expanded="true"] {
  transform: rotate(22deg) scale(1.08);
  box-shadow:
    0 10px 24px rgba(85,83,184,.33),
    0 0 0 5px rgba(78,112,223,.10),
    0 0 0 1px rgba(255,255,255,.8) inset;
}

.ap-inline-search--header .ap-topic-orb:focus-visible {
  outline: 3px solid rgba(38,198,218,.35);
  outline-offset: 3px;
}

.ap-ecosystem-panel {
  position: fixed;
  z-index: 1200;
  box-sizing: border-box;
  max-height: min(630px, calc(100vh - 84px));
  padding: 20px;
  overflow: auto;
  border: 1px solid rgba(86,109,147,.16);
  border-radius: 25px;
  color: #1b2b42;
  background:
    radial-gradient(circle at 92% 4%, rgba(139,92,246,.11), transparent 34%),
    radial-gradient(circle at 7% 100%, rgba(38,198,218,.10), transparent 36%),
    rgba(255,255,255,.98);
  box-shadow: 0 28px 80px rgba(25,45,77,.25), inset 0 1px 0 #fff;
  animation: ap-ecosystem-reveal .2s ease-out both;
}

.ap-ecosystem-panel[hidden] {
  display: none !important;
}

.ap-ecosystem-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) 36px;
  gap: 3px 12px;
  align-items: center;
  margin-bottom: 3px;
}

.ap-ecosystem-head > span {
  grid-column: 1;
  color: #167f99;
  font: 800 11px/1.3 Roboto,Arial,sans-serif;
  letter-spacing: .14em;
}

.ap-ecosystem-head > strong {
  grid-column: 1;
  color: #172b43;
  font: 800 21px/1.2 Roboto,Arial,sans-serif;
  letter-spacing: -.025em;
}

.ap-ecosystem-close {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(66,93,130,.14);
  border-radius: 50%;
  color: #557086;
  font: 25px/1 Arial,sans-serif;
  background: rgba(247,250,253,.9);
  cursor: pointer;
}

.ap-ecosystem-lead,
.ap-ecosystem-foot {
  margin: 0;
  color: #718398;
  font: 13px/1.45 Roboto,Arial,sans-serif;
}

.ap-ecosystem-lead {
  margin-bottom: 15px;
}

.ap-ecosystem-foot {
  padding-top: 13px;
  text-align: center;
}

.ap-ecosystem-items {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.ap-ecosystem-item {
  box-sizing: border-box;
  display: grid !important;
  grid-template-columns: 48px minmax(0,1fr) 28px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 9px 11px;
  border: 1px solid rgba(68,95,132,.11);
  border-radius: 17px;
  color: #19425c !important;
  text-align: left;
  text-decoration: none !important;
  background: linear-gradient(135deg,rgba(255,255,255,.98),rgba(244,248,252,.9));
  box-shadow: 0 8px 20px rgba(41,67,99,.07);
  cursor: pointer;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

button.ap-ecosystem-item {
  font: inherit;
}

.ap-ecosystem-item:hover,
.ap-ecosystem-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(64,126,190,.30);
  box-shadow: 0 12px 27px rgba(41,67,99,.12);
  outline: none;
}

.ap-ecosystem-item:focus-visible {
  box-shadow: 0 0 0 3px rgba(38,198,218,.18),0 12px 27px rgba(41,67,99,.12);
}

.ap-ecosystem-item:disabled {
  cursor: wait;
  opacity: .62;
}

.ap-ecosystem-directory {
  border-color: rgba(82,112,213,.20);
  background: linear-gradient(135deg,rgba(238,251,253,.98),rgba(245,241,255,.95));
}

.ap-ecosystem-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  font: 800 14px/1 Roboto,Arial,sans-serif;
  letter-spacing: -.03em;
  background: linear-gradient(145deg,#14afc5,#4e70df 58%,#9059df);
  box-shadow: 0 9px 19px rgba(68,91,186,.22);
}

.ap-ecosystem-mark img {
  display: block !important;
  width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ap-ecosystem-mark--directory {
  font-size: 23px;
  background: conic-gradient(from 215deg,#f37322,#ffb52d,#9bd33d,#27c5d7,#4e70df,#9a59df,#f37322);
}

.ap-ecosystem-copy {
  display: block;
  min-width: 0;
}

.ap-ecosystem-copy strong,
.ap-ecosystem-copy small {
  display: block;
}

.ap-ecosystem-copy strong {
  margin-bottom: 3px;
  color: #1a4059;
  font: 750 15px/1.28 Roboto,Arial,sans-serif;
}

.ap-ecosystem-copy small {
  color: #718398;
  font: 12px/1.35 Roboto,Arial,sans-serif;
}

.ap-ecosystem-arrow {
  display: grid;
  place-items: center;
  color: #7892a5;
  font: 20px/1 Arial,sans-serif;
}

.ap-ecosystem-status {
  min-height: 0;
  padding: 0;
  color: #61798e;
  font: 13px/1.4 Roboto,Arial,sans-serif;
}

.ap-ecosystem-status:not(:empty) {
  padding: 12px 4px 2px;
}

.ap-ecosystem-status[data-state="error"] {
  color: #a33c3c;
}

@keyframes ap-ecosystem-reveal {
  from { opacity: 0; transform: translateY(-7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ap-inline-search--header .ap-inline-search__submit {
  min-width: 79px;
  height: 40px;
  padding: 0 15px;
  border-radius: 13px;
}

.ap-inline-search--header .ap-inline-search__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.ap-inline-search--header .ap-inline-search__panel {
  top: calc(100% + 10px);
}

.ap-search-page-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(38,198,218,.13), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(139,92,246,.11), transparent 31%),
    #f4f8fa;
}

.ap-search-page-main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(46px, 8vw, 92px) 0 70px;
}

.ap-search-page-card {
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 30px 90px rgba(28, 57, 92, .13);
  backdrop-filter: blur(12px);
}

.ap-search-page-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #147c9b;
  font: 700 13px/1.3 Roboto, Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ap-search-page-card h1 {
  margin: 0 0 10px;
  color: #162b40;
  font: 800 clamp(30px, 5vw, 48px)/1.12 Roboto, Arial, sans-serif;
}

.ap-search-page-card > p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #607387;
  font: 16px/1.6 Roboto, Arial, sans-serif;
}

.ap-home-intro {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: visible;
  margin: 18px 0 28px;
  padding: clamp(42px, 7vw, 74px) clamp(16px, 5vw, 54px) clamp(32px, 6vw, 54px);
  border: 1px solid rgba(49, 95, 209, .12);
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 10% 12%, rgba(38, 198, 218, .23), transparent 32%),
    radial-gradient(circle at 90% 8%, rgba(139, 92, 246, .20), transparent 31%),
    radial-gradient(circle at 52% 118%, rgba(145, 211, 63, .12), transparent 37%),
    linear-gradient(145deg, #fbfeff 0%, #f2f7ff 50%, #fcf8ff 100%);
  box-shadow:
    0 30px 78px rgba(24, 52, 88, .14),
    0 1px 0 rgba(255,255,255,.98) inset;
}

.ap-home-intro::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 39%, rgba(255,255,255,.7) 47%, transparent 55%),
    radial-gradient(circle at 50% 5%, rgba(255,255,255,.9), transparent 34%);
  opacity: .72;
}

.ap-home-intro > * {
  position: relative;
  z-index: 1;
}

.ap-home-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #167a99;
  font: 800 12px/1.3 Roboto, Arial, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ap-home-intro__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20bfd2;
  box-shadow: 0 0 0 6px rgba(38, 198, 218, .13), 0 0 18px rgba(38, 198, 218, .42);
}

.ap-home-intro .slg {
  max-width: 850px;
  margin: 0 auto 28px;
  color: #142b43;
  font: 850 clamp(36px, 5.2vw, 62px)/1.04 Roboto, Arial, sans-serif;
  letter-spacing: -.045em;
  text-decoration: none;
}

.ap-home-intro .ap-search-host--hero {
  z-index: 3;
  overflow: visible;
  width: min(790px, 100%);
  margin: 0 auto;
}

.ap-home-intro .ap-inline-search--hero,
.ap-home-intro .ap-inline-search--hero .ap-inline-search__panel {
  z-index: 4;
}

.content-main > .l-main {
  position: relative;
  z-index: 1;
}

.ap-home-intro .ap-search-host--hero::before {
  inset: -31px -48px -34px;
  opacity: 1;
  filter: blur(18px);
}

.ap-home-intro .ap-inline-search--hero .ap-inline-search__field {
  height: 70px;
  padding: 6px 7px 6px 20px;
  border: 2px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(115deg, #24c4d8 0%, #4e7cff 45%, #9a59e8 77%, #91d33f 100%) border-box;
  box-shadow:
    0 26px 58px rgba(37, 70, 112, .22),
    0 0 0 9px rgba(78, 124, 255, .06),
    0 1px 0 #fff inset;
}

.ap-home-intro .ap-inline-search--hero .ap-inline-search__field:focus-within {
  box-shadow:
    0 30px 68px rgba(37, 70, 112, .27),
    0 0 0 9px rgba(38, 198, 218, .13),
    0 1px 0 #fff inset;
}

.ap-home-intro .ap-inline-search__icon {
  width: 42px;
  height: 42px;
  margin-right: 13px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #13a9c1, #4e7cff 59%, #8059d4);
  box-shadow: 0 10px 24px rgba(65, 94, 194, .28);
}

.ap-home-intro .ap-inline-search__icon svg {
  width: 21px;
  height: 21px;
}

.ap-home-intro .ap-inline-search--hero input {
  font-size: 19px !important;
  font-weight: 550 !important;
}

.ap-home-intro .ap-inline-search__submit {
  min-width: 118px;
  height: 54px;
  border-radius: 17px;
  font-size: 16px;
  background: linear-gradient(135deg, #087eaf, #3d61d2 55%, #7951d1);
  box-shadow: 0 13px 29px rgba(51, 83, 184, .31);
}

.ap-home-intro__hints {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 12px;
  margin-top: 5px;
  color: #60758a;
  font: 700 12px/1.35 Roboto, Arial, sans-serif;
}

.ap-home-intro__hints span {
  padding: 8px 11px;
  border: 1px solid rgba(75, 111, 158, .11);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 5px 15px rgba(36, 67, 104, .055);
}

.ap-home-intro__hints span::before {
  content: "✓";
  margin-right: 6px;
  color: #1297a9;
  font-weight: 900;
}

.ap-search-host--page .ap-inline-search__panel {
  position: relative;
  z-index: 1;
  top: auto;
  margin-top: 7px;
  max-height: none;
  box-shadow: 0 16px 45px rgba(24, 54, 88, .12);
}

.ap-search-bound {
  display: inline-grid !important;
  place-items: center;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  margin-top: -11px !important;
  border-radius: 50%;
  background-position: center !important;
  background-size: 23px 23px !important;
}

.ap-search-bound:focus-visible {
  outline: 3px solid rgba(22, 131, 191, .35);
  outline-offset: 2px;
}

@keyframes ap-search-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  .ap-search-root {
    align-items: stretch;
    padding: 0;
  }

  .ap-search-dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .ap-search-head {
    padding: 19px 18px 10px;
  }

  .ap-search-head h2 {
    font-size: 22px !important;
  }

  .ap-search-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 18px 12px;
  }

  .ap-search-field-icon {
    left: 35px;
    top: 25px;
  }

  .ap-search-submit {
    width: 100%;
    height: 48px;
  }

  .ap-search-status {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ap-search-results {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
}

@media (max-width: 760px) {
  .ap-ecosystem-panel {
    max-height: calc(100vh - 74px);
    padding: 16px;
    border-radius: 21px;
  }

  .ap-ecosystem-item {
    grid-template-columns: 44px minmax(0,1fr) 24px;
    gap: 10px;
    min-height: 64px;
    padding: 8px 9px;
    border-radius: 15px;
  }

  .ap-ecosystem-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .head .s-button.ap-search-host--header {
    flex: 0 0 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }

  .ap-inline-search--header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .ap-inline-search--header .ap-inline-search__status,
  .ap-inline-search--header .ap-inline-search__panel {
    display: none !important;
  }

  .ap-inline-search--header .ap-inline-search__field {
    order: 2;
    display: grid !important;
    grid-template-columns: 40px;
    width: 40px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .ap-inline-search--header .ap-inline-search__field > :not(.ap-topic-orb) {
    display: none !important;
  }

  .ap-inline-search--header .ap-topic-orb {
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .ap-inline-search__mobile-trigger {
    order: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(65, 91, 126, .16);
    border-radius: 50%;
    color: #315d75;
    background:
      linear-gradient(#fff, #f8fcfd) padding-box,
      linear-gradient(135deg, #26c6da, #4e7cff, #8b5cf6) border-box;
    cursor: pointer;
    box-shadow: 0 9px 24px rgba(38, 73, 110, .13);
  }

  .ap-search-host--hero {
    width: min(100%, calc(100vw - 24px));
  }

  .ap-home-intro .ap-search-host--hero::before {
    inset: -18px -10px -24px;
  }

  .ap-home-intro {
    margin: 10px 5px 23px;
    padding: 38px 12px 30px;
    border-radius: 26px;
  }

  .ap-home-intro .slg {
    margin-bottom: 24px;
    font-size: clamp(32px, 10vw, 46px);
  }
}

@media (max-width: 420px) {
  .ap-inline-search__field,
  .ap-inline-search--hero .ap-inline-search__field {
    height: 58px;
    padding-left: 14px;
    border-radius: 18px;
  }

  .ap-inline-search--hero input {
    font-size: 16px !important;
  }

  .ap-inline-search__submit {
    min-width: 72px;
    height: 46px;
    padding: 0 13px;
    border-radius: 14px;
  }

  .ap-inline-search__icon {
    margin-right: 8px;
  }

  .ap-home-intro .ap-inline-search--hero .ap-inline-search__field {
    height: 62px;
    padding: 4px 5px 4px 10px;
    border-radius: 20px;
  }

  .ap-home-intro .ap-inline-search__icon {
    width: 38px;
    height: 38px;
    margin-right: 8px;
    border-radius: 12px;
  }

  .ap-home-intro .ap-inline-search__submit {
    min-width: 73px;
    height: 48px;
    padding: 0 12px;
    border-radius: 15px;
    font-size: 14px;
  }

  .ap-home-intro__eyebrow {
    font-size: 10px;
    letter-spacing: .08em;
  }

  .ap-home-intro__hints span:nth-child(3) {
    display: none;
  }

  .ap-search-page-main {
    width: min(100%, calc(100% - 18px));
    padding-top: 28px;
  }

  .ap-search-page-card {
    padding: 22px 14px 28px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-search-status[data-state="loading"]::before {
    animation-duration: 1.4s;
  }

  .ap-inline-search__field,
  .ap-inline-search__submit,
  .ap-topic-orb,
  .ap-ecosystem-item {
    transition: none;
  }

  .ap-ecosystem-panel {
    animation: none;
  }
}

/* Homepage editorial bento + premium identity, 2026-08-21. */
:root {
  --ap-ink: #10243f;
  --ap-muted: #607087;
  --ap-line: rgba(20, 58, 92, .12);
  --ap-canvas: #f5f8fb;
}

/* CSS-built mark: crisp at every density and intentionally asset-free. */
html body .l-head:has(.ap-premium-brand) {
  width: 264px;
  margin-top: 8px;
  text-indent: 0;
}

html body .l-head .ap-premium-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  height: 50px;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  background: none;
  perspective: 800px;
}

.ap-premium-brand__mark {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  place-items: center;
}

.ap-premium-brand__alpha {
  position: relative;
  z-index: 2;
  display: inline-block;
  color: #315fc6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  background: linear-gradient(150deg, #0cb9cb 2%, #315fc6 48%, #7b46b7 94%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, .95)) drop-shadow(0 6px 7px rgba(54, 83, 175, .24));
  transform: translateY(-1px) rotateX(4deg);
}

.ap-premium-brand__orbit {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 47px;
  height: 23px;
  margin: -12px 0 0 -24px;
  border: 1px solid rgba(47, 100, 195, .42);
  border-right-color: rgba(116, 69, 177, .72);
  border-left-color: rgba(10, 179, 195, .66);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(52, 103, 199, .10);
  transform: rotate(-24deg);
  animation: ap-brand-orbit 6.5s linear infinite;
  -webkit-text-fill-color: initial;
}

.ap-premium-brand__orbit i {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 5px;
  height: 5px;
  margin-top: -3px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: #7551bf;
  box-shadow: 0 0 0 3px rgba(91, 74, 190, .10), 0 0 9px rgba(63, 92, 203, .66);
}

.ap-premium-brand__lockup {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  transform: translateY(1px);
}

.ap-premium-brand__word {
  color: #10243f;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .92;
  text-shadow: 0 1px 0 #fff, 0 7px 16px rgba(23, 52, 82, .12);
}

.ap-premium-brand__meta {
  margin: 5px 0 0 2px;
  color: #6b7f93;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .19em;
  line-height: 1;
  text-transform: uppercase;
}

.ap-premium-brand:hover .ap-premium-brand__mark {
  filter: brightness(1.06) saturate(1.08);
}

@keyframes ap-brand-orbit {
  from { transform: rotate(-24deg); }
  to { transform: rotate(336deg); }
}

/* Approved static 3D identity. */
html body .head:has(.ap-production-brand) {
  height: 104px !important;
}

html body .head:has(.ap-production-brand) .r-head {
  margin: 0 !important;
}

html body .l-head:has(.ap-production-brand) {
  display: flex;
  align-items: center;
  width: 306px !important;
  height: 102px !important;
  margin: 0 !important;
  text-indent: 0;
}

html body .l-head .ap-production-brand {
  display: flex;
  align-items: center;
  width: 294px !important;
  height: 102px !important;
  overflow: visible;
  background: none !important;
}

html body .l-head .ap-production-brand img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  transform: none !important;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(28, 49, 104, .13));
}

/* Editorial stage. */
html body .content-main > .ap-home-stories-shell {
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.ap-home-stories {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(29, 68, 103, .10);
  border-radius: 28px;
  background:
    radial-gradient(circle at 7% 3%, rgba(102, 226, 205, .13), transparent 25%),
    radial-gradient(circle at 96% 2%, rgba(111, 102, 231, .11), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(244, 248, 252, .98));
  box-shadow: 0 22px 70px rgba(21, 54, 85, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.ap-home-stories::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(79, 111, 220, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(79, 111, 220, .025), 0 0 0 72px rgba(79, 111, 220, .018);
  pointer-events: none;
}

.ap-home-stories__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.ap-home-stories__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3b6793;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ap-home-stories__eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3bc0b0;
  box-shadow: 0 0 0 5px rgba(59, 192, 176, .13);
}

.ap-home-stories__header h2 {
  margin: 9px 0 3px;
  color: var(--ap-ink);
  font-family: Arial, sans-serif;
  font-size: clamp(27px, 3vw, 41px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.ap-home-stories__header p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 14px;
  line-height: 1.55;
}

.ap-home-stories__all {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid rgba(32, 80, 121, .13);
  border-radius: 999px;
  color: #254f76;
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(28, 64, 98, .07);
  transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
}

.ap-home-stories__all:hover {
  color: #315fd1;
  box-shadow: 0 12px 28px rgba(28, 64, 98, .13);
  transform: translateY(-2px);
}

/* Flatten the inherited table wrappers into one bento grid. */
.ap-home-stories > div[style*="width:100%"] {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 15px;
  width: 100% !important;
  padding: 0 !important;
}

.ap-home-stories > div[style*="width:100%"] > div,
.ap-home-stories > div[style*="width:100%"] > div > div,
.ap-home-stories > div[style*="width:100%"] > div > div > div[style*="display:table"] {
  display: contents !important;
}

html body .ap-home-stories .bl_main {
  position: relative;
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  min-height: 365px;
  padding: 0 0 51px !important;
  overflow: hidden;
  border: 1px solid rgba(29, 68, 103, .10);
  border-radius: 20px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 10px 31px rgba(26, 58, 91, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateZ(0);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

html body .ap-home-stories .bl_main:hover {
  z-index: 3;
  border-color: var(--ap-story-accent);
  box-shadow: 0 22px 45px rgba(25, 56, 90, .15), 0 0 0 1px var(--ap-story-glow);
  transform: translateY(-6px);
}

.ap-home-stories .bl_main > div:first-child {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: #dce5ed;
}

html body .ap-home-stories .bl_main img {
  display: block;
  width: 100%;
  max-width: none !important;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(.86) contrast(1.03);
  transform: scale(1.015);
  transition: transform .75s cubic-bezier(.2, .75, .2, 1), filter .4s ease;
}

.ap-home-stories .bl_main:hover img {
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1.075);
}

.ap-home-stories .bl_main > p {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 18px;
}

.ap-home-stories .bl_main > p:first-of-type {
  padding-top: 40px;
}

.ap-home-stories .bl_main::before {
  content: attr(data-topic);
  position: absolute;
  z-index: 3;
  top: 188px;
  left: 18px;
  color: var(--ap-story-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ap-home-stories .bl_main > p:first-of-type::after {
  content: attr(data-index);
  position: absolute;
  top: 13px;
  right: 18px;
  color: #9aabba;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
}

html body .ap-home-stories .bl_main > p:first-of-type a {
  color: var(--ap-ink);
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.ap-home-stories .bl_main > p:first-of-type a::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
}

.ap-home-stories .bl_main > p:last-of-type {
  display: -webkit-box;
  margin-top: 9px;
  overflow: hidden;
  color: #69798b;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ap-home-stories .bl_main::after {
  content: "\000427\000438\000442\000430\000442\00044c  \002192";
  position: absolute;
  right: 18px;
  bottom: 17px;
  color: #47647e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: color .25s ease, transform .25s ease;
}

.ap-home-stories .bl_main:hover::after {
  color: var(--ap-story-accent);
  transform: translateX(3px);
}

/* The lead story is the visual anchor. */
html body .ap-home-stories .bl_main[data-index="01"] {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 745px;
  justify-content: flex-end;
  border-color: rgba(143, 231, 204, .20);
  background:
    linear-gradient(180deg, rgba(6, 28, 32, .01) 46%, rgba(7, 28, 34, .10) 60%, rgba(7, 28, 34, .70) 88%, rgba(6, 23, 30, .90) 100%),
    linear-gradient(90deg, rgba(8, 35, 38, .16), transparent 68%),
    url("/static/alphapedia-20260907/pl.jpg") center 50% / cover no-repeat !important;
  box-shadow: 0 22px 50px rgba(14, 37, 50, .22);
}

.ap-home-stories .bl_main[data-index="01"] > div:first-child {
  position: absolute;
  inset: 0;
  height: auto;
  opacity: 0;
}

html body .ap-home-stories .bl_main[data-index="01"] > div:first-child > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 50% !important;
}

.ap-home-stories .bl_main[data-index="01"] > div:first-child::after {
  content: none;
}

.ap-home-stories .bl_main[data-index="01"] > p {
  margin-left: 17px;
  padding-right: 52px;
}

.ap-home-stories .bl_main[data-index="01"] > p:first-of-type {
  margin-top: auto;
  padding-top: 48px;
}

.ap-home-stories .bl_main[data-index="01"]::before {
  top: auto;
  bottom: 136px;
  left: 35px;
  color: #7aefc8;
}

.ap-home-stories .bl_main[data-index="01"] > p:first-of-type::after {
  color: rgba(255, 255, 255, .5);
}

html body .ap-home-stories .bl_main[data-index="01"] > p:first-of-type a {
  color: #fff !important;
  font-size: clamp(31px, 4vw, 49px);
  line-height: .98;
  text-shadow: 0 12px 35px rgba(0, 0, 0, .28);
}

.ap-home-stories .bl_main[data-index="01"] > p:last-of-type {
  max-width: 520px;
  margin-top: 15px;
  color: rgba(238, 249, 248, .86) !important;
  font-size: 14px;
  -webkit-line-clamp: 2;
}

.ap-home-stories .bl_main[data-index="01"]::after {
  right: 25px;
  color: #7aefc8;
}

@media (max-width: 1020px) {
  .ap-home-stories > div[style*="width:100%"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .ap-home-stories .bl_main[data-index="01"] { min-height: 620px; }
}

@media (max-width: 700px) {
  html body .head { height: 62px; padding-inline: 10px; }
  html body .head:has(.ap-production-brand) { height: 70px !important; padding-inline: 10px !important; }
  html body .head:has(.ap-production-brand) .r-head { margin: 0 !important; }
  html body .l-head:has(.ap-production-brand) { width: 187px !important; height: 68px !important; margin: 0 !important; }
  html body .l-head .ap-production-brand { width: 180px !important; height: 68px !important; }
  html body .l-head .ap-production-brand img { transform: none !important; }
  html body .l-head:has(.ap-premium-brand) { width: 213px; margin-top: 7px; }
  html body .l-head .ap-premium-brand { transform: scale(.86); transform-origin: left center; }
  .ap-home-stories { padding: 19px; border-radius: 22px; }
  .ap-home-stories__header { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .ap-home-stories__all { align-self: flex-start; }
  .ap-home-stories > div[style*="width:100%"] { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  html body .ap-home-stories .bl_main,
  html body .ap-home-stories .bl_main[data-index="01"] {
    grid-column: auto;
    grid-row: auto;
    min-height: 390px;
  }
  html body .ap-home-stories .bl_main[data-index="01"] { min-height: 520px; }
  html body .ap-home-stories .bl_main[data-index="01"] > p:first-of-type a { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .ap-premium-brand__orbit { animation: none; }
  .ap-home-stories .bl_main,
  .ap-home-stories .bl_main img,
  .ap-home-stories__all { transition: none; }
}


/* ap-toc-columns-style */

      .ap-toc-columns-zone {
        display: block;
        clear: none;
        max-width: 100%;
        box-sizing: border-box;
      }

      .ap-toc-columns-zone > :is(.ht, h2) {
        clear: none !important;
      }

      .ap-toc-columns-zone .ap-toc-columns-list {
        columns: 260px;
        column-gap: 24px;
        column-fill: balance;
        margin: 0 0 24px 0 !important;
        padding: 0 !important;
        list-style: none !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
      }

      .ap-toc-columns-zone .ap-toc-columns-list > li {
        break-inside: avoid-column;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 0 12px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
      }

      .ap-toc-columns-zone .ap-toc-columns-list > li > .ul_main,
      .ap-toc-columns-zone .ap-toc-columns-list > li > .clirg {
        margin: 8px 0 0 18px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
      }

      .ap-toc-columns-zone .ap-toc-columns-list > li > .ul_main > li,
      .ap-toc-columns-zone .ap-toc-columns-list > li > .clirg > li {
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        break-inside: avoid-column;
      }

      .ap-toc-columns-zone .ap-toc-columns-list a,
      .ap-toc-columns-zone .ap-toc-columns-list .ap-toc-anchor {
        display: inline !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        text-decoration: underline !important;
      }

      .ap-toc-columns-zone .ap-toc-columns-list img,
      .ap-toc-columns-zone .ap-toc-columns-list .img-fallback {
        display: none !important;
      }

      @media (max-width: 900px) {
        .ap-toc-columns-zone .ap-toc-columns-list {
          columns: 1 !important;
        }
      }
    

/* ap-nowrap-listen-style */

      .ap-nowrap-listen {
        display: inline-flex;
        align-items: center;
        gap: 0;
        white-space: nowrap;
        vertical-align: baseline;
      }

      .ap-nowrap-listen__iconwrap {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        float: none !important;
        clear: none !important;
        line-height: 1 !important;
        vertical-align: middle !important;
      }

      .ap-nowrap-listen__iconwrap img,
      .ap-nowrap-listen__iconwrap svg {
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 1em !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        float: none !important;
        vertical-align: middle !important;
      }

      .ap-nowrap-listen__iconwrap audio {
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        float: none !important;
        vertical-align: middle !important;
      }
    

/* ap-card-columns-style */

      .ap-card-no-marker::before {
        content: none !important;
        display: none !important;
      }
    

/* ap-sidebar-list-reset-style */

      .ap-sidebar-inner-table-scroll {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
      }

      .ap-sidebar-inner-table-scroll > table {
        display: table !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
      }

      .ap-sidebar-inner-table-scroll > table th,
      .ap-sidebar-inner-table-scroll > table td,
      .ap-sidebar-list-reset th,
      .ap-sidebar-list-reset td {
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        max-width: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
      }
    

/* ap-sidebar-deep-transform-style */

      .ap-sidebar-list-reset,
      .ap-sidebar-list-reset ul,
      .ap-sidebar-list-reset ol {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      .ap-sidebar-list-reset > li,
      .ap-sidebar-list-reset ul > li,
      .ap-sidebar-list-reset ol > li {
        list-style: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
      }

      .ap-sidebar-list-reset > li::marker,
      .ap-sidebar-list-reset ul > li::marker,
      .ap-sidebar-list-reset ol > li::marker,
      .ap-sidebar-list-reset > li::before,
      .ap-sidebar-list-reset ul > li::before,
      .ap-sidebar-list-reset ol > li::before {
        content: '' !important;
        display: none !important;
      }

      .ap-sidebar-paired-columns {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
      }

      .ap-sidebar-paired-columns + .ap-sidebar-paired-columns {
        margin-top: 10px !important;
      }

      .ap-sidebar-paired-columns-header {
        display: block !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        font-weight: 600 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
        overflow: hidden !important;
      }

      .ap-sidebar-paired-column-table {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 10px 0 !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
      }

      .ap-sidebar-paired-column-table:last-child {
        margin-bottom: 0 !important;
      }

      .ap-sidebar-paired-column-table > tbody > tr > th,
      .ap-sidebar-paired-column-table > tbody > tr > td {
        display: table-cell !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        vertical-align: top !important;
      }

      .ap-sidebar-paired-column-table table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
      }

      .ap-sidebar-paired-column-table img,
      .ap-sidebar-paired-column-table svg,
      .ap-sidebar-paired-column-table audio,
      .ap-sidebar-paired-column-table video {
        max-width: 100% !important;
        height: auto !important;
      }
    

/* ap-global-wordflow-style */

      .ap-ellipsis-token {
        display: inline-block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        vertical-align: bottom !important;
      }

      table th,
      table td,
      table caption,
      .ap-sidebar-paired-columns-header,
      .ap-sidebar-inner-table-scroll,
      .ap-sidebar-inner-table-scroll > table,
      .ap-sidebar-paired-column-table,
      .ap-sidebar-paired-column-table > tbody > tr > th,
      .ap-sidebar-paired-column-table > tbody > tr > td {
        max-width: 100% !important;
        box-sizing: border-box !important;
      }

      @media (max-width: 1180px) {
        table.ltbl,
        table.infobox,
        table.ap-forced-sidebar-table,
        table[data-ap-sidebar-lead="1"],
        table[align="right"],
        table[style*="float:right"],
        table[style*="float: right"] {
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          float: none !important;
          clear: both !important;
          margin-left: 0 !important;
          margin-right: 0 !important;
          box-sizing: border-box !important;
          overflow: hidden !important;
        }
      }
    

/* ap-sidebar-image-transfer-style */

      .ap-sidebar-left-stack {
        float: left !important;
        clear: left !important;
        display: block !important;
        box-sizing: border-box !important;
        margin: 0 18px 18px 0 !important;
        max-width: 100% !important;
      }

      .ap-sidebar-left-stack::after {
        content: "";
        display: table;
        clear: both;
      }

      .ap-sidebar-left-stack > .ap-inline-image-block {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 18px 0 !important;
        float: none !important;
        clear: none !important;
        box-sizing: border-box !important;
      }

      .ap-sidebar-left-stack > .ap-inline-image-block:last-child {
        margin-bottom: 0 !important;
      }

      .ap-sidebar-left-stack > .ap-inline-image-block > img,
      .ap-sidebar-left-stack > .ap-inline-image-block > .img-fallback {
        display: block !important;
        float: none !important;
        clear: none !important;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 0 10px 0 !important;
      }

      @media (max-width: 1180px) {
        .ap-sidebar-left-stack {
          float: none !important;
          clear: both !important;
          width: auto !important;
          max-width: 100% !important;
          margin-right: 0 !important;
        }
      }
    

/* Source home shell and brand rules, September 2026. */

@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
body {padding:0px;margin:0px;background:#fafafa;font-family:'Roboto';}
a {text-decoration:none;color:#00527b;}
.body {width:1085px;margin: 0 auto;}
.head {height:60px;padding:3px 14px;}
.bg {background:#fff;box-shadow:0 0 10px rgba(0, 0, 0.1, 0.3);}
.title h1 {font-size:24px;font-weight:normal;margin:0;border-bottom:1px solid #e1e1e1;padding-bottom:22px;}
.l-head {float:left;margin-top:24px;text-indent:-1008em;width:161px;}
.l-head a {font-size:15px;background:url(/store/logo.svg) no-repeat;background-size:153px;
display:block;height:35px;}
.r-head {float:right;margin-top:17px;margin-right:2px;display:table;margin-bottom:4px;}
.title-circle {height:19px;width:19px;background:#f37322;border-radius:100px;display:inline-block;vertical-align:middle;margin-bottom: 3px;
margin-left:-2px;border:3px solid #fff;margin-right:-10px;position:relative;}
.search-form {border:0;border-bottom:1px solid #DDD;margin-right:4px;width:200px;font-size:15px;padding:10px;}
.search-box {cursor:pointer;background-image: url(data:image/svg+xml;utf8;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjNTY1NjU2Ij48cGF0aCBkPSJNMTAuNDQyIDEwLjQ0MmExIDEgMCAwIDEgMS40MTUgMGwzLjg1IDMuODVhMSAxIDAgMCAxLTEuNDE0IDEuNDE1bC0zLjg1LTMuODVhMSAxIDAgMCAxIDAtMS40MTV6Ii8+PHBhdGggZD0iTTYuNSAxMmE1LjUgNS41IDAgMSAwIDAtMTEgNS41IDUuNSAwIDAgMCAwIDExek0xMyA2LjVhNi41IDYuNSAwIDEgMS0xMyAwIDYuNSA2LjUgMCAwIDEgMTMgMHoiLz48L2c+PC9zdmc+);
margin-top:1px;background-size:contain;background-repeat:no-repeat;width:20px;height:20px;display:block;float:left;margin-right:13px;}
.l-main {background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.1);margin-top:17px;padding:18px;}
.slc-main {border-bottom:1px solid #e1e1e1;padding:10px 0px;text-align:right;margin-bottom:18px;}
.edit {color:#575757;font-size:14px;cursor:pointer;}
.update {float:left;color:#575757;font-size:14px;}
th {font-weight:normal;font-family:arial;font-size:18px;padding:5px;text-align:left;border: 1px solid #e1d8d8;}
td img {vertical-align:middle;border-radius:4px;margin:1px;}
p img {vertical-align:middle;border-radius:4px;margin:1px;}
a img {vertical-align:middle;border-radius:4px;margin:1px;}
td{border: 1px solid #e1d8d8;}
tr img {vertical-align:middle;border-radius:4px;margin:1px;}
table {width:100%;margin-botom:4px;}
p {line-height:24px;margin-bottom:6px;color:#1a1a1a;font-size:17px;}
.list {margin-top:14px;}
.list div {font-size:17px;margin-right:15px;float: left;}
.list a {color:#fff;}
.sub {vertical-align:middle;display:table-cell;}
.login {vertical-align:middle;display:table-cell;}
.sub span{display:block;border:1px solid #555;border-radius:8px;cursor:pointer;color: #557;}
.sub img{height:28px;vertical-align:middle;margin-left:4px;}
.login span{vertical-align: middle;padding:7px 1px 7px 15px;border-radius:4px;cursor:pointer;color:#556;}
.slg {font-weight:bold;font-size:25px;font-family:roboto;text-decoration:underline;margin:0 0 15px;color:#1d4c95;}
.search-box- input {border-radius:4px;box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);border: 1px solid #d5d5d5;
margin-right:4px;width:600px;font-size:17px;padding:17px 25px;}
.search-box- {text-align:center;padding:35px 0px 20px 0px;}
.search-box-m {width:25px;height:20px;display:block;float:left;margin-top:11px;margin-left:7px;}
.rsearch{overflow-x:hidden;height:300px;width:650px;margin:0 auto;padding-left:30px;}
.bl_main {display:table-cell;width:33%; padding: 0 12px;}
.bl_main img{width:100%;height:200px;object-fit:cover;border-radius:4px;}
.bl_main a{font-weight:bold;font-family:arial;}
@media (max-width:1094px) {.body{width:auto;margin:0 5px;}}
@media (max-width:698px) {.search-form{display:none;}
.search-box- input {width:100%;box-sizing:border-box;}
.slg {font-size:20px;}
}
@media (max-width:698px) {
.bl_main {display:block;width:100%;}
.bl_main img{height:auto;}
}
.wrap {background:#fff;position:fixed;top:0;right:0;bottom:0;left:0;padding-bottom:5px;}
.er{text-align:center;margin-bottom:32px;color:#d00e0e;}
.content-wrapper {display:flex;gap:20px;}
.content-main {flex:1;min-width:0;}
.content-sidebar {width:300px;flex-shrink:0;}
.sticky-banner {position:sticky;top:20px;}
@media (max-width:900px) {.content-sidebar{display:none;}}

/* Mobile homepage cards: the external modern theme later restores a one-third
   width. Keep each card full-width once its legacy table-row becomes a column. */
@media (max-width:960px) {
  html body .l-main div[style*="display:table"][style*="width:100%"] > .bl_main {
    width:100% !important;
    inline-size:100% !important;
  }
}
