/* 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); }
.values.plain { background: var(--surface); }
.values .ticks.cols + .more-link { margin-top: 28px; }

/* 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; }
.facts.wide-labels .calls li { grid-template-columns: 86px minmax(0, 1fr); }
.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); }

/* Price list (password-protected price pages), with the estimate calculator (site.js) */
.prices .price-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 6px 0 8px; font-size: 16.5px; }
.price-table th, .price-table td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.price-table thead th { border-top: 0; font: 600 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-mute); padding-bottom: 6px; }
.price-table tbody th { font-weight: 600; color: var(--fg); }
.price-table .n { text-align: right; font-family: var(--mono); font-size: 15px; white-space: nowrap; padding-right: 28px; }
.price-table td:nth-child(4) { color: var(--fg-soft); white-space: nowrap; }
.price-table thead th:nth-child(1) { width: 40%; }
.price-table thead th:nth-child(2) { width: 14%; }
.price-table thead th:nth-child(3) { width: 16%; }
.price-table .q { display: none; }
.calc-on .price-table .q { display: table-cell; text-align: right; padding-right: 0; }
.calc-on .price-table thead th:nth-child(1) { width: 34%; }
.price-table input { width: 100%; max-width: 112px; font: 500 15px var(--mono); text-align: right; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--fg); }
.price-table input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 46px; max-width: none; height: 26px; padding: 0; border: 0; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; vertical-align: middle; transition: background-color .15s; }
.price-table input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(40,42,34,.3); transition: transform .15s; }
.price-table input[type="checkbox"]:checked { background: var(--band); }
.price-table input[type="checkbox"]:checked::after { transform: translateX(20px); }
.price-table input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--deep); }
/* Product headings link to the product page */
.prices h2 a { color: inherit; text-decoration: none; }
.prices h2 a::after { content: " ↗"; font-size: .7em; color: var(--deep); }
.prices h2 a:hover { color: var(--deep); }
.calc { position: sticky; bottom: 16px; margin-top: 48px; background: var(--ink); color: var(--ink-fg); border-radius: var(--r-card); padding: 18px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 36px; box-shadow: 0 2px 4px rgba(40,42,34,.12), 0 18px 40px rgba(40,42,34,.22); }
.calc h2 { margin: 0; font-size: 19px; color: inherit; }
.calc dl { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; }
.calc dt { font: 600 12px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.calc dd { margin: 0; display: flex; align-items: baseline; gap: 10px; font: 500 14px var(--mono); color: var(--ink-soft); }
.calc dd b { font: 700 24px var(--display); color: var(--band); }
.calc p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.calc dl { grid-column: 2 / -1; }
.calc-actions { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; }
.calc .calc-actions p { margin-right: auto; }
.calc .btn { padding: 9px 14px; font-size: 15px; white-space: nowrap; }
.calc .btn:disabled { opacity: .45; cursor: default; }
.calc .btn-line { background: transparent; color: var(--ink-fg); border-color: var(--ink-fg); }
.calc .btn-line:hover:not(:disabled) { background: var(--ink-2); color: var(--band); border-color: var(--band); }

@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) {
  .price-table { font-size: 15px; }
  .price-table .n { padding-right: 10px; font-size: 13.5px; }
  .price-table thead th { font-size: 10px; letter-spacing: .03em; }
  .price-table td:nth-child(4), .price-table th:nth-child(4) { display: none; }
  .price-table thead th:nth-child(1), .calc-on .price-table thead th:nth-child(1) { width: 38%; }
  .price-table thead th:nth-child(2) { width: 18%; }
  .price-table thead th:nth-child(3) { width: 22%; }
  .price-table input { padding: 6px; font-size: 14px; }
  .calc { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 12px 16px; bottom: 8px; margin-top: 32px; }
  .calc h2 { font-size: 17px; }
  .calc-actions { grid-column: 1 / -1; grid-row: 3; flex-wrap: wrap; }
  .calc .btn { padding: 6px 10px; font-size: 13.5px; }
  .calc dl { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
  .calc dt { font-size: 11px; }
  .calc dd { display: block; font-size: 12.5px; }
  .calc dd b { display: block; }
  .calc dd b { font-size: 20px; }
  .calc p { display: none; }
  .product.wide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-strip { grid-template-columns: minmax(0, 1fr); }
  .service-strip .tile { grid-row: auto; }
}
