/* Type follows home #reflow-master-pro and #discover; title follows Develop. */
.gs-page { font-family: Poppins, "Helvetica Neue", Arial, sans-serif; font-size: 15px; font-weight: 400; line-height: 1.55; color: #56616d; background: rgba(255,255,255,.5); }
.gs-page [hidden] { display: none !important; }
.gs-page .v6-intro h1 { margin: 0; font-family: Poppins, Arial, sans-serif; font-size: clamp(30px,2.7vw,42px); font-weight: 600; line-height: 1.13; letter-spacing: -.04em; color: #171b20; }
.gs-page .v6-intro .sd-intro-row { margin-bottom: 0; }
.gs-page .v6-lead { margin-bottom: 0; }
.gs-page h2, .gs-page .gs-preinstalled-title { margin: 0 0 14px; font-size: clamp(22px,2.05vw,28px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; color: #171b20; }
.gs-page h3 { margin: 22px 0 10px; font-size: 16px; font-weight: 600; line-height: 1.4; color: #171b20; }
.gs-page p { margin: 0 0 14px; font-size: inherit; font-weight: 400; line-height: 1.55; color: inherit; }
.gs-page strong { font-weight: 600; }
.gs-selector { padding-block: 12px 20px; border-bottom: 1px solid var(--line); }
.gs-mcu-options { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 19px; }
.gs-mcu-options .btn { min-width: 110px; min-height: 34px; padding: 5px 18px; font-size: 14px; line-height: 22px; color: var(--mcu-colour); border-color: var(--mcu-colour); }
.gs-mcu-options .btn:hover { color: var(--mcu-colour); border-color: var(--mcu-colour); background: color-mix(in srgb,var(--mcu-colour) 8%,white); }
.gs-mcu-options .btn[aria-current] { color: #fff; background: var(--mcu-colour); border-color: var(--mcu-colour); }
.gs-mcu-options .btn[aria-current]:hover { background: color-mix(in srgb,var(--mcu-colour) 88%,black); }
.gs-mcu-options .btn:focus-visible { outline-color: var(--mcu-colour); }
.gs-page .gs-selection { margin: 14px 0 0; font-size: 13px; color: #526b88; }
.gs-guide { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: clamp(30px,5vw,76px); padding-block: 34px 52px; align-items: start; }
.gs-contents { position: sticky; top: 86px; }
.gs-contents nav { display: grid; gap: 12px; }
.gs-page .gs-contents p { margin: 0 0 4px; color: #171b20; font-size: 16px; font-weight: 600; }
.gs-contents a { color: #526b88; }
.gs-contents a:hover { color: var(--blue); }
.gs-content { min-width: 0; max-width: 920px; }
.gs-content section { scroll-margin-top: 86px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.gs-content section:last-child { border: 0; margin: 0; padding: 0; }
.gs-page .gs-board-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.gs-page .gs-board-list li { margin: 0; padding: 4px 10px; border-radius: 5px; background: var(--mcu-colour); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.5; }
.gs-connection-modules { margin: 12px 0 18px; padding: 14px 18px; border: 1px solid #d6e0eb; border-radius: var(--radius-sm); background: #fff; }
.gs-connection-modules summary { cursor: pointer; color: #171b20; font-weight: 600; }
.gs-connection-modules[open] summary { margin-bottom: 12px; }
.gs-connection-modules > :last-child { margin-bottom: 0; }
.gs-drive-illustration { max-width: 520px; margin: 20px 0; padding: 20px; border: 1px solid #d6e0eb; border-radius: var(--radius-sm); background: #fff; }
.gs-drive-name { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid #d6e0eb; }
.gs-drive-name svg { grid-row: 1 / 3; }
.gs-drive-illustration svg { width: 32px; height: 32px; fill: none; stroke: var(--mcu-colour); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gs-drive-illustration strong { display: block; color: #171b20; }
.gs-drive-name > span, .gs-drive-file div > span { display: block; font-size: 13px; color: #56616d; }
.gs-drive-file { display: flex; align-items: center; gap: 12px; margin: 16px 0 0 12px; padding-left: 14px; border-left: 2px solid #d6e0eb; }
.gs-drive-file svg, .gs-file-icon { flex-shrink: 0; }
.gs-file-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1.6px solid var(--mcu-colour); border-radius: 4px; color: var(--mcu-colour); font-size: 12px; font-weight: 600; }
.gs-first-flash { margin: 20px 0; padding: 16px; background: color-mix(in srgb,var(--mcu-colour) 8%,white); border-bottom: 2px solid color-mix(in srgb,var(--mcu-colour) 35%,white); border-radius: 8px; }
.gs-page .gs-first-flash h3 { margin: 0 0 10px; }
.gs-first-flash > :last-child { margin-bottom: 0; }
.gs-page .gs-note { padding: 17px 20px; border-radius: var(--radius-sm); background: #eaf2fb; margin: 18px 0; }
.gs-note > :last-child { margin-bottom: 0; }
.gs-page ul, .gs-page ol { margin: 12px 0 18px; padding-left: 24px; }
.gs-page li { margin-block: 7px; padding-left: 3px; }
.gs-page a { overflow-wrap: anywhere; }
.gs-page a:focus-visible, .gs-page summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.gs-page .gs-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0 0; }
.gs-page .gs-links a { display: inline-block; }
.gs-platform { margin: 12px 0; background: #fff; border: 1px solid #d6e0eb; border-radius: var(--radius-sm); overflow: hidden; }
.gs-platform summary { display: flex; gap: 18px; align-items: center; cursor: pointer; padding: 18px 22px; list-style: none; color: #171b20; }
.gs-platform summary::-webkit-details-marker { display: none; }
.gs-platform summary::after { content: '+'; font-size: 24px; font-weight: 400; line-height: 1; color: var(--blue); margin-left: auto; flex-shrink: 0; }
.gs-platform[open] summary::after { content: '−'; }
.gs-platform summary:hover { background: #f5f9fe; }
.gs-platform summary strong { display: block; font-size: 16px; line-height: 1.4; }
.gs-platform summary span span { display: block; font-size: 14px; font-weight: 400; color: #56616d; margin-top: 3px; }
.gs-platform-logo { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.gs-logo-micropython { filter: brightness(0); }
.gs-platform-body { padding: 4px 22px 22px; }
.gs-platform-body > :last-child { margin-bottom: 0; }
.gs-page pre { max-width: 100%; overflow-x: auto; padding: 16px 18px; margin: 15px 0; border: 1px solid #dce3eb; border-radius: 8px; background: #f6f8fb; color: #243649; font-size: 13px; line-height: 1.65; tab-size: 4; }
.gs-page code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.gs-page :not(pre) > code { font-size: .92em; color: #243649; background: #edf2f8; padding: 1px 4px; border-radius: 3px; }
.gs-page pre code { white-space: pre; overflow-wrap: normal; }
.gs-page pre:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gs-troubleshooting { padding-block: 13px; border-top: 1px solid var(--line); }
.gs-troubleshooting summary { font-size: 16px; font-weight: 600; color: #171b20; cursor: pointer; }
.gs-troubleshooting p { margin: 12px 0 0; }
.gs-board-reference { display: grid; grid-template-columns: minmax(0,280px) minmax(0,1fr); align-items: center; gap: 28px; margin: 26px 0; }
.gs-page .gs-board-reference h3 { margin-top: 0; }
.gs-page .gs-pinout { width: 100%; max-width: 340px; }
.gs-pinout img { max-height: 260px; }
.gs-table-wrap { overflow-x: auto; margin: 18px 0; }
.gs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: inherit; }
.gs-table caption { text-align: left; color: #171b20; font-weight: 600; margin-bottom: 10px; }
.gs-table th, .gs-table td { padding: 11px 13px; border-bottom: 1px solid #d6e0eb; vertical-align: top; }
.gs-table thead { background: #edf3f9; color: #243649; }
.gs-table th { font-weight: 600; }
.gs-boot-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 24px 0; }
.gs-boot-steps > div { padding: 18px; background: #fff; border: 1px solid #d6e0eb; border-radius: var(--radius-sm); }
.gs-boot-steps span { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--mcu-colour); color: #fff; font-weight: 600; }
.gs-boot-steps strong { display: block; color: #171b20; margin-bottom: 8px; }
.gs-page .gs-boot-steps p { margin: 0; }
.gs-code-example { min-width: 0; margin: 15px 0; }
.gs-page .gs-code-example pre { margin: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.gs-code-toolbar { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #dce3eb; border-bottom: 0; border-radius: 8px 8px 0 0; color: #526b88; font-size: 12px; }
.gs-copy { font: inherit; color: var(--blue); border: 1px solid #cbd9e9; border-radius: 5px; padding: 4px 10px; background: #fff; cursor: pointer; flex-shrink: 0; }
.gs-copy:hover { background: #edf3f9; }
.gs-copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 900px) {
    .gs-page { font-size: 14px; }
    .gs-guide { grid-template-columns: 1fr; gap: 28px; }
    .gs-contents { position: static; }
    .gs-contents nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
    .gs-page .gs-contents p { width: 100%; margin-bottom: 0; }
}
@media (max-width: 700px) {
    .gs-board-reference { grid-template-columns: 1fr; gap: 18px; }
    .gs-board-reference .gs-pinout { justify-self: start; align-self: start; }
    .gs-boot-steps { grid-template-columns: 1fr; gap: 10px; }
    .gs-boot-steps > div { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding: 14px; }
    .gs-boot-steps span { grid-row: 1 / 3; margin: 0; }
    .gs-boot-steps p { grid-column: 2; }
    .gs-page .v6-intro h1 { font-size: 32px; line-height: 1.12; }
    .gs-selector { padding-top: 12px; }
    .gs-mcu-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .gs-mcu-options .btn { min-width: 0; padding-inline: 16px; }
    .gs-platform summary { padding: 16px; gap: 12px; }
    .gs-platform-body { padding: 2px 16px 18px; }
    .gs-content section { margin-bottom: 24px; padding-bottom: 24px; }
}

/* Language and tool tiles: the product description platform cells, tightened; all link to Develop. */
.gs-page .um-development-link { display: block; color: inherit; }
.gs-page .um-development-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.gs-page .um-development-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin: 16px 0; }
.gs-page .um-development-option { padding: 8px 6px; border: 1px solid #dce3eb; border-radius: 10px; background: #fff; }
.gs-page .um-development-brand { display: grid; grid-template-rows: 32px auto; justify-items: center; gap: 6px; }
.gs-page .um-development-brand img { display: block; width: 90px; max-width: 100%; height: 32px; object-fit: contain; }
.gs-page .um-platform-micropython img { filter: brightness(0); }
.gs-page .um-development-brand h3 { margin: 0; font-size: 12px; line-height: 1.3; font-weight: 600; color: #18212c; text-align: center; }
@media (max-width: 700px) { .gs-page .um-development-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Hover: the home page workbench card hover. */
.gs-page .um-development-option { transition: border-color .22s, box-shadow .22s, transform .22s; }
.gs-page .um-development-option:hover { border-color: #91a3b4; box-shadow: 0 5px 13px #23394d12; transform: translateY(-2px); }
.gs-page .um-development-option:hover h3 { color: #176bc0; }
@media (prefers-reduced-motion: reduce) { .gs-page .um-development-option { transition: none; } .gs-page .um-development-option:hover { transform: none; } }
.gs-page .um-development-option { display: flex; align-items: center; justify-content: center; }
.gs-page .um-development-brand { width: 100%; }

/* Compact step cards (as on Develop): number and title on one row, description below. */
.gs-page .gs-boot-steps { margin: 16px 0; gap: 10px; }
.gs-page .gs-boot-steps > div { display: grid; grid-template-columns: 26px minmax(0,1fr); align-items: center; gap: 6px 10px; padding: 12px 14px; }
.gs-page .gs-boot-steps span { grid-row: auto; width: 26px; height: 26px; margin: 0; font-size: 13px; }
.gs-page .gs-boot-steps strong { margin: 0; white-space: nowrap; }
.gs-page .gs-boot-steps p { grid-column: 1 / -1; }

/* Helper library tabs: the home page Smart USB Hub view switch. */
.gs-helper-tabs { display: flex; gap: 8px; margin: 16px 0; }
.gs-helper-tabs button { font: 500 12px Poppins, Arial, sans-serif; cursor: pointer; background: transparent; border: 0; color: #667484; padding: 10px 12px; border-radius: 6px; }
.gs-helper-tabs button:hover { background: #edf1f6; }
.gs-helper-tabs [aria-selected="true"] { background: #e4edf7; color: #176bc0; }
.gs-helper-tabs button:focus-visible { outline: 2px solid #2f7fe8; outline-offset: 3px; }
.gs-helper-panel > h3:first-child { margin-top: 0; }
