:root {
  --editorial-max: 1120px;
}

html[data-resolved-theme="light"] body.product-storage-medic.editorial-page {
  --bg: #f7f7f5;
  --surface: #fbfbfa;
  --surface-2: #f1f2f0;
  --surface-sunken: #eceeeb;
  --ink: #111311;
  --ink-soft: #424744;
  --muted: #6a706b;
  --line: #e2e4e0;
  --line-strong: #c9cdc8;
  --accent: #14794d;
  --accent-ink: #14794d;
  --accent-soft: #dcece3;
  --editorial-faint: #8a908c;
  --editorial-closing-a: #eeeeeb;
  --editorial-closing-b: #f5f7f3;
  --editorial-closing-glow: rgba(20, 121, 77, 0.1);
  --editorial-button-shadow: rgba(24, 31, 27, 0.06);
  --editorial-button-shadow-hover: rgba(24, 31, 27, 0.1);
  --editorial-image-shadow: rgba(24, 31, 27, 0.08);
}

html[data-resolved-theme="dark"] body.product-storage-medic.editorial-page {
  --bg: #101311;
  --surface: #171b18;
  --surface-2: #171b18;
  --surface-sunken: #202521;
  --ink: #eef1ed;
  --ink-soft: #c3c9c4;
  --muted: #929a94;
  --line: #2d342f;
  --line-strong: #465049;
  --accent: #6fbf90;
  --accent-ink: #82cba0;
  --accent-soft: #17301f;
  --editorial-faint: #707873;
  --editorial-closing-a: #151b17;
  --editorial-closing-b: #19231c;
  --editorial-closing-glow: rgba(111, 191, 144, 0.08);
  --editorial-button-shadow: rgba(0, 0, 0, 0.32);
  --editorial-button-shadow-hover: rgba(0, 0, 0, 0.48);
  --editorial-image-shadow: rgba(0, 0, 0, 0.55);
}

html[data-contrast="high"] body.product-storage-medic.editorial-page {
  --bg: #050607;
  --surface: #0c1116;
  --surface-2: #151c23;
  --surface-sunken: #101820;
  --ink: #fff;
  --ink-soft: #f0f4f8;
  --muted: #d4dce6;
  --line: #718096;
  --line-strong: #f4d35e;
  --accent: #95ffd0;
  --accent-ink: #b9f3ff;
  --accent-soft: #102b33;
  --editorial-faint: #d4dce6;
  --editorial-closing-a: #151b17;
  --editorial-closing-b: #19231c;
  --editorial-closing-glow: rgba(149, 255, 208, 0.08);
}

body.product-storage-medic.editorial-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.editorial-page img { display: block; }
.editorial-page figure { margin: 0; }
.editorial-page .editorial-wrap {
  width: min(calc(100% - 40px), var(--editorial-max));
  margin-inline: auto;
}

.editorial-page .site-head {
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.editorial-page .editorial-nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--ink-soft);
}

.editorial-page .editorial-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.editorial-wordmark img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.editorial-page .editorial-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}

.editorial-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.editorial-page .editorial-nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editorial-page .mode-toolbar {
  width: auto;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
}

.editorial-page .display-options { position: relative; }
.editorial-page .display-options > summary,
.editorial-page .theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  font: 700 12px/1 var(--sans);
}

.display-options > summary::-webkit-details-marker { display: none; }
.display-options[open] > summary { border-color: var(--accent); }
.editorial-page .display-options[open] > summary { border-color: var(--accent); }
.editorial-page .display-options-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  min-width: 224px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 45px var(--editorial-button-shadow-hover);
}

.display-options-panel .mode-group {
  display: inline-grid;
  grid-template-columns: repeat(2, max-content);
}

.editorial-page .theme-toggle {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.theme-toggle svg { width: 16px; height: 16px; }

.editorial-page .editorial-download-mark {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #fff;
  background: #14794d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-resolved-theme="dark"] .editorial-download-mark {
  color: #0b1810;
  background: var(--accent);
}
html[data-contrast="high"] .editorial-download-mark {
  color: #0b1810;
  background: var(--accent);
}

.editorial-page main {
  width: 100%;
  margin: 0;
}

.editorial-page .editorial-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  padding: 38px 0 56px;
}

.editorial-page .editorial-hero::before { display: none; }
.editorial-hero-copy { padding-left: 50px; position: relative; z-index: 2; }
.editorial-page .editorial-title {
  margin: 0;
  font-size: clamp(50px, 5vw, 72px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 500;
  word-break: keep-all;
}

html[lang="en"] .editorial-title {
  font-size: clamp(44px, 4vw, 58px);
  letter-spacing: -0.035em;
}

.editorial-title span { display: block; }
.editorial-title .soft { color: var(--editorial-faint); }
.editorial-hero-lead {
  max-width: 31em;
  margin-top: 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}
.editorial-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.editorial-primary-download {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 25px var(--editorial-button-shadow);
}
html[data-resolved-theme="dark"] .editorial-primary-download { color: #0b1810; }
html[data-contrast="high"] .editorial-primary-download { color: #0b1810; }
html[data-contrast="high"] .editorial-hero-button,
html[data-contrast="high"] .editorial-closing a { box-shadow: 0 0 0 2px var(--line-strong); }
.editorial-page .editorial-hero-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 0;
  padding: 14px 19px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 25px var(--editorial-button-shadow);
  font-size: 13px;
  font-weight: 650;
}

.editorial-primary-download b,
.editorial-hero-button b,
.editorial-closing a b { color: var(--accent); font-size: 17px; font-weight: 500; }
.editorial-primary-download b { color: currentColor; }
.editorial-hero-download-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.editorial-hero-download-link {
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
}

.editorial-page .editorial-hero-download-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.editorial-hero-download-count::before {
  content: "·";
  margin-right: 14px;
  color: var(--line-strong);
}

.editorial-hero-visual {
  height: 560px;
  overflow: hidden;
  border-radius: 16px;
}

.editorial-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 50px var(--editorial-image-shadow);
}

.editorial-features { padding: 28px 0 30px; }
.editorial-feature {
  min-height: 340px;
  display: grid;
  grid-template-columns: 61% 39%;
  align-items: center;
  scroll-margin-top: 96px;
}

.editorial-feature + .editorial-feature { margin-top: 54px; }
.editorial-feature.reverse { grid-template-columns: 39% 61%; }
.editorial-feature-image {
  position: relative;
  height: 340px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
}

html[data-resolved-theme="dark"] .editorial-feature-image { box-shadow: 0 0 0 1px var(--line); }
.editorial-feature-image img { position: absolute; height: auto; max-width: none; }
.editorial-feature.one .editorial-feature-image img { top: -20px; left: -5%; width: 130%; }
.editorial-feature.two .editorial-feature-image img { top: -170px; left: -12%; width: 125%; }
.editorial-feature.three .editorial-feature-image img { top: -120px; right: -6%; width: 165%; }
.editorial-feature.two .editorial-feature-image.is-dashboard-overview img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.editorial-feature-image figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  backdrop-filter: blur(8px);
}
.editorial-feature-copy { padding: 20px 44px; }
.editorial-feature.reverse .editorial-feature-copy { padding-left: 42px; padding-right: 54px; }
.editorial-feature-number {
  display: block;
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.editorial-feature h2 {
  margin: 0;
  max-width: 9.5em;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.26;
  letter-spacing: -0.015em;
  font-weight: 650;
  word-break: keep-all;
}

.editorial-feature p {
  margin: 18px 0 0;
  max-width: 25em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}

.editorial-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
  scroll-margin-top: 96px;
}

.editorial-principle {
  min-height: 190px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  background: var(--surface-2);
}

.editorial-principle svg {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  color: var(--accent);
  stroke-width: 1.35;
}

.editorial-principle strong { font-size: 13px; font-weight: 650; }
.editorial-principle span { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.editorial-closing {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  margin-top: 32px;
  padding: 36px 52px;
  border-radius: 12px;
  overflow: hidden;
  scroll-margin-top: 96px;
  background:
    radial-gradient(circle at 74% 32%, var(--editorial-closing-glow), transparent 28%),
    linear-gradient(105deg, var(--editorial-closing-a), var(--editorial-closing-b));
}

.editorial-closing h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.26;
  letter-spacing: -0.015em;
  font-weight: 650;
}

.editorial-closing p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.editorial-closing .meta-secondary { margin-top: 4px; font-size: 13px; }
.editorial-closing a {
  min-width: 166px;
  padding: 14px 21px;
  display: inline-flex;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 8px 24px var(--editorial-button-shadow);
  font-size: 13px;
}

.editorial-release { padding: 72px 0 12px; scroll-margin-top: 96px; }
.editorial-release .section-head { margin-bottom: 24px; }
.editorial-release .section-head h2 { font-size: clamp(25px, 3vw, 34px); }
.editorial-page .release-disclosure,
.editorial-page .verify-disclosure,
.editorial-page .file-picker { background: var(--surface); }
.editorial-faq { padding: 64px 0 76px; }
.editorial-page .foot {
  width: min(calc(100% - 40px), var(--editorial-max));
  margin-inline: auto;
  border-top-color: var(--line);
}

@media (hover: hover) {
  .editorial-hero-button,
  .editorial-primary-download,
  .editorial-closing a,
  .editorial-page .theme-toggle,
  .editorial-page .display-options > summary {
    transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.22s ease, border-color 0.18s ease;
  }
  .editorial-hero-button:hover,
  .editorial-primary-download:hover,
  .editorial-closing a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px var(--editorial-button-shadow-hover);
  }
  .editorial-page .theme-toggle:hover,
  .editorial-page .display-options > summary:hover { transform: translateY(-1px); border-color: var(--muted); }
  .editorial-menu a:hover { color: var(--ink); }
}

html[data-text-size="large"] .editorial-feature p,
html[data-text-size="large"] .editorial-closing p { font-size: 16.5px; }
html[data-text-size="large"] .editorial-hero-lead { font-size: 17.5px; }
html[data-text-size="large"] .editorial-principle strong,
html[data-text-size="large"] .editorial-principle span,
html[data-text-size="large"] .editorial-hero-download-row,
html[data-text-size="large"] .editorial-feature-image figcaption { font-size: 14.5px; }
html[data-text-size="large"] .editorial-page .editorial-hero-download-count { font-size: 14.5px; }
html[data-text-size="large"] .editorial-menu { font-size: 15.5px; }
html[data-text-size="large"] .editorial-primary-download,
html[data-text-size="large"] .editorial-hero-button,
html[data-text-size="large"] .editorial-closing a { font-size: 16px; }

@media (min-width: 561px) {
  html[data-text-size="large"] .editorial-download-mark { font-size: 15px; }
}

@media (max-width: 980px) {
  .editorial-page .editorial-wrap,
  .editorial-page .foot { width: min(calc(100% - 28px), var(--editorial-max)); }
  .editorial-page .editorial-nav {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 10px;
  }
  .editorial-page .editorial-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 4px;
    padding: 4px 0 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .editorial-menu::-webkit-scrollbar { display: none; }
  .editorial-menu a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface);
  }
  .editorial-page .editorial-nav-actions { gap: 6px; }
  .editorial-page .display-options-panel {
    position: fixed;
    top: 124px;
    left: 14px;
    right: 14px;
    width: auto;
    min-width: 0;
  }
  .editorial-page .editorial-download-mark { padding-inline: 12px; }
  .editorial-page .editorial-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 64px 0 24px;
  }
  .editorial-hero-copy { padding: 0 20px 48px; }
  .editorial-page .editorial-title { font-size: clamp(48px, 14vw, 66px); }
  html[lang="en"] .editorial-title { font-size: 40px; }
  .editorial-hero-download-row { flex-wrap: wrap; gap: 7px; margin-left: 0; }
  .editorial-hero-visual { height: auto; }
  .editorial-hero-visual img { height: auto; }
  .editorial-features { padding-top: 20px; }
  .editorial-feature,
  .editorial-feature.reverse { grid-template-columns: 1fr; }
  .editorial-feature-image { height: 300px; }
  .editorial-feature.one .editorial-feature-image img { top: -8px; left: -4%; width: 170%; }
  .editorial-feature.two .editorial-feature-image img { top: -96px; left: -28%; width: 168%; }
  .editorial-feature.two .editorial-feature-image.is-dashboard-overview img { inset: 0; width: 100%; height: 100%; }
  .editorial-feature.three .editorial-feature-image img { top: -75px; right: -8%; width: 220%; }
  .editorial-feature-copy,
  .editorial-feature.reverse .editorial-feature-copy { padding: 30px 20px 52px; }
  .editorial-feature.reverse .editorial-feature-copy { order: 2; }
  .editorial-feature-number { margin-bottom: 14px; font-size: 34px; }
  .editorial-feature h2 { max-width: 11em; font-size: 30px; }
  .editorial-principles { grid-template-columns: 1fr 1fr; }
  .editorial-principle { min-height: 158px; }
  .editorial-closing { grid-template-columns: 1fr; padding: 34px 28px; }
  .editorial-closing a { width: 100%; }
  .editorial-release { padding-top: 58px; }
}

@media (max-width: 560px) {
  .editorial-wordmark span { display: none; }
  .editorial-page .editorial-title { font-size: clamp(40px, 11vw, 46px); }
  .editorial-page .editorial-download-mark {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0;
  }
  .editorial-page .editorial-download-mark::after { content: "DMG"; font-size: 12px; }
  html[data-text-size="large"] .editorial-download-mark::after { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-page,
  .editorial-page * { transition: none !important; }
}
