/* Safionyx — Industry blueprint layer. Tokens live in theme.json. */
:root {
  --sx-hair: 1px solid var(--wp--preset--color--divider);
  --sx-muted: color-mix(in srgb, var(--wp--preset--color--ink) 80%, transparent);
  --sx-mark: color-mix(in srgb, var(--wp--preset--color--ink) 55%, transparent);
  --sx-marks: linear-gradient(currentColor,currentColor) 5px 0/1px 11px no-repeat,linear-gradient(currentColor,currentColor) 0 5px/11px 1px no-repeat,linear-gradient(currentColor,currentColor) calc(100% - 5px) 0/1px 11px no-repeat,linear-gradient(currentColor,currentColor) 100% 5px/11px 1px no-repeat,linear-gradient(currentColor,currentColor) 5px 100%/1px 11px no-repeat,linear-gradient(currentColor,currentColor) 0 calc(100% - 5px)/11px 1px no-repeat,linear-gradient(currentColor,currentColor) calc(100% - 5px) 100%/1px 11px no-repeat,linear-gradient(currentColor,currentColor) 100% calc(100% - 5px)/11px 1px no-repeat;
}
body { text-wrap: pretty; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--wp--preset--color--steel); outline-offset: 2px; }
::selection { background: var(--wp--preset--color--steel-300); }

/* registration marks: one pseudo-element draws all four "+" */
.is-style-blueprint, .is-style-card, .wp-block-table.is-style-spec, .wp-block-table.is-style-figures, .wp-block-table.is-style-career,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link { position: relative; }
.is-style-blueprint::before, .is-style-card::before, .wp-block-table.is-style-spec::before, .wp-block-table.is-style-figures::before, .wp-block-table.is-style-career::before,
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: 2; color: var(--sx-mark); background: var(--sx-marks);
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link::before { inset: -7px; }

/* header */
header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: var(--wp--preset--color--paper); border-bottom: var(--sx-hair); }
.sx-header { max-width: 1400px; margin-inline: auto; padding: 14px clamp(20px, 5vw, 72px); gap: 12px 28px; }
.sx-header-actions { gap: 12px 20px; }
.sx-header-actions .wp-block-button__link { padding: 0.55rem 1rem; font-size: 0.875rem; }
.sx-nav .wp-block-navigation-item__content { padding-block: 6px; border-bottom: 1px solid transparent; }
.sx-nav .current-menu-item > .wp-block-navigation-item__content, .sx-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--steel-700); border-bottom-color: var(--wp--preset--color--steel); text-decoration: none; }
.sx-nav .wp-block-navigation__submenu-container { background: var(--wp--preset--color--paper) !important; border: var(--sx-hair) !important; padding: 6px 0; min-width: 240px !important; }
.sx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 16px; border: 0; }
.sx-lang { display: flex; border: var(--sx-hair); }
.sx-lang a { font: 600 12px/1 var(--wp--preset--font-family--body); letter-spacing: 0.08em; padding: 8px 10px; color: var(--wp--preset--color--ink); text-decoration: none; }
.sx-lang a + a { border-left: var(--sx-hair); }
.sx-lang a[aria-current] { background: var(--wp--preset--color--steel); color: var(--wp--preset--color--paper); }
.sx-lang a:not([aria-current]):hover { background: color-mix(in srgb, var(--wp--preset--color--ink) 7%, transparent); text-decoration: none; }

/* type styles */
p.is-style-kicker, .is-style-kicker { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--wp--preset--color--steel-700); line-height: 1.4; margin-bottom: 0; }
.is-style-kicker + .wp-block-heading { margin-top: 0.6rem; }
p.is-style-intro { font-size: 1.125rem; line-height: 1.6; max-width: 60ch; }
p.is-style-lead { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.22; max-width: 40ch; }
p.is-style-callout { font-size: 1.0625rem; color: var(--wp--preset--color--steel-900); padding-top: 1rem; border-top: var(--sx-hair); }
p.is-style-statement { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: clamp(2.125rem, 4vw, 3.5rem); line-height: 1.05; color: var(--wp--preset--color--steel-900); }
p.is-style-index { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 2.75rem; line-height: 1; color: var(--wp--preset--color--steel); margin: 0; }
p.is-style-more { font-size: 0.875rem; font-weight: 600; }
p.is-style-note { font-size: 0.8125rem; color: color-mix(in srgb, var(--wp--preset--color--ink) 72%, transparent); }
p.is-style-crumb { font-size: 0.8125rem; color: color-mix(in srgb, var(--wp--preset--color--ink) 72%, transparent); }
p.is-style-crumb a { color: inherit; }
.wp-block-column > p:not([class*="is-style"]), .sx-card-body > p:not([class*="is-style"]), .is-style-blueprint > p:not([class*="is-style"]), .is-style-cells > * > p:not([class*="is-style"]) { color: var(--sx-muted); }
.wp-block-heading mark.has-inline-color { background: none; }

/* frames */
.wp-block-group.is-style-blueprint { border: var(--sx-hair); padding: clamp(24px, 3vw, 40px); }
.wp-block-group.is-style-card { border: var(--sx-hair); padding: 0; display: flex; flex-direction: column; }
.is-style-card > .wp-block-image, .is-style-card > .wp-block-post-featured-image { margin: 0 !important; border-bottom: var(--sx-hair); }
.is-style-card > .sx-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.is-style-card > .sx-card-body > * { margin: 0 !important; }
.is-style-card > .sx-card-body > p:not([class]) { flex: 1; }
.is-style-card .wp-block-heading { font-size: 1.5rem; }
.wp-block-group.is-style-ruled { border-bottom: var(--sx-hair); padding-bottom: 1.5rem; margin-bottom: 2.5rem; }
.wp-block-group.is-style-ruled-both { border-top: var(--sx-hair); border-bottom: var(--sx-hair); padding-block: clamp(28px, 4vw, 56px); }
.wp-block-columns.is-style-ruled { border-bottom: var(--sx-hair); padding-bottom: 2rem; margin-bottom: 2.5rem; align-items: flex-end; }
.wp-block-group.is-style-cells { gap: 0 !important; border-left: var(--sx-hair); border-top: var(--sx-hair); }
.wp-block-group.is-style-cells > * { border-right: var(--sx-hair); border-bottom: var(--sx-hair); padding: 28px 24px; margin: 0 !important; display: flex; flex-direction: column; gap: 0.75rem; }
.wp-block-group.is-style-cells > * > * { margin: 0; }
.wp-block-group.is-style-cells .wp-block-heading { font-size: 1.5rem; }
.wp-block-group.is-style-ruled + .wp-block-group.is-style-cells { margin-top: 0; }
.wp-block-group.is-style-strip { gap: 0 !important; border-top: var(--sx-hair); border-bottom: var(--sx-hair); }
.wp-block-group.is-style-strip > p { flex: 1 1 auto; margin: 0; text-align: center; padding: 14px 16px; border-right: var(--sx-hair); font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.wp-block-group.is-style-strip > p:last-child { border-right: 0; }
.sx-logo img { max-width: 140px; max-height: 56px; width: auto; object-fit: contain; }

/* images */
.wp-block-image.is-style-blueprint, .wp-block-post-featured-image.is-style-blueprint { position: relative; border: var(--sx-hair); margin-bottom: 2.25rem; }
.wp-block-image.is-style-blueprint img { display: block; width: 100%; }
.wp-block-image.is-style-blueprint figcaption { position: absolute; top: 100%; left: 0; margin: 10px 0 0; text-align: left; color: color-mix(in srgb, var(--wp--preset--color--ink) 70%, transparent); }
.wp-block-image img, .wp-block-post-featured-image img { border-radius: 0; }

/* buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border: var(--sx-hair); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: color-mix(in srgb, var(--wp--preset--color--ink) 7%, transparent); color: var(--wp--preset--color--ink); }
.wp-block-buttons { gap: 12px; }
.wp-block-button__link:hover { text-decoration: none; }

/* tables */
.wp-block-table.is-style-spec, .wp-block-table.is-style-figures, .wp-block-table.is-style-career { border: var(--sx-hair); margin: 0; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-spec td, .wp-block-table.is-style-spec th, .wp-block-table.is-style-figures td, .wp-block-table.is-style-career td, .wp-block-table.is-style-career th { border: 0; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent); padding: 14px 16px; vertical-align: top; text-align: left; }
.wp-block-table thead { border: 0; }
.wp-block-table th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--wp--preset--color--ink) 70%, transparent); border-bottom: var(--sx-hair) !important; }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.is-style-spec td:first-child, .is-style-spec th:first-child, .is-style-figures td:first-child { width: 64px; padding-left: 24px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--wp--preset--color--steel-700); }
.is-style-spec td:nth-child(2) { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0.02em; }
.is-style-spec td:nth-child(n+3), .is-style-figures td:nth-child(3), .is-style-career td:nth-child(3) { color: var(--sx-muted); }
.is-style-figures td:nth-child(2) { width: 9rem; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 2.125rem; line-height: 1; text-transform: uppercase; }
.is-style-figures td { vertical-align: baseline; font-size: 0.875rem; }
.is-style-career td:first-child, .is-style-career th:first-child { width: 120px; padding-left: 24px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wp--preset--color--steel-700); }
.is-style-career td:nth-child(2) strong { display: inline-block; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.375rem; text-transform: uppercase; margin-bottom: 2px; }
.is-style-career td:nth-child(3) { font-size: 0.875rem; }
@media (max-width: 720px) {
  .wp-block-table.is-style-spec, .wp-block-table.is-style-career { overflow-x: auto; }
  .wp-block-table.is-style-spec table, .wp-block-table.is-style-career table { min-width: 680px; }
}

/* lists */
ul.is-style-ruled-list { list-style: none; padding: 0; counter-reset: sx; border-top: var(--sx-hair); }
ul.is-style-ruled-list > li { counter-increment: sx; display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-bottom: var(--sx-hair); }
ul.is-style-ruled-list > li::before { content: counter(sx, decimal-leading-zero); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--wp--preset--color--steel-700); padding-top: 4px; grid-row: span 3; }
ul.is-style-ruled-list strong { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.3125rem; text-transform: uppercase; }
ul.is-style-plain, ul.is-style-inline { list-style: none; padding: 0; margin: 0; }
ul.is-style-plain > li { padding: 3px 0; font-size: 0.875rem; }
ul.is-style-plain a, ul.is-style-inline a { color: var(--wp--preset--color--ink); }
ul.is-style-inline { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.75rem; }

/* footer */
footer.wp-block-template-part { border-top: var(--sx-hair); margin-top: clamp(4.5rem, 9vw, 8rem); }
.sx-footer { padding-top: 56px; padding-bottom: 32px; font-size: 0.875rem; }
.sx-footer .is-style-kicker { padding-bottom: 8px; border-bottom: var(--sx-hair); margin-bottom: 10px; }
.sx-footer-bottom { border-top: var(--sx-hair); padding-top: 20px; margin-top: 40px; gap: 12px 32px; }

/* plain pages, posts */
.sx-page { padding-top: clamp(2.5rem, 6vw, 5rem); }
.sx-page .wp-block-post-title { margin-bottom: 1.5rem; }

/* Contact Form 7 */
.wpcf7 form { display: flex; flex-direction: column; gap: 18px; }
.wpcf7 label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; color: color-mix(in srgb, var(--wp--preset--color--ink) 75%, transparent); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
  width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 0.9375rem; color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--surface); border: var(--sx-hair); border-radius: 0; caret-color: var(--wp--preset--color--steel);
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:hover, .wpcf7 select:hover, .wpcf7 textarea:hover { border-color: color-mix(in srgb, var(--wp--preset--color--ink) 45%, transparent); }
.wpcf7 input:focus-visible, .wpcf7 select:focus-visible, .wpcf7 textarea:focus-visible { border-color: var(--wp--preset--color--steel); outline-offset: 0; }
.wpcf7 .wpcf7-acceptance label { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--wp--preset--color--ink); }
.wpcf7 input[type="checkbox"] { accent-color: var(--wp--preset--color--steel); margin-top: 3px; }
.wpcf7 input[type="submit"] { align-self: flex-start; cursor: pointer; background: var(--wp--preset--color--steel); color: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--steel); border-radius: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 0.9375rem; padding: 0.75rem 1.5rem; }
.wpcf7 input[type="submit"]:hover { background: var(--wp--preset--color--steel-600); }
.wpcf7 .sx-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.wpcf7-response-output { border: var(--sx-hair) !important; margin: 0 !important; padding: 12px 16px !important; }

/* tables: publications list, two-column */
.wp-block-table.is-style-pubs, .wp-block-table.is-style-two-col { border: var(--sx-hair); margin: 0; position: relative; }
.wp-block-table.is-style-pubs::before, .wp-block-table.is-style-two-col::before { content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: 2; color: var(--sx-mark); background: var(--sx-marks); }
.is-style-pubs td, .is-style-pubs th, .is-style-two-col td, .is-style-two-col th { border: 0; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent); padding: 13px 16px; vertical-align: top; text-align: left; }
.is-style-pubs td:first-child, .is-style-pubs th:first-child { width: 64px; padding-left: 20px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; color: var(--wp--preset--color--steel-700); }
.is-style-pubs td:nth-child(2) { font-weight: 500; }
.is-style-pubs td:nth-child(3) { color: var(--sx-muted); font-size: 0.875rem; }
.is-style-two-col td:first-child { width: 34%; font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 1.1875rem; }
.is-style-two-col td:nth-child(2) { color: var(--sx-muted); }
@media (max-width: 720px) { .wp-block-table.is-style-pubs { overflow-x: auto; } .wp-block-table.is-style-pubs table { min-width: 620px; } }
.is-style-blueprint > p.is-style-index + p.is-style-note { margin-top: 6px; color: var(--wp--preset--color--ink); font-size: 0.875rem; }

/* home hero: smaller square figure, aligned to the right */
.wp-block-image.sx-hero-figure { max-width: 420px; margin-left: auto; }
@media (max-width: 781px) { .wp-block-image.sx-hero-figure { margin-left: 0; } }

/* home hero: text and onyx picture side by side, vertically centred */
.wp-block-columns.sx-hero { align-items: center; flex-wrap: nowrap; }
.wp-block-columns.sx-hero > .wp-block-column:last-child { flex: 0 1 420px; }
@media (max-width: 781px) { .wp-block-columns.sx-hero { flex-wrap: wrap; } .wp-block-columns.sx-hero > .wp-block-column:last-child { flex-basis: 100%; } }
