/* Career in the brand colours: design refinements on top of the theme.
   Colours come from the --brand-* variables each page sets from the palette (see layouts/career/brand.mjs). */

:root { --brand-text-dark: #aeb2ba; --brand-five: linear-gradient(90deg, var(--brand-blue) 0 20%, var(--brand-white) 0 40%, var(--brand-red) 0 60%, var(--brand-green) 0 80%, var(--brand-yellow) 0); }

/* The five-colour stripe across the top, in palette order */
.accent-line-top { height: 8px; overflow: hidden; }
.accent-line-top span { transition: transform .35s ease; }
.accent-line-top .style-1 { background-color: var(--brand-blue) !important; }
.accent-line-top .style-2 { background-color: var(--brand-white) !important; }
.accent-line-top .style-3 { background-color: var(--brand-red) !important; }
.accent-line-top .style-4 { background-color: var(--brand-green) !important; }
.accent-line-top .style-5 { background-color: var(--brand-yellow) !important; }

/* Easier reading on the dark background */
.scheme_dark .sc_accordionposts_item_inner p,
.scheme_dark .sc_accordionposts_item_inner li,
.scheme_dark .sc_blogger_item_excerpt_text,
.scheme_dark .post_content p,
.scheme_dark .post_content li,
.scheme_dark .comment_text p { color: var(--brand-text-dark); }
.scheme_dark .sc_accordionposts_item_header strong { color: #c4c7ce; }

/* Section rows: each lights up in its own colour */
.sc_accordionposts_item .sc_accordionposts_item_top { position: relative; }
.sc_accordionposts_item:not(.active) .sc_accordionposts_item_header { transition: background-color .25s ease, box-shadow .25s ease; }
.sc_accordionposts_item:not(.active) .sc_accordionposts_item_top { transition: background-color .25s ease, box-shadow .25s ease; }
.sc_accordionposts_item:not(.active):hover .sc_accordionposts_item_top,
.sc_accordionposts_item:not(.active) .sc_accordionposts_item_header:focus-visible { box-shadow: inset 0 -3px 0 var(--section-color, var(--brand-yellow)); }
.scheme_dark .sc_accordionposts_item:not(.active):hover .sc_accordionposts_item_top { background-color: #26272a; }
.sc_accordionposts_item_header[role=button] { cursor: pointer; }
.sc_accordionposts_item_header:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: -4px; }
.sc_accordionposts_item_icon { transition: transform .25s ease, filter .25s ease; }
.sc_accordionposts_item:not(.active):hover .sc_accordionposts_item_icon { transform: scale(1.06); filter: saturate(1.15); }
.scheme_default .sc_accordionposts_item_icon[style*="239, 239, 239"],
.scheme_default .sc_accordionposts_item_icon[style*="#efefef"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

/* The name: a small five-colour bar under the line about you */
.sc_accordionposts_item:first-child .sc_accordionposts_item_header strong::after {
  content: ''; display: block; width: 120px; height: 4px; margin-top: 16px; border-radius: 2px; background: var(--brand-five);
}

/* Profile photo: round, framed by the five colours */
.elementor-142 .elementor-widget-image.rounded {
  display: block; width: 100%; max-width: 240px; padding: 6px; border-radius: 50%; box-sizing: border-box;
  background: conic-gradient(from -90deg, var(--brand-blue) 0 72deg, var(--brand-white) 0 144deg, var(--brand-red) 0 216deg, var(--brand-green) 0 288deg, var(--brand-yellow) 0);
}
.elementor-142 .elementor-widget-image.rounded img { display: block; width: 100%; height: auto; border-radius: 50% !important; border: 5px solid #1f2021; aspect-ratio: 1; object-fit: cover; }
.scheme_default .elementor-142 .elementor-widget-image.rounded img { border-color: #fff; }

/* Contact tiles: dark text on the white tiles, brand-blue links */
.contacts_info > * { color: #3a3c40; }
.contacts_info a { color: var(--brand-blue) !important; text-decoration: none; }
.contacts_info a:hover { color: var(--brand-red) !important; }

/* Resume: group headings marked in their colour */
.sc_title.sc_title_accent { border-radius: 2px; }

/* Legacy: initials in the brand colours */
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+1) .sc_testimonials_avatar_with_initials { background-color: var(--brand-blue); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+2) .sc_testimonials_avatar_with_initials { background-color: var(--brand-red); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+3) .sc_testimonials_avatar_with_initials { background-color: var(--brand-green); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+4) .sc_testimonials_avatar_with_initials { background-color: var(--brand-yellow); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+5) .sc_testimonials_avatar_with_initials { background-color: var(--brand-white); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+1) .sc_testimonials_item_author_initials { color: var(--brand-on-blue); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+2) .sc_testimonials_item_author_initials { color: var(--brand-on-red); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+3) .sc_testimonials_item_author_initials { color: var(--brand-on-green); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+4) .sc_testimonials_item_author_initials { color: var(--brand-on-yellow); }
.sc_blogger_testimonials .sc_blogger_item:nth-child(5n+5) .sc_testimonials_item_author_initials { color: var(--brand-on-white); }
.sc_testimonials_avatar_with_initials { transition: transform .3s ease; }
.sc_blogger_item:hover .sc_testimonials_avatar_with_initials { transform: rotate(-6deg) scale(1.04); }

/* Contact: a photo where the map was */
.brand-contact-photo { margin: 0; height: 100%; min-height: 360px; overflow: hidden; border-radius: 2px; }
.brand-contact-photo img { display: block; width: 100%; height: 100%; min-height: 360px; max-height: 560px; object-fit: cover; object-position: 50% 35%; transition: transform 1.2s ease; }
.brand-contact-photo:hover img { transform: scale(1.03); }
.sc_googlemap_wrap:has(.brand-contact-photo) { height: auto !important; }

/* Buttons and the back-to-top square */
.mczcf7-submit { transition: background-color .2s ease, color .2s ease, transform .2s ease !important; }
.mczcf7-submit:hover { background-color: var(--brand-yellow) !important; color: var(--brand-on-yellow) !important; }
.mczcf7-submit:active { transform: translateY(1px); }
.trx_addons_scroll_to_top { background-color: var(--brand-red) !important; color: var(--brand-on-red) !important; transition: background-color .2s ease; }
.trx_addons_scroll_to_top:hover { background-color: var(--brand-yellow) !important; color: var(--brand-on-yellow) !important; }

/* Gallery: soft zoom on hover, the active filter underlined in the brand colours */
.esg-filterbutton.selected span { position: relative; }
.esg-filterbutton.selected span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; border-radius: 2px; background: var(--brand-five); }

/* Focus rings that show on the dark background */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 2px; }

/* Contact card QR */
.brand-qr { width: 132px; height: 132px; margin: 0 0 14px; border-radius: 6px; padding: 4px; background: var(--brand-five); box-sizing: border-box; }
.brand-qr svg { display: block; width: 100%; height: 100%; border-radius: 4px; }
.responsive-centered .brand-qr, .brand-qr + .responsive-centered { text-align: left; }

/* The owner's bar on posts and pages (only when signed in) */
.brand-owner-bar { margin: 0 0 20px; padding: 12px 18px; border-radius: 2px; border-left: 4px solid var(--brand-yellow); background: rgba(127, 127, 127, .12); }
.brand-owner-bar a { font-weight: 600; }

/* Legacy: stories show in full (the theme cut them at eight lines with no way to read on) */
.sc_blogger .sc_blogger_item_excerpt_text { max-height: none !important; }

/* Contact form: a filled box is not an error; focus shows in the brand colour, errors stay red */
.mczcf7-form-control.filled:not(:focus):not(.mczcf7-not-valid) { border-color: rgba(127, 127, 127, .35) !important; }
.scheme_dark .mczcf7-form-control:focus:not(.mczcf7-not-valid) { border-color: var(--brand-yellow) !important; }
.scheme_default .mczcf7-form-control:focus:not(.mczcf7-not-valid) { border-color: var(--brand-blue) !important; }

/* Bars: room for the number even on a short bar */
.elementor-progress-bar { min-width: 3.4em; }

/* Phone: the QR card sits centred like its caption */
@media (max-width: 767px) { .brand-qr { margin-left: auto; margin-right: auto; } }

/* Legacy: the theme's small date marker is left stranded beside the centred names; the initials carry the colour */
.sc_blogger_testimonials .sc_supertitle_no_icon { display: none; }
