/*
 * Careers and Contact Us v18: hand rules for the block markup, after the generated design rules (tc-v18-port.css).
 * Source of every value: design/claude/tc/ (components/tc/careers.jsx, contact.jsx, styles/tc.css, v18-page.css),
 * measured in the rendered designs. Scoped to .dgn-v18-tc, the page wrapper group.
 */

/* ---------------------------------------------------------------- base */

.dgn-v18-tc.wp-block-group {
	color: var(--fg-primary);
	background: var(--bg-canvas);
}
.dgn-v18-tc :where(figure.wp-block-image, .wp-block-buttons, h1, h2, h3, h4) { margin: 0; }
.dgn-v18-tc :where(p.x) { margin: 0; font-size: inherit; line-height: inherit; }
.dgn-v18-tc .tc2-bc a { text-decoration: none; }

/* icon boxes: the icon (a CSS mask, .dg-ic::before) centred at the design's size */
.dgn-v18-tc .dg-ic.x { display: grid; place-items: center; }
.dgn-v18-tc :is(.crv-ic, .cr-or-ic, .ctv-ci).dg-ic::before { width: 14px; height: 14px; }
.dgn-v18-tc :is(.tc2-why-l .ic, .ctv-in .b).dg-ic::before { width: 20px; height: 20px; }
.dgn-v18-tc .ctv-in .b.dg-ic::before { width: 16px; height: 16px; }
.dgn-v18-tc .ctv-file.dg-ic::before { width: 16px; height: 16px; }
.dgn-v18-tc :is(.cr-empty-ic, .cr-job-ic).dg-ic::before { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- hero visuals: values the design set inline */

.dgn-v18-tc .crv .li:nth-child(1) { --d: 0s; }
.dgn-v18-tc .crv .li:nth-child(2) { --d: .15s; }
.dgn-v18-tc .crv .li:nth-child(3) { --d: .3s; }
.dgn-v18-tc .crv .li:nth-child(4) { --d: .45s; }
.dgn-v18-tc .crv .li:nth-child(1) .em { background: #E8EEFF; }
.dgn-v18-tc .crv .li:nth-child(2) .em { background: #E7F7EE; }
.dgn-v18-tc .crv .li:nth-child(3) .em { background: #FFF3DE; }
.dgn-v18-tc .crv .li:nth-child(4) .em { background: #F3E8FF; }
.dgn-v18-tc .crv .li:nth-child(2) .crv-dot { animation-delay: .4s; }
.dgn-v18-tc .crv .li:nth-child(3) .crv-dot { animation-delay: .8s; }
.dgn-v18-tc .crv .li:nth-child(4) .crv-dot { animation-delay: 1.2s; }
.dgn-v18-tc .cr-or-tags > .sp:nth-child(1) { animation-delay: .6s; }
.dgn-v18-tc .cr-or-tags > .sp:nth-child(2) { animation-delay: .75s; }
.dgn-v18-tc .ctv-chat > :nth-child(1) { --d: .3s; }
.dgn-v18-tc .ctv-chat > :nth-child(2) { --d: 1.1s; }
.dgn-v18-tc .ctv-chat > :nth-child(3) { --d: 1.9s; }
.dgn-v18-tc .ctv-chat > :nth-child(4) { --d: 2.5s; }
.dgn-v18-tc .ctv-chat > :nth-child(5) { --d: 3.1s; }
/* the reply avatar is an <em> in the bubble: home-v18.css clears em backgrounds (!important, against a sitewide snippet) */
.dgn-v18-tc .ctv-chat .us em { background: #0B0D12 !important; }
/* the status dot in the visual header was an <i> inside the label */
.dgn-v18-tc .crv-hd .sp::before { content: ""; display: block; flex: none; }
.dgn-v18-tc .crv-dots > .i { display: block; }

/* ---------------------------------------------------------------- openings: filter + roles */

/* filter labels and department names are list items until the script turns them into fields and buttons */
.dgn-v18-tc :where(ul.cr-f, ul.cr-deps) { list-style: none; margin: 0; padding: 0; }
.dgn-v18-tc ul.cr-deps:not(.is-ready) > li { padding: 8px 14px; border: 1px solid var(--line-hairline); border-radius: 999px; font: 500 13px/1 var(--font-body); color: var(--fg-secondary); }
.dgn-v18-tc ul.cr-f:not(.is-ready) > li { display: flex; align-items: center; height: 48px; padding: 0 16px; border: 1px solid var(--line-hairline); border-radius: 12px; color: var(--fg-muted); }
.dgn-v18-tc ul.cr-f:not(.is-ready) > li.f-remote { border: 0; padding: 0; }
.dgn-v18-tc ul.is-ready > li { display: contents; }
.dgn-v18-tc .cr-in .dg-ic::before { width: 18px; height: 18px; }
.dgn-v18-tc .cr-in .dg-ic { display: grid; flex: none; }
.dgn-v18-tc .cr-deps button:focus-visible,
.dgn-v18-tc .cr-in:focus-within { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* the roles: rows in the design's note-box style (.cr-empty), white with the hairline border */
.dgn-v18-tc .cr-jobs { margin-top: 24px; }
.dgn-v18-tc .cr-jobs .wp-block-post-template { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dgn-v18-tc .cr-jobs .wp-block-post-template > li { margin: 0; }
.dgn-v18-tc .cr-jobs .wp-block-post-template > li[hidden] { display: none; }
.dgn-v18-tc .cr-job { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line-hairline); border-radius: 16px; background: var(--bg-surface); color: var(--brand-blue); }
.dgn-v18-tc .cr-job-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dgn-v18-tc .cr-job .cr-job-t { margin: 0; font: 600 16px/1.3 var(--font-body) !important; letter-spacing: 0 !important; }
.dgn-v18-tc .cr-job .cr-job-t a { color: var(--fg-primary); text-decoration: none; }
.dgn-v18-tc .cr-job .cr-job-t a:hover { color: var(--brand-blue); }
.dgn-v18-tc .cr-job .cr-job-l { font-size: 14px; line-height: 1.6; color: var(--fg-secondary); }
.dgn-v18-tc .cr-job .cr-job-a { flex: none; padding: 8px 14px; border: 1px solid var(--line-hairline); border-radius: 999px; font: 500 13px/1 var(--font-body); color: var(--fg-secondary); text-decoration: none; transition: .3s; }
.dgn-v18-tc .cr-job .cr-job-a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.dgn-v18-tc .cr-nomatch:not(.is-on) { display: none; }
.editor-styles-wrapper .dgn-v18-tc .cr-nomatch { display: block; opacity: .6; }
.dgn-v18-tc .cr-jobs-none,
.dgn-v18-tc .cr-nomatch { margin: 0; padding: 20px; border: 1px dashed var(--line-hairline); border-radius: 16px; color: var(--fg-secondary); }
.dgn-v18-tc .cr-empty .sp a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
	.dgn-v18-tc .cr-job { flex-wrap: wrap; }
	.dgn-v18-tc .cr-job-b { flex-basis: calc(100% - 38px); }
	.dgn-v18-tc .cr-job .cr-job-a { margin-left: 38px; }
}

/* the open-application band button sits on the dark band */
.dgn-v18-tc .cr-band-cta { flex: none; align-self: flex-start; } /* the design's pill (.dg-cl) is top-aligned in the band */

/* ---------------------------------------------------------------- dark mode readability */

/* The design leaves these sections, the filter box and its fields white in dark mode while their text turns light;
   they take the dark canvas and surfaces (ds/colors_and_type.css dark tokens) so the text stays readable */
html[data-theme="dark"] .dgn-v18-tc > section:not(#_d1):not(#_d2):not(#_d3):not(#_d4):not(#_d5):not(#_d6):not(#_d7):not(#_d8):not(#_d9):not(#_d10),
html[data-theme="dark"] .dgn-v18-tc .cr-box { background: var(--bg-canvas) !important; }
html[data-theme="dark"] .dgn-v18-tc :is(.cr-job, .cr-deps button, .cr-in) { background: #0E1014; }
html[data-theme="dark"] .dgn-v18-tc .cr-empty { background: #14171D; }
html[data-theme="dark"] .dgn-v18-tc .cr-deps button.on { background: var(--brand-blue); }

/* ---------------------------------------------------------------- editor: the one-time load animations show at once */

.editor-styles-wrapper .dgn-v18-tc :is(.crv .li, .ctv-chat .bub, .tc2-hero-l > *) { opacity: 1; transform: none; animation: none; }

/* Contact Us (design update 2026-12-04): the page is one section, the contact form with the breadcrumb, an h1 and a
   subtitle in its left column (design "Contact Us.html", section .ct-hero, measured at 1440 and 375) */
body section#contact.v16-cta.ct-hero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e) { padding: 48px 0 81px !important; }
body section.ct-hero .gt-l2 .ct-h1:not(#_a):not(#_b) { margin: -12px 0 0; font-family: var(--hf, var(--font-display)); font-size: clamp(36px, 4.06vw, 58.4px); line-height: 1.05; font-weight: 500; letter-spacing: -0.045em !important; color: rgb(11, 13, 18); text-transform: none; }
body section.ct-hero .gt-l2 .ct-sub:not(#_a):not(#_b) { margin: -12px 0 0; max-width: 480px; font-size: 16px; line-height: 1.6; font-weight: 400; color: rgb(74, 81, 99); }
html[data-theme="dark"] body section.ct-hero .gt-l2 .ct-h1:not(#_a):not(#_b) { color: #fff; }
html[data-theme="dark"] body section.ct-hero .gt-l2 .ct-sub:not(#_a):not(#_b) { color: #B4BAC6; }
