/* SAP Salary & Rate Guide pages (/sap-salary-and-rate-guide). Loaded only on these pages. */

.sg-yellow { color: var(--cl-yellow); }

/* ---------- Hero ---------- */
.sg-hero {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: clamp(110px, 16vw, 190px) 0 clamp(40px, 6vw, 80px);
    background: radial-gradient(145.96% 57.01% at 69.51% 37.17%, #061654 0%, #04143A 100%);
    color: var(--cl-white);
}
.sg-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.sg-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sg-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 20, 58, .92) 0%, rgba(6, 22, 84, .75) 55%, rgba(6, 22, 84, .45) 100%);
}
.sg-hero__decor {
    position: absolute;
    z-index: -1;
    right: -8%;
    bottom: -10%;
    width: clamp(260px, 48vw, 700px);
    height: auto;
    opacity: .9;
    pointer-events: none;
}
.sg-hero--landing .sg-hero__decor { display: none; }
@media (max-width: 767px) { .sg-hero__decor { opacity: .25; } }

.sg-crumbs {
    margin-bottom: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
}
.sg-crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sg-crumbs span { margin: 0 4px; }

.sg-hero__title {
    max-width: 760px;
    margin: 0;
    color: var(--cl-white);
    font-size: clamp(30px, 4.6vw, 56px);
    line-height: 1.2;
}
.sg-hero__title--landing {
    max-width: 900px;
    font-family: var(--font-sec);
    font-weight: 700;
}
.sg-hero__title--landing .sg-yellow { display: block; }
.sg-hero__lead {
    max-width: 820px;
    margin: 18px 0 0;
    font-family: var(--font-sec);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
}
.sg-hero__markets {
    margin: 26px 0 12px;
    color: var(--cl-yellow);
    font-family: var(--font-sec);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sg-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sg-flags a { display: block; transition: transform .2s ease; }
.sg-flags a:hover { transform: translateY(-3px); }
.sg-flags img { display: block; width: 36px; height: 24px; object-fit: cover; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }

.sg-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}
.sg-btn { background: transparent; }
/* CTA buttons use the site's button font (as on the home page) */
.sg-hero .btn__text, .sg-page .btn__text { font-family: var(--font-main); }
.sg-btn .btn__text { white-space: nowrap; }
.sg-btn--yellow { background: var(--cl-yellow); border-color: var(--cl-yellow); }
.sg-btn--yellow .btn__text { color: var(--cl-dark-blue); }
.sg-btn--yellow:hover { background: var(--cl-white); border-color: var(--cl-white); }
.sg-btn--yellow:hover .btn__text { color: var(--cl-dark-blue); }

/* ---------- Page body ---------- */
.sg-page {
    padding: clamp(30px, 5vw, 60px) 0 clamp(50px, 7vw, 90px);
    background: #F4F6FB;
    color: var(--cl-dark-blue);
    font-family: var(--font-sec);
}
.sg-page h2, .sg-page h3 { font-family: var(--font-sec); }

.sg-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.sg-head__title { display: flex; align-items: center; gap: 16px; }
.sg-head__title img { width: 64px; height: auto; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.sg-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; font-weight: 700; }
.sg-head p { margin: 4px 0 0; color: #4B5578; }

.sg-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 6px 22px 6px 6px;
    border-radius: 40px;
    background: var(--cl-yellow);
    color: var(--cl-dark-blue);
    font-weight: 700;
    transition: background .2s ease;
}
.sg-pill:hover { background: #F2C81A; }
.sg-pill__arrow {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 2px solid var(--cl-dark-blue);
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath stroke='%23061654' stroke-linejoin='bevel' stroke-width='3' d='M1 2.384h12.766V15.15m-12.22-1.193L13.155 2.351'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.sg-keyfacts {
    margin-bottom: 24px;
    padding: 20px 24px;
    border-left: 6px solid var(--cl-yellow);
    border-radius: 8px;
    background: var(--cl-white);
    box-shadow: 0 2px 10px rgba(6, 22, 84, .06);
}
.sg-keyfacts__title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sg-keyfacts p { margin: 0; font-size: 17px; line-height: 1.6; }

/* ---------- KPI tiles ---------- */
.sg-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
@media (min-width: 768px) { .sg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sg-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.sg-tile {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--cl-white);
    box-shadow: 0 2px 10px rgba(6, 22, 84, .06);
}
.sg-tile__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.sg-tile h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.3;
    text-transform: uppercase;
}
.sg-rank {
    flex-shrink: 0;
    padding: 3px 9px;
    border-radius: 12px;
    background: var(--cl-yellow);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.sg-tile__value {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    font-size: clamp(22px, 2.1vw, 26px);
    font-weight: 700;
}
.sg-tile__hint { margin: 4px 0 0; font-size: 12px; color: #6B7393; }

.sg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cl-dark-blue);
}
.sg-icon img { width: 26px; height: 26px; }
.sg-icon--sm { width: 34px; height: 34px; }
.sg-icon--sm img { width: 18px; height: 18px; }

.sg-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 76px;
    margin-top: auto;
    border-bottom: 1px solid #D9DEEC;
}
.sg-bars__col {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}
.sg-bars__val { margin-bottom: 4px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.sg-bars__bar { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.sg-bars__lab { position: absolute; bottom: -20px; font-size: 11px; color: #6B7393; }
.sg-bars__col--low .sg-bars__bar { background: #8FA0CF; }
.sg-bars__col--mid .sg-bars__bar { background: var(--cl-dark-blue); }
.sg-bars__col--high .sg-bars__bar { background: var(--cl-yellow); }
.sg-bars__col--high .sg-bars__val { color: #B08A00; }
.sg-tile:has(.sg-bars) { padding-bottom: 26px; }
.sg-tile .sg-icon { width: 40px; height: 40px; }
.sg-tile .sg-icon img { width: 22px; height: 22px; }

/* ---------- Cards ---------- */
.sg-row {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}
@media (min-width: 1024px) {
    .sg-row { grid-template-columns: 2fr 1fr; }
    .sg-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sg-card {
    padding: 20px 22px;
    border-radius: 10px;
    background: var(--cl-white);
    box-shadow: 0 2px 10px rgba(6, 22, 84, .06);
    font-size: 15px;
    line-height: 1.6;
}
.sg-card p { margin: 0 0 8px; }
.sg-card p:last-child { margin-bottom: 0; }
.sg-card__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sg-card__title--icon { display: flex; align-items: center; gap: 10px; }
.sg-list { margin: 0; padding-left: 18px; }
.sg-list li { margin-bottom: 6px; }
.sg-hubs img { display: block; width: 100%; height: auto; }
.sg-hubs__list { margin-top: 8px !important; font-size: 14px; font-weight: 600; text-align: center; }

/* ---------- Tables ---------- */
.sg-section-title {
    margin: clamp(30px, 4vw, 48px) 0 16px;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.25;
}
.sg-table-wrap { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(6, 22, 84, .06); }
.sg-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cl-white);
    font-size: 14px;
}
.sg-table thead th {
    padding: 12px 14px;
    background: var(--cl-dark-blue);
    color: var(--cl-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-align: left;
    text-transform: uppercase;
}
.sg-table thead th small { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .8; }
.sg-table thead th.sg-table__rate { background: var(--cl-yellow); color: var(--cl-dark-blue); }
.sg-table tbody th, .sg-table td { padding: 10px 14px; border-bottom: 1px solid #E6E9F2; text-align: left; vertical-align: top; }
.sg-table tbody th { font-weight: 700; }
.sg-table tbody tr:last-child > * { border-bottom: 0; }
.sg-table td.sg-table__rate { background: #FFFBEA; }
.sg-table__mid { font-weight: 700; white-space: nowrap; }
.sg-table__mid small { color: #6B7393; font-weight: 600; }
.sg-table a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sg-local { display: block; font-size: 12px; font-weight: 400; color: #6B7393; }
.sg-source { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #6B7393; }

/* stacked cards on small screens */
@media (max-width: 899px) {
    .sg-table-wrap { border-radius: 0; box-shadow: none; overflow: visible; }
    .sg-table, .sg-table tbody, .sg-table tr, .sg-table th, .sg-table td { display: block; width: 100%; }
    .sg-table thead { display: none; }
    .sg-table { background: transparent; }
    .sg-table tbody tr {
        margin-bottom: 12px;
        border-radius: 10px;
        overflow: hidden;
        background: var(--cl-white);
        box-shadow: 0 2px 10px rgba(6, 22, 84, .06);
    }
    .sg-table tbody th { padding: 12px 14px; background: var(--cl-dark-blue); color: var(--cl-white); border: 0; }
    .sg-table tbody th a { color: var(--cl-white); }
    .sg-table td {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid #E6E9F2;
        text-align: right;
    }
    .sg-table td .sg-val { text-align: right; }
    .sg-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-weight: 600;
        color: #4B5578;
        text-align: left;
    }
    .sg-table tbody tr:last-child > * { border-bottom: 1px solid #E6E9F2; }
    .sg-table tbody tr > *:last-child { border-bottom: 0; }
}

/* ---------- FAQ ---------- */
.sg-faq {
    margin-bottom: 10px;
    border-radius: 8px;
    background: var(--cl-white);
    box-shadow: 0 2px 10px rgba(6, 22, 84, .06);
}
.sg-faq summary {
    position: relative;
    padding: 16px 48px 16px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
}
.sg-faq[open] summary::after { content: '\2212'; }
.sg-faq__answer { padding: 0 20px 18px; line-height: 1.6; }

/* ---------- Country links ---------- */
.sg-countries, .sg-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) { .sg-countries, .sg-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sg-countries { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sg-countries a, .sg-index a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--cl-white);
    box-shadow: 0 2px 10px rgba(6, 22, 84, .06);
    color: var(--cl-dark-blue);
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}
.sg-countries a:hover, .sg-index a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(6, 22, 84, .12); }
.sg-countries img, .sg-index img { width: 30px; height: 20px; object-fit: cover; flex-shrink: 0; }
.sg-index a { flex-wrap: wrap; }
.sg-index img { width: 36px; height: 24px; }
.sg-index__fig { width: 100%; font-size: 13px; font-weight: 400; color: #4B5578; }

/* ---------- Landing stats ---------- */
.sg-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 1024px) { .sg-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sg-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-radius: 10px;
    background: var(--cl-dark-blue);
    color: var(--cl-white);
}
.sg-stat__num { color: var(--cl-yellow); font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.sg-stat__lab { font-weight: 700; }
.sg-stat__note { font-size: 13px; opacity: .8; }

/* ---------- Bottom CTAs (style of the site's outline buttons, e.g. "Clear Search") ---------- */
.sg-bottom-btns { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: clamp(30px, 4vw, 48px); }
.sg-bottom-btn { background: transparent; }
.sg-bottom-btn .btn__text { white-space: nowrap; color: var(--cl-dark-blue); }
.sg-bottom-btn:hover .btn__text { color: var(--cl-white); }
/* phones: a long label ("SAP Recruitment United Kingdom", "View Full SAP Salary & Rates Guide") wraps inside the screen
   at a line height that keeps both lines within the arrow circle's height (the site's 44px made a wrapped button very tall) */
@media (max-width: 480px) {
    .sg-btn, .sg-bottom-btn { align-items: center; max-width: 100%; }
    .sg-btn .btn__text, .sg-bottom-btn .btn__text { line-height: 1.15; white-space: normal; text-wrap: balance; }
}
