/* Steinberg download pages */

/* work-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  src: url('https://download.steinberg.net/support/fonts//work-sans-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* work-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 700;
  src: url('https://download.steinberg.net/support/fonts/work-sans-v24-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  --text: #000;
  --muted: #4a4a4a;
  --bg: #fff;
  --line: #d6d6d6;
  --soft: #f3f3f3;
  --bar: #222222;
  --bar-text: #fff;
  --callout-bg: #fff4d6;
  --callout-line: #b07d00;
  --focus: #005fcc;
  --max: 55rem;
  /* one gutter for topbar, index-nav, main and footer so all content shares the same left edge */
  --gutter: max(1rem, calc((100% - var(--max)) / 2));
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

strong, b, th, h1, h2, h3, h4, h5, h6 { font-weight: 700; }

/* ---------- Links ---------- */
a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
a:hover { text-decoration-thickness: 3px; }   /* 2px thicker on hover */
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Download links: downward arrow in front */
a.download::before {
  content: "";
  display: inline-block;
  width: .85em;
  height: .95em;
  margin-right: .3em;
  vertical-align: -.12em;
  background: url('../images/download-arrow.svg') no-repeat center / contain;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: .5rem 1rem;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--text);
}
.skip-link:focus { top: .5rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--bar);
  color: var(--bar-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem var(--gutter);
  min-height: 3rem;
}
.topbar a, .site-footer a { color: var(--bar-text); text-decoration: none; }
.topbar a:hover, .site-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .25em;
}
.topbar a:focus-visible, .site-footer a:focus-visible { outline-color: #fff; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; height: 1.6rem; width: auto; }
.topbar .logo:hover { text-decoration: none; }
.topbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .9375rem;
}

.index-nav {
  border-bottom: 1px solid var(--line);
  padding: 0 var(--gutter);
}
.index-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: .75rem 0;
}
.index-nav .tab {
  color: #666666;
  text-decoration: none;
}
.index-nav .tab:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .25em;
}
.index-nav .tab.active {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .25em;
}

/* ---------- Main ---------- */
.content {
  flex: 1 0 auto;
  width: 100%;
  margin: 0;
  padding: 1.5rem var(--gutter) 3rem;
}

h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.2; margin: .5rem 0 1.25rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
h4 { font-size: 1.05rem; margin: 1.25rem 0 .4rem; }
h5, h6 { font-size: .9rem; margin: 1rem 0 .3rem; text-transform: uppercase; letter-spacing: .04em; }


.back-link { margin: 0 0 .5rem; font-size: .9375rem; }
.back-link a::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: .85em;
  margin-right: .35em;
  vertical-align: -.08em;
  background: url('../images/back-arrow.svg') no-repeat center / contain;
}

/* Callout for archived pages */
.callout {
  background: var(--callout-bg);
  border-left: 5px solid var(--callout-line);
  padding: .9rem 1.1rem;
  margin: 0 0 1.75rem;
  border-radius: 2px;
}
.callout p { margin: 0; font-weight: 700; }
.callout-info { background: var(--soft); border-left-color: var(--text); max-width: 48rem; }
.callout-info p { font-weight: 400; }

.link-button {
  font: inherit;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.link-button:hover { text-decoration-thickness: 3px; }
.link-button:focus-visible, .button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.modal {
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  background: var(--bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.modal::backdrop { background: rgba(0, 0, 0, .6); }
.modal-inner { padding: 1.5rem 1.5rem 1.25rem; }
.modal h2 { margin-top: 0; }
.modal-actions { margin: 1.25rem 0 0; text-align: right; }
.button {
  font: inherit;
  font-weight: 700;
  color: var(--bar-text);
  background: var(--bar);
  border: 2px solid var(--bar);
  padding: .5rem 1.25rem;
  cursor: pointer;
}
.button:hover { background: #000; }

/* ---------- Product content (from the CMS) ---------- */
.product-content p { margin: .4rem 0 .8rem; }
.product-content ul, .product-content ol { padding-left: 1.4rem; margin: .4rem 0 1rem; }
.product-content li { margin: .2rem 0; }
.product-content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.product-content img { max-width: 100%; height: auto; }
.product-content .page + .page { border-top: 2px solid var(--text); margin-top: 2.5rem; padding-top: .5rem; }
.product-content .subproduct { font-size: 1.6rem; margin-top: 1.5rem; }
.product-content sub {
  vertical-align: baseline;
  font-size: .8125rem;
  color: var(--muted);
}
/* .ref marks referenced (reused) CMS components */
.product-content .fr { float: right; margin: 0 0 .5rem 1rem; }
.product-content .big { font-size: 1.3em; }
.product-content .centered { text-align: center; }
.product-content .hl { background: var(--soft); }
.product-content :is(h2, h3, h4, h5, h6, p).mac,
.product-content :is(h2, h3, h4, h5, h6, p).windows {
  display: inline-block;
  font-size: .95rem;
  margin: 0 0 .4rem;
  padding: .1rem .6rem;
  text-transform: none;
  letter-spacing: 0;
  background: var(--soft);
  border-radius: 999px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: .75rem 0 1.25rem;
}
.table-wrap table {
  width: 100%;
  font-size: .9rem;
  border-collapse: collapse;
  border: 1px solid var(--line);
}
.table-wrap td, .table-wrap th {
  border: 1px solid var(--line);
  padding: .6rem .8rem;
  vertical-align: top;
  text-align: left;
}
.table-wrap td > :first-child, .table-wrap th > :first-child { margin-top: 0; }
.table-wrap td > :last-child, .table-wrap th > :last-child { margin-bottom: 0; }
.table-wrap td:empty { display: none; }
.table-wrap th { background: var(--soft); }
.table-wrap .cell-heading { font-weight: 700; margin: 0 0 .3rem; }
.table-wrap td a.download { display: inline-block; margin: .15rem 0; }
a.download + a.download { margin-left: 1.25rem; }

/* Platform download links (macOS, Windows, Win x64, WoA, cross-platform …) */
a.dl-platform { font-size: .8rem; white-space: nowrap; }
a.dl-platform + a.dl-platform { margin-left: 1rem; }
.table-wrap .platform-cell { white-space: nowrap; width: 1%; }

/* Operating-system columns share the width equally */
.table-wrap table.os-cols { table-layout: fixed; }
.table-wrap col.col-2 { width: 50%; }
.table-wrap col.col-3 { width: 33.333%; }

/* ---------- Index pages ---------- */
.search { margin: 0 0 1.5rem; max-width: 32rem; }
.search label { display: block; font-weight: 700; margin-bottom: .35rem; }
.search input {
  width: 100%;
  font: inherit;
  padding: .65rem .8rem;
  border: 2px solid var(--text);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
}
.search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.filter-status { margin: .35rem 0 0; font-size: .875rem; color: var(--muted); }
.no-results { font-style: italic; }

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 16rem;
  column-gap: 2rem;
}
.product-list li { break-inside: avoid; padding: .3rem 0; }
.product-list li[hidden] { display: none; }

details.family { border-top: 1px solid var(--line); }
details.family:last-of-type { border-bottom: 1px solid var(--line); }
details.family[hidden] { display: none; }
details.family > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 0;
  font-size: 1.2rem;
  font-weight: 700;
}
details.family > summary::-webkit-details-marker { display: none; }
details.family > summary:hover .family-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .2em; }
details.family > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
details.family .count { font-weight: 400; color: var(--muted); font-size: 1rem; }
details.family > .product-list { padding: 0 0 1.25rem; }

/* ---------- Entry page (index.html) ---------- */
/* Software spans the full width; Hardware and Archive share the row below (50 % each).
   Each block needs at least ~18rem, so on narrow screens everything stacks automatically. */
.landing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-top: 1rem;
}
.landing-block { flex: 1 1 18rem; min-width: 0; }
.landing-block#software-downloads { flex-basis: 100%; }
.landing-block h2 { margin-top: 0; }
.landing-block a { font-weight: 700; }

/* Accordions inside product pages */
.product-content details { margin: .5rem 0; border-top: 1px solid var(--line); }
.product-content details:last-of-type { border-bottom: 1px solid var(--line); }
.product-content details > summary {
  cursor: pointer;
  padding: .6rem 0;
  font-weight: 700;
}
.product-content details > summary:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .2em;
}
.product-content details > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.product-content details[open] > summary { margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bar);
  color: var(--bar-text);
  padding: 1.5rem var(--gutter) 2rem;
  font-size: .875rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.copyright { margin: 0; color: var(--bar-text); font-size: .75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 40rem) {
  .topbar-links { gap: 1rem; }
  .product-content .fr { float: none; margin: 0; }
  .table-wrap td, .table-wrap th { padding: .5rem; }
}

/* Very small screens: header and footer links stacked, centred, full width */
@media (max-width: 30rem) {
  .topbar { flex-direction: column; align-items: stretch; gap: .25rem; padding-top: .75rem; padding-bottom: .25rem; }
  .topbar .logo { align-self: flex-start; }
  .topbar-links { flex-direction: column; gap: 0; }
  .topbar-links a,
  .index-nav .tab { display: block; width: 100%; text-align: center; padding: .6rem 0; }
  .topbar-links li + li { border-top: 1px solid #444; }
  .index-nav ul { flex-direction: column; gap: 0; padding: .25rem 0; }
  .index-nav li + li { border-top: 1px solid var(--line); }
  .site-footer ul { flex-direction: column; gap: 0; }
  .site-footer li a { display: block; width: 100%; text-align: center; padding: .6rem 0; }
  .site-footer li + li { border-top: 1px solid #444; }
}

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

@media print {
  .topbar, .index-nav, .search, .skip-link, .callout-info { display: none; }
  .site-footer { background: none; color: var(--text); }
  .site-footer a { color: var(--text); }
  a { text-decoration: none; }
}
