/*
Theme Name: DMR-Zone
Theme URI: https://dmr-zone.ru/
Author: DMR-Zone
Author URI: https://dmr-zone.ru/
Description: Строгая модульная тема WordPress для портала DMR-Zone. Светлая и тёмная схемы, ограниченные акцентные палитры и локальная библиотека Font Awesome Free.
Version: 0.2.23
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dmr-zone
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, dark, light, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  color-scheme: light;
  --dmrz-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dmrz-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --dmrz-page: #eef1f4;
  --dmrz-surface: #ffffff;
  --dmrz-surface-2: #f7f8fa;
  --dmrz-surface-3: #e8ecf1;
  --dmrz-text: #161b22;
  --dmrz-text-soft: #5b6471;
  --dmrz-text-faint: #7d8794;
  --dmrz-border: #cfd6df;
  --dmrz-border-strong: #aeb8c5;
  --dmrz-header: #11161d;
  --dmrz-header-bg: #0d131a;
  --dmrz-header-text: #f5f7fa;
  --dmrz-header-soft: #aeb8c5;
  --dmrz-code: #10151c;
  --dmrz-code-text: #e8edf3;
  --dmrz-danger: #c02b3a;
  --dmrz-success: #13835d;
  --dmrz-warning: #a96b00;
  --dmrz-shadow: 0 8px 24px rgba(18, 27, 38, .08);
  --dmrz-shadow-hover: 0 12px 30px rgba(18, 27, 38, .13);
  --dmrz-shell: 1240px;
  --dmrz-gap: 24px;
  --dmrz-radius: 0px;
  --dmrz-transition: 160ms ease;
}

html[data-dmrz-theme="dark"] {
  color-scheme: dark;
  --dmrz-page: #0d1117;
  --dmrz-surface: #151b23;
  --dmrz-surface-2: #1b232d;
  --dmrz-surface-3: #222c38;
  --dmrz-text: #edf2f7;
  --dmrz-text-soft: #b1bbc7;
  --dmrz-text-faint: #8995a3;
  --dmrz-border: #303b48;
  --dmrz-border-strong: #485666;
  --dmrz-header: #090d12;
  --dmrz-header-bg: #080c11;
  --dmrz-header-text: #f7f9fc;
  --dmrz-header-soft: #9aa6b5;
  --dmrz-code: #080b0f;
  --dmrz-code-text: #edf2f7;
  --dmrz-danger: #ff7180;
  --dmrz-success: #5bd5a5;
  --dmrz-warning: #ffbe55;
  --dmrz-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  --dmrz-shadow-hover: 0 12px 30px rgba(0, 0, 0, .40);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dmrz-page);
  color: var(--dmrz-text);
  font-family: var(--dmrz-font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .dmrz-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--dmrz-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--dmrz-accent-hover); }
button, input, textarea, select { font: inherit; }
button, input[type="button"], input[type="submit"], input[type="reset"] { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .6; }
::selection { background: var(--dmrz-accent); color: var(--dmrz-on-accent); }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 12px 16px;
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
  font-weight: 800;
  text-decoration: none;
}
:focus-visible { outline: 3px solid var(--dmrz-focus); outline-offset: 3px; }

.dmrz-shell { width: min(var(--dmrz-shell), calc(100% - 40px)); margin-inline: auto; }
.dmrz-main { min-height: 58vh; padding: 38px 0 64px; }
.dmrz-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--dmrz-gap); align-items: start; }
.dmrz-main-full { display: block; }
.dmrz-content { min-width: 0; }
.dmrz-no-sidebar .dmrz-main-grid { grid-template-columns: minmax(0, 1fr); }
.dmrz-no-sidebar .dmrz-sidebar { display: none !important; }
.dmrz-articles-layout,
.dmrz-single-layout { align-items: start; }
.dmrz-articles-layout > .dmrz-sidebar,
.dmrz-single-layout > .dmrz-sidebar { align-self: start; margin-top: 0; }

/* Header */
.dmrz-site-header {
  position: sticky;
  z-index: 900;
  top: 0;
  background: var(--dmrz-header);
  color: var(--dmrz-header-text);
  border-top: 4px solid var(--dmrz-accent);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.dmrz-header-inner { min-height: 76px; display: flex; align-items: stretch; gap: 20px; }
.dmrz-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 225px;
  color: var(--dmrz-header-text);
  text-decoration: none;
  text-transform: uppercase;
}
.dmrz-brand:hover { color: var(--dmrz-header-text); }
.dmrz-brand-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
  border: 1px solid var(--dmrz-accent-border);
  font-size: 1.25rem;
}
.dmrz-brand-copy { display: grid; line-height: 1; gap: 4px; }
.dmrz-brand-custom-logo { display:block; width:auto; max-width:230px; max-height:52px; object-fit:contain; }
.dmrz-brand-primary { font-size: 1.35rem; font-weight: 900; letter-spacing: .08em; }
.dmrz-brand-secondary { font-size: .68rem; color: var(--dmrz-header-soft); font-weight: 800; letter-spacing: .21em; }
.dmrz-header-nav { margin-left: auto; display: flex; align-items: stretch; }
.dmrz-primary-menu,
.dmrz-primary-menu ul { list-style: none; padding: 0; margin: 0; }
.dmrz-primary-menu { display: flex; align-items: stretch; }
.dmrz-primary-menu > li { position: relative; display: flex; }
.dmrz-primary-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0 17px;
  color: var(--dmrz-header-soft);
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color var(--dmrz-transition), background var(--dmrz-transition);
}
.dmrz-primary-menu > li:last-child > a { border-right: 1px solid rgba(255, 255, 255, .08); }
.dmrz-primary-menu > li > a:hover,
.dmrz-primary-menu > .current-menu-item > a,
.dmrz-primary-menu > .current-menu-ancestor > a { background: rgba(255, 255, 255, .06); color: #fff; }
.dmrz-primary-menu .sub-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  min-width: 230px;
  display: none;
  background: var(--dmrz-header);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-primary-menu li:hover > .sub-menu,
.dmrz-primary-menu li:focus-within > .sub-menu { display: block; }
.dmrz-primary-menu .sub-menu a { display: block; padding: 12px 14px; color: var(--dmrz-header-soft); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dmrz-primary-menu .sub-menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.dmrz-header-actions { display: flex; align-items: center; gap: 8px; }
.dmrz-icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
  color: var(--dmrz-header-text);
  text-decoration: none;
  transition: background var(--dmrz-transition), border-color var(--dmrz-transition), color var(--dmrz-transition);
}
.dmrz-icon-button:hover { background: var(--dmrz-accent); border-color: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-profile-link { color: var(--dmrz-accent); border-color: var(--dmrz-accent-border); }
.dmrz-profile-link:hover { color: var(--dmrz-on-accent); }
.dmrz-menu-toggle { display: none; }
.dmrz-header-search {
  border-top: 1px solid rgba(255,255,255,.10);
  background: var(--dmrz-header);
}
.dmrz-header-search[hidden] { display: none; }
.dmrz-header-search-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0; padding: 14px 0; }
.dmrz-header-search input[type="search"] {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255,255,255,.20);
  border-right: 0;
  border-radius: 0;
  background: #fff;
  color: #12171e;
  padding: 0 15px;
}
.dmrz-header-search button { min-width: 54px; height: 48px; }

/* Hero */
.dmrz-hero {
  position: relative;
  overflow: hidden;
  background: var(--dmrz-header);
  color: var(--dmrz-header-text);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dmrz-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.03)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,.035) 42px 43px),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(255,255,255,.035) 42px 43px);
  pointer-events: none;
}
.dmrz-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 48px; padding: 74px 0 68px; align-items: end; }
.dmrz-eyebrow { margin: 0 0 12px; color: var(--dmrz-accent); font-size: .76rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }

/* Russian, linked breadcrumbs used instead of hard-coded English section labels. */
.dmrz-breadcrumbs {
  max-width: 100%;
  margin: 0 0 13px;
  color: var(--dmrz-accent);
  font-size: .76rem;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.dmrz-breadcrumbs ol {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dmrz-breadcrumb-item { min-width: 0; display: inline-flex; align-items: center; gap: 8px; }
.dmrz-breadcrumb-item + .dmrz-breadcrumb-item::before { content: "/"; color: var(--dmrz-text-faint); }
.dmrz-breadcrumbs a,
.dmrz-breadcrumbs span { max-width: min(48ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-breadcrumbs a { color: var(--dmrz-accent); text-decoration: none; }
.dmrz-breadcrumbs a:hover { color: var(--dmrz-accent-hover); text-decoration: underline; }
.dmrz-breadcrumbs [aria-current="page"] { color: var(--dmrz-text-soft); }
.dmrz-hero-eyebrow { text-transform: none; }
.dmrz-hero h1 { max-width: 850px; margin: 0; color: #fff; font-size: clamp(2.5rem, 6.7vw, 5.8rem); line-height: .96; letter-spacing: -.045em; overflow-wrap: anywhere; text-transform: none; }
.dmrz-hero-description { max-width: 760px; margin: 24px 0 0; color: var(--dmrz-header-soft); font-size: clamp(1rem, 2vw, 1.22rem); }
.dmrz-hero-panel { padding: 22px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.035); }
.dmrz-hero-panel-title { margin: 0 0 14px; font-size: .75rem; color: var(--dmrz-header-soft); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.dmrz-hero-search { display: grid; grid-template-columns: 1fr 52px; }
.dmrz-hero-search input[type="search"] { min-width: 0; height: 52px; border: 1px solid rgba(255,255,255,.18); border-right: 0; background: #fff; color: #12171e; padding: 0 14px; border-radius: 0; }
.dmrz-hero-search button { width: 52px; height: 52px; border: 1px solid var(--dmrz-accent); border-radius: 0; background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-hero-meta {
  display: flex;
  align-items: stretch;
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--dmrz-header);
}
.dmrz-hero-stat {
  min-width: 0;
  min-height: 46px;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--dmrz-header);
}
.dmrz-hero-stat + .dmrz-hero-stat { border-left: 1px solid rgba(255,255,255,.14); }
.dmrz-hero-stat strong { color: var(--dmrz-header-text); font-size: .86rem; line-height: 1; }
.dmrz-hero-stat span {
  min-width: 0;
  overflow: hidden;
  color: var(--dmrz-header-soft);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .065em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

/* General blocks */
.dmrz-section { padding: 56px 0; }
.dmrz-section + .dmrz-section { border-top: 1px solid var(--dmrz-border); }
.dmrz-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dmrz-section-head h2,
.dmrz-page-title { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; }
.dmrz-section-head p { max-width: 680px; margin: 8px 0 0; color: var(--dmrz-text-soft); }
.dmrz-archive-intro { max-width: 760px; margin-top: 14px; color: var(--dmrz-text-soft); }
.dmrz-archive-intro > *:first-child { margin-top: 0; }
.dmrz-archive-intro > *:last-child { margin-bottom: 0; }
.dmrz-articles-page-head { margin-bottom: var(--dmrz-gap); }
.dmrz-block {
  background: var(--dmrz-surface);
  border: 1px solid var(--dmrz-border);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-block-head { padding: 16px 18px; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-block-head h2,
.dmrz-block-head h3 { margin: 0; font-size: .82rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.dmrz-block-body { padding: 22px; }

.dmrz-quick-grid { display: grid; grid-template-columns: repeat(var(--dmrz-quick-columns, 4), minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 16px; }
.dmrz-quick-card { min-width: 0; min-height: 150px; height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--dmrz-border); border-left: 6px solid var(--dmrz-accent); background: var(--dmrz-surface); color: var(--dmrz-text); text-decoration: none; overflow-wrap: anywhere; transition: background var(--dmrz-transition), border-color var(--dmrz-transition), color var(--dmrz-transition); }
.dmrz-quick-card:not(.is-static):hover { border-color: var(--dmrz-accent); background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-quick-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid currentColor; font-size: 1.12rem; }
.dmrz-quick-card h3 { margin: auto 0 0; font-size: .98rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.dmrz-quick-card p {
  height: 4.35em;
  min-height: 4.35em;
  margin: 0;
  overflow: hidden;
  color: var(--dmrz-text-soft);
  font-size: .85rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.dmrz-quick-card:not(.is-static):hover p { color: inherit; opacity: .82; }
.dmrz-quick-card.is-static { cursor: default; }

.dmrz-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: var(--dmrz-gap); }
.dmrz-post-card { position: relative; min-width: 0; height: 100%; display: flex; flex-direction: column; background: var(--dmrz-surface); border: 1px solid var(--dmrz-border); box-shadow: var(--dmrz-shadow); transition: transform var(--dmrz-transition), box-shadow var(--dmrz-transition), border-color var(--dmrz-transition); }
.dmrz-post-card:hover { transform: translateY(-3px); box-shadow: var(--dmrz-shadow-hover); border-color: var(--dmrz-border-strong); }
.dmrz-post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dmrz-surface-3); border-bottom: 1px solid var(--dmrz-border); }
.dmrz-post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.dmrz-post-card:hover .dmrz-post-card-media img { transform: scale(1.025); }
.dmrz-post-card-placeholder { height: 100%; min-height: 100%; display: grid; place-items: center; color: var(--dmrz-text-faint); font-size: 2rem; background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(127, 139, 153, .06) 18px 19px); }
.dmrz-post-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.dmrz-post-card-meta,
.dmrz-entry-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--dmrz-text-faint); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-post-card-title { margin: 13px 0 10px; font-size: 1.22rem; line-height: 1.24; }
.dmrz-post-card-title a { color: var(--dmrz-text); text-decoration: none; }
.dmrz-post-card-title a:hover { color: var(--dmrz-accent); }
.dmrz-post-card-excerpt {
  height: 4.5em;
  min-height: 4.5em;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--dmrz-text-soft);
  font-size: .91rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.dmrz-post-card-excerpt > p { margin: 0; }
.dmrz-post-card-link { margin-top: auto; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* The Articles archive uses a vertical editorial card: media, copy and a table-like footer. */
.dmrz-is-articles-section .dmrz-card-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
.dmrz-post-card--article-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  height: auto;
}
.dmrz-post-card--article-list:hover {
  transform: none;
  box-shadow: var(--dmrz-shadow);
  border-color: var(--dmrz-accent);
}
.dmrz-post-card--article-list:hover .dmrz-post-card-media img { transform: none; }
.dmrz-post-card--article-list .dmrz-post-card-media {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-height: 250px;
  aspect-ratio: 16 / 7;
  border-right: 0;
  border-bottom: 1px solid var(--dmrz-border);
}
.dmrz-article-card-copy {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 30px;
}
.dmrz-post-card--article-list .dmrz-post-card-title {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}
.dmrz-post-card--article-list .dmrz-post-card-excerpt { margin: 0; }
.dmrz-article-card-footer {
  grid-column: 1;
  grid-row: 3;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-article-card-facts {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dmrz-article-card-fact {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-right: 1px solid var(--dmrz-border);
  color: var(--dmrz-text-soft);
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.dmrz-article-card-fact i { flex: 0 0 auto; color: var(--dmrz-accent); }
.dmrz-article-card-fact span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dmrz-article-card-fact:hover { background: var(--dmrz-surface-3); color: var(--dmrz-text); }
.dmrz-article-card-button {
  min-width: 176px;
  min-height: 62px;
  height: 100%;
  align-self: stretch;
  border: 0 !important;
  border-left: 1px solid var(--dmrz-accent-border) !important;
  padding-inline: 22px;
  white-space: nowrap;
}

/* Configurable front-page latest-articles module. */
.dmrz-latest-grid {
  display: grid;
  grid-template-columns: repeat(var(--dmrz-latest-columns, 4), minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 20px;
}
.dmrz-home-article-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--dmrz-surface);
  border: 1px solid var(--dmrz-border);
  box-shadow: var(--dmrz-shadow);
  transition: border-color var(--dmrz-transition), box-shadow var(--dmrz-transition);
}
.dmrz-home-article-card:hover {
  border-color: var(--dmrz-accent);
  box-shadow: var(--dmrz-shadow-hover);
}
.dmrz-home-article-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-3);
}
.dmrz-home-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}
.dmrz-home-article-card:hover .dmrz-home-article-media img { transform: scale(1.025); }
.dmrz-home-article-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}
.dmrz-home-article-meta {
  min-height: 1.35em;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: var(--dmrz-text-faint);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: uppercase;
}
.dmrz-home-article-meta a { color: var(--dmrz-accent); text-decoration: none; }
.dmrz-home-article-meta a:hover { color: var(--dmrz-accent-hover); }
.dmrz-home-article-title {
  min-height: 2.65em;
  margin: 13px 0 10px;
  overflow: hidden;
  font-size: 1.08rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dmrz-home-article-title a { color: var(--dmrz-text); text-decoration: none; }
.dmrz-home-article-title a:hover { color: var(--dmrz-accent); }
.dmrz-home-article-excerpt {
  height: 4.5em;
  min-height: 4.5em;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--dmrz-text-soft);
  font-size: .85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.dmrz-home-article-excerpt > p { margin: 0; }
.dmrz-home-article-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: auto -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
.dmrz-home-article-link i { color: var(--dmrz-accent); }
.dmrz-home-article-link:hover { background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-home-article-link:hover i { color: var(--dmrz-on-accent); }

/* Front-page cards keep their media; missing images use the local placeholder. */
.dmrz-is-front-page #latest .dmrz-post-card { border-top: 8px solid var(--dmrz-surface-2); }
.dmrz-is-front-page #latest .dmrz-card-grid > .dmrz-post-card:first-child { border-top-color: var(--dmrz-accent); }

.dmrz-entry { background: var(--dmrz-surface); border: 1px solid var(--dmrz-border); box-shadow: var(--dmrz-shadow); }
.dmrz-entry-header { padding: clamp(24px, 5vw, 46px); border-bottom: 1px solid var(--dmrz-border); }
.dmrz-entry-title { margin: 12px 0 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
/* Full-width article information strip. It sits outside the padded title header. */
.dmrz-single-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--dmrz-border);
  border-bottom: 1px solid var(--dmrz-border);
}
.dmrz-single-fact {
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
  text-decoration: none;
}
a.dmrz-single-fact:hover { background: var(--dmrz-surface-3); color: var(--dmrz-text); }
.dmrz-single-fact-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-accent-border);
  color: var(--dmrz-accent);
}
.dmrz-single-fact-copy { min-width: 0; display: grid; gap: 3px; }
.dmrz-single-fact-label {
  color: var(--dmrz-text-faint);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
}
.dmrz-single-fact-value {
  min-width: 0;
  overflow: hidden;
  color: var(--dmrz-text);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dmrz-entry-thumbnail {
  margin: 0;
  line-height: 0;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-3);
}
.dmrz-entry-thumbnail img { display: block; width: 100%; max-height: 720px; object-fit: cover; }
.dmrz-entry-content { padding: clamp(24px, 5vw, 48px); }
.dmrz-entry--article .dmrz-entry-content { padding-top: clamp(18px, 2vw, 24px); }
.dmrz-entry-content > *:first-child { margin-top: 0; }
.dmrz-entry-content > *:last-child { margin-bottom: 0; }
.dmrz-entry-content h2,
.dmrz-entry-content h3,
.dmrz-entry-content h4 { line-height: 1.18; }
.dmrz-entry-content h2 { margin-top: 2.1em; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.dmrz-entry-content h3 { margin-top: 1.8em; font-size: 1.35rem; }
.dmrz-entry-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 5px solid var(--dmrz-accent); background: var(--dmrz-surface-2); color: var(--dmrz-text-soft); }
.dmrz-entry-content pre { overflow: auto; padding: 18px; background: var(--dmrz-code); color: var(--dmrz-code-text); font-family: var(--dmrz-mono); }
.dmrz-entry-content code { font-family: var(--dmrz-mono); }
.dmrz-entry-content :not(pre) > code { padding: 2px 5px; background: var(--dmrz-surface-3); }
.dmrz-entry-content table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.dmrz-entry-content th,
.dmrz-entry-content td { padding: 11px 12px; border: 1px solid var(--dmrz-border); text-align: left; }
.dmrz-entry-content th { background: var(--dmrz-surface-2); }
.dmrz-entry-footer { padding: 20px clamp(24px, 5vw, 48px); border-top: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }

/* Sidebar and standard WordPress widgets */
.dmrz-sidebar { min-width: 0; display: grid; align-items: start; gap: var(--dmrz-gap); }
.widget {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--dmrz-surface);
  border: 1px solid var(--dmrz-border);
  box-shadow: var(--dmrz-shadow);
}
.widget > *,
.widget .wp-block-group,
.widget .wp-block-group__inner-container { max-width: 100%; }
.widget.widget_block > .wp-block-group,
.widget.widget_block > .wp-block-group > .wp-block-group__inner-container {
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
}
.widget-title,
.widget > .wp-block-heading:first-child,
.widget > .wp-block-group > .wp-block-heading:first-child,
.widget > .wp-block-group > .wp-block-group__inner-container > .wp-block-heading:first-child,
.widget .wp-block-search__label {
  display: block;
  width: 100%;
  margin: 0;
  padding: 15px 17px;
  border: 0;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
  font-size: .8rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

/* Search widgets: classic and block-based. */
.widget > .search-form,
.widget_search > .search-form { margin: 0; padding: 16px; }
.widget .wp-block-search { margin: 0; padding: 0; }
.widget .wp-block-search__inside-wrapper {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  margin: 0;
  padding: 16px;
}
.widget .wp-block-search__input,
.widget .search-field { min-width: 0; height: 46px; }
.widget .wp-block-search__button,
.widget .search-submit { min-width: 96px; min-height: 46px; }

/* Standard navigation/list widgets. */
.widget > ul,
.widget > ol,
.widget_nav_menu .menu,
.widget_pages ul,
.widget_meta ul,
.widget_archive ul,
.widget_categories ul,
.widget_recent_entries ul,
.widget_recent_comments ul,
.widget_rss ul,
.widget .wp-block-latest-posts,
.widget .wp-block-latest-comments,
.widget .wp-block-archives-list,
.widget .wp-block-categories-list,
.widget .wp-block-page-list,
.widget .wp-block-rss {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget > ul > li,
.widget > ol > li,
.widget_nav_menu li,
.widget_pages li,
.widget_meta li,
.widget_archive li,
.widget_categories li,
.widget_recent_entries li,
.widget_rss li,
.widget .wp-block-latest-posts > li,
.widget .wp-block-archives-list > li,
.widget .wp-block-categories-list > li,
.widget .wp-block-page-list > li,
.widget .wp-block-rss > li {
  min-width: 0;
  margin: 0;
  border-bottom: 1px solid var(--dmrz-border);
}
.widget > ul > li:last-child,
.widget > ol > li:last-child,
.widget_nav_menu li:last-child,
.widget_pages li:last-child,
.widget_meta li:last-child,
.widget_archive li:last-child,
.widget_categories li:last-child,
.widget_recent_entries li:last-child,
.widget_rss li:last-child,
.widget .wp-block-latest-posts > li:last-child,
.widget .wp-block-archives-list > li:last-child,
.widget .wp-block-categories-list > li:last-child,
.widget .wp-block-page-list > li:last-child,
.widget .wp-block-rss > li:last-child { border-bottom: 0; }
.widget > ul > li > a,
.widget > ol > li > a,
.widget_nav_menu li > a,
.widget_pages li > a,
.widget_meta li > a,
.widget_archive li > a,
.widget_categories li > a,
.widget_recent_entries li > a,
.widget_rss li > a,
.widget .wp-block-latest-posts > li > a,
.widget .wp-block-archives-list > li > a,
.widget .wp-block-categories-list > li > a,
.widget .wp-block-page-list > li > a,
.widget .wp-block-rss > li > a {
  display: block;
  min-width: 0;
  padding: 12px 16px;
  color: var(--dmrz-text-soft);
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.widget > ul > li > a:hover,
.widget > ol > li > a:hover,
.widget_nav_menu li > a:hover,
.widget_pages li > a:hover,
.widget_meta li > a:hover,
.widget_archive li > a:hover,
.widget_categories li > a:hover,
.widget_recent_entries li > a:hover,
.widget_rss li > a:hover,
.widget .wp-block-latest-posts > li > a:hover,
.widget .wp-block-archives-list > li > a:hover,
.widget .wp-block-categories-list > li > a:hover,
.widget .wp-block-page-list > li > a:hover,
.widget .wp-block-rss > li > a:hover {
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
}
.widget .children,
.widget .sub-menu {
  margin: 0;
  padding: 0 0 0 14px;
  border-top: 1px solid var(--dmrz-border);
  list-style: none;
}
.widget .children li,
.widget .sub-menu li { border-left: 1px solid var(--dmrz-border); }

/* Recent comments need inline links; generic block-link styling breaks sentences. */
.widget_recent_comments .recentcomments,
.widget .wp-block-latest-comments__comment {
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dmrz-border);
  color: var(--dmrz-text-soft);
  font-size: .9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.widget_recent_comments .recentcomments:last-child,
.widget .wp-block-latest-comments__comment:last-child { border-bottom: 0; }
.widget_recent_comments .recentcomments a,
.widget .wp-block-latest-comments__comment a {
  display: inline;
  padding: 0;
  color: var(--dmrz-text);
  font-weight: 700;
  text-decoration: none;
}
.widget_recent_comments .recentcomments a:hover,
.widget .wp-block-latest-comments__comment a:hover { color: var(--dmrz-accent); }
.widget .wp-block-latest-comments__comment-meta,
.widget .wp-block-latest-comments__comment-excerpt { margin: 0; }
.widget .wp-block-latest-comments__comment-excerpt p { margin: 8px 0 0; }
.widget .wp-block-latest-comments__comment-avatar { margin: 2px 10px 4px 0; border-radius: 0; }

/* Dates, excerpts and thumbnails in standard feed widgets. */
.widget .wp-block-latest-posts__post-date,
.widget .rss-date {
  display: block;
  margin: -7px 16px 12px;
  color: var(--dmrz-text-faint);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.widget .wp-block-latest-posts__post-excerpt,
.widget .rssSummary { margin: -4px 16px 14px; color: var(--dmrz-text-soft); font-size: .84rem; }
.widget .wp-block-latest-posts__featured-image { margin: 0; padding: 14px 16px 0; }
.widget .wp-block-latest-posts__featured-image img { display: block; width: 100%; }
.widget_rss cite { display: block; margin: -6px 16px 14px; color: var(--dmrz-text-faint); font-size: .75rem; }

/* Text, media, tag cloud, select and calendar widgets. */
.widget_text .textwidget,
.widget_custom_html .textwidget,
.widget_media_image .wp-caption,
.widget_media_gallery .gallery,
.widget_media_audio .wp-audio-shortcode,
.widget_media_video .wp-video,
.widget > .tagcloud,
.widget > .wp-block-tag-cloud,
.widget > .wp-block-calendar,
.widget > .calendar_wrap,
.widget > .dmrz-calendar,
.widget > select,
.widget .wp-block-archives-dropdown,
.widget .wp-block-categories-dropdown {
  margin: 0;
  padding: 16px;
}
.widget_text .textwidget > :first-child,
.widget_custom_html .textwidget > :first-child { margin-top: 0; }
.widget_text .textwidget > :last-child,
.widget_custom_html .textwidget > :last-child { margin-bottom: 0; }
.widget > select,
.widget .wp-block-archives-dropdown select,
.widget .wp-block-categories-dropdown select { width: calc(100% - 32px); margin: 16px; padding: 10px 12px; }
.widget > select { padding: 10px 12px; }
.widget .wp-block-archives-dropdown,
.widget .wp-block-categories-dropdown { padding: 0; }
.widget .tagcloud a,
.widget .wp-block-tag-cloud a {
  display: inline-block;
  margin: 0 5px 6px 0;
  padding: 6px 8px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-soft);
  font-size: .74rem !important;
  line-height: 1.2;
  text-decoration: none;
}
.widget .tagcloud a:hover,
.widget .wp-block-tag-cloud a:hover { border-color: var(--dmrz-accent); color: var(--dmrz-text); }
.widget_calendar table,
.widget_dmrz_calendar table,
.widget .wp-block-calendar table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.widget_calendar caption,
.widget_dmrz_calendar caption,
.widget .wp-block-calendar caption {
  padding: 11px 10px;
  border: 1px solid var(--dmrz-border);
  border-bottom: 0;
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}
.widget_calendar th,
.widget_calendar td,
.widget_dmrz_calendar th,
.widget_dmrz_calendar td,
.widget .wp-block-calendar th,
.widget .wp-block-calendar td {
  height: 38px;
  padding: 0;
  border: 1px solid var(--dmrz-border);
  text-align: center;
  vertical-align: middle;
}
.widget_calendar th,
.widget_dmrz_calendar th,
.widget .wp-block-calendar th {
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-faint);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.widget_calendar td,
.widget_dmrz_calendar td,
.widget .wp-block-calendar td { color: var(--dmrz-text-soft); font-size: .78rem; }
.widget_calendar td a,
.widget_dmrz_calendar td a,
.widget .wp-block-calendar td a {
  width: 100%;
  height: 37px;
  display: grid;
  place-items: center;
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
  font-weight: 900;
  text-decoration: none;
}
.widget_calendar td a:hover,
.widget_dmrz_calendar td a:hover,
.widget .wp-block-calendar td a:hover { background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.widget_calendar #today,
.widget_dmrz_calendar #today,
.widget .wp-block-calendar #today { box-shadow: inset 0 0 0 2px var(--dmrz-accent); color: var(--dmrz-text); font-weight: 900; }
.widget_calendar #today a,
.widget_dmrz_calendar #today a,
.widget .wp-block-calendar #today a { background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.widget_calendar nav,
.widget_dmrz_calendar nav,
.widget .wp-block-calendar nav,
.widget_calendar .wp-calendar-nav,
.widget_dmrz_calendar .wp-calendar-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--dmrz-border);
}
.widget_calendar .wp-calendar-nav > span,
.widget_dmrz_calendar .wp-calendar-nav > span,
.widget .wp-block-calendar .wp-calendar-nav > span {
  min-width: 0;
  display: flex;
  background: var(--dmrz-surface-2);
}
.widget_calendar .wp-calendar-nav-prev,
.widget_dmrz_calendar .wp-calendar-nav-prev,
.widget .wp-block-calendar .wp-calendar-nav-prev { justify-content: flex-start; }
.widget_calendar .wp-calendar-nav-next,
.widget_dmrz_calendar .wp-calendar-nav-next,
.widget .wp-block-calendar .wp-calendar-nav-next { justify-content: flex-end; }
.widget_calendar nav a,
.widget_dmrz_calendar nav a,
.widget .wp-block-calendar nav a,
.widget_calendar .wp-calendar-nav a,
.widget_dmrz_calendar .wp-calendar-nav a {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 8px;
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-soft);
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}
.widget_calendar nav a:hover,
.widget_dmrz_calendar nav a:hover,
.widget .wp-block-calendar nav a:hover,
.widget_calendar .wp-calendar-nav a:hover,
.widget_dmrz_calendar .wp-calendar-nav a:hover { background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.widget_calendar .pad,
.widget_dmrz_calendar .pad,
.widget .wp-block-calendar .pad { background: var(--dmrz-surface-2); opacity: .55; }
.widget .wp-block-social-links { margin: 0; padding: 16px; }
.widget .wp-block-social-links li { border: 0; }

.wp-block-search__input,
.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--dmrz-border-strong);
  border-radius: 0;
  background: var(--dmrz-surface);
  color: var(--dmrz-text);
  padding: 11px 12px;
}
textarea { min-height: 150px; resize: vertical; }

/* Buttons */
.dmrz-button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-element-button,
.wp-block-button__link,
.wp-block-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--dmrz-accent-border);
  border-radius: 0 !important;
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
  padding: 10px 16px;
  font-weight: 900;
  font-size: .76rem;
  letter-spacing: .06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--dmrz-transition), border-color var(--dmrz-transition), color var(--dmrz-transition), transform var(--dmrz-transition);
}
.dmrz-button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover { background: var(--dmrz-accent-hover); border-color: var(--dmrz-accent-hover); color: var(--dmrz-on-accent); }
.wp-element-button,
.wp-block-button__link,
.wp-block-search__button {
  background: var(--dmrz-accent) !important;
  border-color: var(--dmrz-accent-border) !important;
  color: var(--dmrz-on-accent) !important;
}
.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-block-search__button:hover {
  background: var(--dmrz-accent-hover) !important;
  border-color: var(--dmrz-accent-hover) !important;
  color: var(--dmrz-on-accent) !important;
}
.dmrz-button.is-secondary { background: transparent; color: var(--dmrz-text); border-color: var(--dmrz-border-strong); }
.dmrz-button.is-secondary:hover { background: var(--dmrz-surface-3); color: var(--dmrz-text); }
.dmrz-button.is-danger {
  background: var(--dmrz-danger);
  border-color: var(--dmrz-danger);
  color: #fff;
}
.dmrz-button.is-danger:hover,
.dmrz-button.is-danger:focus-visible {
  filter: brightness(.9);
  background: var(--dmrz-danger);
  border-color: var(--dmrz-danger);
  color: #fff;
}

/* Article tags */
.dmrz-article-tags {
  margin-top: var(--dmrz-gap);
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-article-tags__head,
.dmrz-related-articles__head {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-article-tags__head > span,
.dmrz-related-articles__head > span { color: var(--dmrz-accent); }
.dmrz-article-tags__head h2,
.dmrz-related-articles__head h2 {
  margin: 0;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dmrz-article-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}
.dmrz-article-tag {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface);
  color: var(--dmrz-text);
  font-size: .74rem;
  font-weight: 850;
  text-decoration: none;
}
.dmrz-article-tag i { color: var(--dmrz-accent); }
.dmrz-article-tag:hover,
.dmrz-article-tag:focus-visible {
  border-color: var(--dmrz-accent);
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
}
.dmrz-article-tag:hover i,
.dmrz-article-tag:focus-visible i { color: inherit; }

/* Share panel */
.dmrz-share-panel {
  margin-top: var(--dmrz-gap);
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-share-panel__head {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-share-panel__head h2 {
  margin: 0;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dmrz-share-panel__icon { color: var(--dmrz-accent); }
.dmrz-share-panel__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 1px;
  background: var(--dmrz-border);
}
.dmrz-share-button {
  min-width: 0;
  min-height: 68px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--dmrz-surface);
  color: var(--dmrz-accent);
  font-size: 1.35rem;
  text-decoration: none;
  transition: background var(--dmrz-transition), color var(--dmrz-transition);
}
.dmrz-share-button:hover,
.dmrz-share-button:focus-visible {
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
}
.dmrz-share-button.is-copied { background: var(--dmrz-success); color: #fff; }
.dmrz-share-button.has-error { background: var(--dmrz-danger); color: #fff; }

/* Author cards and public profiles */
.dmrz-author-box {
  margin-top: var(--dmrz-gap);
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-author-box__head {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-author-box__head > span { color: var(--dmrz-accent); }
.dmrz-author-box__head h2 {
  margin: 0;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.dmrz-author-box__body {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
}
.dmrz-author-avatar {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-3);
}
.dmrz-author-avatar-image,
.dmrz-author-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.dmrz-author-avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--dmrz-accent);
  font-size: 3rem;
}
.dmrz-author-box__copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.dmrz-author-box__eyebrow {
  margin-bottom: 7px;
  color: var(--dmrz-accent);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dmrz-author-box__name {
  margin: 0;
  color: var(--dmrz-text);
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.dmrz-author-box__name a { color: inherit; text-decoration: none; }
.dmrz-author-box__name a:hover { color: var(--dmrz-accent); }
.dmrz-author-box__role {
  margin-top: 8px;
  color: var(--dmrz-text-faint);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dmrz-author-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dmrz-author-social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-accent);
  text-decoration: none;
}
.dmrz-author-social:hover { border-color: var(--dmrz-accent); background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-author-box__bio { max-width: 780px; margin: 18px 0 0; color: var(--dmrz-text-soft); }
.dmrz-author-box__bio > *:first-child { margin-top: 0; }
.dmrz-author-box__bio > *:last-child { margin-bottom: 0; }
.dmrz-author-box__bio--empty { font-style: italic; }
.dmrz-author-box__profile-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--dmrz-accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
.dmrz-author-box__profile-link:hover { color: var(--dmrz-accent-hover); }
.dmrz-author-box--profile { margin-top: 20px; }
.dmrz-author-box--profile .dmrz-author-box__body { grid-template-columns: 220px minmax(0, 1fr); }
.dmrz-author-articles { margin-top: 44px; }
.dmrz-author-articles-grid { --dmrz-latest-columns: 3; }

/* Related articles */
.dmrz-related-articles {
  margin-top: var(--dmrz-gap);
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--dmrz-border);
}
.dmrz-related-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--dmrz-surface);
}
.dmrz-related-card__media {
  min-height: 0;
  aspect-ratio: 16 / 7;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-3);
  color: var(--dmrz-accent);
  text-decoration: none;
}
.dmrz-related-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.dmrz-related-card__media .dmrz-post-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 170px;
  display: grid;
  place-items: center;
  color: var(--dmrz-accent);
  font-size: 2rem;
}
.dmrz-related-card__body {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.dmrz-related-card__meta {
  min-height: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--dmrz-text-faint);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.dmrz-related-card__meta a { color: var(--dmrz-accent); text-decoration: none; }
.dmrz-related-card__title {
  min-height: calc(1.24em * 2);
  margin: 12px 0 0;
  font-size: 1.08rem;
  line-height: 1.24;
}
.dmrz-related-card__title a {
  color: var(--dmrz-text);
  text-decoration: none;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dmrz-related-card__title a:hover { color: var(--dmrz-accent); }
.dmrz-related-card__excerpt {
  min-height: calc(1.55em * 3);
  margin: 12px 0 0;
  color: var(--dmrz-text-soft);
  font-size: .82rem;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.dmrz-related-card__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--dmrz-accent);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.dmrz-related-card__link:hover { color: var(--dmrz-accent-hover); }

/* Personal profile dashboard */
.dmrz-profile-page__head { align-items: flex-start; }
.dmrz-profile-page__head .dmrz-page-title { margin-top: 12px; }
.dmrz-profile-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--dmrz-gap);
  padding: 14px 18px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
  font-weight: 800;
}
.dmrz-profile-notice--success { border-left: 5px solid var(--dmrz-success); }
.dmrz-profile-notice--success > i { color: var(--dmrz-success); }
.dmrz-profile-notice--error { border-left: 5px solid var(--dmrz-danger); }
.dmrz-profile-notice--error > i { color: var(--dmrz-danger); }
.dmrz-profile-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--dmrz-gap); align-items: start; }
.dmrz-profile-tabs {
  position: sticky;
  top: 100px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
}
body.admin-bar .dmrz-profile-tabs { top: 132px; }
.dmrz-profile-tab {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-left: 5px solid transparent;
  color: var(--dmrz-text);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.dmrz-profile-tab i { width: 20px; text-align: center; color: var(--dmrz-accent); }
.dmrz-profile-tab.is-active { border-left-color: var(--dmrz-accent); background: var(--dmrz-surface-2); }
.dmrz-profile-tab--logout {
  border-top: 1px solid var(--dmrz-border);
  color: var(--dmrz-danger);
}
.dmrz-profile-tab--logout i { color: var(--dmrz-danger); }
.dmrz-profile-tab--logout:hover {
  border-left-color: var(--dmrz-danger);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-danger);
}
.dmrz-profile-panel {
  min-width: 0;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-profile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-profile-panel__head h2 { margin: 0; font-size: 1.5rem; text-transform: uppercase; }
.dmrz-profile-panel__head p { margin: 8px 0 0; color: var(--dmrz-text-soft); }
.dmrz-profile-editor-grid { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); gap: 0; }
.dmrz-profile-preview { padding: 24px; border-right: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-profile-preview .dmrz-author-box { margin: 0; box-shadow: none; }
.dmrz-profile-preview .dmrz-author-box__body { grid-template-columns: 1fr; }
.dmrz-profile-preview .dmrz-author-avatar { max-width: 220px; }
.dmrz-profile-form { min-width: 0; }
.dmrz-profile-form__section { padding: 24px; border-bottom: 1px solid var(--dmrz-border); }
.dmrz-profile-form__section h3 { margin: 0 0 18px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.dmrz-profile-form__section .dmrz-field + .dmrz-field { margin-top: 16px; }
.dmrz-field { display: grid; gap: 7px; color: var(--dmrz-text); font-size: .78rem; font-weight: 800; }
.dmrz-field > span { display: inline-flex; align-items: center; gap: 8px; }
.dmrz-field > span i { color: var(--dmrz-accent); }
.dmrz-field input[type="text"],
.dmrz-field input[type="url"],
.dmrz-field input[type="password"],
.dmrz-field input[type="file"],
.dmrz-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--dmrz-border-strong);
  border-radius: 0;
  background: var(--dmrz-surface);
  color: var(--dmrz-text);
  padding: 11px 12px;
}
.dmrz-field input[type="file"] { padding: 9px; }
.dmrz-field textarea { resize: vertical; }
.dmrz-field small,
.dmrz-profile-help { margin: 0; color: var(--dmrz-text-faint); font-size: .75rem; font-weight: 500; }
.dmrz-check-field { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--dmrz-text-soft); }
.dmrz-profile-social-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px 24px;
  margin-top: 18px;
}
.dmrz-profile-social-field {
  min-width: 0;
  display: grid;
  grid-template-rows: 42px 52px;
  align-items: stretch;
  gap: 12px;
  margin: 0 !important;
}
.dmrz-profile-social-label {
  height: 42px;
  min-height: 42px;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--dmrz-text);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
}
.dmrz-profile-social-label__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-accent-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-accent);
  font-size: .95rem;
}
.dmrz-profile-social-label__icon i { width: auto !important; color: inherit !important; }
.dmrz-profile-social-label__text { min-width: 0; overflow-wrap: anywhere; }
.dmrz-profile-social-field input[type="url"] {
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--dmrz-border-strong);
  border-radius: 0;
  background: var(--dmrz-surface);
  color: var(--dmrz-text);
  font: inherit;
}
.dmrz-profile-social-field input[type="url"]:focus {
  border-color: var(--dmrz-focus);
  outline: 2px solid var(--dmrz-focus);
  outline-offset: 0;
}
.dmrz-profile-form__actions { padding: 20px 24px; background: var(--dmrz-surface-2); }
.dmrz-profile-login { max-width: 720px; }

.dmrz-profile-security-stack { display: grid; gap: var(--dmrz-gap); padding: 24px; }
.dmrz-profile-security-card {
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-profile-security-card__head {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-profile-security-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid var(--dmrz-accent-border);
  color: var(--dmrz-accent);
}
.dmrz-profile-security-card__head h3 {
  margin: 0;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dmrz-profile-security-card__head p {
  margin: 5px 0 0;
  color: var(--dmrz-text-soft);
  font-size: .78rem;
}
.dmrz-profile-security-card__body { padding: 22px; }
.dmrz-profile-security-card__actions {
  padding: 18px 22px;
  border-top: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-profile-password-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.dmrz-profile-danger-zone { border-left: 5px solid var(--dmrz-danger); }
.dmrz-profile-danger-zone .dmrz-profile-security-card__icon {
  border-color: var(--dmrz-danger);
  color: var(--dmrz-danger);
}
.dmrz-profile-delete-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.dmrz-account-delete-confirm {
  align-items: flex-start;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  font-size: .78rem;
}
.dmrz-account-delete-confirm input { margin-top: 4px; }

/* Search and post navigation */
.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.search-form .search-field { min-width: 0; }
.post-navigation { margin-top: var(--dmrz-gap); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dmrz-gap); }
.post-navigation .nav-previous,
.post-navigation .nav-next { min-width: 0; }
.post-navigation a { min-height: 92px; display: grid; align-content: center; gap: 6px; padding: 18px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); color: var(--dmrz-text); text-decoration: none; box-shadow: var(--dmrz-shadow); }
.post-navigation a:hover { border-color: var(--dmrz-accent); }
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-subtitle { color: var(--dmrz-text-faint); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.post-navigation .nav-title { font-weight: 800; }
.dmrz-post-navigation .nav-links { align-items: stretch; }
.dmrz-post-navigation .nav-previous,
.dmrz-post-navigation .nav-next { display: flex; }
.dmrz-post-navigation a { width: 100%; min-width: 0; }
.dmrz-post-navigation .nav-subtitle { display: flex; align-items: center; gap: 8px; }
.dmrz-post-navigation .nav-next .nav-subtitle { justify-content: flex-end; }
.dmrz-post-navigation .nav-title {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dmrz-post-navigation.has-single-link .nav-links { grid-template-columns: minmax(0, 1fr); }
.dmrz-post-navigation--compact a {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.dmrz-post-navigation--compact .nav-previous a {
  border-color: var(--dmrz-accent);
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
}
.dmrz-post-navigation--compact .nav-previous a:hover { background: var(--dmrz-accent-hover); border-color: var(--dmrz-accent-hover); color: var(--dmrz-on-accent); }
.dmrz-post-navigation--compact .nav-next a { color: var(--dmrz-accent); }
.dmrz-post-navigation--compact .nav-next a:hover { background: var(--dmrz-surface-2); color: var(--dmrz-accent-hover); }
.wp-block-image img,
.wp-block-cover,
.wp-block-media-text,
.wp-block-group.has-background,
.wp-block-file__button { border-radius: 0 !important; }

/* Pagination */
.navigation.pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 0;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.navigation.pagination .nav-links {
  width: auto;
  justify-content: center;
  margin-inline: auto;
}
.page-numbers { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 8px 12px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); color: var(--dmrz-text); text-decoration: none; }
.page-numbers.current,
.page-numbers:hover { background: var(--dmrz-accent); border-color: var(--dmrz-accent); color: var(--dmrz-on-accent); }

/* Comments — forum-style discussion thread. */
.comments-area { margin-top: var(--dmrz-gap); border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
.dmrz-comments__head { min-height: 88px; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-comments__head-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border: 1px solid var(--dmrz-accent-border); color: var(--dmrz-accent); font-size: 1.05rem; }
.comments-title { margin: 2px 0 0; color: var(--dmrz-text); font-size: 1.1rem; line-height: 1.2; text-transform: uppercase; }
.dmrz-comments__head .dmrz-eyebrow { margin: 0; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list.is-empty { display: none; }
.comment-list .children { list-style: none; margin: 0 0 0 34px; padding: 0 0 0 20px; border-left: 1px solid var(--dmrz-border-strong); }
.dmrz-comment { margin: 0; padding: 0; }
.dmrz-comment-card { display: grid; grid-template-columns: 156px minmax(0, 1fr); border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface); transition: border-color .2s ease, background-color .2s ease, opacity .28s ease, transform .28s ease; }
.comment-list > .dmrz-comment:last-child > .dmrz-comment-card { border-bottom: 0; }
.comment-list .children .dmrz-comment-card { grid-template-columns: 132px minmax(0, 1fr); border: 1px solid var(--dmrz-border); border-top: 0; }
.comment-list .children > .dmrz-comment:first-child > .dmrz-comment-card { border-top: 1px solid var(--dmrz-border); }
.dmrz-comment-card:hover { background: var(--dmrz-surface-2); }
.dmrz-comment-card.is-reply-target { border-color: var(--dmrz-accent); background: color-mix(in srgb, var(--dmrz-accent) 5%, var(--dmrz-surface)); }
.dmrz-comment.is-entering { opacity: 0; transform: translateY(14px); }
.dmrz-comment-author { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 16px; border-right: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); text-align: center; }
.dmrz-comment-avatar { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--dmrz-border-strong); background: var(--dmrz-surface-3); }
.dmrz-comment-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dmrz-comment-author__identity { min-width: 0; display: grid; justify-items: center; gap: 7px; }
.dmrz-comment-author__name { max-width: 100%; overflow: hidden; color: var(--dmrz-text); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-comment-author__name a { color: inherit; text-decoration: none; }
.dmrz-comment-author__name a:hover { color: var(--dmrz-accent); }
.dmrz-comment-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid var(--dmrz-accent-border); color: var(--dmrz-accent); font-size: .58rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-comment-main { min-width: 0; display: grid; grid-template-rows: auto minmax(70px, 1fr) auto; padding: 20px 22px 18px; }
.dmrz-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--dmrz-border); color: var(--dmrz-text-faint); font-size: .7rem; font-weight: 700; }
.dmrz-comment-date { display: inline-flex; align-items: center; gap: 6px; color: var(--dmrz-text-soft); text-decoration: none; }
.dmrz-comment-date i { color: var(--dmrz-accent); }
.dmrz-comment-date:hover { color: var(--dmrz-accent); }
.dmrz-comment-edit a { display: inline-flex; align-items: center; gap: 5px; color: var(--dmrz-text-soft); text-decoration: none; }
.dmrz-comment-edit a:hover { color: var(--dmrz-accent); }
.dmrz-comment-content { min-width: 0; padding: 18px 0; color: var(--dmrz-text); font-size: .94rem; line-height: 1.68; overflow-wrap: anywhere; }
.dmrz-comment-content > :first-child { margin-top: 0; }
.dmrz-comment-content > :last-child { margin-bottom: 0; }
.dmrz-comment-moderation { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 9px 11px; border: 1px solid var(--dmrz-warning-border, var(--dmrz-border-strong)); background: var(--dmrz-surface-2); color: var(--dmrz-text-soft); font-size: .76rem; }
.dmrz-comment-actions { display: flex; justify-content: flex-start; padding-top: 12px; border-top: 1px solid var(--dmrz-border); }
.dmrz-comment-actions .comment-reply-link { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--dmrz-border-strong); background: var(--dmrz-surface-2); color: var(--dmrz-text-soft); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.dmrz-comment-actions .comment-reply-link:hover { border-color: var(--dmrz-accent); color: var(--dmrz-accent); }
.dmrz-comments__navigation { padding: 16px 20px; border-top: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-comments__closed { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--dmrz-border); color: var(--dmrz-text-soft); }
.dmrz-comments__closed i { color: var(--dmrz-accent); }
.dmrz-comment-compose { padding: 24px 22px; border-top: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-comment-compose .comment-reply-title { margin: 0 0 16px; color: var(--dmrz-text); font-size: 1rem; text-transform: uppercase; }
.dmrz-comment-compose #cancel-comment-reply-link { margin-left: 10px; color: var(--dmrz-text-soft); font-size: .72rem; font-weight: 700; text-transform: none; }
.dmrz-comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.dmrz-comment-form > p { margin: 0; }
.dmrz-comment-form .comment-notes,
.dmrz-comment-form .logged-in-as,
.dmrz-comment-form-note,
.dmrz-comment-form .comment-form-cookies-consent,
.dmrz-comment-form .comment-form-comment,
.dmrz-comment-form .form-submit,
.dmrz-comment-form-status { grid-column: 1 / -1; }
.dmrz-comment-form .comment-form-author,
.dmrz-comment-form .comment-form-email { grid-column: span 1; }
.dmrz-comment-form .comment-form-url { grid-column: 1 / -1; }
.dmrz-comment-form label { display: grid; gap: 7px; color: var(--dmrz-text-soft); font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-comment-form input[type="text"],
.dmrz-comment-form input[type="email"],
.dmrz-comment-form input[type="url"],
.dmrz-comment-form textarea { width: 100%; border-radius: 0; border-color: var(--dmrz-border-strong); background: var(--dmrz-surface); color: var(--dmrz-text); }
.dmrz-comment-form textarea { min-height: 132px; resize: vertical; }
.dmrz-comment-form-note { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); color: var(--dmrz-text-soft); font-size: .75rem; }
.dmrz-comment-form-note i { color: var(--dmrz-accent); }
.dmrz-comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 9px; color: var(--dmrz-text-soft); font-size: .75rem; }
.dmrz-comment-form .comment-form-cookies-consent label { display: inline; font-size: inherit; font-weight: 500; letter-spacing: 0; text-transform: none; }
.dmrz-comment-submit { min-width: 156px; }
.dmrz-comment-form.is-submitting { opacity: .72; }
.dmrz-comment-form-status { min-height: 0; color: var(--dmrz-text-soft); font-size: .78rem; font-weight: 700; }
.dmrz-comment-form-status:empty { display: none; }
.dmrz-comment-form-status.is-success { color: var(--dmrz-accent); }
.dmrz-comment-form-status.is-error { padding: 9px 11px; border: 1px solid #b74949; color: #e06a6a; background: color-mix(in srgb, #b74949 7%, var(--dmrz-surface)); }

@media (max-width: 760px) {
  .dmrz-comments__head { min-height: 72px; padding: 14px 16px; }
  .dmrz-comment-card,
  .comment-list .children .dmrz-comment-card { grid-template-columns: 1fr; }
  .dmrz-comment-author { flex-direction: row; justify-content: flex-start; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--dmrz-border); text-align: left; }
  .dmrz-comment-author__identity { justify-items: start; }
  .dmrz-comment-avatar { width: 44px; height: 44px; flex: 0 0 44px; }
  .dmrz-comment-main { min-height: 0; padding: 16px; }
  .comment-list .children { margin-left: 12px; padding-left: 10px; }
  .dmrz-comment-form { grid-template-columns: 1fr; }
  .dmrz-comment-form .comment-form-author,
  .dmrz-comment-form .comment-form-email { grid-column: 1 / -1; }
  .dmrz-comment-compose { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dmrz-comment-card { transition: none; }
  .dmrz-comment.is-entering { opacity: 1; transform: none; }
}

/* Footer */
.dmrz-site-footer { background: var(--dmrz-header); color: var(--dmrz-header-soft); border-top: 4px solid var(--dmrz-accent); }
.dmrz-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 48px 0 36px; }
.dmrz-footer-title { margin: 0 0 14px; color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dmrz-footer-brand { color: #fff; font-size: 1.55rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dmrz-footer-copy { max-width: 500px; margin: 12px 0 0; }
.dmrz-footer-menu { list-style: none; margin: 0; padding: 0; }
.dmrz-footer-menu li { border-bottom: 1px solid rgba(255,255,255,.09); }
.dmrz-footer-menu a { display: block; padding: 8px 0; color: var(--dmrz-header-soft); text-decoration: none; }
.dmrz-footer-menu a:hover { color: #fff; }
.dmrz-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.10); font-size: .75rem; }

/* Service pages: 404, empty search and empty archives */
.dmrz-service-main { padding-top: clamp(34px, 6vw, 74px); padding-bottom: clamp(48px, 8vw, 92px); }
.dmrz-service-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(210px, .34fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-service-card--404 { min-height: 440px; }
.dmrz-service-card--empty { min-height: 330px; }
.dmrz-service-visual {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border-right: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255,255,255,.035) 42px 43px),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(255,255,255,.035) 42px 43px),
    var(--dmrz-header);
  color: var(--dmrz-header-text);
  box-shadow: inset 0 4px 0 var(--dmrz-accent);
  text-align: center;
}
.dmrz-service-visual::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.08);
  transform: rotate(45deg);
}
.dmrz-service-visual-icon {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-accent);
  color: var(--dmrz-accent);
  font-size: 1.45rem;
}
.dmrz-service-code {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--dmrz-header-text);
  font-size: clamp(4.8rem, 10vw, 8.6rem);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .84;
}
.dmrz-service-body {
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(28px, 5vw, 58px);
}
.dmrz-service-body .dmrz-eyebrow { margin-bottom: 10px; }
.dmrz-service-body .dmrz-page-title { max-width: 900px; }
.dmrz-service-description {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--dmrz-text-soft);
  font-size: 1rem;
}
.dmrz-service-search {
  max-width: 780px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-site-search { margin: 0; }
.dmrz-site-search__label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  color: var(--dmrz-text);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.dmrz-site-search__label i { color: var(--dmrz-accent); }
.dmrz-site-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}
.dmrz-site-search__row input[type="search"] {
  min-width: 0;
  height: 54px;
  border-right: 0;
  background: var(--dmrz-surface);
  padding: 0 16px;
}
.dmrz-site-search__row button {
  min-width: 132px;
  min-height: 54px;
  padding-inline: 20px;
}
.dmrz-service-actions {
  max-width: 780px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.dmrz-service-actions .dmrz-button { min-width: 0; }
.dmrz-service-card--empty .dmrz-service-visual-icon {
  width: 82px;
  height: 82px;
  font-size: 1.8rem;
}

/* Empty state */
.dmrz-empty { padding: 44px; background: var(--dmrz-surface); border: 1px solid var(--dmrz-border); text-align: center; }
.dmrz-empty-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid var(--dmrz-border-strong); font-size: 1.4rem; color: var(--dmrz-text-faint); }
.dmrz-empty h2 { margin: 0 0 8px; text-transform: uppercase; }
.dmrz-empty p { margin: 0; color: var(--dmrz-text-soft); }

/* WordPress alignments */
.alignwide { width: min(100%, 1120px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption { color: var(--dmrz-text-soft); font-size: .82rem; }
.sticky { border-top: 4px solid var(--dmrz-accent); }
.bypostauthor { outline: 1px solid var(--dmrz-accent); }

@media (max-width: 1080px) {
  .dmrz-header-nav { position: fixed; inset: 80px 0 auto; display: none; background: var(--dmrz-header); border-bottom: 1px solid rgba(255,255,255,.14); box-shadow: var(--dmrz-shadow); }
  body.admin-bar .dmrz-header-nav { top: 112px; }
  .dmrz-header-nav.is-open { display: block; }
  .dmrz-primary-menu { display: block; }
  .dmrz-primary-menu > li { display: block; }
  .dmrz-primary-menu > li > a { min-height: 50px; border: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .dmrz-primary-menu .sub-menu { position: static; display: block; min-width: 0; border: 0; box-shadow: none; }
  .dmrz-primary-menu .sub-menu a { padding-left: 34px; }
  .dmrz-menu-toggle { display: inline-grid; }
  .dmrz-hero-inner { grid-template-columns: 1fr; }
  .dmrz-hero-panel { max-width: 620px; }
  .dmrz-quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dmrz-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dmrz-latest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dmrz-main-grid { grid-template-columns: 1fr; }
  .dmrz-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  body.admin-bar .dmrz-site-header { top: 46px; }
  body.admin-bar .dmrz-header-nav { top: 126px; }
}

@media (max-width: 720px) {
  .dmrz-service-card { grid-template-columns: 1fr; }
  .dmrz-service-card--404,
  .dmrz-service-card--empty { min-height: 0; }
  .dmrz-service-visual {
    min-height: 180px;
    padding: 28px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  .dmrz-service-card--empty .dmrz-service-visual { min-height: 138px; }
  .dmrz-service-code { font-size: clamp(4.4rem, 24vw, 7rem); }
  .dmrz-service-body { padding: 28px 22px; }
  .dmrz-service-search { padding: 14px; }
  .dmrz-site-search__row { grid-template-columns: 1fr; gap: 8px; }
  .dmrz-site-search__row input[type="search"] { border-right: 1px solid var(--dmrz-border-strong); }
  .dmrz-site-search__row button { width: 100%; }
  .dmrz-service-actions { display: grid; grid-template-columns: 1fr; }
  .dmrz-service-actions .dmrz-button { width: 100%; }
  :root { --dmrz-gap: 16px; }
  .dmrz-shell { width: min(100% - 22px, var(--dmrz-shell)); }
  .dmrz-header-inner { min-height: 68px; gap: 10px; }
  .dmrz-brand { min-width: 0; margin-right: auto; }
  .dmrz-brand-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .dmrz-brand-primary { font-size: 1.02rem; }
  .dmrz-brand-secondary { display: none; }
  .dmrz-header-nav { top: 72px; }
  body.admin-bar .dmrz-header-nav { top: 118px; }
  .dmrz-header-search-inner { padding: 10px 0; }
  .dmrz-icon-button { width: 40px; height: 40px; }
  .dmrz-hero-inner { padding: 50px 0 46px; gap: 28px; }
  .dmrz-hero h1 { font-size: clamp(2.4rem, 16vw, 4.5rem); }
  .dmrz-hero::after { width: 75%; opacity: .55; }
  .dmrz-section { padding: 40px 0; }
  .dmrz-section-head { display: block; }
  .dmrz-quick-grid,
  .dmrz-card-grid,
  .dmrz-latest-grid,
  .dmrz-sidebar,
  .dmrz-footer-grid { grid-template-columns: 1fr; }
  .dmrz-post-card--article-list .dmrz-post-card-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .dmrz-article-card-copy { padding: 22px; }
  .dmrz-article-card-footer { grid-template-columns: 1fr; }
  .dmrz-article-card-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmrz-article-card-fact:nth-child(2n) { border-right: 0; }
  .dmrz-article-card-fact:nth-child(-n + 2) { border-bottom: 1px solid var(--dmrz-border); }
  .dmrz-article-card-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    border-left: 0 !important;
    border-top: 1px solid var(--dmrz-accent-border) !important;
  }
  .dmrz-quick-card { min-height: 150px; }
  .dmrz-footer-grid { gap: 28px; padding-top: 38px; }
  .dmrz-footer-bottom { flex-direction: column; }
  .dmrz-entry-header,
  .dmrz-entry-content { padding: 22px; }
  .dmrz-single-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmrz-single-fact { min-height: 66px; padding: 11px; gap: 10px; }
  .dmrz-single-fact-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .dmrz-post-navigation .nav-next .nav-subtitle { justify-content: flex-start; }
  .dmrz-share-panel__buttons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dmrz-related-grid { grid-template-columns: 1fr; }
  .dmrz-related-card__media { aspect-ratio: 16 / 9; }
  .dmrz-author-box__body,
  .dmrz-author-box--profile .dmrz-author-box__body { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px; }
  .dmrz-profile-layout { grid-template-columns: 1fr; }
  .dmrz-profile-tabs { position: static; }
  .dmrz-profile-panel__head { align-items: flex-start; flex-direction: column; }
  .dmrz-profile-editor-grid { grid-template-columns: 1fr; }
  .dmrz-profile-preview { border-right: 0; border-bottom: 1px solid var(--dmrz-border); }
  .dmrz-profile-social-fields,
  .dmrz-profile-password-grid { grid-template-columns: 1fr; }
  .dmrz-profile-security-stack { padding: 16px; }
}

@media (max-width: 520px) {
  .dmrz-hero-stat { min-height: 44px; padding-inline: 9px; gap: 5px; }
  .dmrz-hero-stat span { font-size: .61rem; letter-spacing: .04em; }
  .dmrz-hero-stat strong { font-size: .8rem; }
}

@media (max-width: 430px) {
  .dmrz-header-actions { gap: 5px; }
  .dmrz-icon-button { width: 38px; height: 38px; }
  .dmrz-single-facts { grid-template-columns: 1fr; }
  .dmrz-single-fact-value { white-space: normal; }
  .dmrz-share-panel__buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmrz-author-box__body,
  .dmrz-author-box--profile .dmrz-author-box__body { grid-template-columns: 1fr; }
  .dmrz-author-avatar { width: 132px; }
  .dmrz-author-box__name { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Article category icons and the normalized default sidebar. */
.dmrz-category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.dmrz-category-link .dmrz-category-icon { flex: 0 0 auto; }
.dmrz-category-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-category-archive-title { display: flex; align-items: center; gap: 16px; }
.dmrz-category-archive-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-accent-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-accent);
  font-size: 1.05rem;
}
.widget_dmrz_categories .dmrz-category-list,
.widget_dmrz_categories .dmrz-category-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget_dmrz_categories .dmrz-category-list__item {
  margin: 0;
  border-bottom: 1px solid var(--dmrz-border);
}
.widget_dmrz_categories .dmrz-category-list__item:last-child { border-bottom: 0; }
.widget_dmrz_categories .dmrz-category-list__item > a {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--dmrz-text-soft);
  text-decoration: none;
}
.widget_dmrz_categories .dmrz-category-list__item > a:hover {
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
}
.dmrz-category-list__label { min-width: 0; display: flex; align-items: center; gap: 10px; }
.dmrz-category-list__label > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-category-list__icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-accent-border);
  color: var(--dmrz-accent);
  font-size: .78rem;
}
.dmrz-category-list__count {
  min-width: 28px;
  padding: 2px 6px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-faint);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.widget_dmrz_categories .children { border-top: 1px solid var(--dmrz-border); }
.widget_dmrz_categories .children .dmrz-category-list__item > a { padding-left: 27px; }
.dmrz-widget-empty { margin: 0; padding: 16px; color: var(--dmrz-text-soft); }
.widget_archive li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-right: 15px;
  color: var(--dmrz-text-faint);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}
.widget_archive li > a { flex: 1; white-space: normal; }
@media (max-width: 520px) {
  .dmrz-category-archive-title { align-items: flex-start; }
  .dmrz-category-archive-icon { width: 42px; height: 42px; flex-basis: 42px; }
}

/* 0.1.13 — compact article navigation, dedicated search and full calendar navigation. */
.dmrz-post-navigation--compact .nav-links {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--dmrz-gap);
}
.dmrz-post-navigation--compact .nav-previous,
.dmrz-post-navigation--compact .nav-next { flex: 0 1 auto; }
.dmrz-post-navigation--compact .nav-next { margin-left: auto; }
.dmrz-post-navigation--compact a {
  width: auto;
  min-width: 240px;
  min-height: 64px;
  padding: 14px 22px;
}
.dmrz-post-navigation--compact.has-single-link .nav-links { display: flex; }

.widget_calendar .wp-calendar-nav > span,
.widget_dmrz_calendar .wp-calendar-nav > span,
.widget .wp-block-calendar .wp-calendar-nav > span { min-height: 42px; }
.widget_calendar .wp-calendar-nav a,
.widget_dmrz_calendar .wp-calendar-nav a,
.widget .wp-block-calendar .wp-calendar-nav a {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
}
.widget_calendar .wp-calendar-nav-prev a,
.widget_dmrz_calendar .wp-calendar-nav-prev a,
.widget .wp-block-calendar .wp-calendar-nav-prev a {
  place-items: center start;
  text-align: left;
}
.widget_calendar .wp-calendar-nav-next a,
.widget_dmrz_calendar .wp-calendar-nav-next a,
.widget .wp-block-calendar .wp-calendar-nav-next a {
  place-items: center end;
  text-align: right;
}

.dmrz-search-section { padding-top: 0; }
.dmrz-search-heading {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: center;
  gap: 30px;
  margin: 0 0 1px;
  padding: 34px 38px;
  border: 1px solid var(--dmrz-border);
  border-top: 4px solid var(--dmrz-accent);
  background: var(--dmrz-surface);
}
.dmrz-search-heading__eyebrow,
.dmrz-search-results-head__label {
  display: block;
  margin-bottom: 7px;
  color: var(--dmrz-accent);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.dmrz-search-heading .dmrz-page-title { margin: 0; }
.dmrz-search-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--dmrz-text-soft);
}
.dmrz-search-heading__icon {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-accent);
  font-size: 2rem;
}
.dmrz-search-panel {
  margin-bottom: 26px;
  padding: 20px 38px 24px;
  border: 1px solid var(--dmrz-border);
  border-top: 0;
  background: var(--dmrz-surface);
}
.dmrz-search-panel .dmrz-site-search__row { grid-template-columns: minmax(0, 1fr) auto; }
.dmrz-search-panel .dmrz-site-search__row button { min-width: 150px; }
.dmrz-search-results-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-search-results-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.25;
}
.dmrz-search-results-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface);
  color: var(--dmrz-text-soft);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dmrz-search-results-list {
  display: grid;
  gap: 1px;
  margin-top: 1px;
  background: var(--dmrz-border);
  border: 1px solid var(--dmrz-border);
}
.dmrz-search-result {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 62px;
  align-items: stretch;
  margin: 0;
  background: var(--dmrz-surface);
}
.dmrz-search-result__type {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-accent);
  font-size: 1.15rem;
}
.dmrz-search-result__body { min-width: 0; padding: 20px 22px; }
.dmrz-search-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-bottom: 6px;
  color: var(--dmrz-text-faint);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dmrz-search-result__meta span:first-child { color: var(--dmrz-accent); }
.dmrz-search-result__title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.3;
}
.dmrz-search-result__title a { color: var(--dmrz-text); text-decoration: none; }
.dmrz-search-result__title a:hover { color: var(--dmrz-accent); }
.dmrz-search-result__excerpt {
  max-width: 900px;
  margin: 8px 0 0;
  color: var(--dmrz-text-soft);
  font-size: .9rem;
}
.dmrz-search-result__open {
  display: grid;
  place-items: center;
  border-left: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-accent);
  text-decoration: none;
}
.dmrz-search-result__open:hover { background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-search-empty {
  min-height: 240px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-search-empty__icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-accent);
  font-size: 1.7rem;
}
.dmrz-search-empty h2 { margin: 0; }
.dmrz-search-empty p { margin: 8px 0 0; color: var(--dmrz-text-soft); }

@media (max-width: 720px) {
  .dmrz-post-navigation--compact .nav-links { display: grid; grid-template-columns: 1fr; }
  .dmrz-post-navigation--compact .nav-previous,
  .dmrz-post-navigation--compact .nav-next { width: 100%; margin-left: 0; }
  .dmrz-post-navigation--compact a { width: 100%; min-width: 0; }
  .dmrz-search-heading { grid-template-columns: 1fr; min-height: 0; padding: 26px 22px; }
  .dmrz-search-heading__icon { display: none; }
  .dmrz-search-panel { padding: 16px 22px 20px; }
  .dmrz-search-panel .dmrz-site-search__row { grid-template-columns: 1fr; }
  .dmrz-search-panel .dmrz-site-search__row button { width: 100%; min-width: 0; }
  .dmrz-search-results-head { align-items: flex-start; flex-direction: column; }
  .dmrz-search-result { grid-template-columns: 52px minmax(0, 1fr); }
  .dmrz-search-result__open { grid-column: 1 / -1; min-height: 44px; border-left: 0; border-top: 1px solid var(--dmrz-border); }
  .dmrz-search-empty { grid-template-columns: 1fr; }
}

/* 0.1.16 — article preview interaction and minimal card mode. */
.dmrz-post-card-media,
.dmrz-home-article-media {
  cursor: default;
}
.dmrz-post-card:hover .dmrz-post-card-media img,
.dmrz-home-article-card:hover .dmrz-home-article-media img {
  transform: none;
}
.dmrz-post-card--minimal,
.dmrz-home-article-card--minimal {
  height: auto;
}
.dmrz-post-card--minimal .dmrz-post-card-media,
.dmrz-home-article-card--minimal .dmrz-home-article-media {
  border-bottom: 0;
}
.dmrz-article-card-footer--minimal {
  display: block;
  border-top: 1px solid var(--dmrz-border);
}
.dmrz-article-card-footer--minimal .dmrz-article-card-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  border-left: 0 !important;
  padding-inline: 22px;
}
.dmrz-home-article-body--minimal {
  flex: 0 0 auto;
  padding: 0;
}
.dmrz-home-article-body--minimal .dmrz-home-article-link {
  width: 100%;
  margin: 0;
  min-height: 58px;
  padding-inline: 18px;
}
.dmrz-related-card__media { cursor: default; }
.dmrz-related-card--minimal .dmrz-related-card__body { padding: 0; }
.dmrz-related-card--minimal .dmrz-related-card__link {
  min-height: 54px;
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--dmrz-border);
}

/* 0.1.18 — restored natural preview geometry; auto-cover height follows Core context settings. */
.dmrz-post-card-media--auto,
.dmrz-home-article-media--auto {
  aspect-ratio: auto;
  min-height: 0;
}
.dmrz-post-card-media--auto .dmrz-auto-cover,
.dmrz-home-article-media--auto .dmrz-auto-cover {
  width: 100%;
  height: auto;
  min-height: 0;
}
.dmrz-entry-thumbnail--auto {
  aspect-ratio: auto;
  overflow: hidden;
}
.dmrz-entry-thumbnail--auto .dmrz-auto-cover {
  width: 100%;
  height: auto;
  min-height: 0;
}
.dmrz-article-card-footer--minimal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-article-card-footer--minimal .dmrz-article-card-facts--comments {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.dmrz-article-card-footer--minimal .dmrz-article-card-facts--comments .dmrz-article-card-fact {
  min-height: 62px;
  border-right: 1px solid var(--dmrz-border);
  background: transparent;
  cursor: default;
}
.dmrz-article-card-footer--minimal .dmrz-article-card-button {
  width: auto;
  min-width: 210px;
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  border-left: 0 !important;
  padding-inline: 22px;
}
.dmrz-home-article-body--minimal {
  padding: 0;
}
.dmrz-home-article-minimal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-home-article-minimal-footer .dmrz-article-card-facts--comments {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.dmrz-home-article-minimal-footer .dmrz-article-card-fact {
  min-height: 58px;
  border-right: 1px solid var(--dmrz-border);
  cursor: default;
}
.dmrz-home-article-minimal-footer .dmrz-home-article-link {
  width: auto;
  min-width: 170px;
  min-height: 58px;
  margin: 0;
  padding-inline: 18px;
}
@media (max-width: 720px) {
  .dmrz-post-card--article-list .dmrz-post-card-media--auto {
    aspect-ratio: 16 / 5;
  }
  .dmrz-article-card-footer--minimal,
  .dmrz-home-article-minimal-footer {
    grid-template-columns: 1fr;
  }
  .dmrz-article-card-footer--minimal .dmrz-article-card-facts--comments .dmrz-article-card-fact,
  .dmrz-home-article-minimal-footer .dmrz-article-card-fact {
    border-right: 0;
    border-bottom: 1px solid var(--dmrz-border);
  }
  .dmrz-article-card-footer--minimal .dmrz-article-card-button,
  .dmrz-home-article-minimal-footer .dmrz-home-article-link {
    width: 100%;
    min-width: 0;
  }
}

/* 0.1.18 responsive auto-cover contexts. */
@media (max-width: 980px) {
  .dmrz-post-card-media--auto, .dmrz-home-article-media--auto, .dmrz-entry-thumbnail--auto { min-height: 0; }
}


/* 0.1.19 — tighter article flow after auto-cover and no synthetic vertical gap. */
.dmrz-entry--article > .dmrz-entry-thumbnail,
.dmrz-entry--article > .dmrz-single-facts,
.dmrz-entry--article > .dmrz-entry-content{margin-top:0;margin-bottom:0}
.dmrz-entry--article > .dmrz-entry-thumbnail + .dmrz-single-facts,
.dmrz-entry--article > .dmrz-single-facts + .dmrz-entry-thumbnail,
.dmrz-entry--article > .dmrz-entry-thumbnail + .dmrz-entry-content,
.dmrz-entry--article > .dmrz-single-facts + .dmrz-entry-content{margin-top:0}
.dmrz-entry--article .dmrz-entry-thumbnail--auto{display:block;line-height:0}


/* 0.1.20 — auto-cover media wraps its real adaptive height without synthetic empty space. */
.dmrz-post-card--article-list .dmrz-post-card-media.dmrz-post-card-media--auto {
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  align-self: start;
  overflow: hidden;
  background: transparent;
}
.dmrz-post-card--article-list .dmrz-post-card-media.dmrz-post-card-media--auto > .dmrz-auto-cover {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
}
@media (max-width: 720px) {
  .dmrz-post-card--article-list .dmrz-post-card-media.dmrz-post-card-media--auto {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
  }
}


/* 0.1.21 — dedicated adaptive pseudo-cover for related articles. */
.dmrz-related-card__media.dmrz-related-card__media--auto {
  width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  overflow: hidden;
  background: transparent;
}
.dmrz-related-card__media.dmrz-related-card__media--auto > .dmrz-auto-cover {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
}
.dmrz-related-card__media .dmrz-auto-cover--related .dmrz-auto-cover__copy {
  width: min(var(--dmrz-cover-copy-width,88%), calc(100% - var(--dmrz-cover-copy-x,6%) - 4%));
}
.dmrz-related-card__media .dmrz-auto-cover--related .dmrz-auto-cover__title {
  -webkit-line-clamp: 2;
}
@media (max-width: 680px) {
  .dmrz-related-card__media.dmrz-related-card__media--auto { aspect-ratio: auto; }
  .dmrz-related-card__media .dmrz-auto-cover--related .dmrz-auto-cover__copy { width: min(var(--dmrz-cover-copy-width,88%),84%); }
}


/* 0.1.22 — restore author and section to minimal Article archive footer. */
.dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact .dmrz-article-card-fact {
  min-height: 62px;
  border-right: 1px solid var(--dmrz-border);
  background: transparent;
  cursor: default;
}
@media (max-width: 820px) {
  .dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact { grid-template-columns: 1fr; }
  .dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact .dmrz-article-card-fact {
    border-right: 0;
    border-bottom: 1px solid var(--dmrz-border);
  }
}

/* 0.1.23 — moved short description and flexible auto-cover content. */
.dmrz-article-card-copy--description-only{
  padding:20px 24px;
  border-top:1px solid var(--dmrz-border);
  background:var(--dmrz-surface);
}
.dmrz-article-card-copy--description-only .dmrz-post-card-excerpt{
  margin:0;
  color:var(--dmrz-text-soft);
  line-height:1.55;
}
.dmrz-home-article-excerpt--moved{
  height:auto;
  min-height:0;
  margin:0;
  padding:16px 18px;
  border-top:1px solid var(--dmrz-border);
  background:var(--dmrz-surface);
  -webkit-line-clamp:unset;
  display:block;
}
.dmrz-related-card__excerpt--moved{
  margin:0;
  padding:14px 16px;
  border-top:1px solid var(--dmrz-border);
  background:var(--dmrz-surface);
}
.dmrz-related-card__media .dmrz-auto-cover--related .dmrz-auto-cover__title{
  -webkit-line-clamp:4;
}


/* 0.1.24 — configurable interactive article-card footer. */
.dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact,
.dmrz-home-article-minimal-footer .dmrz-article-card-facts--compact {
  display:grid;
  grid-template-columns:repeat(var(--dmrz-card-facts-count,3),minmax(0,1fr));
  min-width:0;
}
.dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact .dmrz-article-card-fact,
.dmrz-home-article-minimal-footer .dmrz-article-card-facts--compact .dmrz-article-card-fact {
  min-height:62px;
  border-right:1px solid var(--dmrz-border);
  background:transparent;
}
.dmrz-home-article-minimal-footer .dmrz-article-card-facts--compact .dmrz-article-card-fact { min-height:58px; }
.dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact a.dmrz-article-card-fact,
.dmrz-home-article-minimal-footer .dmrz-article-card-facts--compact a.dmrz-article-card-fact {
  cursor:pointer;
}
.dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact a.dmrz-article-card-fact:hover,
.dmrz-home-article-minimal-footer .dmrz-article-card-facts--compact a.dmrz-article-card-fact:hover {
  background:var(--dmrz-surface-3);
  color:var(--dmrz-text);
}
.dmrz-home-article-minimal-footer:has(.dmrz-article-card-facts--compact) {
  grid-template-columns:minmax(0,1fr) auto;
}
.dmrz-article-card-footer--minimal:not(:has(.dmrz-article-card-facts--compact)) .dmrz-article-card-button,
.dmrz-home-article-minimal-footer:not(:has(.dmrz-article-card-facts--compact)) .dmrz-home-article-link {
  grid-column:1/-1;
}
@media (max-width:820px) {
  .dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact,
  .dmrz-home-article-minimal-footer .dmrz-article-card-facts--compact {
    grid-template-columns:1fr;
  }
  .dmrz-article-card-footer--minimal .dmrz-article-card-facts--compact .dmrz-article-card-fact,
  .dmrz-home-article-minimal-footer .dmrz-article-card-facts--compact .dmrz-article-card-fact {
    border-right:0;
    border-bottom:1px solid var(--dmrz-border);
  }
}

/* --------------------------------------------------------------------------
   DMR-Zone Wiki
   -------------------------------------------------------------------------- */
.dmrz-wiki-home .dmrz-content,
.dmrz-wiki-section-archive .dmrz-content { min-width: 0; }

.dmrz-wiki-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 34px;
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid var(--dmrz-border-strong);
  background: radial-gradient(circle at 78% 28%, rgba(19,131,93,.16), transparent 34%), linear-gradient(135deg, var(--dmrz-header-bg) 0%, #0b1219 100%);
  color: var(--dmrz-header-text);
}
.dmrz-wiki-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: color-mix(in srgb, var(--dmrz-accent) 94%, white 6%);
  opacity: .14;
  -webkit-mask: url("assets/images/wiki-hero-pattern.svg") center / cover no-repeat;
  mask: url("assets/images/wiki-hero-pattern.svg") center / cover no-repeat;
  pointer-events: none;
}
.dmrz-wiki-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,12,17,.92) 0%, rgba(8,12,17,.88) 44%, rgba(8,12,17,.56) 72%, rgba(8,12,17,.86) 100%);
  opacity: 1;
  pointer-events: none;
}
.dmrz-wiki-hero h1 { margin: 0; color: var(--dmrz-header-text); text-shadow: 0 2px 24px rgba(0,0,0,.28); font-size: clamp(2rem, 5vw, 4rem); line-height: .98; letter-spacing: -.04em; }
.dmrz-wiki-hero-copy > p:last-child { max-width: 840px; margin: 18px 0 0; color: color-mix(in srgb, var(--dmrz-header-text) 76%, var(--dmrz-header-soft) 24%); font-size: clamp(1rem, 1.7vw, 1.18rem); }
.dmrz-wiki-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0; max-width: 900px; margin-top: 30px; border: 1px solid var(--dmrz-border-strong); background: var(--dmrz-surface); }
.dmrz-wiki-search > i { padding-left: 18px; color: var(--dmrz-accent); }
.dmrz-wiki-search input { min-width: 0; height: 58px; padding: 0 16px; border: 0; outline: 0; background: transparent; color: var(--dmrz-text); font: inherit; }
.dmrz-wiki-search button { align-self: stretch; min-width: 120px; border: 0; border-left: 1px solid var(--dmrz-accent-border); border-radius: 0; background: var(--dmrz-accent); color: var(--dmrz-on-accent); font-weight: 900; text-transform: uppercase; cursor: pointer; }
.dmrz-wiki-search { position: relative; z-index: 4; }
.dmrz-wiki-live-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 1px);
  left: -1px;
  right: -1px;
  max-height: min(440px, 60vh);
  overflow-y: auto;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface);
  box-shadow: var(--dmrz-shadow);
}
.dmrz-wiki-live-results[hidden] { display: none; }
.dmrz-wiki-live-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--dmrz-border);
  color: var(--dmrz-text);
  text-decoration: none;
}
.dmrz-wiki-live-result:last-child { border-bottom: 0; }
.dmrz-wiki-live-result:hover,
.dmrz-wiki-live-result.is-active { background: var(--dmrz-surface-2); }
.dmrz-wiki-live-result-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--dmrz-accent-border);
  color: var(--dmrz-accent);
}
.dmrz-wiki-live-result-copy { min-width: 0; }
.dmrz-wiki-live-result-copy strong,
.dmrz-wiki-live-result-copy small { display: block; }
.dmrz-wiki-live-result-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-wiki-live-result-copy small { margin-top: 4px; color: var(--dmrz-text-soft); font-size: .76rem; }
.dmrz-wiki-live-result > i { color: var(--dmrz-accent); }
.dmrz-wiki-live-message {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  color: var(--dmrz-text-soft);
  font-weight: 700;
}
.dmrz-wiki-live-message i { color: var(--dmrz-accent); }

.dmrz-wiki-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 18px; }
.dmrz-wiki-section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.dmrz-wiki-clear-search { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); color: var(--dmrz-text); text-decoration: none; font-weight: 800; }
.dmrz-wiki-clear-search:hover { border-color: var(--dmrz-accent); color: var(--dmrz-accent); }

.dmrz-wiki-search-results { margin-bottom: 42px; }
.dmrz-wiki-result-list { border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); }
.dmrz-wiki-result { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 72px; padding: 12px 16px; border-bottom: 1px solid var(--dmrz-border); color: var(--dmrz-text); text-decoration: none; }
.dmrz-wiki-result:last-child { border-bottom: 0; }
.dmrz-wiki-result:hover { background: var(--dmrz-surface-2); }
.dmrz-wiki-result-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--dmrz-accent); border: 1px solid var(--dmrz-accent-border); }
.dmrz-wiki-result strong, .dmrz-wiki-result small { display: block; }
.dmrz-wiki-result small { margin-top: 4px; color: var(--dmrz-text-faint); }
.dmrz-wiki-result > i { color: var(--dmrz-accent); }

.dmrz-wiki-directory { margin-bottom: 50px; }
.dmrz-wiki-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.dmrz-wiki-directory-card { position: relative; overflow: hidden; min-width: 0; min-height: 410px; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
.dmrz-wiki-directory-card::before { content:""; position:absolute; inset:0; background: var(--dmrz-surface) center/cover no-repeat; background-image: var(--dmrz-section-bg-image, none); opacity: .58; transform: scale(1.03); transform-origin: center; pointer-events:none; }
.dmrz-wiki-directory-card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.66) 34%, rgba(255,255,255,.82) 100%); pointer-events:none; }
html[data-dmrz-theme="dark"] .dmrz-wiki-directory-card::after { background: linear-gradient(180deg, rgba(16,22,30,.64) 0%, rgba(16,22,30,.56) 34%, rgba(16,22,30,.74) 100%); }
.dmrz-wiki-directory-card > * { position: relative; z-index: 1; }
.dmrz-wiki-directory-card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px; border: 1px solid var(--dmrz-accent-border); background: color-mix(in srgb, var(--dmrz-surface) 58%, transparent); backdrop-filter: blur(2px); color: var(--dmrz-accent); font-size: 1.6rem; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }
.dmrz-wiki-directory-card h3 { margin: 0 0 20px; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.dmrz-wiki-directory-card ul { display: grid; gap: 0; margin: 0 0 24px; padding: 0; list-style: none; }
.dmrz-wiki-directory-card li { border-bottom: 1px solid var(--dmrz-border); }
.dmrz-wiki-directory-card li:last-child { border-bottom: 0; }
.dmrz-wiki-directory-card li a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 0; color: var(--dmrz-text-soft); text-decoration: none; line-height: 1.35; }
.dmrz-wiki-directory-card li a i { margin-top: 2px; color: var(--dmrz-text-faint); }
.dmrz-wiki-directory-card li a:hover { color: var(--dmrz-accent); }
.dmrz-wiki-directory-empty { color: var(--dmrz-text-faint); }
.dmrz-wiki-directory-more { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 170px; min-height: 48px; margin-top: auto; align-self: flex-start; padding: 0 18px; border: 2px solid var(--dmrz-accent-border); color: var(--dmrz-accent); text-decoration: none; font-weight: 900; text-transform: uppercase; }
.dmrz-wiki-directory-more:hover { background: var(--dmrz-accent); border-color: var(--dmrz-accent); color: var(--dmrz-on-accent); }

.dmrz-wiki-updated { padding-top: 8px; }
.dmrz-wiki-updated-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dmrz-wiki-updated-card { min-height: 140px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); color: var(--dmrz-text); text-decoration: none; }
.dmrz-wiki-updated-card:hover { border-color: var(--dmrz-accent); }
.dmrz-wiki-updated-card strong { margin-top: 14px; line-height: 1.3; }
.dmrz-wiki-updated-card small { margin-top: auto; padding-top: 14px; color: var(--dmrz-text-faint); }

.dmrz-wiki-status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: var(--dmrz-success); font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-wiki-status.is-review { color: var(--dmrz-warning); }
.dmrz-wiki-status.is-legacy { color: var(--dmrz-text-faint); }

.dmrz-wiki-empty { min-height: 200px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 30px; border: 1px dashed var(--dmrz-border-strong); background: var(--dmrz-surface-2); color: var(--dmrz-text-soft); text-align: center; }
.dmrz-wiki-empty > i { color: var(--dmrz-accent); font-size: 2rem; }
.dmrz-wiki-empty p { margin: 0; }

/* Wiki section archive */
.dmrz-wiki-section-hero { margin-bottom: 24px; padding: 28px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
.dmrz-wiki-section-hero-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 18px; }
.dmrz-wiki-section-hero-icon { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid var(--dmrz-accent-border); background: var(--dmrz-surface-2); color: var(--dmrz-accent); font-size: 1.8rem; }
.dmrz-wiki-section-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.dmrz-wiki-term-description { max-width: 760px; color: var(--dmrz-text-soft); }
.dmrz-wiki-page-list { border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
.dmrz-wiki-page-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; min-height: 76px; padding: 13px 18px; border-bottom: 1px solid var(--dmrz-border); color: var(--dmrz-text); text-decoration: none; }
.dmrz-wiki-page-row:last-child { border-bottom: 0; }
.dmrz-wiki-page-row:hover { background: var(--dmrz-surface-2); }
.dmrz-wiki-page-row > i:first-child { color: var(--dmrz-accent); }
.dmrz-wiki-page-row strong, .dmrz-wiki-page-row small { display: block; }
.dmrz-wiki-page-row small { margin-top: 5px; color: var(--dmrz-text-soft); }

/* Wiki document */
.dmrz-wiki-doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.dmrz-wiki-nav, .dmrz-wiki-toc { position: sticky; top: 92px; min-width: 0; max-height: calc(100vh - 112px); overflow: auto; }
.dmrz-wiki-nav { border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); }
.dmrz-wiki-nav-head a { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 0 14px; border-bottom: 1px solid var(--dmrz-border); color: var(--dmrz-text); text-decoration: none; font-weight: 900; }
.dmrz-wiki-nav-head i { color: var(--dmrz-accent); }
.dmrz-wiki-nav-section-title { display: flex; gap: 9px; align-items: center; padding: 14px; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); color: var(--dmrz-text); font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.dmrz-wiki-nav-section-title i { color: var(--dmrz-accent); }
.dmrz-wiki-nav-pages { padding: 7px; }
.dmrz-wiki-nav-pages a { display: block; padding: 9px 10px; border-left: 3px solid transparent; color: var(--dmrz-text-soft); text-decoration: none; font-size: .88rem; line-height: 1.3; }
.dmrz-wiki-nav-pages a:hover { background: var(--dmrz-surface-2); color: var(--dmrz-text); }
.dmrz-wiki-nav-pages a.is-current { border-left-color: var(--dmrz-accent); background: var(--dmrz-surface-2); color: var(--dmrz-text); font-weight: 800; }
.dmrz-wiki-nav-all { display: flex; gap: 9px; align-items: center; padding: 13px 14px; border-top: 1px solid var(--dmrz-border); color: var(--dmrz-accent); text-decoration: none; font-weight: 800; }

.dmrz-wiki-document { min-width: 0; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
.dmrz-wiki-document-head { padding: clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--dmrz-border); }
.dmrz-wiki-document h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.dmrz-wiki-lead { max-width: 760px; margin: 18px 0 0; color: var(--dmrz-text-soft); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.65; }
.dmrz-wiki-facts { display: flex; gap: 14px 22px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--dmrz-border); color: var(--dmrz-text-faint); font-size: .76rem; font-weight: 800; }
.dmrz-wiki-facts > span { display: inline-flex; gap: 8px; align-items: center; }
.dmrz-wiki-facts > span > i { color: var(--dmrz-accent); }
.dmrz-wiki-applies { display: grid; gap: 7px; margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--dmrz-accent); background: var(--dmrz-surface-2); color: var(--dmrz-text-soft); font-size: .88rem; }

.dmrz-wiki-document-content { padding: clamp(26px, 4vw, 46px); font-size: 1rem; line-height: 1.75; }
.dmrz-wiki-document-content > :first-child { margin-top: 0; }
.dmrz-wiki-document-content > :last-child { margin-bottom: 0; }
.dmrz-wiki-document-content h2 { scroll-margin-top: 100px; margin: 44px 0 16px; padding-top: 8px; border-top: 1px solid var(--dmrz-border); font-size: clamp(1.45rem, 3vw, 2rem); }
.dmrz-wiki-document-content h3 { scroll-margin-top: 100px; margin: 30px 0 12px; font-size: 1.25rem; }
.dmrz-wiki-document-content table { width: 100%; border-collapse: collapse; }
.dmrz-wiki-document-content th, .dmrz-wiki-document-content td { padding: 10px 12px; border: 1px solid var(--dmrz-border); text-align: left; }
.dmrz-wiki-document-content th { background: var(--dmrz-surface-2); }
.dmrz-wiki-document-content code { font-family: var(--dmrz-mono); }

.dmrz-wiki-sources { padding: 0 clamp(26px, 4vw, 46px) clamp(26px, 4vw, 46px); }
.dmrz-wiki-sources h2 { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; padding-top: 24px; border-top: 1px solid var(--dmrz-border); font-size: 1.2rem; }
.dmrz-wiki-sources h2 i { color: var(--dmrz-accent); }
.dmrz-wiki-sources ol { margin: 0; padding-left: 22px; }
.dmrz-wiki-sources li + li { margin-top: 8px; }

.dmrz-wiki-document-footer { border-top: 1px solid var(--dmrz-border); }
.dmrz-wiki-document-footer .dmrz-share-panel { margin: 0; border: 0; border-bottom: 1px solid var(--dmrz-border); box-shadow: none; }
.dmrz-wiki-prev-next { display: grid; grid-template-columns: 1fr 1fr; }
.dmrz-wiki-prev-next > a { min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 16px 20px; color: var(--dmrz-text); text-decoration: none; }
.dmrz-wiki-prev-next > a + a { border-left: 1px solid var(--dmrz-border); }
.dmrz-wiki-prev-next > a:hover { background: var(--dmrz-surface-2); }
.dmrz-wiki-prev-next small { color: var(--dmrz-text-faint); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.dmrz-wiki-prev-next strong { display: flex; gap: 10px; align-items: center; }
.dmrz-wiki-prev-next strong i { color: var(--dmrz-accent); }
.dmrz-wiki-prev-next .is-next { text-align: right; align-items: flex-end; }

.dmrz-wiki-toc-box { border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); }
.dmrz-wiki-toc-box > strong { display: block; padding: 13px 14px; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); font-size: .78rem; text-transform: uppercase; }
.dmrz-wiki-toc nav { padding: 8px; }
.dmrz-wiki-toc a { display: block; padding: 7px 8px; color: var(--dmrz-text-soft); text-decoration: none; font-size: .82rem; line-height: 1.3; }
.dmrz-wiki-toc a:hover { color: var(--dmrz-accent); }
.dmrz-wiki-toc a.level-3 { padding-left: 18px; color: var(--dmrz-text-faint); }
.dmrz-wiki-mobile-tools { display: none; }

@media (max-width: 1100px) {
  .dmrz-wiki-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmrz-wiki-updated-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmrz-wiki-doc-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .dmrz-wiki-toc { display: none; }
}

@media (max-width: 780px) {
  .dmrz-wiki-directory-grid, .dmrz-wiki-updated-grid { grid-template-columns: 1fr; }
  .dmrz-wiki-directory-card { min-height: 0; }
  .dmrz-wiki-search { grid-template-columns: auto minmax(0, 1fr); }
  .dmrz-wiki-search button { grid-column: 1 / -1; min-height: 48px; border-left: 0; border-top: 1px solid var(--dmrz-accent-border); }
  .dmrz-wiki-page-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .dmrz-wiki-page-row .dmrz-wiki-status { display: none; }
  .dmrz-wiki-doc-layout { display: block; }
  .dmrz-wiki-nav, .dmrz-wiki-toc { display: none; }
  .dmrz-wiki-mobile-tools { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--dmrz-border); }
  .dmrz-wiki-mobile-tools details { min-width: 0; }
  .dmrz-wiki-mobile-tools details + details { border-left: 1px solid var(--dmrz-border); }
  .dmrz-wiki-mobile-tools summary { display: flex; gap: 8px; align-items: center; min-height: 48px; padding: 0 14px; cursor: pointer; font-size: .78rem; font-weight: 900; text-transform: uppercase; list-style: none; }
  .dmrz-wiki-mobile-tools summary::-webkit-details-marker { display: none; }
  .dmrz-wiki-mobile-tools summary i { color: var(--dmrz-accent); }
  .dmrz-wiki-mobile-tools nav { position: absolute; z-index: 30; left: 20px; right: 20px; max-height: 60vh; overflow: auto; padding: 8px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
  .dmrz-wiki-mobile-tools nav a { display: block; padding: 9px 10px; color: var(--dmrz-text-soft); text-decoration: none; }
  .dmrz-wiki-mobile-tools nav a.is-current { color: var(--dmrz-text); background: var(--dmrz-surface-2); border-left: 3px solid var(--dmrz-accent); }
  .dmrz-wiki-mobile-tools nav a.level-3 { padding-left: 22px; }
  .dmrz-wiki-document-head, .dmrz-wiki-document-content { padding-left: 20px; padding-right: 20px; }
  .dmrz-wiki-prev-next { grid-template-columns: 1fr; }
  .dmrz-wiki-prev-next > a + a { border-left: 0; border-top: 1px solid var(--dmrz-border); }
}


/* Front page: latest newly-added Wiki materials. */
.dmrz-home-wiki-grid {
  display: grid;
  grid-template-columns: repeat(var(--dmrz-home-wiki-columns, 3), minmax(0, 1fr));
  gap: 20px;
}
.dmrz-home-wiki-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  color: var(--dmrz-text);
  text-decoration: none;
  box-shadow: var(--dmrz-shadow);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.dmrz-home-wiki-card::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--dmrz-surface) center / cover no-repeat;
  background-image: var(--dmrz-home-wiki-bg-image, none);
  opacity: .76;
  pointer-events: none;
}
.dmrz-home-wiki-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb,var(--dmrz-surface) 58%,transparent), color-mix(in srgb,var(--dmrz-surface) 78%,transparent));
  pointer-events: none;
}
.dmrz-home-wiki-card:hover,
.dmrz-home-wiki-card:focus-visible {
  border-color: var(--dmrz-accent);
  box-shadow: var(--dmrz-shadow-hover);
  transform: translateY(-2px);
}
.dmrz-home-wiki-card strong {
  margin-top: 20px;
  font-size: clamp(1.18rem, 1.7vw, 1.5rem);
  line-height: 1.25;
}
.dmrz-home-wiki-card small {
  margin-top: auto;
  padding-top: 28px;
  color: var(--dmrz-text-faint);
  font-size: .88rem;
}
@media (max-width: 1100px) {
  .dmrz-home-wiki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dmrz-home-wiki-grid { grid-template-columns: 1fr; }
  .dmrz-home-wiki-card { min-height: 180px; padding: 22px; }
}


.dmrz-brand-default-logo { display:block; width:auto; max-width:260px; max-height:56px; object-fit:contain; }

.dmrz-wiki-helpful {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:24px;
    align-items:center;
    margin:32px 0;
    padding:24px;
    border:1px solid var(--dmrz-line);
    background:var(--dmrz-surface);
}
.dmrz-wiki-helpful-copy h2 { margin:0 0 10px; font-size:1.15rem; }
.dmrz-wiki-helpful-copy p { margin:0; color:var(--dmrz-text-soft); }
.dmrz-wiki-helpful-actions { display:flex; gap:12px; flex-wrap:wrap; }
.dmrz-wiki-helpful-button {
    display:inline-flex; align-items:center; gap:10px;
    min-width:132px; justify-content:center;
    padding:14px 18px; border:1px solid var(--dmrz-line);
    background:var(--dmrz-panel); color:var(--dmrz-text);
    font:inherit; font-weight:700; cursor:pointer; transition:.2s ease;
}
.dmrz-wiki-helpful-button strong { font-size:1rem; }
.dmrz-wiki-helpful-button:hover:not(:disabled), .dmrz-wiki-helpful-button:focus-visible:not(:disabled) {
    border-color:var(--dmrz-accent); color:var(--dmrz-accent); outline:none;
}
.dmrz-wiki-helpful-button:disabled { opacity:.72; cursor:default; }
.dmrz-wiki-helpful-actions.is-locked .dmrz-wiki-helpful-button { cursor:default; }
@media (max-width: 700px) {
    .dmrz-wiki-helpful { grid-template-columns:1fr; }
}


/* 0.1.38 — keep the home hero columns independent and stack before they can collide. */
.dmrz-hero-inner > * {
  min-width: 0;
}

@media (min-width: 1081px) and (max-width: 1199px) {
  .dmrz-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .dmrz-hero-panel {
    max-width: 620px;
    margin-left: 0;
  }
}

@media (min-width: 1200px) {
  .dmrz-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(520px, .86fr);
    gap: 40px;
  }
  .dmrz-hero-panel {
    min-width: 0;
    margin-left: 0;
    padding: 22px 26px;
  }
  .dmrz-hero-stat {
    padding-left: 12px;
    padding-right: 12px;
  }
  .dmrz-hero-stat span {
    font-size: .66rem;
    letter-spacing: .055em;
  }
}

/* Unified live search */
.dmrz-live-search { position: relative; }
.dmrz-live-results {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(520px, 65vh);
  overflow-y: auto;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.dmrz-live-results[hidden] { display: none !important; }
.dmrz-live-result {
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dmrz-border);
  color: var(--dmrz-text);
  text-decoration: none;
  background: var(--dmrz-surface);
}
.dmrz-live-result:last-child { border-bottom: 0; }
.dmrz-live-result:hover,
.dmrz-live-result.is-selected { background: var(--dmrz-surface-2); color: var(--dmrz-text); }
.dmrz-live-result.is-selected { box-shadow: inset 4px 0 0 var(--dmrz-accent); }
.dmrz-live-result__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--dmrz-border); color: var(--dmrz-accent); }
.dmrz-live-result__body { min-width: 0; display: grid; gap: 2px; }
.dmrz-live-result__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; }
.dmrz-live-result__meta { color: var(--dmrz-accent); font-size: .67rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.dmrz-live-result__excerpt { overflow: hidden; color: var(--dmrz-text-soft); font-size: .76rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-live-result__arrow { color: var(--dmrz-text-faint); text-align: center; }
.dmrz-live-message { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--dmrz-text-soft); background: var(--dmrz-surface); }
.dmrz-live-message i { width: 34px; height: 34px; display: grid; place-items: center; color: var(--dmrz-accent); border: 1px solid var(--dmrz-border); }
.dmrz-header-search-inner.dmrz-live-search { position: relative; }
.dmrz-header-search-inner .dmrz-live-results--header { top: calc(100% - 6px); left: 0; right: 0; }
.dmrz-hero-search.dmrz-live-search { position: relative; }
.dmrz-hero-search .dmrz-live-results--hero { top: calc(100% + 8px); grid-column: 1 / -1; }
.dmrz-wiki-search.dmrz-live-search { position: relative; }
.dmrz-wiki-search .dmrz-live-results { top: calc(100% + 8px); }
.dmrz-section-search { margin: 0 0 24px; padding: 18px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
.dmrz-section-search .dmrz-site-search { margin: 0; }
.dmrz-section-search .dmrz-site-search__label { margin-bottom: 10px; }

/* Downloads information layout */
.dmrz-downloads-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding: 26px 28px;
  border: 1px solid var(--dmrz-border);
  border-top: 5px solid var(--dmrz-accent);
  background: var(--dmrz-surface);
}
.dmrz-downloads-head__icon { width: 78px; height: 78px; display: grid; place-items: center; flex: 0 0 78px; border: 1px solid var(--dmrz-accent-border); color: var(--dmrz-accent); font-size: 1.75rem; }
.dmrz-download-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.dmrz-download-categories a { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); color: var(--dmrz-text); text-decoration: none; font-size: .75rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.dmrz-download-categories a span { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 5px; border: 1px solid var(--dmrz-border); color: var(--dmrz-text-soft); font-size: .67rem; }
.dmrz-download-categories a:hover,
.dmrz-download-categories a.is-active { border-color: var(--dmrz-accent); background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-download-categories a:hover span,
.dmrz-download-categories a.is-active span { border-color: currentColor; color: inherit; }
.dmrz-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dmrz-gap); }
.dmrz-download-card { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
.dmrz-download-card__media { position: relative; aspect-ratio: 16 / 7.7; overflow: hidden; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-3); }
.dmrz-download-card__media > img,
.dmrz-download-card__media > .dmrz-auto-cover { width: 100%; height: 100%; }
.dmrz-download-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dmrz-download-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--dmrz-text-faint); font-size: 2.3rem; background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(127,139,153,.07) 18px 19px); }
.dmrz-download-card__category { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 9px; overflow: hidden; border: 1px solid var(--dmrz-accent-border); background: var(--dmrz-accent); color: var(--dmrz-on-accent); font-size: .65rem; font-weight: 900; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.dmrz-download-card__body { min-width: 0; padding: 20px; }
.dmrz-download-card__topline { min-height: 22px; display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; color: var(--dmrz-text-soft); font-size: .71rem; font-weight: 800; }
.dmrz-download-card__topline span { display: inline-flex; align-items: center; gap: 6px; }
.dmrz-download-card__topline i { color: var(--dmrz-accent); }
.dmrz-download-card h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; }
.dmrz-download-card h2 a { color: var(--dmrz-text); text-decoration: none; }
.dmrz-download-card h2 a:hover { color: var(--dmrz-accent); }
.dmrz-download-card__body > p { min-height: 4.4em; margin: 12px 0 18px; color: var(--dmrz-text-soft); font-size: .88rem; line-height: 1.48; }
.dmrz-download-card__facts { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 1px; border: 1px solid var(--dmrz-border); background: var(--dmrz-border); }
.dmrz-download-card__facts > span { min-width: 0; display: grid; gap: 4px; padding: 11px 12px; background: var(--dmrz-surface-2); }
.dmrz-download-card__facts small { color: var(--dmrz-text-faint); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dmrz-download-card__facts strong { min-width: 0; overflow: hidden; color: var(--dmrz-text); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-download-card__footer { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-top: 1px solid var(--dmrz-border); background: var(--dmrz-border); }
.dmrz-download-card__footer .dmrz-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; border: 0; text-decoration: none; }
.dmrz-download-card__details { background: var(--dmrz-surface-2); color: var(--dmrz-text); }
.dmrz-download-card__download { background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-download-card__download:hover { background: var(--dmrz-accent-hover); color: var(--dmrz-on-accent); }

.dmrz-download-product__head { margin-bottom: 24px; padding: 24px 26px; border: 1px solid var(--dmrz-border); border-top: 5px solid var(--dmrz-accent); background: var(--dmrz-surface); }
.dmrz-download-product__head h1 { max-width: 1000px; margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.035em; }
.dmrz-download-product__lead { max-width: 900px; margin: 16px 0 0; color: var(--dmrz-text-soft); font-size: 1rem; }
.dmrz-download-product__hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: var(--dmrz-gap); align-items: stretch; }
.dmrz-download-product__media { min-height: 420px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface-3); }
.dmrz-download-product__media > img,
.dmrz-download-product__media > .dmrz-auto-cover { width: 100%; height: 100%; object-fit: cover; }
.dmrz-download-product__media > span { color: var(--dmrz-text-faint); font-size: 4rem; }
.dmrz-download-product__panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dmrz-download-product__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--dmrz-border); background: var(--dmrz-border); }
.dmrz-download-product__facts > div { min-width: 0; min-height: 106px; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; gap: 2px 10px; padding: 15px; background: var(--dmrz-surface); }
.dmrz-download-product__facts i { width: 34px; height: 34px; display: grid; place-items: center; grid-row: 1 / 3; border: 1px solid var(--dmrz-border); color: var(--dmrz-accent); }
.dmrz-download-product__facts span { color: var(--dmrz-text-faint); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dmrz-download-product__facts strong { min-width: 0; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-download-actions { padding: 18px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); }
.dmrz-download-actions h2 { margin: 0 0 12px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.dmrz-download-source { width: 100%; min-height: 52px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; align-items: center; gap: 9px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--dmrz-border-strong); border-radius: 0; background: var(--dmrz-surface-2); color: var(--dmrz-text); font-weight: 900; text-align: left; text-decoration: none; }
button.dmrz-download-source { grid-template-columns: 30px minmax(0, 1fr); }
.dmrz-download-source i:first-child { color: var(--dmrz-accent); }
.dmrz-download-source:hover { border-color: var(--dmrz-accent); color: var(--dmrz-accent); }
.dmrz-download-source.is-primary { border-color: var(--dmrz-accent); background: var(--dmrz-accent); color: var(--dmrz-on-accent); }
.dmrz-download-source.is-primary i { color: inherit; }
.dmrz-download-source.is-primary:hover { background: var(--dmrz-accent-hover); color: var(--dmrz-on-accent); }
.dmrz-download-actions__empty { margin: 0; color: var(--dmrz-text-soft); }
.dmrz-download-section { margin-top: 24px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); }
.dmrz-download-section > header { padding: 18px 22px; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-download-section > header h2 { margin: 0; font-size: 1.05rem; text-transform: uppercase; }
.dmrz-download-section > header .dmrz-eyebrow { margin-bottom: 4px; }
.dmrz-dependency-list { display: grid; }
.dmrz-dependency-row { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 36px; align-items: center; gap: 13px; padding: 14px 18px; border-bottom: 1px solid var(--dmrz-border); }
.dmrz-dependency-row:last-child { border-bottom: 0; }
.dmrz-dependency-row__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--dmrz-border); color: var(--dmrz-accent); }
.dmrz-dependency-row strong { display: block; }
.dmrz-dependency-row p { margin: 2px 0 0; color: var(--dmrz-text-soft); font-size: .8rem; }
.dmrz-dependency-row__version { padding: 4px 7px; border: 1px solid var(--dmrz-border); color: var(--dmrz-text-soft); font-family: var(--dmrz-mono); font-size: .72rem; }
.dmrz-dependency-row > a,
.dmrz-dependency-row > button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--dmrz-border); background: transparent; color: inherit; padding: 0; text-decoration: none; cursor: pointer; }
.dmrz-dependency-row > a:hover,
.dmrz-dependency-row > a:focus,
.dmrz-dependency-row > button:hover,
.dmrz-dependency-row > button:focus { border-color: var(--dmrz-accent); color: var(--dmrz-accent); outline: none; }
.dmrz-download-description .dmrz-entry-content { padding: 24px; }
.dmrz-download-edit { margin: 18px 0; }

html.dmrz-modal-open { overflow: hidden; }
.dmrz-download-modal { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; padding: 20px; }
.dmrz-download-modal[hidden] { display: none !important; }
.dmrz-download-modal__backdrop { position: absolute; inset: 0; background: rgba(4,8,13,.78); }
.dmrz-download-modal__dialog { position: relative; z-index: 1; width: min(480px, 100%); padding: 30px; border: 1px solid var(--dmrz-border-strong); border-top: 5px solid var(--dmrz-accent); background: var(--dmrz-surface); box-shadow: 0 26px 80px rgba(0,0,0,.38); text-align: center; }
.dmrz-download-modal__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid var(--dmrz-border); border-radius: 0; background: var(--dmrz-surface-2); color: var(--dmrz-text); }
.dmrz-download-modal__icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 2px auto 18px; border: 1px solid var(--dmrz-accent); color: var(--dmrz-accent); font-size: 1.55rem; }
.dmrz-download-modal h2 { margin: 0; font-size: 1.55rem; text-transform: uppercase; }
.dmrz-download-modal p:not(.dmrz-eyebrow) { margin: 10px 0 18px; color: var(--dmrz-text-soft); }
.dmrz-download-modal__timer { width: 92px; height: 72px; display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: center; gap: 4px; margin: 0 auto 18px; padding-top: 9px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-download-modal__timer span { color: var(--dmrz-accent); font-size: 2.2rem; font-weight: 900; line-height: 1; }
.dmrz-download-modal__timer small { color: var(--dmrz-text-soft); }
.dmrz-download-modal__button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--dmrz-accent); background: var(--dmrz-accent); color: var(--dmrz-on-accent); text-decoration: none; }
.dmrz-download-modal__button:hover { background: var(--dmrz-accent-hover); color: var(--dmrz-on-accent); }
.dmrz-download-modal__button.is-disabled { border-color: var(--dmrz-border); background: var(--dmrz-surface-3); color: var(--dmrz-text-faint); pointer-events: auto; cursor: not-allowed; }

@media (max-width: 960px) {
  .dmrz-download-grid { grid-template-columns: 1fr; }
  .dmrz-download-product__hero { grid-template-columns: 1fr; }
  .dmrz-download-product__media { min-height: 0; aspect-ratio: 16 / 8; }
}
@media (max-width: 720px) {
  .dmrz-live-result { grid-template-columns: 40px minmax(0, 1fr); }
  .dmrz-live-result__arrow { display: none; }
  .dmrz-live-result__excerpt { display: none; }
  .dmrz-downloads-head { align-items: flex-start; padding: 20px; }
  .dmrz-downloads-head__icon { width: 58px; height: 58px; flex-basis: 58px; }
  .dmrz-download-card__facts { grid-template-columns: 1fr; }
  .dmrz-download-product__facts { grid-template-columns: 1fr; }
  .dmrz-dependency-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .dmrz-dependency-row__version { grid-column: 2; justify-self: start; }
  .dmrz-dependency-row > a,
  .dmrz-dependency-row > button { grid-column: 3; grid-row: 1 / 3; }
}

/* 0.1.41 — structured Downloads compatibility and Necessary components. */
.dmrz-compatibility-list { display: grid; }
.dmrz-compatibility-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.35fr) minmax(130px, .7fr); border-bottom: 1px solid var(--dmrz-border); }
.dmrz-compatibility-row:last-child { border-bottom: 0; }
.dmrz-compatibility-row > span { min-width: 0; display: grid; align-content: center; gap: 3px; min-height: 62px; padding: 12px 18px; border-right: 1px solid var(--dmrz-border); }
.dmrz-compatibility-row > span:last-child { border-right: 0; }
.dmrz-compatibility-row small { display: none; color: var(--dmrz-text-faint); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dmrz-compatibility-row strong { overflow-wrap: anywhere; }
.dmrz-compatibility-row--head { background: var(--dmrz-surface-2); }
.dmrz-compatibility-row--head > span { min-height: 42px; color: var(--dmrz-text-soft); font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dmrz-dependency-row__required { display: block; margin-top: 2px; color: var(--dmrz-text-faint); font-size: .68rem; font-weight: 800; }

@media (max-width: 720px) {
  .dmrz-compatibility-row { grid-template-columns: 1fr; }
  .dmrz-compatibility-row--head { display: none; }
  .dmrz-compatibility-row > span { min-height: 0; border-right: 0; border-bottom: 1px dashed var(--dmrz-border); }
  .dmrz-compatibility-row > span:last-child { border-bottom: 0; }
  .dmrz-compatibility-row small { display: block; }
}

/* 0.1.41 — approved Downloads tabs, version history and aggregate download counter. */
.dmrz-download-tabs { margin-top: 24px; }
.dmrz-download-tabs__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--dmrz-border); background: var(--dmrz-border); }
.dmrz-download-tabs__nav button { min-width: 0; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 0; background: var(--dmrz-surface-2); color: var(--dmrz-text-soft); font-weight: 900; text-transform: uppercase; cursor: pointer; }
.dmrz-download-tabs__nav button i { color: var(--dmrz-accent); }
.dmrz-download-tabs__nav button:hover,
.dmrz-download-tabs__nav button.is-active { background: var(--dmrz-surface); color: var(--dmrz-text); }
.dmrz-download-tabs__nav button.is-active { box-shadow: inset 0 -3px 0 var(--dmrz-accent); }
.dmrz-download-tabs__panels { border: 1px solid var(--dmrz-border); border-top: 0; background: var(--dmrz-surface); }
.dmrz-download-tab-panel[hidden] { display: none !important; }
.dmrz-download-tab-panel > header { padding: 18px 22px; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-download-tab-panel > header h2 { margin: 0; font-size: 1.05rem; text-transform: uppercase; }
.dmrz-download-tab-panel > header .dmrz-eyebrow { margin-bottom: 4px; }
.dmrz-download-tab-panel__body { padding: 24px; }
.dmrz-download-information { display: grid; gap: 22px; }
.dmrz-download-information__summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--dmrz-border); background: var(--dmrz-border); }
.dmrz-download-information__summary > span { min-width: 0; display: grid; gap: 5px; padding: 14px 16px; background: var(--dmrz-surface-2); }
.dmrz-download-information__summary small { color: var(--dmrz-text-faint); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dmrz-download-information__summary strong { overflow-wrap: anywhere; }
.dmrz-download-tab-block { border: 1px solid var(--dmrz-border); }
.dmrz-download-tab-block > h3 { margin: 0; padding: 13px 18px; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-download-history { display: grid; border: 1px solid var(--dmrz-border); }
.dmrz-download-history__item { display: grid; grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr); border-bottom: 1px solid var(--dmrz-border); }
.dmrz-download-history__item:last-child { border-bottom: 0; }
.dmrz-download-history__meta { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-right: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-download-history__meta strong { font-family: var(--dmrz-mono); }
.dmrz-download-history__meta time { color: var(--dmrz-text-faint); font-size: .75rem; }
.dmrz-download-history__changes { padding: 16px 18px; color: var(--dmrz-text-soft); line-height: 1.65; }
.dmrz-download-tab-empty { margin: 0; color: var(--dmrz-text-soft); }
.dmrz-download-reviews .comments-area { margin: 0; }

@media (max-width: 900px) {
  .dmrz-download-information__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dmrz-download-tabs__nav { grid-template-columns: 1fr 1fr; }
  .dmrz-download-tabs__nav button { justify-content: flex-start; }
  .dmrz-download-information__summary { grid-template-columns: 1fr; }
  .dmrz-download-history__item { grid-template-columns: 1fr; }
  .dmrz-download-history__meta { border-right: 0; border-bottom: 1px solid var(--dmrz-border); }
  .dmrz-download-tab-panel__body { padding: 18px; }
}

/* 0.1.41 — complete version history and version-bound download sources. */
.dmrz-download-history__item.is-current { box-shadow: inset 3px 0 0 var(--dmrz-accent); }
.dmrz-download-history__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dmrz-download-history__status { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 7px; border: 1px solid var(--dmrz-border); color: var(--dmrz-text-soft); font-size: .62rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-download-history__status.is-current { border-color: var(--dmrz-accent); color: var(--dmrz-accent); }
.dmrz-download-history__meta > span { display: grid; gap: 2px; margin-top: 8px; }
.dmrz-download-history__meta small { color: var(--dmrz-text-faint); font-size: .62rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-download-history__body { min-width: 0; padding: 16px 18px; }
.dmrz-download-history__body .dmrz-download-history__changes { padding: 0; }
.dmrz-download-history__sources { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--dmrz-border); }
.dmrz-download-history__sources > strong { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.dmrz-download-history__source-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dmrz-download-source--history { width: auto; min-height: 40px; padding: 9px 12px; font-size: .74rem; }


/* 0.1.42 — Downloads detail polish and brand-coloured source buttons. */
.dmrz-download-tab-panel__body:first-child { padding-top: 24px; }
.dmrz-download-source--github { border-color: #24292f; background: #24292f; color: #fff; }
.dmrz-download-source--github:hover { border-color: #171b20; background: #171b20; color: #fff; }
.dmrz-download-source--mega { border-color: #d9272e; background: #d9272e; color: #fff; }
.dmrz-download-source--mega:hover { border-color: #ba2027; background: #ba2027; color: #fff; }
.dmrz-download-source--google_drive { border-color: #0b57d0; background: #0b57d0; color: #fff; }
.dmrz-download-source--google_drive:hover { border-color: #0842a0; background: #0842a0; color: #fff; }
.dmrz-download-source--yandex_disk { border-color: #ff0000; background: #ff0000; color: #fff; }
.dmrz-download-source--yandex_disk:hover { border-color: #d70000; background: #d70000; color: #fff; }
.dmrz-download-source--onedrive { border-color: #0a66c2; background: #0a66c2; color: #fff; }
.dmrz-download-source--onedrive:hover { border-color: #084f96; background: #084f96; color: #fff; }
.dmrz-download-source--dropbox { border-color: #0061ff; background: #0061ff; color: #fff; }
.dmrz-download-source--dropbox:hover { border-color: #004cd1; background: #004cd1; color: #fff; }
.dmrz-download-source--mediafire { border-color: #1265d7; background: #1265d7; color: #fff; }
.dmrz-download-source--mediafire:hover { border-color: #0f52ae; background: #0f52ae; color: #fff; }
.dmrz-download-source--wetransfer { border-color: #17181c; background: #17181c; color: #fff; }
.dmrz-download-source--wetransfer:hover { border-color: #0b0c0f; background: #0b0c0f; color: #fff; }
.dmrz-download-source--proton_drive { border-color: #6d4aff; background: #6d4aff; color: #fff; }
.dmrz-download-source--proton_drive:hover { border-color: #5939dc; background: #5939dc; color: #fff; }
.dmrz-download-source--box { border-color: #0057ff; background: #0057ff; color: #fff; }
.dmrz-download-source--box:hover { border-color: #0045cc; background: #0045cc; color: #fff; }
.dmrz-download-source--custom,
.dmrz-download-source--mailru,
.dmrz-download-source--pcloud,
.dmrz-download-source--direct { border-color: var(--dmrz-accent); }
.dmrz-download-source--custom:hover,
.dmrz-download-source--mailru:hover,
.dmrz-download-source--pcloud:hover,
.dmrz-download-source--direct:hover { color: var(--dmrz-on-accent); background: var(--dmrz-accent); }
.dmrz-download-source[class*='dmrz-download-source--'] i:first-child { color: inherit; }
.dmrz-download-source.is-primary { box-shadow: inset 0 0 0 2px rgba(255,255,255,.2); }
/* 0.1.43 — Downloads media reliability fixes. */
.dmrz-download-product__media > .dmrz-auto-cover-image--featured,
.dmrz-download-product__media > .dmrz-auto-cover-image--preview { display: block; width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
@media (max-width: 900px) {
  .dmrz-download-product__media > .dmrz-auto-cover-image--featured,
  .dmrz-download-product__media > .dmrz-auto-cover-image--preview { min-height: 0; aspect-ratio: 16 / 8; }
}


/* 0.1.44 — Downloads breadcrumb/gallery reliability fixes. */
.dmrz-download-product__head > div > .dmrz-breadcrumbs { margin-bottom: 13px; }


/* 0.1.45 — Downloads archive category filters and compact cards. */
.dmrz-download-card__body > p { display: none; }

/* 0.1.47 — Downloads cards never render a short-description line. */
.dmrz-download-card .dmrz-auto-cover__description,
.dmrz-download-card__body > p,
.dmrz-download-card__excerpt { display: none !important; }


/* 0.1.48 — screenshot button and fullscreen gallery for Downloads. */
.dmrz-download-product__visual { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dmrz-download-screenshots-button {
  width: 100%; min-height: 50px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--dmrz-border-strong);
  border-radius: 0; background: var(--dmrz-surface); color: var(--dmrz-text); font: inherit;
  font-weight: 900; text-align: left; cursor: pointer;
}
.dmrz-download-screenshots-button i { color: var(--dmrz-accent); font-size: 1rem; }
.dmrz-download-screenshots-button strong { min-width: 28px; padding: 4px 7px; border: 1px solid var(--dmrz-border); color: var(--dmrz-text-soft); font-size: .72rem; text-align: center; }
.dmrz-download-screenshots-button:hover { border-color: var(--dmrz-accent); color: var(--dmrz-accent); }
.dmrz-screenshot-lightbox[hidden] { display: none !important; }
.dmrz-screenshot-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 24px; }
.dmrz-screenshot-lightbox__backdrop { position: absolute; inset: 0; background: rgba(5, 9, 14, .88); backdrop-filter: blur(6px); }
.dmrz-screenshot-lightbox__dialog { position: relative; z-index: 1; width: min(1500px, 96vw); height: min(920px, 94vh); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border: 1px solid var(--dmrz-border-strong); background: var(--dmrz-surface); box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.dmrz-screenshot-lightbox__head { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 16px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--dmrz-border); }
.dmrz-screenshot-lightbox__head strong { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.dmrz-screenshot-lightbox__head > span { color: var(--dmrz-text-soft); font-family: var(--dmrz-mono); font-size: .78rem; }
.dmrz-screenshot-lightbox__close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--dmrz-border); border-radius: 0; background: var(--dmrz-surface-2); color: var(--dmrz-text); cursor: pointer; }
.dmrz-screenshot-lightbox__stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: auto; padding: 28px 72px; background: var(--dmrz-surface-3); }
.dmrz-screenshot-lightbox__image-button { max-width: 100%; max-height: 100%; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.dmrz-screenshot-lightbox__image-button img { display: block; max-width: 100%; max-height: calc(94vh - 210px); width: auto; height: auto; object-fit: contain; }
.dmrz-screenshot-lightbox__image-button img.is-zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.dmrz-screenshot-lightbox__nav { position: absolute; top: 50%; width: 46px; height: 58px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid var(--dmrz-border-strong); border-radius: 0; background: var(--dmrz-surface); color: var(--dmrz-text); cursor: pointer; z-index: 2; }
.dmrz-screenshot-lightbox__nav.is-prev { left: 14px; }
.dmrz-screenshot-lightbox__nav.is-next { right: 14px; }
.dmrz-screenshot-lightbox__nav:hover,
.dmrz-screenshot-lightbox__close:hover { border-color: var(--dmrz-accent); color: var(--dmrz-accent); }
.dmrz-screenshot-lightbox__rail-wrap { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-screenshot-lightbox__rail { min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 160px); gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.dmrz-screenshot-lightbox__thumb { scroll-snap-align: start; padding: 0; border: 1px solid var(--dmrz-border); border-radius: 0; background: var(--dmrz-surface); cursor: pointer; }
.dmrz-screenshot-lightbox__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dmrz-screenshot-lightbox__thumb.is-active { border-color: var(--dmrz-accent); box-shadow: inset 0 0 0 1px var(--dmrz-accent); }
.dmrz-screenshot-lightbox__rail-nav { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--dmrz-border); border-radius: 0; background: var(--dmrz-surface); color: var(--dmrz-text); cursor: pointer; }
.dmrz-screenshot-lightbox__rail-nav:hover { border-color: var(--dmrz-accent); color: var(--dmrz-accent); }
@media (max-width: 720px) {
  .dmrz-screenshot-lightbox { padding: 0; }
  .dmrz-screenshot-lightbox__dialog { width: 100vw; height: 100dvh; border: 0; }
  .dmrz-screenshot-lightbox__stage { padding: 18px 52px; }
  .dmrz-screenshot-lightbox__image-button img { max-height: calc(100dvh - 190px); }
  .dmrz-screenshot-lightbox__nav { width: 38px; height: 50px; }
  .dmrz-screenshot-lightbox__nav.is-prev { left: 6px; }
  .dmrz-screenshot-lightbox__nav.is-next { right: 6px; }
  .dmrz-screenshot-lightbox__rail-wrap { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 5px; padding: 8px; }
  .dmrz-screenshot-lightbox__rail-nav { width: 32px; height: 36px; }
  .dmrz-screenshot-lightbox__rail { grid-auto-columns: 112px; }
}


/* 0.1.49 — unified cover/screenshots block + compact sticky downloads panel. */
.dmrz-download-product__hero { align-items: start; }
.dmrz-download-product__visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-download-product__visual .dmrz-download-product__media {
  border: 0;
}
.dmrz-download-product__visual .dmrz-download-product__media {
  border-bottom: 1px solid var(--dmrz-border);
}
.dmrz-download-product__visual .dmrz-download-screenshots-button {
  width: auto;
  min-width: 190px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 10px;
  margin: 12px auto;
  padding: 10px 18px;
  text-align: center;
}
.dmrz-download-product__visual .dmrz-download-screenshots-button strong {
  flex: 0 0 auto;
}
.dmrz-download-product__panel.is-compact {
  width: 100%;
  align-self: center;
  position: sticky;
  top: 92px;
}
.dmrz-download-product__panel.is-long {
  width: 100%;
  align-self: start;
  position: static;
}
@media (max-width: 900px) {
  .dmrz-download-product__panel.is-compact,
  .dmrz-download-product__panel.is-long {
    position: static;
    top: auto;
    align-self: stretch;
  }
  .dmrz-download-product__visual .dmrz-download-screenshots-button {
    min-width: min(240px, calc(100% - 24px));
  }
}


/* 0.1.50 — Downloads side panel: actions first, compact facts rows, no gap. */
.dmrz-download-product__panel { gap: 0; }
.dmrz-download-product__panel .dmrz-download-actions { border-bottom: 0; }
.dmrz-download-product__panel .dmrz-download-product__facts {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-download-product__panel .dmrz-download-product__facts > div {
  min-height: 66px;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 1px 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-download-product__panel .dmrz-download-product__facts > div:last-child { border-bottom: 0; }
.dmrz-download-product__panel .dmrz-download-product__facts i { width: 32px; height: 32px; }
.dmrz-download-product__panel .dmrz-download-product__facts span { font-size: .58rem; }
.dmrz-download-product__panel .dmrz-download-product__facts strong { font-size: .78rem; }
@media (max-width: 900px) {
  .dmrz-download-product__panel .dmrz-download-product__facts > div { min-height: 62px; }
}


/* 0.1.51 — top-aligned sticky panel + external mirrors overlay. */
.dmrz-download-product__panel.is-sticky {
  width: 100%;
  align-self: start;
  position: sticky;
  top: 92px;
}
.dmrz-download-source--mirrors-trigger {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  border-color: var(--dmrz-border-strong);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
  cursor: pointer;
}
.dmrz-download-source--mirrors-trigger i:first-child { color: var(--dmrz-accent); }
.dmrz-download-source--mirrors-trigger strong {
  min-width: 26px;
  min-height: 26px;
  display: grid;
  place-items: center;
  padding: 2px 6px;
  border: 1px solid currentColor;
  font-size: .68rem;
  line-height: 1;
}
.dmrz-download-source--mirrors-trigger:hover {
  border-color: var(--dmrz-accent);
  background: var(--dmrz-surface);
  color: var(--dmrz-accent);
}
.dmrz-download-source--mirrors-trigger.is-primary,
.dmrz-download-source--mirrors-trigger.is-primary:hover {
  border-color: var(--dmrz-accent);
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
}
.dmrz-download-source--mirrors-trigger.is-primary i:first-child { color: inherit; }
.dmrz-mirrors-modal__dialog { width: min(560px, 100%); }
.dmrz-mirrors-modal__sources {
  display: grid;
  gap: 10px;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  margin-top: 18px;
  padding-right: 2px;
  text-align: left;
}
.dmrz-mirrors-modal__source { margin-top: 0; }
button.dmrz-mirrors-modal__source { grid-template-columns: 30px minmax(0, 1fr) 24px; appearance: none; font: inherit; cursor: pointer; }
.dmrz-mirrors-modal__source span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .dmrz-download-product__panel.is-sticky {
    position: static;
    top: auto;
    align-self: stretch;
  }
}


/* 0.1.52 — one-line Mirrors button and external-source warnings. */
.dmrz-download-source--mirrors-trigger {
  min-height: 52px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
}
.dmrz-download-source--mirrors-trigger span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dmrz-download-source--mirrors-trigger strong { display: none; }
.dmrz-download-external-warning {
  width: 100%;
  height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-soft);
}
.dmrz-download-external-warning i {
  width: 30px;
  display: grid;
  place-items: center;
  color: var(--dmrz-warning, #d97706);
}
.dmrz-download-external-warning span {
  min-width: 0;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.25;
}
.dmrz-mirrors-modal__warning {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-soft);
  text-align: left;
}
.dmrz-mirrors-modal__warning i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--dmrz-warning, #d97706);
}
.dmrz-mirrors-modal__warning span {
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.45;
}
@media (max-width: 520px) {
  .dmrz-download-external-warning {
    height: auto;
    min-height: 52px;
  }
}


/* 0.1.53 — five compact facts and exact initial-height alignment with the cover block. */
.dmrz-download-product__hero { align-items: stretch; }
.dmrz-download-product__visual { height: 100%; }
.dmrz-download-product__panel.is-sticky {
  min-height: 100%;
  height: 100%;
  align-self: stretch;
}
.dmrz-download-product__panel .dmrz-download-actions { flex: 0 0 auto; }
.dmrz-download-product__panel .dmrz-download-product__facts {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.dmrz-download-product__panel .dmrz-download-product__facts > div {
  flex: 1 1 0;
  min-height: 58px;
}
@media (max-width: 900px) {
  .dmrz-download-product__visual { height: auto; }
  .dmrz-download-product__panel.is-sticky {
    min-height: 0;
    height: auto;
    align-self: stretch;
  }
  .dmrz-download-product__panel .dmrz-download-product__facts { display: grid; }
  .dmrz-download-product__panel .dmrz-download-product__facts > div { min-height: 62px; }
}


/* 0.1.54 — screenshot trigger remains available even without screenshots. */
.dmrz-download-screenshots-button.is-empty strong { color: var(--dmrz-text-faint); }
.dmrz-screenshot-lightbox.is-empty .dmrz-screenshot-lightbox__dialog {
  width: min(620px, 94vw);
  height: auto;
  min-height: 310px;
  grid-template-rows: auto minmax(0, 1fr);
}
.dmrz-screenshot-lightbox__empty-state {
  min-height: 250px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px;
  text-align: center;
  background: var(--dmrz-surface-3);
}
.dmrz-screenshot-lightbox__empty-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-border-strong);
  color: var(--dmrz-accent);
  background: var(--dmrz-surface);
  font-size: 1.6rem;
}
.dmrz-screenshot-lightbox__empty-state h2 { margin: 4px 0 0; font-size: 1.15rem; text-transform: uppercase; }
.dmrz-screenshot-lightbox__empty-state p { max-width: 420px; margin: 0; color: var(--dmrz-text-soft); line-height: 1.6; }
@media (max-width: 720px) {
  .dmrz-screenshot-lightbox.is-empty .dmrz-screenshot-lightbox__dialog { width: 100vw; min-height: 100dvh; }
  .dmrz-screenshot-lightbox__empty-state { min-height: calc(100dvh - 58px); padding: 28px; }
}


/* 0.1.57 — Downloads card cover is fully contained, never cropped or stretched. */
.dmrz-download-card__media {
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 16px;
  background-color: var(--dmrz-header);
  background-image:
    linear-gradient(var(--dmrz-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--dmrz-border) 1px, transparent 1px);
  background-size: 44px 44px;
}
.dmrz-download-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,.04);
  pointer-events: none;
}
.dmrz-download-card__cover-image,
.dmrz-download-card__media > img.dmrz-download-card__cover-image {
  position: relative;
  z-index: 1;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
.dmrz-download-card__media.has-cover { box-sizing: border-box; }
.dmrz-download-card__media.has-no-cover { padding: 0; }
.dmrz-download-card__placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: var(--dmrz-header-soft);
  text-align: center;
  background: transparent;
}
.dmrz-download-card__placeholder i {
  color: var(--dmrz-accent);
  font-size: 2.5rem;
}
.dmrz-download-card__placeholder strong {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
}


/* 0.1.58 — Downloads covers fit by height first and remain fully visible on single pages and cards. */
.dmrz-download-product__media {
  display: grid;
  place-items: center;
  padding: 16px;
  background-color: var(--dmrz-header);
}
.dmrz-download-product__media > img,
.dmrz-download-product__media > .dmrz-auto-cover,
.dmrz-download-product__media > .dmrz-auto-cover-image--featured,
.dmrz-download-product__media > .dmrz-auto-cover-image--preview {
  display: block;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.dmrz-download-card__cover-image,
.dmrz-download-card__media > img.dmrz-download-card__cover-image {
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}


/* 0.1.59 — restore compact custom cover rendering in Downloads archive cards only. */
.dmrz-download-card__cover-image,
.dmrz-download-card__media > img.dmrz-download-card__cover-image {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}


/* 0.1.60 — fixed single-download cover viewport; the image never changes its geometry. */
.dmrz-download-product__visual .dmrz-download-product__media {
  box-sizing: border-box;
  flex: 0 0 590px;
  width: 100%;
  height: 590px;
  min-height: 590px;
  max-height: 590px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
}
.dmrz-download-product__visual .dmrz-download-product__media > img,
.dmrz-download-product__visual .dmrz-download-product__media > .dmrz-auto-cover-image--featured,
.dmrz-download-product__visual .dmrz-download-product__media > .dmrz-auto-cover-image--preview {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
@media (max-width: 900px) {
  .dmrz-download-product__visual .dmrz-download-product__media {
    flex-basis: 360px;
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }
}


/* 0.1.61 — shrink the single-download custom cover inside the fixed viewport. */
.dmrz-download-product__visual .dmrz-download-product__media {
  padding: 56px 64px;
}
.dmrz-download-product__visual .dmrz-download-product__media > img,
.dmrz-download-product__visual .dmrz-download-product__media > .dmrz-auto-cover-image--featured,
.dmrz-download-product__visual .dmrz-download-product__media > .dmrz-auto-cover-image--preview {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 900px) {
  .dmrz-download-product__visual .dmrz-download-product__media {
    padding: 28px 32px;
  }
}


/* 0.1.62 — single Downloads visual follows the right panel height; no fixed cover height. */
.dmrz-download-product__hero {
  align-items: stretch;
}
.dmrz-download-product__visual {
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.dmrz-download-product__panel.is-sticky,
.dmrz-download-product__panel.is-compact,
.dmrz-download-product__panel.is-long {
  height: auto !important;
  min-height: 0 !important;
  align-self: stretch;
}
.dmrz-download-product__visual .dmrz-download-product__media {
  position: relative;
  box-sizing: border-box;
  flex: none !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden;
}
.dmrz-download-product__visual .dmrz-download-product__media > img,
.dmrz-download-product__visual .dmrz-download-product__media > .dmrz-auto-cover-image--featured,
.dmrz-download-product__visual .dmrz-download-product__media > .dmrz-auto-cover-image--preview {
  position: absolute;
  inset: 16px;
  display: block;
  width: calc(100% - 32px) !important;
  height: calc(100% - 32px) !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
/* Keep archive cards at their existing fixed pseudo-image geometry; only fit the image inside it. */
.dmrz-download-card__media.has-cover {
  position: relative;
  padding: 0 !important;
}
.dmrz-download-card__media.has-cover > img.dmrz-download-card__cover-image {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px) !important;
  height: calc(100% - 32px) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
@media (max-width: 900px) {
  .dmrz-download-product__hero { align-items: start; }
  .dmrz-download-product__visual {
    height: auto !important;
    display: flex;
  }
  .dmrz-download-product__visual .dmrz-download-product__media {
    position: relative;
    aspect-ratio: 16 / 8;
    min-height: 0 !important;
  }
  .dmrz-download-product__panel.is-sticky,
  .dmrz-download-product__panel.is-compact,
  .dmrz-download-product__panel.is-long {
    height: auto !important;
    min-height: 0 !important;
  }
}


/* 0.1.63 — unified visible placeholder block when a Downloads cover is absent. */
.dmrz-download-cover-placeholder,
.dmrz-download-card__placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
  color: var(--dmrz-text-soft);
  text-align: center;
}
.dmrz-download-cover-placeholder__box {
  width: min(360px, 78%);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 28px;
  border: 1px solid var(--dmrz-border-strong);
  background: color-mix(in srgb, var(--dmrz-surface) 88%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.dmrz-download-cover-placeholder__box i {
  color: var(--dmrz-accent);
  font-size: 2.6rem;
}
.dmrz-download-cover-placeholder__box strong {
  color: var(--dmrz-text-soft);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: 1.35;
  text-transform: uppercase;
}
.dmrz-download-card__placeholder .dmrz-download-cover-placeholder__box {
  width: min(280px, 82%);
  min-height: 112px;
  padding: 18px 22px;
}
.dmrz-download-card__placeholder .dmrz-download-cover-placeholder__box i {
  font-size: 2.25rem;
}
.dmrz-download-card__placeholder .dmrz-download-cover-placeholder__box strong {
  font-size: .72rem;
}
@media (max-width: 720px) {
  .dmrz-download-cover-placeholder,
  .dmrz-download-card__placeholder { padding: 16px; }
  .dmrz-download-cover-placeholder__box { width: min(320px, 88%); min-height: 128px; padding: 20px; }
}


/* 0.1.65 — unified Downloads overlays + compatibility overlay. */
.dmrz-download-product__fact-interactive {
  cursor: pointer;
  transition: background-color .16s ease, box-shadow .16s ease;
}
.dmrz-download-product__fact-interactive:hover,
.dmrz-download-product__fact-interactive:focus-visible {
  background: var(--dmrz-surface-2) !important;
  box-shadow: inset 3px 0 0 var(--dmrz-accent);
  outline: none;
}

/* Screenshot overlay is the visual baseline for every Downloads overlay. */
.dmrz-download-modal,
.dmrz-screenshot-lightbox {
  z-index: 100000;
  padding: 24px;
}
.dmrz-download-modal__backdrop,
.dmrz-screenshot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 14, .88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dmrz-download-modal__dialog,
.dmrz-screenshot-lightbox__dialog {
  border: 1px solid var(--dmrz-border-strong);
  border-top-width: 1px;
  background: var(--dmrz-surface);
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
.dmrz-download-modal__close,
.dmrz-screenshot-lightbox__close {
  border: 1px solid var(--dmrz-border);
  border-radius: 0;
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text);
  cursor: pointer;
}
.dmrz-download-modal__close:hover,
.dmrz-download-modal__close:focus-visible,
.dmrz-screenshot-lightbox__close:hover,
.dmrz-screenshot-lightbox__close:focus-visible {
  border-color: var(--dmrz-accent);
  color: var(--dmrz-accent);
  outline: none;
}

.dmrz-compatibility-lightbox__dialog {
  width: min(920px, 96vw);
  height: auto;
  max-height: min(820px, 92vh);
  grid-template-rows: auto minmax(0, 1fr);
}
.dmrz-compatibility-lightbox__body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background: var(--dmrz-surface-3);
}
.dmrz-compatibility-lightbox__list {
  display: grid;
  gap: 10px;
}
.dmrz-compatibility-lightbox__item {
  display: grid;
  grid-template-columns: 48px minmax(150px, 1.1fr) minmax(150px, 1fr) minmax(130px, .8fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-compatibility-lightbox__item > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.dmrz-compatibility-lightbox__item small {
  color: var(--dmrz-text-faint);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dmrz-compatibility-lightbox__item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dmrz-compatibility-lightbox__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-border);
  color: var(--dmrz-accent);
  font-size: 1rem;
}
.dmrz-compatibility-lightbox__empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}
.dmrz-compatibility-lightbox__empty > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-accent);
  color: var(--dmrz-accent);
  font-size: 1.35rem;
}
.dmrz-compatibility-lightbox__empty strong {
  font-size: 1rem;
  text-transform: uppercase;
}
.dmrz-compatibility-lightbox__empty p {
  max-width: 480px;
  margin: 0;
  color: var(--dmrz-text-soft);
}

@media (max-width: 720px) {
  .dmrz-download-modal,
  .dmrz-screenshot-lightbox { padding: 0; }
  .dmrz-download-modal__dialog,
  .dmrz-compatibility-lightbox__dialog { width: 100vw; max-width: none; min-height: 100dvh; max-height: 100dvh; border: 0; }
  .dmrz-compatibility-lightbox__item { grid-template-columns: 42px minmax(0, 1fr); }
  .dmrz-compatibility-lightbox__item > div:not(.dmrz-compatibility-lightbox__system) { grid-column: 2; }
  .dmrz-compatibility-lightbox__body { padding: 12px; }
}


/* 0.1.67 — local-server notice when no external sources are configured. */
.dmrz-download-server-notice {
  width: 100%;
  height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-soft);
}
.dmrz-download-server-notice i {
  width: 30px;
  display: grid;
  place-items: center;
  color: var(--dmrz-accent);
}
.dmrz-download-server-notice span {
  min-width: 0;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
}


/* 0.1.68 — version patch-note overlay + accordion release history. */
.dmrz-version-lightbox__dialog {
  width: min(820px, 96vw);
  height: auto;
  max-height: min(820px, 92vh);
  grid-template-rows: auto minmax(0, 1fr);
}
.dmrz-version-lightbox__body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background: var(--dmrz-surface-3);
}
.dmrz-version-lightbox__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-border);
}
.dmrz-version-lightbox__meta > span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  background: var(--dmrz-surface);
}
.dmrz-version-lightbox__meta small {
  color: var(--dmrz-text-faint);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dmrz-version-lightbox__patchnotes {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-version-lightbox__patchnotes h2 {
  margin: 0 0 12px;
  font-size: .86rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.dmrz-version-lightbox__patchnotes > div {
  color: var(--dmrz-text-soft);
  line-height: 1.7;
}
.dmrz-version-lightbox__empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}
.dmrz-version-lightbox__empty > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-accent);
  color: var(--dmrz-accent);
  font-size: 1.35rem;
}
.dmrz-version-lightbox__empty strong { font-size: 1rem; text-transform: uppercase; }
.dmrz-version-lightbox__empty p { max-width: 480px; margin: 0; color: var(--dmrz-text-soft); }

.dmrz-download-history {
  display: grid;
  gap: 8px;
  border: 0;
  background: transparent;
}
.dmrz-download-history__item {
  display: block;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-download-history__item.is-current { box-shadow: inset 3px 0 0 var(--dmrz-accent); }
.dmrz-download-history__summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, .6fr) minmax(120px, .6fr) 28px;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  background: var(--dmrz-surface-2);
  cursor: pointer;
}
.dmrz-download-history__summary::-webkit-details-marker { display: none; }
.dmrz-download-history__summary > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.dmrz-download-history__summary small {
  color: var(--dmrz-text-faint);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.dmrz-download-history__summary time { color: var(--dmrz-text-soft); font-size: .76rem; }
.dmrz-download-history__chevron {
  justify-self: end;
  color: var(--dmrz-text-faint);
  transition: transform .18s ease, color .18s ease;
}
.dmrz-download-history__item[open] .dmrz-download-history__chevron {
  transform: rotate(180deg);
  color: var(--dmrz-accent);
}
.dmrz-download-history__item[open] .dmrz-download-history__summary {
  border-bottom: 1px solid var(--dmrz-border);
}
.dmrz-download-history__body {
  padding: 16px 18px;
}

@media (max-width: 720px) {
  .dmrz-version-lightbox__dialog { width: 100vw; max-width: none; min-height: 100dvh; max-height: 100dvh; border: 0; }
  .dmrz-version-lightbox__meta { grid-template-columns: 1fr; }
  .dmrz-version-lightbox__body { padding: 12px; }
  .dmrz-download-history__summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px 12px;
  }
  .dmrz-download-history__summary > span { grid-column: 1; }
  .dmrz-download-history__chevron { grid-column: 2; grid-row: 1 / 4; align-self: center; }
}


/* 0.1.69 — keep the last release accordion item fully framed in both states. */
.dmrz-download-history > .dmrz-download-history__item:last-child {
  border-bottom: 1px solid var(--dmrz-border);
}
.dmrz-download-history > .dmrz-download-history__item:last-child[open] {
  border-bottom: 1px solid var(--dmrz-border);
}


/* 0.1.70 — archived local release file metadata in history. */
.dmrz-download-history__file-meta { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); color: var(--dmrz-text-soft); font-size: .7rem; }
.dmrz-download-history__file-meta b { color: var(--dmrz-text); font-weight: 800; }
.dmrz-download-history__file-meta code { padding: 2px 4px; background: var(--dmrz-surface-3); color: var(--dmrz-text-faint); font-size: .62rem; }


/* 0.1.71 — local file metadata belongs to the download dialog, not version history. */
.dmrz-download-modal__file-info {
  width: min(620px, 100%);
  display: grid;
  margin: 16px auto 18px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-download-modal__file-info[hidden] { display: none !important; }
.dmrz-download-modal__file-info > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--dmrz-border);
  text-align: left;
}
.dmrz-download-modal__file-info > div:last-child { border-bottom: 0; }
.dmrz-download-modal__file-info > div > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--dmrz-accent);
}
.dmrz-download-modal__file-info > div > span { min-width: 0; display: grid; gap: 3px; }
.dmrz-download-modal__file-info small { color: var(--dmrz-text-faint); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dmrz-download-modal__file-info strong,
.dmrz-download-modal__file-info code { min-width: 0; overflow-wrap: anywhere; color: var(--dmrz-text); }
.dmrz-download-modal__file-info code { font-size: .72rem; }


/* 0.1.72 — unavailable download state when no sources exist. */
.dmrz-download-source--unavailable,
.dmrz-download-source--unavailable:hover {
  border-color: var(--dmrz-border-strong);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-faint);
  cursor: not-allowed;
  opacity: .72;
}
.dmrz-download-source--unavailable i:first-child { color: inherit; }
.dmrz-download-unavailable-notice {
  width: 100%;
  height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-soft);
}
.dmrz-download-unavailable-notice i {
  width: 30px;
  display: grid;
  place-items: center;
  color: var(--dmrz-warning, #d97706);
}
.dmrz-download-unavailable-notice span {
  min-width: 0;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
}


/* 0.1.74 — hierarchical Downloads catalog and horizontal file cards. */
.dmrz-download-catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.dmrz-download-catalog-sidebar {
  position: sticky;
  top: 92px;
  min-width: 0;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-download-catalog-sidebar__head {
  min-height: 70px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-download-catalog-sidebar__head > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-border-strong);
  color: var(--dmrz-accent);
}
.dmrz-download-catalog-sidebar__head div { min-width: 0; display: grid; gap: 2px; }
.dmrz-download-catalog-sidebar__head strong { font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-download-catalog-sidebar__head span { color: var(--dmrz-text-faint); font-size: .7rem; }
.dmrz-download-category-tree { min-width: 0; }
.dmrz-download-category-tree__all,
.dmrz-download-category-tree__level a {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  color: var(--dmrz-text);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .025em;
  text-decoration: none;
  text-transform: uppercase;
}
.dmrz-download-category-tree__all strong,
.dmrz-download-category-tree__count {
  min-width: 28px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--dmrz-border);
  color: var(--dmrz-text-soft);
  background: var(--dmrz-surface-2);
  font-size: .68rem;
  font-weight: 900;
}
.dmrz-download-category-tree__level { margin: 0; padding: 0; list-style: none; }
.dmrz-download-category-tree__level .dmrz-download-category-tree__level {
  margin: 0 0 0 15px;
  border-left: 2px solid var(--dmrz-border);
}
.dmrz-download-category-tree__level .dmrz-download-category-tree__level a {
  min-height: 44px;
  padding-left: 14px;
  font-size: .71rem;
  background: var(--dmrz-surface-2);
}
.dmrz-download-category-tree__item:last-child > a,
.dmrz-download-category-tree__level:last-child > .dmrz-download-category-tree__item:last-child > a { border-bottom-color: var(--dmrz-border); }
.dmrz-download-category-tree__all:hover,
.dmrz-download-category-tree__level a:hover,
.dmrz-download-category-tree__item.is-ancestor > a {
  border-color: var(--dmrz-accent-border);
  color: var(--dmrz-accent);
}
.dmrz-download-category-tree__all.is-active,
.dmrz-download-category-tree__item.is-active > a {
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
  border-color: var(--dmrz-accent);
}
.dmrz-download-category-tree__all.is-active strong,
.dmrz-download-category-tree__item.is-active > a .dmrz-download-category-tree__count {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}
.dmrz-download-catalog-results { min-width: 0; }
.dmrz-download-catalog-results__head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-download-catalog-results__head > div { min-width: 0; display: grid; gap: 2px; }
.dmrz-download-catalog-results__head > div span { color: var(--dmrz-text-faint); font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.dmrz-download-catalog-results__head > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmrz-download-catalog-results__head > span { color: var(--dmrz-text-soft); font-size: .72rem; font-weight: 800; }

.dmrz-download-grid.dmrz-download-grid--horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.dmrz-download-card.dmrz-download-card--horizontal {
  min-width: 0;
  min-height: 214px;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr) 190px;
  grid-template-rows: 1fr;
  overflow: hidden;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
  box-shadow: none;
}
.dmrz-download-card--horizontal .dmrz-download-card__media-link {
  min-width: 0;
  min-height: 214px;
  display: block;
  border-right: 1px solid var(--dmrz-border);
  background: var(--dmrz-header);
  text-decoration: none;
}
.dmrz-download-card--horizontal .dmrz-download-card__media {
  width: 100%;
  height: 100%;
  min-height: 214px;
  aspect-ratio: auto;
  border: 0;
}
.dmrz-download-card--horizontal .dmrz-download-card__media.has-cover > img.dmrz-download-card__cover-image {
  inset: 14px;
  width: calc(100% - 28px) !important;
  height: calc(100% - 28px) !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.dmrz-download-card--horizontal .dmrz-download-card__placeholder { padding: 14px; }
.dmrz-download-card--horizontal .dmrz-download-card__placeholder .dmrz-download-cover-placeholder__box {
  width: min(220px, 88%);
  min-height: 104px;
  padding: 16px 18px;
}
.dmrz-download-card__content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--dmrz-surface);
}
.dmrz-download-card__info-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--dmrz-border);
}
.dmrz-download-card__info-row:last-child { border-bottom: 0; }
.dmrz-download-card__info-row--title { min-height: 68px; }
.dmrz-download-card__info-row--description { min-height: 82px; align-items: start; }
.dmrz-download-card__info-row--date { min-height: 58px; }
.dmrz-download-card__row-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-border);
  color: var(--dmrz-accent);
  background: var(--dmrz-surface-2);
}
.dmrz-download-card__info-row > div { min-width: 0; display: grid; gap: 4px; }
.dmrz-download-card__info-row small,
.dmrz-download-card__version-block span {
  color: var(--dmrz-text-faint);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.dmrz-download-card--horizontal h2 { margin: 0; font-size: 1.12rem; line-height: 1.25; }
.dmrz-download-card--horizontal h2 a { color: var(--dmrz-text); text-decoration: none; }
.dmrz-download-card--horizontal h2 a:hover { color: var(--dmrz-accent); }
.dmrz-download-card__info-row p {
  display: -webkit-box !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  color: var(--dmrz-text-soft);
  font-size: .82rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dmrz-download-card__info-row time { color: var(--dmrz-text); font-size: .82rem; font-weight: 800; }
.dmrz-download-card__action-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  border-left: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-download-card__version-block {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 18px 14px;
  text-align: center;
}
.dmrz-download-card__version-block > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--dmrz-border);
  color: var(--dmrz-accent);
  background: var(--dmrz-surface);
}
.dmrz-download-card__version-block strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--dmrz-text);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dmrz-download-card__open {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--dmrz-border);
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}
.dmrz-download-card__open:hover { background: var(--dmrz-accent-hover); color: var(--dmrz-on-accent); }

@media (max-width: 1050px) {
  .dmrz-download-catalog-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
  .dmrz-download-card.dmrz-download-card--horizontal { grid-template-columns: 230px minmax(0, 1fr) 160px; }
}
@media (max-width: 900px) {
  .dmrz-download-catalog-layout { grid-template-columns: 1fr; }
  .dmrz-download-catalog-sidebar { position: static; top: auto; }
  .dmrz-download-category-tree__level--0 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmrz-download-category-tree__level .dmrz-download-category-tree__level { grid-column: 1 / -1; }
  .dmrz-download-card.dmrz-download-card--horizontal { grid-template-columns: 220px minmax(0, 1fr) 150px; }
}
@media (max-width: 720px) {
  .dmrz-download-category-tree__level--0 { grid-template-columns: 1fr; }
  .dmrz-download-card.dmrz-download-card--horizontal { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .dmrz-download-card--horizontal .dmrz-download-card__media-link { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--dmrz-border); }
  .dmrz-download-card--horizontal .dmrz-download-card__media { min-height: 200px; }
  .dmrz-download-card__action-panel { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; border-left: 0; border-top: 1px solid var(--dmrz-border); }
  .dmrz-download-card__version-block { min-height: 70px; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; place-items: initial; align-items: center; gap: 2px 10px; text-align: left; }
  .dmrz-download-card__version-block > i { width: 36px; height: 36px; grid-row: 1 / 3; }
  .dmrz-download-card__open { min-height: 70px; border-top: 0; border-left: 1px solid var(--dmrz-border); }
}


/* 0.1.75 — Downloads catalog sorting and aligned horizontal card actions. */
.dmrz-download-sortbar {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 14px;
  border: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface);
}
.dmrz-download-sortbar__label {
  min-width: 132px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-right: 1px solid var(--dmrz-border);
  color: var(--dmrz-text-soft);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dmrz-download-sortbar__label i { color: var(--dmrz-accent); }
.dmrz-download-sortbar__options {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--dmrz-border);
}
.dmrz-download-sortbar__options a {
  min-width: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-soft);
  font-size: .72rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}
.dmrz-download-sortbar__options a i { color: var(--dmrz-accent); }
.dmrz-download-sortbar__options a:hover { background: var(--dmrz-surface); color: var(--dmrz-accent); }
.dmrz-download-sortbar__options a.is-active {
  background: var(--dmrz-accent);
  color: var(--dmrz-on-accent);
}
.dmrz-download-sortbar__options a.is-active i { color: inherit; }

.dmrz-download-card.dmrz-download-card--horizontal { min-height: 222px; }
.dmrz-download-card__content { grid-template-rows: auto minmax(82px, 1fr) 72px; }
.dmrz-download-card__info-row--date { min-height: 72px; }
.dmrz-download-card__action-panel { grid-template-rows: minmax(0, 1fr) 72px; }
.dmrz-download-card__open {
  min-height: 72px;
  padding: 14px 16px;
  font-size: .88rem;
  letter-spacing: .055em;
}
.dmrz-download-card__open i { font-size: 1.05rem; }

@media (max-width: 900px) {
  .dmrz-download-sortbar { grid-template-columns: 1fr; }
  .dmrz-download-sortbar__label { min-width: 0; min-height: 44px; border-right: 0; border-bottom: 1px solid var(--dmrz-border); }
}
@media (max-width: 720px) {
  .dmrz-download-sortbar__options { grid-template-columns: 1fr; }
  .dmrz-download-sortbar__options a { justify-content: flex-start; min-height: 48px; }
  .dmrz-download-card__content { grid-template-rows: auto minmax(82px, 1fr) 72px; }
  .dmrz-download-card__action-panel { grid-template-rows: 1fr; }
  .dmrz-download-card__open { min-height: 72px; }
}


/* 0.1.76 — Articles/header/footer cleanup. */
.dmrz-icon-button > i {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.dmrz-site-footer {
  border-top: 4px solid var(--dmrz-accent);
  background: var(--dmrz-header);
  color: var(--dmrz-header-soft);
}
.dmrz-footer-grid {
  display: grid;
  grid-template-columns: repeat(var(--dmrz-footer-columns, 3), minmax(0, 1fr));
  gap: 0;
  padding: 36px 0 30px;
}
.dmrz-footer-column {
  min-width: 0;
  padding: 4px 26px 10px;
  border-left: 1px solid rgba(255,255,255,.10);
}
.dmrz-footer-column:last-child { border-right: 0; }
.dmrz-footer-grid--4 .dmrz-footer-column:last-child { border-right: 1px solid rgba(255,255,255,.10); }
.dmrz-footer-column--brand { padding-left: 0; border-left: 0; }
.dmrz-footer-column:last-child { padding-right: 0; }
.dmrz-footer-brand {
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.dmrz-footer-copy {
  max-width: 42ch;
  margin: 0;
  color: var(--dmrz-header-soft);
  font-size: .82rem;
  line-height: 1.7;
}
.dmrz-footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.dmrz-footer-menu li { border-bottom: 1px solid rgba(255,255,255,.08); }
.dmrz-footer-menu li:last-child { border-bottom: 0; }
.dmrz-footer-menu a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 0;
  color: var(--dmrz-header-soft);
  text-decoration: none;
}
.dmrz-footer-menu a:hover { color: #fff; }
.dmrz-footer-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--dmrz-header-soft);
  font-size: .75rem;
}
.dmrz-footer-bottom--1 { grid-template-columns: 1fr; }
.dmrz-footer-bottom--2 > span:last-child { text-align: right; }
@media (max-width: 980px) {
  .dmrz-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmrz-footer-column,
  .dmrz-footer-column--brand,
  .dmrz-footer-column:last-child {
    padding: 20px;
    border: 1px solid rgba(255,255,255,.10);
    border-right: 1px solid rgba(255,255,255,.10);
  }
}
@media (max-width: 640px) {
  .dmrz-footer-grid { grid-template-columns: 1fr; padding-top: 24px; }
  .dmrz-footer-column,
  .dmrz-footer-column--brand,
  .dmrz-footer-column:last-child { padding: 18px 0; border-width: 0 0 1px; }
  .dmrz-footer-bottom,
  .dmrz-footer-bottom--2 { grid-template-columns: 1fr; gap: 8px; }
  .dmrz-footer-bottom--2 > span:last-child { text-align: left; }
}


/* 0.1.77 — sidebar sort selector + stable two-line Downloads excerpts. */
.dmrz-download-sort-select {
  margin: 0;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-download-sort-select label { display: grid; gap: 8px; }
.dmrz-download-sort-select__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dmrz-text-faint);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.dmrz-download-sort-select__label i { color: var(--dmrz-accent); }
.dmrz-download-sort-select__control { position: relative; display: block; }
.dmrz-download-sort-select__control select {
  width: 100%;
  min-height: 44px;
  padding: 9px 38px 9px 12px;
  appearance: none;
  border: 1px solid var(--dmrz-border-strong);
  border-radius: 0;
  background: var(--dmrz-surface);
  color: var(--dmrz-text);
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}
.dmrz-download-sort-select__control > i {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: var(--dmrz-accent);
  pointer-events: none;
}
.dmrz-download-card__info-row--description p {
  height: 2.46rem !important;
  min-height: 2.46rem !important;
  max-height: 2.46rem !important;
  line-height: 1.23rem !important;
}


/* 0.1.78 — Downloads sidebar sorter position. */
.dmrz-download-catalog-sidebar > .dmrz-download-sort-select {
  margin: 0;
  padding: 14px 16px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-bottom: 1px solid var(--dmrz-border);
  background: var(--dmrz-surface-2);
}
.dmrz-download-catalog-sidebar > .dmrz-download-sort-select + .dmrz-download-category-tree { border-top: 0; }


/* 0.1.80 — service icons use one optical scale on compact headers. */
.dmrz-header-actions .dmrz-icon-button > i {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  transform: none;
}
@media (max-width: 900px) {
  .dmrz-header-actions .dmrz-icon-button > i { width: 15px; height: 15px; font-size: 15px; line-height: 15px; }
}


/* 0.1.81 — editable footer text/link columns and conditional outer divider. */
.dmrz-footer-text-item {
  display: block;
  min-height: 36px;
  padding: 8px 0;
  color: var(--dmrz-header-soft);
  line-height: 1.45;
}
@media (min-width: 981px) {
  .dmrz-footer-grid--2 .dmrz-footer-column:last-child,
  .dmrz-footer-grid--3 .dmrz-footer-column:last-child { border-right: 0; }
  .dmrz-footer-grid--4 .dmrz-footer-column:last-child { border-right: 1px solid rgba(255,255,255,.10); }
}


/* 0.1.82 — compact profile glyph matches the other header service icons. */
.dmrz-header-actions .dmrz-profile-link > i {
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
  line-height: 14px !important;
}
@media (max-width: 900px) {
  .dmrz-header-actions .dmrz-profile-link > i {
    width: 13px !important;
    height: 13px !important;
    font-size: 13px !important;
    line-height: 13px !important;
  }
}


/* 0.1.83 — DMR-Zone legal pages. */
.dmrz-legal-page { max-width: 1120px; margin: 0 auto; }
.dmrz-legal-updated {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--dmrz-border);
  border-left: 4px solid var(--dmrz-accent);
  background: var(--dmrz-surface-2);
}
.dmrz-legal-updated__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border: 1px solid var(--dmrz-border-strong);
  color: var(--dmrz-accent);
}
.dmrz-legal-updated > span:last-child { display: grid; gap: 3px; }
.dmrz-legal-updated small {
  color: var(--dmrz-text-faint);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dmrz-legal-updated strong { color: var(--dmrz-text); }
.dmrz-legal-document { max-width: 960px; }
.dmrz-legal-document > p:first-child { font-size: 1.02rem; }
.dmrz-legal-document h2 { margin-top: 2em; font-size: 1.15rem; text-transform: none; }
.dmrz-legal-document ul { padding-left: 1.35em; }
.dmrz-legal-document li + li { margin-top: .38em; }
.dmrz-footer-menu--legal { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dmrz-border); }
@media (max-width: 720px) {
  .dmrz-legal-updated { align-items: flex-start; }
  .dmrz-legal-content { padding-inline: 0; }
}

/* 0.1.87 — unified front-end login / registration. */
.dmrz-auth-shell { max-width: 1320px; }
.dmrz-auth-card { margin: 24px 0 48px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); box-shadow: var(--dmrz-shadow); }
.dmrz-auth-card__head { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 18px; align-items: center; padding: 24px; border-bottom: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-auth-card__head h1 { margin: 3px 0 6px; }
.dmrz-auth-card__head p:last-child { margin: 0; color: var(--dmrz-text-soft); }
.dmrz-auth-card__icon { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--dmrz-accent); color: var(--dmrz-accent); font-size: 1.3rem; }
.dmrz-auth-columns { display: grid; grid-template-columns: minmax(0,.86fr) 72px minmax(0,1.14fr); align-items: stretch; }
.dmrz-auth-pane { min-width: 0; padding: 26px; }
.dmrz-auth-pane__head { min-height: 70px; display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 14px; align-items: center; margin-bottom: 20px; }
.dmrz-auth-pane__head h2 { margin: 0; font-size: 1.15rem; text-transform: uppercase; }
.dmrz-auth-pane__head p { margin: 4px 0 0; color: var(--dmrz-text-soft); font-size: .9rem; }
.dmrz-auth-pane__icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--dmrz-border-strong); color: var(--dmrz-accent); }
.dmrz-auth-divider { position: relative; min-height: 100%; display: grid; place-items: center; }
.dmrz-auth-divider::before { content: ""; position: absolute; top: 26px; bottom: 26px; left: 50%; width: 1px; background: var(--dmrz-border); transform: translateX(-50%); }
.dmrz-auth-divider span { position: relative; z-index: 1; min-width: 46px; min-height: 34px; display: grid; place-items: center; padding: 6px 9px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface); color: var(--dmrz-text-faint); font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.dmrz-auth-form { display: grid; gap: 18px; }
.dmrz-auth-form--login { max-width: 520px; }
.dmrz-auth-registration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 18px; }
.dmrz-auth-registration-grid__wide { grid-column: 1/-1; }
.dmrz-auth-field { min-width: 0; display: grid; grid-template-rows: auto 46px minmax(1.45em,auto); align-content: start; gap: 7px; }
.dmrz-auth-field > span { align-self: end; font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.dmrz-auth-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--dmrz-border-strong); border-radius: 0; outline: 0; background: var(--dmrz-surface); color: var(--dmrz-text); }
.dmrz-auth-field input:focus { border-color: var(--dmrz-accent); box-shadow: 0 0 0 1px var(--dmrz-accent); }
.dmrz-auth-field small { color: var(--dmrz-text-faint); line-height: 1.35; }
.dmrz-auth-field small a { color: var(--dmrz-accent); }
.dmrz-auth-captcha { padding: 14px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-auth-check { display: inline-flex; align-items: center; gap: 9px; color: var(--dmrz-text-soft); }
.dmrz-auth-check input { margin: 0; }
.dmrz-auth-consent { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 11px; padding: 16px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); line-height: 1.55; }
.dmrz-auth-consent input { margin-top: 4px; }
.dmrz-auth-consent label { display: inline; }
.dmrz-inline-link { padding: 0; border: 0; background: none; color: var(--dmrz-accent); font: inherit; text-decoration: underline; cursor: pointer; }
.dmrz-auth-submit { width: 100%; min-height: 48px; justify-content: center; }
.dmrz-auth-errors,.dmrz-auth-success,.dmrz-auth-disabled { margin: 0 0 18px; padding: 16px; border: 1px solid var(--dmrz-border); background: var(--dmrz-surface-2); }
.dmrz-auth-errors { border-left: 4px solid var(--dmrz-danger); }
.dmrz-auth-errors ul { margin: 8px 0 0 20px; }
.dmrz-auth-disabled { min-height: 150px; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; align-items: center; }
.dmrz-auth-disabled > svg { color: var(--dmrz-accent); }
.dmrz-auth-success { margin: 24px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.dmrz-auth-success > svg { color: var(--dmrz-accent); }
.dmrz-legal-overlay[hidden] { display:none!important; }
.dmrz-legal-overlay { position:fixed; inset:0; z-index:100000; display:grid; place-items:center; padding:24px; }
.dmrz-legal-overlay__backdrop { position:absolute; inset:0; background:rgba(5,9,14,.88); backdrop-filter:blur(6px); }
.dmrz-legal-overlay__dialog { position:relative; z-index:1; width:min(980px,96vw); max-height:92vh; display:grid; grid-template-rows:auto minmax(0,1fr); border:1px solid var(--dmrz-border-strong); background:var(--dmrz-surface); box-shadow:0 28px 80px rgba(0,0,0,.38); }
.dmrz-legal-overlay__dialog > header { min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 14px 10px 20px; border-bottom:1px solid var(--dmrz-border); }
.dmrz-legal-overlay__dialog > header h2 { margin:0; font-size:1rem; text-transform:uppercase; }
.dmrz-legal-overlay__dialog > header button { width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--dmrz-border); border-radius:0; background:var(--dmrz-surface-2); color:var(--dmrz-text); cursor:pointer; }
.dmrz-legal-overlay__body { overflow:auto; padding:24px; }
@media(max-width:980px){
  .dmrz-auth-columns { grid-template-columns: 1fr; }
  .dmrz-auth-divider { min-height: 66px; }
  .dmrz-auth-divider::before { top:50%; bottom:auto; left:26px; right:26px; width:auto; height:1px; transform:translateY(-50%); }
  .dmrz-auth-divider span { background:var(--dmrz-surface); }
  .dmrz-auth-form--login { max-width:none; }
}
@media(max-width:720px){
  .dmrz-auth-card__head { grid-template-columns:46px minmax(0,1fr); padding:18px; }
  .dmrz-auth-card__icon { width:46px; height:46px; }
  .dmrz-auth-pane { padding:18px; }
  .dmrz-auth-registration-grid { grid-template-columns:1fr; }
  .dmrz-auth-registration-grid__wide { grid-column:auto; }
  .dmrz-auth-success { grid-template-columns:36px minmax(0,1fr); }
  .dmrz-auth-success .dmrz-button { grid-column:1/-1; }
  .dmrz-legal-overlay { padding:0; }
  .dmrz-legal-overlay__dialog { width:100vw; max-height:100dvh; height:100dvh; border:0; }
}


/* 0.1.89 — guest-restricted Downloads state. */
.dmrz-download-auth-notice {
  min-height: 66px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--dmrz-border-strong);
  background: var(--dmrz-surface-2);
  color: var(--dmrz-text-soft);
}
.dmrz-download-auth-notice i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--dmrz-accent);
}
.dmrz-download-auth-notice span { font-size: .78rem; font-weight: 800; line-height: 1.4; }

/* 0.1.92 — direct download authorization/CAPTCHA state. */
.dmrz-download-modal__captcha{display:grid;place-items:center;margin:14px 0}.dmrz-download-modal__auth-status{min-height:1.4em;margin:10px 0 0;color:var(--dmrz-text-soft);font-size:.82rem}.dmrz-download-modal__auth-status.is-error{color:#d63638}.dmrz-download-modal__button:disabled{cursor:not-allowed;opacity:.6}.dmrz-download-modal__timer[hidden]{display:none!important}

/* 0.1.93 — centered/wider direct-download controls. */
.dmrz-download-actions .dmrz-download-source{margin-left:auto;margin-right:auto}
.dmrz-download-modal__button{width:100%;margin-left:auto;margin-right:auto}

/* 0.1.94 — personal Storage tab. */
.dmrz-profile-storage-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;border-bottom:1px solid var(--dmrz-border);background:var(--dmrz-border)}
.dmrz-profile-storage-summary>div{display:flex;align-items:center;gap:12px;min-height:88px;padding:18px 22px;background:var(--dmrz-surface-2)}
.dmrz-profile-storage-summary>div>i{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border:1px solid var(--dmrz-accent-border);color:var(--dmrz-accent)}
.dmrz-profile-storage-summary span{display:grid;gap:3px}.dmrz-profile-storage-summary small{color:var(--dmrz-text-faint);font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.dmrz-profile-storage-summary strong{font-size:1.15rem}
.dmrz-profile-storage-list{display:grid}.dmrz-profile-storage-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--dmrz-border);background:var(--dmrz-surface)}.dmrz-profile-storage-row:last-child{border-bottom:0}
.dmrz-profile-storage-row__icon{width:48px;height:48px;display:grid;place-items:center;border:1px solid var(--dmrz-border-strong);background:var(--dmrz-surface-2);color:var(--dmrz-accent);font-size:1.05rem}
.dmrz-profile-storage-row__main{min-width:0;display:grid;gap:5px}.dmrz-profile-storage-row__main>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.92rem}.dmrz-profile-storage-row__main>code{width:max-content;max-width:100%;overflow:hidden;text-overflow:ellipsis;color:var(--dmrz-text-faint);font-size:.69rem}
.dmrz-profile-storage-row__meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--dmrz-text-soft);font-size:.72rem}.dmrz-profile-storage-row__meta span{display:inline-flex;align-items:center;gap:5px}.dmrz-profile-storage-row__meta i{color:var(--dmrz-accent)}
.dmrz-profile-storage-row__status{min-width:150px}.dmrz-profile-storage-badge{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;border:1px solid var(--dmrz-border);background:var(--dmrz-surface-2);color:var(--dmrz-text-soft);font-size:.68rem;font-weight:900;text-transform:uppercase}.dmrz-profile-storage-badge i{color:var(--dmrz-success)}.dmrz-profile-storage-badge.is-used{border-color:var(--dmrz-accent-border);color:var(--dmrz-text)}.dmrz-profile-storage-badge.is-used i{color:var(--dmrz-accent)}
.dmrz-profile-storage-row__actions form{margin:0}.dmrz-profile-storage-delete{min-width:126px}.dmrz-profile-storage-delete:disabled{opacity:.5;cursor:not-allowed;background:var(--dmrz-surface-2);border-color:var(--dmrz-border);color:var(--dmrz-text-faint);filter:none}.dmrz-profile-storage-delete:disabled:hover{background:var(--dmrz-surface-2);border-color:var(--dmrz-border);color:var(--dmrz-text-faint);filter:none}
.dmrz-profile-storage-empty{min-height:220px;display:grid;place-items:center;align-content:center;gap:9px;padding:28px;color:var(--dmrz-text-soft);text-align:center}.dmrz-profile-storage-empty>i{font-size:1.7rem;color:var(--dmrz-accent)}.dmrz-profile-storage-empty strong{color:var(--dmrz-text)}
@media(max-width:960px){.dmrz-profile-storage-row{grid-template-columns:48px minmax(0,1fr)}.dmrz-profile-storage-row__status,.dmrz-profile-storage-row__actions{grid-column:2}.dmrz-profile-storage-row__actions .dmrz-button{width:100%}.dmrz-profile-storage-row__status{min-width:0}}
@media(max-width:600px){.dmrz-profile-storage-summary{grid-template-columns:1fr}.dmrz-profile-storage-row{grid-template-columns:1fr}.dmrz-profile-storage-row__icon,.dmrz-profile-storage-row__main,.dmrz-profile-storage-row__status,.dmrz-profile-storage-row__actions{grid-column:1}.dmrz-profile-storage-row__main>strong{white-space:normal}.dmrz-profile-storage-delete{width:100%}}



/* 0.2.23 — compact ALL Downloads controls, including five tabs on one desktop row. */
.dmrz-download-tabs__nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}
.dmrz-download-tabs__nav button {
  min-height: 42px;
  min-width: 0;
  gap: 5px;
  padding: 8px 7px;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .012em;
  text-align: center;
  white-space: nowrap;
}
.dmrz-download-tabs__nav button i { flex: 0 0 auto; font-size: .8rem; }
.dmrz-download-tabs__nav button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dmrz-download-product__panel .dmrz-download-actions { padding: 12px 13px; }
.dmrz-download-product__panel .dmrz-download-actions h2 { font-size: .72rem; margin-bottom: 7px; }
.dmrz-download-product__panel .dmrz-download-source {
  min-height: 42px;
  margin-top: 6px;
  gap: 7px;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 8px 10px;
  font-size: .78rem;
  line-height: 1.2;
}
.dmrz-download-product__panel .dmrz-download-source i { width: 20px; text-align: center; }
.dmrz-download-product__panel .dmrz-download-product__facts > div { min-height: 54px; padding: 7px 11px; gap: 0 8px; }
.dmrz-download-product__panel .dmrz-download-product__facts i { width: 28px; height: 28px; }
.dmrz-download-product__visual .dmrz-download-screenshots-button { min-height: 38px; gap: 7px; margin: 8px auto; padding: 7px 12px; font-size: .76rem; }
@media (max-width: 850px) {
  .dmrz-download-tabs__nav { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .dmrz-download-tabs__nav button { flex: 0 0 auto; min-width: max-content; padding: 9px 12px; scroll-snap-align: start; justify-content: center; }
  .dmrz-download-tabs__nav button span { overflow: visible; text-overflow: clip; }
}
