/* The pages of the modular site (blog, academy, tools, compare, features, legal) on the tokens of the Studio stylesheet (/assets/studio-css): the bar (topbar), 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: var(--t-base); }
.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: var(--t-display); line-height: var(--lh-display); letter-spacing: var(--track-display); text-wrap: balance; overflow-wrap: anywhere; }
.sg-lead { max-width: 680px; margin: 20px 0 0; color: var(--text-3); font-size: clamp(var(--t-lg), 1.6vw, var(--t-xl)); line-height: 1.55; text-wrap: pretty; }
.sg-pill { margin: 0 0 20px; padding: 5px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); font-size: var(--t-sm); 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: var(--t-base); }
.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: var(--t-xs); 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: var(--t-lg); 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: var(--t-2xl); line-height: 1.2; scroll-margin-top: 96px; }
.sg-body h3 { margin: 1.8em 0 .5em; color: var(--text-1); font-size: var(--t-xl); 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: var(--t-lg); }
.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: var(--t-sm); 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: var(--t-md); }
.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: var(--t-sm); 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-rail { position: sticky; top: 96px; align-self: start; display: grid; gap: 24px; }
.sg-toc { padding-top: 4px; font-size: var(--t-base); }
.sg-toc__title { margin: 0 0 14px; color: var(--text-4); font-size: var(--t-sm); 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: var(--t-sm); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.sg-verdict__text { margin: 0 0 20px; color: var(--text-1); font-size: var(--t-xl); 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: var(--t-base); }

.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: var(--t-sm); }
.sg-step__title { color: var(--text-1); font-weight: 500; }


.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: var(--t-display); line-height: var(--lh-display); text-wrap: balance; }
.sg-cta__text { margin: 20px 0 0; color: var(--text-3); font-size: var(--t-lg); }
.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; }



/* 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: var(--t-lg); 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: var(--t-xl); 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: var(--t-lg); 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: var(--t-sm); 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(--text-4); outline: 0; }
.sg-widget__actions { display: flex; align-items: center; gap: 16px; }
.sg-widget__status { color: var(--text-3); font-size: var(--t-base); }
.sg-widget [hidden] { display: none; }
.sg-body .sg-action { max-width: 68ch; margin: 24px auto; }
.sg-action--card { margin: 0; }
html .sg-action--card.prompt, html .sg-action--card.prompt:hover, html .sg-action--card.prompt:focus-within { box-shadow: 0 0 0 1px var(--line-2); }
.sg-action--card .rs-prompt__input { flex: none; box-sizing: border-box; width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--bg-1); }
.sg-action--card .rs-prompt__input:focus { border-color: var(--text-4); }
.sg-action__eyebrow { margin: 0; color: var(--text-3); font-size: var(--t-sm); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.sg-action__title { margin: 0; color: var(--text-1); font-size: var(--t-base); font-weight: 500; line-height: 1.35; }
.sg-action--card .rs-prompt__row { flex-direction: column; align-items: stretch; }
.sg-action--card .rs-prompt__send { width: 100%; }
.sg-body ul:has(> li > input[type="checkbox"]) { padding-left: 0; }
.sg-body li:has(> input[type="checkbox"]) { list-style: none; }
.sg-body li > input[type="checkbox"] { margin: 0 8px 0 0; vertical-align: -2px; accent-color: var(--accent); }
.sg-action--dup { transition: opacity var(--d-fast); }
.sg-action--dup.is-covered { visibility: hidden; opacity: 0; }
.sg-body .sg-action__note { margin: 0; color: var(--text-3); font-size: var(--t-sm); line-height: 1.4; }

/* the hub of the free tools: the first two cards are big, the three after them share the row; a whole card is the link (the name stretches over it); the space is one step */
.tg-main--hub { gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.tg-main--hub .sg-block { margin: 0; }
.tg-tiles--hub { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 20px; margin: 0; padding: 0; list-style: none; }
.tg-tiles--hub > li { grid-column: span 2; display: flex; }
.tg-tiles--hub > li:nth-child(-n+2) { grid-column: span 3; }
.tg-tile--hub { position: relative; flex: 1; }
.tg-tile--hub .tg-tile__name a::after { content: ""; position: absolute; inset: 0; }
.tg-tile--hub:hover .tg-tile__frame { background: rgb(255 255 255 / 0.09); }
.tg-tile--hub .tg-tile__meta { gap: 8px; }
.tg-tile__open { color: var(--text-1); font-size: var(--t-base); font-weight: 500; }

/* the blocks of a landing */
.sg-block { margin: 3em 0; }
.sg-block__title { margin: 0 0 24px; font-size: var(--t-2xl); }
.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: var(--t-xl); }
.sg-feature__text { margin: 0; color: var(--text-3); font-size: var(--t-md); 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: var(--t-lg); }
.sg-actions--hero { justify-content: flex-start; }


@media (max-width: 1000px) {
    .sg-action--card.sg-action--dup { display: none; }
    .tg-tiles--hub > li, .tg-tiles--hub > li:nth-child(-n+2) { grid-column: span 6; }
    .sg-tiles, .sg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sg-layout--toc { display: flex; flex-direction: column; gap: 32px; }
    .sg-rail { order: 2; position: static; align-self: stretch; }
    .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-tiles, .sg-features { grid-template-columns: minmax(0, 1fr); }
    /* on a phone the code wraps instead of scrolling sideways: a code block that scrolls inside the panel with round corners is drawn white over the corner by Chrome */
    .sg-body pre { overflow-x: clip; }
    .sg-body pre code { width: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
    .sg-demo__box { flex-direction: column; align-items: stretch; text-align: center; }
    .sg-widget { padding: 16px; margin-bottom: 40px; }
    .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: var(--t-lg); }
    .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: var(--t-xs); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
}

