/* Market sites (safecomply.dk, .de, ...): additions on top of the corporate site's site.css; the corporate site doesn't load this file.
   Same brand (v1 "Leaf"); only components the corporate site doesn't have. */

/* Which market site you're on: a quiet label after the logo (the way back to safecomply.net is in the footer) */
.market-tag { margin-left: -12px; padding-left: 14px; border-left: 1px solid var(--line); font: 600 12.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); white-space: nowrap; }
footer .part { margin-top: 14px; }
footer .part a { color: var(--deep); font-weight: 600; }
.menu nav > a.corporate { font-family: var(--mono); font-size: 14px; color: var(--fg-soft); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 14px; }

/* What we stand for (home page) */
.values { background: var(--sunken); padding-block: 96px 104px; }
.values .product { border-left-color: var(--line); }

/* Language switch in the header */
nav.main a.lang { font-family: var(--mono); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--deep); border: 1.5px solid var(--line); border-radius: var(--r); padding: 5px 9px; }
nav.main a.lang:hover { border-color: var(--deep); color: var(--deep); }
.menu nav > a.lang { font-family: var(--mono); color: var(--deep); }

/* Product cards that are links (home, products overview): six in a 3 x 2 grid */
a.product { color: inherit; text-decoration: none; }
a.product h3 { transition: color .15s; }
a.product:hover h3 { color: var(--deep); }
a.product:hover .tile { background: var(--band); color: var(--on-band); }
.product .go { font-weight: 700; color: var(--deep); margin-top: 2px; }
.product .go::after { content: " →"; }
.suite.six { row-gap: 48px; }
.suite.six .product:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.suite.six .product:nth-child(3n) { padding-right: 0; }
.suite.six .product h3, .group .product h3 { font-size: 23px; }
.product.service { background: var(--sunken); border-radius: var(--r-card); padding: 28px; border-left: 0; }
.suite.six .product.service:nth-child(3n) { padding-right: 28px; }

/* Products overview: groups */
.group + .group { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; margin-bottom: 36px; }
.group-head h2 { font-size: clamp(26px, 2.8vw, 34px); }
.group-head p { color: var(--fg-soft); font-size: 18px; }
.group .suite { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.group .suite .product { padding-inline: 28px; }
.group .suite .product:first-child { padding-left: 0; }
.group .suite .product:last-child { padding-right: 0; }
.suite.one { grid-template-columns: minmax(0, 1fr); }
.suite.one + .suite.one { margin-top: 44px; }
.product.wide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; padding: 0; border: 0; max-width: 54em; }
.product.wide .tile { margin: 0; }
.product.wide div { display: grid; gap: 10px; }
.ticks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 48px; max-width: 64em; }

/* Product page: text, and the "In the API" card */
.product-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 72px; align-items: start; }
.product-page .prose { max-width: 40em; }
.product-page .prose p { font-size: 18px; }
.product-page .prose h2 { font-size: 26px; font-weight: 800; }
.prose .ticks, .prose .steps { margin-top: 10px; }
.prose .steps + p { margin-top: 18px; }
.steps { counter-reset: step; display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; font-size: 18px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 28px; height: 31px; display: grid; place-items: center; background: var(--ink); color: var(--band); font: 700 14px var(--mono); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.facts { position: sticky; top: 104px; background: var(--ink); color: var(--ink-fg); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 2px 4px rgba(40,42,34,.12), 0 18px 40px rgba(40,42,34,.22); }
.facts-head { background: var(--band); color: var(--on-band); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 22px; }
.facts-head h2 { font-size: 19px; font-weight: 800; color: inherit; }
.facts-head span { font: 600 12px var(--mono); letter-spacing: .06em; }
.calls { padding: 6px 0; margin: 0; list-style: none; }
.calls li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 12px 22px; border-top: 1px solid var(--ink-rule); }
.calls li:first-child { border-top: 0; }
.calls code { font: 600 12px var(--mono); color: var(--band); padding-top: 2px; }
.calls span { font: 500 13.5px/1.45 var(--mono); color: #f5f5f5; word-break: break-word; }
.calls small { display: block; margin-top: 2px; font: 400 14.5px/1.4 var(--body); color: var(--ink-soft); }
.facts-foot { display: block; padding: 14px 22px 16px; border-top: 1px solid var(--ink-rule); color: var(--band); font-weight: 700; text-decoration: none; }
.facts-foot:hover { background: var(--ink-2); }

/* Related products at the foot of a product page */
.related { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }
.rel-list { display: flex; flex-wrap: wrap; gap: 14px; }
.rel { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-card); color: var(--fg); text-decoration: none; font-weight: 700; }
.rel:hover { border-color: var(--deep); color: var(--deep); }
.rel .tile { width: 40px; height: 36px; border-radius: 8px; margin: 0; }
.rel .tile svg { width: 20px; height: 20px; }

/* Home: the authority block next to the news */
#authority .intro { color: var(--fg-soft); font-size: 18px; margin-bottom: 18px; max-width: 32em; }

/* Three products and the service as a strip below them (safecomply.de) */
.service-strip { margin-top: 56px; background: var(--sunken); border-radius: var(--r-card); padding: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 24px; align-items: start; }
.service-strip .tile { grid-row: span 2; margin: 0; }
.service-strip h3 { font-size: 23px; font-weight: 800; }
.service-strip p { color: var(--fg-soft); max-width: 52em; }

/* A market without news of its own yet */
.news-empty { color: var(--fg-soft); font-size: 17px; padding-block: 17px; border-top: 1px solid var(--line); max-width: 40em; }

/* Impressum (safecomply.de): German and English on one page */
.impressum .jump { font: 600 14px var(--mono); margin-bottom: 28px; }
.impressum dl { display: grid; gap: 18px; margin: 0; }
.impressum dt { font: 600 12.5px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); }
.impressum dd { margin: 2px 0 0; font-size: 18px; }
.impressum section + section { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .values { padding-block: 72px 80px; }
  .suite.six .product, .group .suite .product, .group .suite .product:first-child, .group .suite .product:last-child { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line); }
  .suite.six .product:first-child, .group .suite .product:first-child { border-top: 0; padding-top: 0; }
  .product.service, .suite.six .product.service:nth-child(3n) { padding: 28px; border-top: 0; margin-top: 8px; }
  .group .suite { grid-template-columns: minmax(0, 1fr); }
  .product-page { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .facts { position: static; }
  .ticks.cols { grid-template-columns: minmax(0, 1fr); }
  nav.main a.lang { display: none; }
}
@media (max-width: 620px) {
  .product.wide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-strip { grid-template-columns: minmax(0, 1fr); }
  .service-strip .tile { grid-row: auto; }
}
