/* The pages of the modular site (blog, academy, tools, compare, features, legal) on the tokens of the Studio stylesheet (/assets/studio-css): the bar (lnav), the foot (sitefoot), the buttons (btn) and the colours are the home page's own; only the parts of a page of text are here. */

.sg-main { padding-block: 24px 96px; }

.sg-crumbs { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; margin: 0 0 40px; color: var(--text-4); font-size: 14px; }
.sg-crumbs a { color: var(--text-3); transition: color var(--d-fast); }
.sg-crumbs a:hover { color: var(--text-1); }
.sg-crumbs i { font-style: normal; opacity: .5; }
.sg-crumbs span { overflow: hidden; max-width: 36ch; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }

.sg a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sg-head { display: flex; flex-direction: column; align-items: center; max-width: 880px; margin: 0 auto 48px; text-align: center; }
.sg-title { margin: 0; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.sg-lead { max-width: 680px; margin: 20px 0 0; color: var(--text-3); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; text-wrap: pretty; }
.sg-pill { margin: 0 0 20px; padding: 5px 14px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--accent-soft); color: var(--accent-light); font-size: 13px; font-weight: 500; transition: border-color var(--d-fast); }
.sg-pill:hover { border-color: var(--accent); }
.sg-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; color: var(--text-4); font-size: 14px; }
.sg-meta i { font-style: normal; opacity: .6; }
.sg-author { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.sg-author__mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--accent-line); border-radius: 50%; background: var(--accent-soft); color: var(--accent-light); font-size: 12px; font-weight: 500; }
.sg-meta--head { margin: 24px 0 0; }

.sg-article { max-width: 1120px; margin: 0 auto; }
.sg-cover { display: block; width: 100%; height: auto; margin: 0 0 56px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--bg-2); }

.sg-layout { display: block; }
.sg-layout--toc { display: grid; grid-template-columns: 220px minmax(0, 68ch); justify-content: center; gap: 64px; }
.sg-body { max-width: 68ch; margin: 0 auto; color: var(--text-2); font-size: 17px; line-height: 1.7; overflow-wrap: anywhere; }
.sg-layout--toc .sg-body { margin: 0; }
.sg-body > :first-child { margin-top: 0; }
.sg-body p, .sg-body ul, .sg-body ol { margin: 0 0 1.2em; }
.sg-body h2 { margin: 2.2em 0 .6em; color: var(--text-1); font-size: clamp(26px, 3vw, 32px); line-height: 1.2; scroll-margin-top: 96px; }
.sg-body h3 { margin: 1.8em 0 .5em; color: var(--text-1); font-size: 22px; line-height: 1.3; scroll-margin-top: 96px; }
.sg-body strong { color: var(--text-1); font-weight: 600; }
.sg-body a { color: var(--accent-light); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; transition: text-decoration-color var(--d-fast); }
.sg-body a:hover { text-decoration-color: var(--accent-light); }
.sg-body ul, .sg-body ol { padding-left: 1.4em; }
.sg-body li { margin: 0 0 .5em; padding-left: .2em; }
.sg-body li::marker { color: var(--text-4); }
.sg-body img { display: block; max-width: 100%; height: auto; margin: 1.6em 0; border: 1px solid var(--line-1); border-radius: var(--r-lg); }
.sg-body blockquote { margin: 1.8em 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--accent); color: var(--text-3); font-size: 18px; }
.sg-body blockquote p:last-child { margin-bottom: 0; }
.sg-body code { padding: 2px 7px; border-radius: 6px; background: var(--bg-3); color: var(--text-1); font: 14px/1.5 var(--font-mono); }
.sg-body pre { overflow-x: auto; margin: 1.6em 0; padding: 18px 22px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--bg-1); }
.sg-body pre { max-width: 100%; }
.sg-body pre code { display: block; width: max-content; min-width: 100%; white-space: pre; padding: 0; background: none; font-size: 13px; line-height: 1.65; }
.sg-body hr { margin: 2.8em 0; border: 0; border-top: 1px solid var(--line-1); }
.sg-body table { width: 100%; margin: 1.8em 0; border-collapse: collapse; font-size: 15px; }
.sg-body th, .sg-body td { padding: 12px 16px; border-bottom: 1px solid var(--line-1); text-align: left; vertical-align: top; }
.sg-body th { color: var(--text-4); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.sg-body td:first-child { color: var(--text-1); font-weight: 500; }

.sg-toc { position: sticky; top: 96px; align-self: start; padding-top: 4px; font-size: 14px; }
.sg-toc__title { margin: 0 0 14px; color: var(--text-4); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.sg-toc ol { margin: 0; padding: 0; border-left: 1px solid var(--line-1); list-style: none; }
.sg-toc a { display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent; color: var(--text-3); line-height: 1.4; transition: color var(--d-fast), border-color var(--d-fast); }
.sg-toc a:hover { border-left-color: var(--accent); color: var(--text-1); }

.sg-verdict { display: grid; max-width: 760px; margin: 0 auto 56px; padding: 28px 32px; border: 1px solid var(--accent-line); border-radius: var(--r-lg); background: var(--accent-soft); }
.sg-verdict__label { margin: 0 0 6px; color: var(--accent-light); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.sg-verdict__text { margin: 0 0 20px; color: var(--text-1); font-size: 19px; line-height: 1.5; }
.sg-verdict__text:last-child { margin-bottom: 0; }
.sg-notice { max-width: 68ch; margin: 0 auto 32px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-2); color: var(--text-3); font-size: 14px; }

.sg-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 68ch; margin: 56px auto 0; }
.sg-step { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--bg-2); transition: border-color var(--d-fast), background-color var(--d-fast); }
.sg-step:hover { border-color: var(--accent-line); background: var(--bg-3); }
.sg-step--next { grid-column: 2; text-align: right; }
.sg-step__label { color: var(--text-4); font-size: 13px; }
.sg-step__title { color: var(--text-1); font-weight: 500; }

.sg-chips, .sg-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; }
.sg-chip { padding: 7px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-3); font-size: 14px; transition: border-color var(--d-fast), color var(--d-fast), background-color var(--d-fast); }
.sg-chip span { opacity: .6; }
.sg-chip:hover { border-color: var(--line-3); color: var(--text-1); }
.sg-chip[aria-current] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text-1); }
.sg-pager { margin: 56px 0 0; }

.sg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.sg-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--bg-2); transition: border-color var(--d-fast), background-color var(--d-fast), transform var(--d-fast); }
.sg-card:hover { border-color: var(--accent-line); background: var(--bg-3); transform: translateY(-2px); }
.sg-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line-1); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--bg-1); }
.sg-card__mark { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); opacity: .35; }
.sg-card__media--type { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: 22px 24px; background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--bg-1); }
.sg-card__media--type .sg-card__title { display: -webkit-box; overflow: hidden; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.sg-card__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.sg-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.sg-card__title { margin: 0; color: var(--text-1); font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sg-card__text { display: -webkit-box; overflow: hidden; color: var(--text-3); font-size: 15px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.sg-card .sg-meta { justify-content: flex-start; font-size: 13px; }

.sg-more { max-width: 1120px; margin: 112px auto 0; }
.sg-more__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.sg-more__head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }

.sg-cta { max-width: 1120px; margin: 112px auto 0; padding: 72px 24px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--bg-1); text-align: center; }
.sg-cta__title { max-width: 14em; margin: 0 auto; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; text-wrap: balance; }
.sg-cta__text { margin: 20px 0 0; color: var(--text-3); font-size: 18px; }
.sg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 32px 0 0; }

.sg-state { max-width: 640px; margin: 48px auto 0; text-align: center; }
.sg-state .sg-title { font-size: clamp(32px, 4.6vw, 52px); }

.sitefoot__groups { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line-1); }


/* the menu of Resources: a drop under the link, with no script (it opens on hover and on focus) */
.lnav__menu { position: relative; display: flex; align-items: center; }
.lnav__drop { position: absolute; top: 100%; left: 0; z-index: var(--z-topbar); display: none; min-width: 200px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.lnav__menu:hover .lnav__drop, .lnav__menu:focus-within .lnav__drop { display: grid; }
.lnav__drop-link { padding: 10px 14px; border-radius: var(--r-md); color: var(--text-2); font-size: 15px; font-weight: 500; transition: background-color var(--d-fast), color var(--d-fast); }
.lnav__drop-link:hover, .lnav__drop-link[aria-current] { background: var(--bg-4); color: var(--text-1); }

/* the menu on a phone: the same links in a panel under the bar, no script (a details element) */
.lnav__burger { display: none; position: relative; }
.lnav__burger-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-md); color: var(--text-1); cursor: pointer; list-style: none; transition: background-color var(--d-fast), border-color var(--d-fast); }
.lnav__burger-btn::-webkit-details-marker { display: none; }
.lnav__burger-btn:hover, .lnav__burger[open] .lnav__burger-btn { border-color: var(--accent-line); background: var(--bg-3); }
.lnav__burger-btn span, .lnav__burger-btn span::before { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
.lnav__burger-btn span { position: relative; top: -3px; }
.lnav__burger-btn span::before { content: ''; position: absolute; top: 6px; left: 0; }
.lnav__panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: var(--z-topbar); display: grid; gap: 2px; width: min(320px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); box-shadow: 0 24px 60px rgb(0 0 0 / .45); }
.lnav__panel .lnav__link, .lnav__panel .lnav__drop-link { padding: 12px 14px; border-radius: var(--r-md); }
.lnav__panel .lnav__menu { display: grid; }
.lnav__panel .lnav__drop { position: static; display: grid; min-width: 0; padding: 0 0 0 14px; border: 0; background: none; box-shadow: none; }
.lnav__panel-login { border-top: 1px solid var(--line-1); border-radius: 0; margin-top: 6px; }
@media (max-width: 899px) { .lnav__burger { display: block; } }
@media (min-width: 521px) { .lnav__panel-login { display: none; } }
@media (max-width: 520px) { .lnav__login { display: none; } .lnav__actions { margin-left: auto; } }

/* the FAQ: questions in a list with thin dividers, an answer opens under its question */
.sg-faq { margin: 2.6em 0 0; }
.sg-faq__list { border-top: 1px solid var(--line-1); }
.sg-faq__item { border-bottom: 1px solid var(--line-1); }
.sg-faq__question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--text-1); font-size: 18px; font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none; transition: color var(--d-fast); }
.sg-faq__question::-webkit-details-marker { display: none; }
.sg-faq__question::after { content: '+'; flex: none; color: var(--text-4); font-size: 22px; font-weight: 400; transition: transform var(--d-fast); }
.sg-faq__item[open] .sg-faq__question::after { transform: rotate(45deg); }
.sg-faq__question:hover { color: var(--accent-light); }
.sg-faq__answer { padding: 0 0 18px; }
.sg-faq__answer > :last-child { margin-bottom: 0; }

/* a tool: the field, the button and the result right under the head */
.sg-widget { display: grid; gap: 16px; max-width: 68ch; margin: 0 auto 64px; font-size: 17px; padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.sg-widget__pane { display: grid; gap: 8px; }
.sg-widget__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sg-widget__label { color: var(--text-3); font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.sg-widget__field { width: 100%; min-height: 160px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-1); color: var(--text-1); font: 15px/1.6 var(--font-mono); resize: vertical; transition: border-color var(--d-fast); }
.sg-widget__field:focus-visible { border-color: var(--accent-line); outline: 0; }
.sg-widget__actions { display: flex; align-items: center; gap: 16px; }
.sg-widget__status { color: var(--text-3); font-size: 14px; }
.sg-widget [hidden] { display: none; }

/* the blocks of a landing */
.sg-block { margin: 3em 0; }
.sg-block__title { margin: 0 0 24px; font-size: clamp(26px, 3vw, 34px); }
.sg-tiles, .sg-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sg-tile { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--bg-2); color: var(--text-1); font-weight: 500; transition: border-color var(--d-fast), background-color var(--d-fast); }
a.sg-tile:hover { border-color: var(--accent-line); background: var(--bg-3); }
.sg-tile .icon, .sg-feature .icon { color: var(--accent-light); }
.sg-feature { padding: 24px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--bg-2); }
.sg-feature__title { margin: 14px 0 6px; font-size: 20px; }
.sg-feature__text { margin: 0; color: var(--text-3); font-size: 15px; line-height: 1.55; }
.sg-demo__box { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-2); }
.sg-demo__text { margin: 0; color: var(--text-3); font-size: 17px; }
.sg-actions--hero { justify-content: flex-start; }

.sitefoot__groups a { white-space: nowrap; }

@media (max-width: 1000px) {
    .sg-cards, .sg-tiles, .sg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sg-layout--toc { display: block; }
    .sg-toc { display: none; }
}

@media (max-width: 640px) {
    .sg-main { padding-block: 8px 64px; }
    .sg-crumbs { margin-bottom: 28px; }
    .sg-head { margin-bottom: 32px; }
    .sg-cover { margin-bottom: 36px; }
    .sg-body { font-size: 16px; }
    .sg-cards, .sg-tiles, .sg-features { grid-template-columns: minmax(0, 1fr); }
    .sg-demo__box { flex-direction: column; align-items: stretch; text-align: center; }
    .sg-widget { padding: 16px; margin-bottom: 40px; }
    .sitefoot__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
    .sg-more { margin-top: 72px; }
    .sg-cta { margin-top: 72px; padding: 48px 20px; }
    .sg-verdict { padding: 22px 20px; }
    .sg-steps { grid-template-columns: minmax(0, 1fr); }
    .sg-step--next { grid-column: 1; }
    .sg-body table, .sg-body tbody, .sg-body tr, .sg-body td { display: block; }
    .sg-body thead { display: none; }
    .sg-body tr { margin: 0 0 14px; padding: 6px 16px; border: 1px solid var(--line-1); border-radius: var(--r-lg); background: var(--bg-2); }
    .sg-body td { padding: 10px 0; border-bottom: 1px solid var(--line-1); }
    .sg-body td:last-child { border-bottom: 0; }
    .sg-body td:first-child { padding-top: 14px; border-bottom: 0; font-size: 17px; }
    .sg-body td:first-child::before { display: none; }
    .sg-body td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--text-4); font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) { .sg-card, .sg-card:hover { transform: none; transition: none; } }
