/* CloudBrum service suggester page (service-suggester.html). Builds on cb-support.css (.sp shell, hero, sections, CTA); scoped to .sg */
.sg { max-width: 1240px; --aws: #e08a00; --azure: #1b9ad6; --gcp: #e5384f; }
.sg [data-c="aws"] { --c: #e08a00; --bg: #fff7e6; --cink: #7a4a00; }
.sg [data-c="azure"] { --c: #1b9ad6; --bg: #eef8fd; --cink: #0b5a82; }
.sg [data-c="gcp"] { --c: #e5384f; --bg: #fef0f2; --cink: #a11d32; }

/* Hero (same light card as the free training page) */
.sg .sp-hero { position: relative; overflow: hidden; padding: 2rem 2rem 1.6rem; }
.sg .sp-hero > * { position: relative; z-index: 1; }
.sg .sp-hero > .sg-deco { position: absolute; z-index: 0; right: -1rem; top: -1rem; font-size: 14rem; line-height: 1; color: var(--brand); opacity: .06; pointer-events: none; transform: rotate(-8deg); }
.sg .sg-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; padding: .22rem .85rem .22rem .25rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(84,27,163,.06); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.sg .sg-eyebrow .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .8rem; background: linear-gradient(135deg, #6d3fc0, #8b5fd6); }
.sg .sp-hero h1 { margin: 0 0 .8rem; max-width: 22em; font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.sg .sg-acc { background: linear-gradient(90deg, #7d4fd0 0%, #a678e8 55%, #f5b73a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .sg .sg-acc { background: none; color: var(--brand); } }
@media (forced-colors: active), print { .sg .sg-acc { background: none; color: inherit; } }
.sg .sp-hero > p:not(.sg-updated) { max-width: 60ch; margin-bottom: 1rem; font-size: 1.1rem; }
.sg .sg-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.sg .sg-chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .85rem .3rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .84rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.sg .sg-chips i { font-size: 1rem; line-height: 1; color: var(--brand); }
.sg .sg-updated { max-width: 78ch; margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.sg .sp-cta.alt { background: #fff; border: 1.5px solid #d3c6f0; color: var(--brand); box-shadow: none; }
.sg .sp-cta.alt:hover { background: var(--soft); color: var(--brand); }

/* The form */
.sg .sg-form { border: 1px solid #e2d9f3; border-radius: 22px; padding: 1.4rem 1.4rem 1.2rem; background: #fff; box-shadow: 0 10px 30px rgba(84,27,163,.08); border-top: 6px solid var(--y); }
.sg .sg-label { display: block; margin: 0 0 .35rem !important; font-size: .88rem; font-weight: 800; color: var(--ink); float: none; width: auto; padding: 0; }
.sg legend.sg-label { font-size: .88rem; line-height: 1.4; }
.sg .sg-field { margin: 0 0 1rem; }
.sg .sg-fs { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.sg #sg-q { display: block; width: 100%; min-height: 130px; resize: vertical; border: 1px solid #cfc6e6; border-radius: 14px; padding: .8rem .95rem; font-size: 1rem; line-height: 1.55; color: var(--ink); background: #fff; }
.sg #sg-q:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(84,27,163,.18); }
.sg #sg-q[aria-invalid="true"] { border-color: #e5384f; background: #fff8f9; }
.sg .sg-help { margin: .4rem 0 0; font-size: .82rem; color: var(--muted); }
.sg .sg-err { margin: .3rem 0 0; min-height: 0; font-size: .85rem; font-weight: 700; color: #b3202f; }
.sg .sg-err:empty { display: none; }
.sg .sg-chiprow { display: flex; flex-wrap: wrap; gap: .45rem; }
.sg .sg-group { margin: 0 0 .6rem; }
.sg .sg-sub { display: block; margin: 0 0 .3rem; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sg .sg-chip, .sg .sg-cloud { position: relative; display: inline-block; margin: 0 !important; }
.sg .sg-chip input, .sg .sg-cloud input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.sg .sg-chip span { display: inline-block; padding: .32rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .86rem; font-weight: 700; line-height: 1.4; color: var(--ink); user-select: none; transition: background .12s, color .12s, border-color .12s; }
.sg .sg-chip:hover span { border-color: #bda8e6; }
.sg .sg-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

.sg .sg-cloud span { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; font-weight: 800; color: var(--ink); user-select: none; transition: background .12s, border-color .12s; }
.sg .sg-cloud i { font-size: 1.1rem; line-height: 1; color: var(--c); }
.sg .sg-cloud .sg-tick { display: none; font-size: .95rem; color: var(--cink); }
.sg .sg-cloud input:checked + span { border-color: var(--c); background: var(--bg); color: var(--cink); }
.sg .sg-cloud input:checked + span .sg-tick { display: inline-block; }
.sg .sg-more { margin: 0 0 1rem; }
.sg .sg-moreinner { padding: .2rem 1rem .6rem; }
.sg .sg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.sg .sg-go { border: 0; cursor: pointer; font-size: 1.02rem; }
.sg .sg-reset { border: 0; background: none; padding: .5rem .3rem; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }
.sg .sg-exwrap { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); }
.sg .sg-examples { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.sg .sg-ex { max-width: 100%; padding: .32rem .8rem; border: 1px solid #d3c6f0; border-radius: 12px; background: var(--soft); font-size: .84rem; font-weight: 600; line-height: 1.4; color: var(--brand); text-align: left; cursor: pointer; }
.sg .sg-ex:hover { background: #ece4ff; }
/* The base theme sets "* { outline: none !important }", so keyboard focus rings need !important here */
.sg :where(a, button, summary, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible, .sg .sg-chip input:focus-visible + span, .sg .sg-cloud input:focus-visible + span { outline: 3px solid var(--brand) !important; outline-offset: 2px; }
.sg .sg-privacy { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); }
.sg .sg-privacy i { color: #0f8a54; }

/* Results */
.sg .sg-results { margin: 2rem 0 0; scroll-margin-top: 80px; }
.sg .sg-results[hidden] { display: none; }
.sg .sg-res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .8rem 1rem; }
.sg .sg-res-head h2 { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.sg .sg-res-head h2:focus { outline: 0; }
.sg .sg-results .sg-sub { margin: .25rem 0 0; font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.sg .sg-acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.sg .sg-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px solid #d3c6f0; border-radius: 10px; background: #fff; font-size: .88rem; font-weight: 700; line-height: 1.3; color: var(--brand); text-decoration: none; cursor: pointer; }
.sg .sg-btn:hover { background: var(--soft); color: var(--brand); }
.sg .sg-hint { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin: 1rem 0 0; padding: .6rem .9rem; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-size: .92rem; color: var(--ink); }
.sg .sg-hint i { color: var(--brand); }
.sg .sg-link { border: 0; background: none; padding: 0; font-weight: 800; color: var(--brand); text-decoration: underline; cursor: pointer; }
.sg .sg-notices { margin: 1rem 0 0; padding: .8rem 1rem; border: 1px solid #efcf87; border-radius: 14px; background: #fff8e6; color: #4a3500; }
.sg .sg-notices h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 800; color: #4a3500; }
.sg .sg-notices h3 i { color: #b57a00; }
.sg .sg-notices ul { margin: 0; padding: 0; list-style: none; }
.sg .sg-notices li { margin: .35rem 0; font-size: .92rem; }
.sg .sg-notices a { color: #1f4aa8; font-weight: 700; }
.sg .sg-tag { display: inline-block; padding: .05rem .55rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--c); color: var(--cink); font-size: .74rem; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.sg .sg-needs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.sg .sg-needs a { display: inline-block; padding: .22rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.sg .sg-needs a:hover { background: var(--soft); }
.sg .sg-h3 { margin: 1.8rem 0 .2rem; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.sg .sg-stack { margin: 1.4rem 0 0; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(84,27,163,.05); }
.sg .sg-stack .sg-h3 { margin-top: 0; }
.sg .sg-sum { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: .8rem; margin-top: .8rem; }
.sg .sg-col { min-width: 0; padding: .7rem .9rem .8rem; border-left: 4px solid var(--c); border-radius: 0 12px 12px 0; background: var(--bg); }
.sg .sg-col h4 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cink); }
.sg .sg-col h4 i { font-size: .95rem; color: var(--c); }
.sg .sg-sum ul { margin: 0; padding: 0; list-style: none; }
.sg .sg-sum li { padding: .15rem 0; font-size: .93rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.sg .sg-grid { display: grid; gap: 1rem; margin-top: .9rem; }
.sg .sg-card { padding: 1rem 1.1rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(84,27,163,.05); scroll-margin-top: 90px; }
.sg .sg-card--soft { border-style: dashed; background: #fcfbff; box-shadow: none; }
.sg .sg-card header { display: flex; align-items: flex-start; gap: .8rem; }
.sg .sg-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); color: var(--brand); font-size: 1.2rem; }
.sg .sg-ttl { flex: 1 1 auto; min-width: 0; }
.sg .sg-ttl h3 { margin: 0; font-size: 1.1rem; font-weight: 800; line-height: 1.3; color: var(--ink); }
.sg .sg-ttl p { margin: .15rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.sg .sg-x { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: .75rem; color: var(--muted); cursor: pointer; }
.sg .sg-x:hover { background: #fdecef; border-color: #f2b6c0; color: #b3202f; }
.sg .sg-cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: .7rem; margin-top: .9rem; }
.sg .sg-main { margin: 0; }
.sg .sg-main b { display: inline; font-size: 1rem; font-weight: 800; line-height: 1.35; color: var(--ink); }
.sg .sg-d { display: block; margin-top: .12rem; font-size: .87rem; line-height: 1.45; color: var(--muted); }
.sg .sg-col .sg-d { color: #4b4a63; }
.sg .sg-alt { margin: .6rem 0 0; padding: .55rem 0 0; border-top: 1px dashed rgba(0,0,0,.18); list-style: none; }
.sg .sg-alt li { margin: 0 0 .45rem; font-size: .88rem; line-height: 1.4; color: var(--ink); }
.sg .sg-alt li:last-child { margin-bottom: 0; }
.sg .sg-alt b { font-weight: 700; color: var(--ink); }
.sg .sg-alt .sg-d { font-size: .82rem; }
.sg .sg-col--none .sg-none { margin: 0; font-size: .88rem; line-height: 1.5; color: #4b4a63; }
.sg .sg-badge { display: inline-block; margin-left: .25rem; padding: 0 .5rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 800; line-height: 1.6; vertical-align: .12em; white-space: nowrap; }
.sg .sg-ext { display: inline-block; margin-top: .15rem; font-size: .8rem; font-weight: 700; color: var(--cink); }
.sg .sg-ext i { margin-left: .25rem; font-size: .7rem; }
.sg .sg-card footer { margin-top: .8rem; }
.sg .sg-card footer p { margin: .35rem 0 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.sg .sg-why mark { padding: 0 .3rem; border-radius: 4px; background: #fff1a8; color: #3b2d00; }
.sg .sg-tip { display: flex; gap: .45rem; align-items: flex-start; }
.sg .sg-tip i { margin-top: .2rem; color: #b57a00; }
.sg .sg-links a { color: var(--brand); font-weight: 600; }
.sg .sg-add { margin: 1.6rem 0 0; padding: 1rem 1.1rem; border: 1px dashed #cdbfee; border-radius: 16px; background: #fcfbff; }
.sg .sg-add > label { display: block; margin: 0 0 .4rem !important; font-size: .9rem; font-weight: 800; }
.sg .sg-add > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.sg .sg-add select { flex: 1 1 260px; min-width: 0; max-width: 100%; padding: .5rem .7rem; border: 1px solid #cfc6e6; border-radius: 10px; background: #fff; font-size: .92rem; color: var(--ink); }
.sg .sg-browse { margin-top: 1rem; }
.sg .sg-browse .ans ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.sg .sg-pick { padding: .3rem .75rem; border: 1px solid #d3c6f0; border-radius: 999px; background: #fff; font-size: .84rem; font-weight: 700; color: var(--brand); cursor: pointer; }
.sg .sg-pick:hover { background: var(--soft); }
.sg .sg-keep { margin: 1.8rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid var(--brand); border-radius: 0 14px 14px 0; background: var(--soft); }
.sg .sg-keep .sg-h3 { margin-top: 0; }
.sg .sg-keep ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .93rem; color: var(--ink); }
.sg .sg-keep li { margin: .4rem 0; }
.sg .sg-ai { margin: 1.8rem 0 0; padding: 1rem 1.2rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sg .sg-ai .sg-h3 { margin-top: 0; }
.sg .sg-ai .sg-acts { margin-top: .8rem; }
.sg .sg-expert { margin: 1.8rem 0 0; padding: 1rem 1.2rem 1.1rem; border: 1px solid #cdb8f0; border-radius: 16px; background: linear-gradient(135deg, #f6f0ff, #fff 70%); display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; align-items: center; justify-content: space-between; }
.sg .sg-expert .sg-h3 { margin-top: 0; }
.sg .sg-expert > div:first-child { flex: 1 1 320px; }
.sg .sg-btn.sg-primary { background: #541ba3; border-color: #541ba3; color: #fff; }
.sg .sg-btn.sg-primary:hover { background: #43138a; }
.sg .sg-fine { margin: 1.4rem 0 0; font-size: .85rem; line-height: 1.55; color: var(--muted); }
.sg .sg-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1500; transform: translate(-50%, 20px); padding: .6rem 1.1rem; border-radius: 999px; background: #1e1b3a; color: #fff; font-size: .9rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.sg .sg-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Retired and renamed table */
.sg .sg-tablewrap { overflow-x: auto; }
.sg .sg-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; font-size: .9rem; }
.sg .sg-table th, .sg .sg-table td { padding: .65rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sg .sg-table thead th { background: var(--soft); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sg .sg-table tbody th { font-weight: 800; color: var(--ink); white-space: nowrap; }
.sg .sg-table tbody tr:last-child > * { border-bottom: 0; }
.sg .sg-table a { font-weight: 700; color: var(--brand); }
.sg .sg-table a i { margin-left: .25rem; font-size: .75rem; }

.sg .sp-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.sg details .ans p { margin: 0; }

@media (max-width: 991.98px) {
  .sg .sg-cols, .sg .sg-sum { grid-template-columns: minmax(0, 1fr); }
  .sg .sg-sum { gap: .6rem; }
}
@media (max-width: 767.98px) {
  .sg .sp-hero { padding: 1.4rem 1.1rem 1.3rem; }
  .sg .sp-hero > .sg-deco { font-size: 9rem; right: -1.5rem; top: -.5rem; }
  .sg .sp-hero > p:not(.sg-updated) { font-size: 1rem; }
  .sg .sg-form { padding: 1.1rem .95rem 1rem; }
  .sg #sg-q { font-size: 16px; }
  .sg .sg-add select { font-size: 16px; }
  .sg .sg-actions .sp-cta { width: 100%; justify-content: center; }
  .sg .sg-res-head h2 { font-size: 1.35rem; }
  .sg .sg-acts .sg-btn { flex: 1 1 auto; justify-content: center; }
  .sg .sg-table, .sg .sg-table tbody, .sg .sg-table tr, .sg .sg-table th, .sg .sg-table td { display: block; }
  .sg .sg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sg .sg-table tr { padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
  .sg .sg-table tbody tr:last-child { border-bottom: 0; }
  .sg .sg-table th, .sg .sg-table td { border: 0; padding: .25rem .8rem; white-space: normal; }
  .sg .sg-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 800; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .sg .sg-chip span, .sg .sg-cloud span, .sg .sg-toast { transition: none; } }
@media print {
  .topbar, .offcanvas, .left-sidenav, .footer, footer.footer-bottom, #btn-back-to-top, .sg .sp-hero, .sg .sg-form, .sg .sg-privacy, .sg .sg-acts, .sg .sg-x, .sg .sg-add, .sg .sg-browse, .sg .sg-ai, .sg .sg-expert, .sg .sg-how, .sg .sg-changes, .sg #faq, .sg .sp-full, .sg .sg-needs, .sg .sg-hint { display: none !important; }
  .sg .sg-results { margin-top: 0; }
  .sg .sg-card, .sg .sg-stack, .sg .sg-keep { break-inside: avoid; box-shadow: none; }
  .sg .sg-col { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
