/* SAP training: /sap-training page and the homepage band (classes sp-*, sb-*, sf-*). */
.sp-hero, .sp-sec, .sp-final, .sb { --sp-g1: #0d6e56; --sp-g2: #0f3f4a; --sp-gold: #f5b301; }

/* ── enquiry form ── */
.sf { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: 0 30px 60px -36px rgba(15, 23, 42, .5); }
.sf__head b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.sf__head small { display: block; margin-top: 2px; font-size: .84rem; color: var(--text-secondary); }
.sf__body { margin-top: 14px; display: grid; gap: 12px; }
.sf__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sf__f { display: block; min-width: 0; }
.sf__f > span { display: block; margin-bottom: 5px; font-size: .76rem; font-weight: 700; color: var(--text-secondary); }
.sf__f em { font-style: normal; font-weight: 500; color: var(--text-muted); }
.sf__f input, .sf__f select, .sf__f textarea { width: 100%; height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border-strong, var(--border)); background: var(--bg-primary, var(--bg-card)); font: inherit; font-size: .9rem; color: var(--text-primary); transition: border-color .15s ease, box-shadow .15s ease; }
.sf__f textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 78px; }
.sf__f input:focus, .sf__f select:focus, .sf__f textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.sf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sf__go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: .95rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0d6e56, #10b981); box-shadow: 0 14px 26px -16px rgba(13, 110, 86, .95); transition: transform .15s ease, filter .15s ease; }
.sf__go:hover { transform: translateY(-1px); filter: brightness(1.06); }
.sf__go:disabled { opacity: .7; cursor: wait; transform: none; }
.sf__err { padding: 9px 12px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .82rem; }
.sf__err[hidden], .sf__ok[hidden], .sf__body[hidden] { display: none; }
.sf__note { margin: 0; font-size: .72rem; text-align: center; color: var(--text-muted); }
.sf__ok { margin-top: 14px; padding: 26px 12px; text-align: center; color: var(--text-primary); }
.sf__ok svg { color: #16a34a; }
.sf__ok b { display: block; margin-top: 8px; font-size: 1.05rem; }
.sf__ok span { display: block; margin-top: 4px; font-size: .86rem; color: var(--text-secondary); }

/* ── page: hero ── */
.sp-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(700px 320px at 90% 0, rgba(245, 179, 1, .18), transparent 70%), linear-gradient(135deg, var(--sp-g1) 0%, #0b5a47 50%, var(--sp-g2) 100%); }
.sp-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.sp-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; align-items: start; padding-top: 48px; padding-bottom: 48px; }
.sp-tag { display: inline-flex; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sp-hero h1 { margin: 14px 0 12px; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -.025em; color: #fff; max-width: 15em; }
.sp-hero p { max-width: 520px; margin: 0; font-size: 1.02rem; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.sp-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: .84rem; font-weight: 600; }
.sp-hero__art { margin-top: 22px; max-width: 520px; }
.sp-hero__stats { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.sp-hero__stats div { flex: 1; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); text-align: center; }
.sp-hero__stats b { display: block; font-size: 1.35rem; font-weight: 800; }
.sp-hero__stats span { font-size: .72rem; opacity: .85; }
.sp-hero__form { position: sticky; top: calc(var(--nav-h, 86px) + 16px); }

/* image slots: show the picture when the file exists, otherwise a soft placeholder block */
.sp-img { position: relative; display: block; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .18); aspect-ratio: 16 / 9; }
.sp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-img.no-img { display: none; }
.sp-img--wide { aspect-ratio: 16 / 10; border-color: var(--border); background: var(--bg-secondary); }
.sp-img--tall { aspect-ratio: 4 / 5; border-color: var(--border); background: var(--bg-secondary); }
.sp-img--dark { aspect-ratio: 4 / 3; }

/* ── sections ── */
.sp-sec { padding: 64px 0; }
.sp-sec--tint { background: var(--bg-secondary); }
.sp-head { max-width: 640px; margin: 0 0 28px; }
.sp-eyebrow { display: inline-block; margin-bottom: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.sp-eyebrow--light { color: #fcd34d; }
.sp-head h2, .sp-cert h2, .sp-partner h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; color: var(--text-primary); }
.sp-head p { margin: 8px 0 0; font-size: 1rem; color: var(--text-secondary); }

/* tracks */
.sp-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); font: inherit; font-size: .9rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; transition: all .15s ease; }
.sp-tab:hover { border-color: var(--accent); color: var(--accent); }
.sp-tab.is-on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 12px 22px -14px rgba(13, 110, 86, .9); }
.sp-panel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 16px; margin-top: 16px; }
.sp-panel[hidden] { display: none; }
.sp-panel__main, .sp-panel__cert { padding: 24px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg-card); }
.sp-panel__tag { display: inline-flex; padding: 4px 11px; border-radius: 999px; background: var(--accent-light); color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sp-panel__main h3 { margin: 10px 0 14px; font-size: 1.35rem; letter-spacing: -.01em; }
.sp-list { display: grid; gap: 9px; margin: 0 0 20px; padding: 0; list-style: none; }
.sp-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .94rem; line-height: 1.45; color: var(--text-secondary); }
.sp-list li svg { flex: none; margin-top: 2px; padding: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-light); color: var(--accent); }
.sp-list--light li { color: rgba(255, 255, 255, .9); }
.sp-list--light li svg { background: rgba(255, 255, 255, .16); color: #fff; }
.sp-panel__cert { display: flex; flex-direction: column; justify-content: center; gap: 4px; text-align: center; background: linear-gradient(160deg, var(--accent-light), var(--bg-card)); }
.sp-panel__cert small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.sp-code { font-family: var(--font-mono); font-size: 1.5rem; letter-spacing: .02em; color: var(--accent); }
.sp-panel__cert span { font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.sp-panel__cert em { margin-top: 8px; font-size: .74rem; font-style: normal; color: var(--text-muted); }
.sp-more { margin: 16px 0 0; font-size: .86rem; color: var(--text-muted); }

/* buttons */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-size: .92rem; font-weight: 800; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.sp-btn:hover { transform: translateY(-1px); }
.sp-btn--primary { background: var(--accent); color: #fff; box-shadow: 0 12px 22px -14px rgba(13, 110, 86, .9); }
.sp-btn--primary:hover { color: #fff; filter: brightness(1.08); }
.sp-btn--light { background: #fff; color: #0d6e56; }
.sp-btn--light:hover { color: #0d6e56; }
.sp-btn--lg { height: 52px; padding: 0 30px; font-size: 1rem; }

/* why */
.sp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sp-card { padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sp-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 30px -24px rgba(15, 23, 42, .5); }
.sp-card__ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-light); color: var(--accent); }
.sp-card h3 { margin: 14px 0 4px; font-size: 1rem; font-weight: 800; }
.sp-card p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--text-secondary); }
.sp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.sp-gallery:not(:has(.sp-img:not(.no-img))) { display: none; }

/* certification */
.sp-cert { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 36px; align-items: center; }
.sp-cert__copy > p { margin: 10px 0 20px; font-size: 1rem; color: var(--text-secondary); max-width: 560px; }
.sp-table { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg-card); }
.sp-tr { display: grid; grid-template-columns: .8fr 1fr 1.5fr; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--border); font-size: .88rem; }
.sp-tr--h { border-top: 0; background: var(--bg-secondary); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.sp-tr code { font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.sp-tr span:last-child { color: var(--text-secondary); }
.sp-fine { margin: 12px 0 0; font-size: .78rem; line-height: 1.5; color: var(--text-muted); }
.sp-fine--center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* steps */
.sp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sp-steps li { position: relative; padding: 20px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border); }
.sp-steps li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.sp-steps h3 { margin: 12px 0 4px; font-size: 1rem; }
.sp-steps p { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--text-secondary); }

/* partnership */
.sp-partner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; padding: 34px; border-radius: 24px; color: #fff; background: radial-gradient(500px 240px at 100% 0, rgba(245, 179, 1, .2), transparent 70%), linear-gradient(135deg, #0b5a47, #0f3f4a); }
.sp-partner h2 { color: #fff; }
.sp-partner p { margin: 10px 0 16px; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.sp-partner .sp-list { margin-bottom: 20px; }

/* faq */
.sp-faqwrap { max-width: 800px; }
.sp-faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); margin-bottom: 8px; overflow: hidden; }
.sp-faq details[open] { border-color: var(--accent); }
.sp-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; font-size: .94rem; font-weight: 650; cursor: pointer; color: var(--text-primary); }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary svg { flex: none; color: var(--accent); transition: transform .2s ease; }
.sp-faq details[open] summary svg { transform: rotate(180deg); }
.sp-faq p { margin: 0; padding: 0 16px 16px; font-size: .9rem; line-height: 1.6; color: var(--text-secondary); }

/* final cta */
.sp-final { padding: 40px 0; background: linear-gradient(135deg, #0d6e56, #0f3f4a); color: #fff; }
.sp-final__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sp-final h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: #fff; }
.sp-final p { margin: 4px 0 0; color: rgba(255, 255, 255, .85); }

/* ── homepage band (sb-*) ── */
.sb { padding: 40px 0 46px; }
.sb__card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: center; padding: 30px; border-radius: 26px; color: #fff; overflow: hidden; position: relative; background: radial-gradient(520px 260px at 100% 0, rgba(245, 179, 1, .2), transparent 70%), linear-gradient(135deg, #0d6e56 0%, #0b5a47 50%, #0f3f4a 100%); }
.sb__card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.sb__copy, .sb__form { position: relative; }
.sb .sp-tag { margin-bottom: 12px; }
.sb h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.sb p { margin: 8px 0 0; max-width: 520px; font-size: .98rem; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.sb__tracks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.sb__tracks a { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); text-decoration: none; color: #fff; text-align: center; transition: transform .15s ease, background .15s ease; }
.sb__tracks a:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); color: #fff; }
.sb__tracks b { font-size: .95rem; }
.sb__tracks small { font-size: .68rem; font-family: var(--font-mono); color: rgba(255, 255, 255, .78); }
.sb__feats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.sb__feats li { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; }
.sb__feats svg { color: #fcd34d; }
.sb__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sb .sp-btn { height: 44px; }
.sb .sp-btn--ghost { border: 1px solid rgba(255, 255, 255, .4); color: #fff; background: rgba(255, 255, 255, .08); }
.sb .sp-btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.sb .sf { padding: 18px; }

@media (max-width: 1020px) {
  .sp-hero__in, .sb__card, .sp-cert, .sp-partner { grid-template-columns: minmax(0, 1fr); }
  .sp-hero__form { position: static; }
  .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-cert__art { display: none; }
}
@media (max-width: 640px) {
  .sp-hero__in { padding-top: 28px; padding-bottom: 28px; gap: 22px; }
  .sp-hero p { font-size: .94rem; }
  .sp-sec { padding: 40px 0; }
  .sp-head { margin-bottom: 20px; }
  .sp-head p { font-size: .92rem; }
  .sp-panel { grid-template-columns: minmax(0, 1fr); }
  .sp-panel__main, .sp-panel__cert { padding: 18px; }
  .sp-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sp-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 16px; }
  .sp-card__ic { grid-row: span 2; }
  .sp-card h3 { margin: 0 0 2px; }
  .sp-gallery { grid-template-columns: minmax(0, 1fr); }
  .sp-tr { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .sp-tr > span:last-child { grid-column: 1 / -1; font-size: .8rem; }
  .sp-tr--h { display: none; }
  .sp-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sp-partner { padding: 22px 18px; border-radius: 20px; }
  .sf { padding: 16px; border-radius: 16px; }
  .sf__row { grid-template-columns: minmax(0, 1fr); }
  .sb { padding: 26px 0 30px; }
  .sb__card { padding: 22px 16px; border-radius: 20px; gap: 20px; }
  .sb__tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb__links .sp-btn { flex: 1 1 auto; }
  .sp-final__in .sp-btn { width: 100%; }
}

/* when the illustrations are not uploaded yet, the text takes the full width */
.sp-partner:not(:has(.sp-img:not(.no-img))), .sp-cert:not(:has(.sp-img:not(.no-img))) { grid-template-columns: minmax(0, 1fr); }
.sp-partner__art:not(:has(.sp-img:not(.no-img))), .sp-cert__art:not(:has(.sp-img:not(.no-img))), .sp-hero__art:not(:has(.sp-img:not(.no-img))) { display: none; }

/* answer-first summary */
.sp-glance { padding: 34px 0 6px; }
.sp-glance h2 { margin: 0 0 8px; font-size: 1.25rem; letter-spacing: -.01em; color: var(--text-primary); }
.sp-glance p { margin: 0; max-width: 780px; font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }
.sp-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 8px; }
.sp-dl > div { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); }
.sp-dl dt { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sp-dl dd { margin: 3px 0 0; font-size: .9rem; line-height: 1.4; color: var(--text-primary); }
@media (max-width: 1020px) { .sp-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sp-glance { padding-top: 24px; } .sp-dl { grid-template-columns: minmax(0, 1fr); } }

/* Cloudflare Turnstile (robot check), shown when CF_TURNSTILE_SECRET is set */
.sf__ts { min-height: 65px; }
.sf__ts .cf-turnstile { width: 100%; }

/* ── homepage band: hero photo background, compact form (Nov 2026) ── */
.sb { padding: 28px 0 32px; }
.sb__card--photo { padding: 26px 28px; gap: 28px; background: #03211a; }
.sb__card--photo::before { z-index: 1; opacity: .5; }
.sb__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.sb__card--photo::after { content: ""; position: absolute; inset: 0; z-index: 0; background:
  linear-gradient(90deg, rgba(3, 26, 21, .95) 0%, rgba(3, 33, 26, .88) 45%, rgba(4, 44, 35, .7) 100%),
  radial-gradient(500px 300px at 90% 10%, rgba(16, 185, 129, .25), transparent 70%); }
.sb__card--photo .sb__copy, .sb__card--photo .sb__form { position: relative; z-index: 2; }
.sb__card--photo h2 { margin-top: -2px; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; letter-spacing: -.03em; }
.sb__card--photo .sb__copy { align-self: start; padding-top: 4px; }   /* heading sits at the top of the card, level with the form */
.sb__card--photo .sb__tracks { margin-top: 16px; gap: 8px; }
.sb__card--photo .sb__tracks a { padding: 10px 8px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sb__card--photo .sb__feats { margin-top: 14px; }
.sb__card--photo .sb__links { margin-top: 18px; }
/* compact form inside the band */
.sb .sf { padding: 16px 18px; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.sb .sf__head b { font-size: 1.02rem; }
.sb .sf__head small { font-size: .76rem; }
.sb .sf__body { margin-top: 10px; gap: 8px; }
.sb .sf__f > span { margin-bottom: 3px; font-size: .7rem; }
.sb .sf__f input, .sb .sf__f select { height: 38px; font-size: .86rem; border-radius: 10px; }
.sb .sf__f textarea { min-height: 48px; height: 48px; padding: 8px 12px; font-size: .86rem; border-radius: 10px; }
.sb .sf__go { height: 42px; font-size: .88rem; }
.sb .sf__note { font-size: .66rem; }
.sb .sf__ts { min-height: 0; }
@media (max-width: 1020px) { .sb__card--photo::after { background: linear-gradient(180deg, rgba(3, 26, 21, .92), rgba(3, 26, 21, .96)); } }
@media (max-width: 640px) {
  .sb { padding: 20px 0 24px; }
  .sb__card--photo { padding: 20px 14px; gap: 18px; }
  .sb .sf { padding: 14px; }
}
/* the band's light paragraph colour must not reach the white form card */
.sb .sf p, .sb .sf__note { max-width: none; margin: 0; color: var(--text-muted); line-height: 1.4; }
