/* Deployflix theme: section looks as block styles. Every colour is a brand token (--ab-*, assets/brand/tokens.css),
   so light and dark come from the tokens and nothing here names a theme. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--ab-bg); color: var(--ab-fg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* The text font follows the page's language (tokens.css switches it for Hindi, Arabic, Japanese and the others). */
html body { font-family: var(--ab-font-text); }
::selection { background: var(--ab-link-soft); }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--ab-focus); outline-offset: 3px; }
:where(h1, h2, h3) { text-wrap: balance; }
img { max-width: 100%; height: auto; }

/* ---------- header ---------- */
.dfx-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; border-bottom: 1px solid var(--ab-line); }
/* The frosted glass sits on a layer behind the header: a blur on the header itself would hold the phone menu, which is
   fixed to the screen, inside the header's own 60px. */
.dfx-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--ab-bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.admin-bar .dfx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dfx-header { top: 46px; } }
.dfx-header .wp-block-navigation a { text-decoration: none; }
.dfx-header .wp-block-navigation a:hover { color: var(--ab-link); }
.dfx-header .wp-block-navigation__submenu-container { background: var(--ab-surface) !important; color: var(--ab-fg) !important; border: 1px solid var(--ab-line) !important; border-radius: 10px; padding: 0.5rem !important; min-width: 19rem !important; box-shadow: 0 18px 50px -20px rgba(6, 12, 23, 0.35); }
.dfx-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: flex; flex-direction: column; gap: 2px; padding: 0.55rem 0.7rem; border-radius: 6px; }
.dfx-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--ab-surface-raised); color: var(--ab-fg); }
.dfx-header .wp-block-navigation-item__label { font-weight: 600; }
.dfx-header .wp-block-navigation-item__description { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ab-fg-muted); }
.dfx-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--ab-bg) !important; color: var(--ab-fg) !important; }
/* The mobile menu: the open menu fills the screen, items in one left-aligned column, each group under its label */
.dfx-header .wp-block-navigation__responsive-container.is-menu-open { padding: 0 !important; }
.dfx-header .is-menu-open .wp-block-navigation__responsive-close { width: 100%; max-width: none; }
.dfx-header .is-menu-open .wp-block-navigation__responsive-dialog { padding: 1rem 1.25rem 2rem; }
.dfx-header .is-menu-open .wp-block-navigation__responsive-container-close { top: 1rem; right: 1.25rem; }
.dfx-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3rem !important; align-items: stretch !important; }
.dfx-header .is-menu-open .wp-block-navigation__container { align-items: stretch !important; width: 100%; gap: 0 !important; }
.dfx-header .is-menu-open .wp-block-navigation-item { align-items: stretch !important; width: 100%; border-bottom: 1px solid var(--ab-line); padding: 0.85rem 0; }
.dfx-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border: 0; padding: 0; }
.dfx-header .is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content { font-size: 1.125rem; padding: 0 !important; text-align: left; }
.dfx-header .is-menu-open .has-child > .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ab-fg-muted); font-weight: 400; }
.dfx-header .is-menu-open .has-child > .wp-block-navigation-item__content .wp-block-navigation-item__label { font-weight: 400; }
.dfx-header .is-menu-open .wp-block-navigation__submenu-icon { display: none !important; }
.dfx-header .is-menu-open .wp-block-navigation__submenu-container { position: static !important; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0.4rem 0 0 !important; min-width: 0 !important; width: 100% !important; gap: 0 !important; }
.dfx-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 0 !important; text-align: left; align-items: flex-start; }
.dfx-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__label { font-size: 1rem; }
.dfx-header .is-menu-open .wp-block-navigation-item__description { text-align: left; }

/* ---------- labels and text ---------- */
.is-style-eyebrow { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ab-fg-muted); }
.is-style-lede { font-size: clamp(1.0625rem, 2vw, 1.1875rem); color: var(--ab-fg-muted); max-width: 60ch; }
.has-text-align-center.is-style-lede { margin-inline: auto; }
.is-style-fine { font-size: 0.8125rem; color: var(--ab-fg-muted); }
.is-style-pill { display: flex !important; align-items: center; gap: 0.5rem; width: fit-content; font-size: 0.8125rem; font-weight: 500; padding: 0.3rem 0.75rem; border: 1px solid var(--ab-line); border-radius: 999px; background: var(--ab-surface); color: var(--ab-fg-muted); }
.is-style-pill::before { content: ""; width: 8px; height: 8px; background: var(--ab-accent); flex: none; }
.has-text-align-center.is-style-pill { margin-inline: auto; }

.is-style-two-weight { font-weight: 300 !important; letter-spacing: -0.03em; line-height: 0.98 !important; }
.is-style-two-weight strong { display: block; font-weight: 700; }
.is-style-two-weight strong::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.08em; background: var(--ab-accent); vertical-align: 0.06em; }
.is-style-display { font-size: var(--wp--preset--font-size--6-xl) !important; }

/* ---------- lists ---------- */
.is-style-chips, .is-style-facts, .is-style-kinds { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.has-text-align-center.is-style-chips, .is-style-chips.aligncenter, .is-style-facts.aligncenter, .is-style-kinds.aligncenter { justify-content: center; }
.is-style-chips li { border: 1px solid var(--ab-line); background: var(--ab-surface); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.875rem; }
.is-style-facts li { font-size: 0.875rem; color: var(--ab-fg-muted); }
.is-style-facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--ab-link); margin-right: 0.5rem; vertical-align: 1px; }
.is-style-kinds { gap: 0.6rem 1.75rem; font-family: var(--wp--preset--font-family--display); font-weight: 500; font-size: clamp(1rem, 2vw, 1.25rem); }
.is-style-checks { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.is-style-checks li { padding-left: 1.6rem; position: relative; }
.is-style-checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--ab-success); border-bottom: 2px solid var(--ab-success); transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.wp-block-button__link { transition: filter 0.15s ease; }
.wp-block-button__link:hover { filter: brightness(1.06); }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent !important; color: var(--ab-fg) !important; border: 1px solid var(--ab-line) !important; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { border-color: var(--ab-link) !important; color: var(--ab-link) !important; filter: none; }

/* ---------- sections ---------- */
.is-style-blueprint, .is-style-hero { background-image: linear-gradient(var(--ab-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ab-grid) 1px, transparent 1px); background-size: 32px 32px; }
.is-style-hero { position: relative; overflow: hidden; }
.is-style-hero::after { content: ""; position: absolute; left: 50%; top: calc(100% - 3.5rem); width: 150%; aspect-ratio: 2.4 / 1; transform: translateX(-50%); border-radius: 50%; border-top: 2px solid var(--ab-link); box-shadow: 0 -18px 60px -10px var(--ab-link-soft), inset 0 18px 60px -30px var(--ab-link-soft); pointer-events: none; }
.is-style-hero > * { position: relative; z-index: 1; }

/* The band stays dark in both themes. Re-point the tokens and the editor's colour presets inside it, so any block placed
   in a band (text, links, cards, buttons) takes its dark colours without per-block settings. */
.is-style-band, .is-style-closing {
	--ab-bg: var(--ab-band); --ab-surface: var(--ab-band-surface); --ab-surface-raised: var(--ab-band-raised);
	--ab-fg: var(--ab-band-fg); --ab-fg-muted: var(--ab-band-muted); --ab-line: var(--ab-band-line); --ab-link: var(--ab-band-link); --ab-focus: var(--ab-band-link);
	--wp--preset--color--bg: var(--ab-band); --wp--preset--color--surface: var(--ab-band-surface); --wp--preset--color--surface-raised: var(--ab-band-raised);
	--wp--preset--color--fg: var(--ab-band-fg); --wp--preset--color--fg-muted: var(--ab-band-muted); --wp--preset--color--line: var(--ab-band-line); --wp--preset--color--link: var(--ab-band-link);
	background-color: var(--ab-band) !important; color: var(--ab-band-fg);
	color-scheme: dark;
	display: flow-root; /* keeps a first child's negative margin (the app preview rising into the hero) inside the band */
}
.is-style-band :where(h1, h2, h3, h4, h5, h6) { color: var(--ab-band-fg); }
.is-style-closing { position: relative; overflow: hidden; }
.is-style-closing::before { content: ""; position: absolute; left: 50%; top: -58%; width: 140%; aspect-ratio: 2.4 / 1; transform: translateX(-50%); border-radius: 50%; border-bottom: 2px solid var(--ab-band-link); box-shadow: 0 18px 70px -12px rgba(143, 166, 255, 0.25); pointer-events: none; }
.is-style-closing > * { position: relative; z-index: 1; }

.is-style-card, .is-style-tile, .is-style-node, .is-style-node-key { background: var(--ab-surface); border: 1px solid var(--ab-line); border-radius: 10px; }
.is-style-card, .is-style-tile { padding: clamp(1.1rem, 2.5vw, 1.4rem); }
.is-style-tile { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; overflow: hidden; height: 100%; }
.is-style-tile > :is(h2, h3, h4) { font-size: var(--wp--preset--font-size--xl); margin: 0; }
.is-style-tile > p { color: var(--ab-fg-muted); margin: 0; }
.is-style-node, .is-style-node-key { padding: 1.1rem; border-radius: 6px; height: 100%; display: flex; flex-direction: column; gap: 0.4rem; }
.is-style-node > p:first-child, .is-style-node-key > p:first-child { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; color: var(--ab-link); margin: 0; }
.is-style-node :is(h2, h3), .is-style-node-key :is(h2, h3) { font-size: var(--wp--preset--font-size--xl); margin: 0; }
.is-style-node > p, .is-style-node-key > p { color: var(--ab-fg-muted); margin: 0; }
.is-style-node-key { border-color: var(--ab-accent); box-shadow: 4px 4px 0 var(--ab-accent); }
.is-style-notice { border: 1px solid var(--ab-line); border-left-width: 0; background: var(--ab-surface-raised); border-radius: 6px; padding: 1rem 1.2rem; }

/* Steps in a row, joined by short lines on wide screens. */
.wp-block-columns.is-style-flow { gap: 1.1rem; }
@media (min-width: 900px) { .wp-block-columns.is-style-flow > .wp-block-column { position: relative; } .wp-block-columns.is-style-flow > .wp-block-column:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -1.1rem; width: 1.1rem; height: 2px; background: var(--ab-line); } }

/* Feature grid of mixed sizes: 4+2, 2+2+2, 3+3 on a six-column grid; two columns, then one, on smaller screens. */
.wp-block-columns.is-style-bento { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.wp-block-columns.is-style-bento > .wp-block-column { flex-basis: auto !important; margin: 0 !important; min-width: 0; grid-column: span 2; }
.wp-block-columns.is-style-bento > .wp-block-column:nth-child(7n+1) { grid-column: span 4; }
.wp-block-columns.is-style-bento > .wp-block-column:nth-child(7n+6), .wp-block-columns.is-style-bento > .wp-block-column:nth-child(7n+7) { grid-column: span 3; }
@media (max-width: 980px) { .wp-block-columns.is-style-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wp-block-columns.is-style-bento > .wp-block-column { grid-column: span 1 !important; } .wp-block-columns.is-style-bento > .wp-block-column:nth-child(7n+1) { grid-column: span 2 !important; } }
@media (max-width: 560px) { .wp-block-columns.is-style-bento { grid-template-columns: 1fr; } .wp-block-columns.is-style-bento > .wp-block-column:nth-child(n) { grid-column: span 1 !important; } }

/* ---------- questions ---------- */
.wp-block-details.is-style-faq { border-bottom: 1px solid var(--ab-line); padding-block: 1.1rem; margin: 0; }
.wp-block-details.is-style-faq + .wp-block-details.is-style-faq { margin-top: 0; }
.wp-block-details.is-style-faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--mono); color: var(--ab-link); }
.wp-block-details.is-style-faq[open] summary::after { content: "–"; }
.wp-block-details.is-style-faq > :not(summary) { color: var(--ab-fg-muted); max-width: 68ch; margin-top: 0.6rem; }

/* ---------- tables ---------- */
.wp-block-table.is-style-compare { overflow-x: auto; }
.wp-block-table.is-style-compare table { border-collapse: collapse; width: 100%; min-width: 36rem; background: var(--ab-surface); border: 1px solid var(--ab-line); border-radius: 10px; overflow: hidden; }
.wp-block-table.is-style-compare :is(th, td) { border: 0; border-top: 1px solid var(--ab-line); padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; }
.wp-block-table.is-style-compare thead th { border-top: 0; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ab-fg-muted); }
.wp-block-table.is-style-compare td:nth-child(2), .wp-block-table.is-style-compare th:nth-child(2) { background: var(--ab-link-soft); font-weight: 600; }

/* ---------- images ---------- */
.wp-block-image.is-style-frame img { border-radius: 10px; border: 1px solid var(--ab-line); box-shadow: 0 30px 80px -20px rgba(6, 12, 23, 0.55); }
.wp-block-image.is-style-shot img { border-radius: 10px; border: 1px solid var(--ab-line); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- posts ---------- */
/* The blog: covers first, no boxes; a featured post; category chips */
.dfx-post-card { height: 100%; }
.dfx-post-card .wp-block-post-featured-image, .dfx-featured .wp-block-post-featured-image { margin: 0; overflow: hidden; border-radius: 14px; background: var(--ab-band); }
.dfx-post-card .wp-block-post-featured-image img, .dfx-featured .wp-block-post-featured-image img { aspect-ratio: 1200 / 630; object-fit: cover; display: block; transition: transform 0.35s ease; }
.dfx-post-card:hover .wp-block-post-featured-image img, .dfx-featured:hover .wp-block-post-featured-image img { transform: scale(1.03); }
.dfx-post-card .wp-block-post-title { line-height: 1.3; }
:is(.dfx-post-card, .dfx-featured) .wp-block-post-title a { text-decoration: none; color: var(--ab-fg); }
:is(.dfx-post-card, .dfx-featured) .wp-block-post-title a:hover { color: var(--ab-link); }
.dfx-post-meta { gap: 0.5rem; font-size: 0.85rem; color: var(--ab-fg-muted); }
.dfx-post-meta > * { margin: 0; }
.dfx-post-meta .wp-block-post-date + .wp-block-post-terms::before { content: "•"; margin-right: 0.5rem; }
.dfx-post-meta .wp-block-post-terms a { color: var(--ab-fg-muted); text-decoration: none; font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
.dfx-featured .wp-block-post-title { margin-block: 0.6rem 0.8rem; line-height: 1.2; }
/* The use-case index and hubs use the blog's look: covers without boxes, and lists of links */
.dfx-post-card .wp-block-image { margin: 0 0 0.4rem; overflow: hidden; border-radius: 14px; background: var(--ab-band); line-height: 0; }
.dfx-post-card .wp-block-image a { display: block; }
.dfx-post-card .wp-block-image img { aspect-ratio: 1200 / 630; object-fit: cover; display: block; width: 100%; transition: transform 0.35s ease; }
.dfx-post-card:hover .wp-block-image img { transform: scale(1.03); }
.dfx-post-card h3 { margin: 0; line-height: 1.3; }
.dfx-post-card h3 a, .dfx-link-item h3 a { text-decoration: none; color: var(--ab-fg); }
.dfx-post-card h3 a:hover, .dfx-link-item h3 a:hover { color: var(--ab-link); }
.dfx-meta { margin: 0; font-size: 0.85rem; color: var(--ab-fg-muted); }
.dfx-link-item { border-top: 1px solid var(--ab-line); padding-top: 1rem; height: 100%; }
.dfx-link-item h3 { margin: 0; line-height: 1.3; }
.dfx-link-item h3 a::after { content: " →"; color: var(--ab-accent); }
.dfx-link-item p { margin: 0; }
.wp-block-latest-posts.dfx-latest { list-style: none; margin: 0; padding: 0; }
.wp-block-latest-posts.dfx-latest li { border-top: 1px solid var(--ab-line); padding: 0.8rem 0; margin: 0; }
.wp-block-latest-posts.dfx-latest a { font-weight: 600; color: var(--ab-fg); text-decoration: none; }
.wp-block-latest-posts.dfx-latest a::after { content: " →"; color: var(--ab-accent); }
.wp-block-latest-posts.dfx-latest a:hover { color: var(--ab-link); }
.dfx-chips { gap: 0.5rem; }
.dfx-chips > * { margin: 0; }
.dfx-chips .wp-block-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.dfx-chips a { display: inline-block; padding: 0.4rem 0.95rem; border-radius: 999px; background: var(--ab-surface-raised); color: var(--ab-fg); font-size: 0.875rem; text-decoration: none; }
.dfx-chips a:hover, .dfx-chips .current-cat a { background: var(--ab-fg); color: var(--ab-bg); }
body.blog .dfx-chip-all a { background: var(--ab-fg); color: var(--ab-bg); }
@media (max-width: 781px) { .dfx-featured .wp-block-columns { gap: 1rem; } }
.wp-block-post-content { font-size: 1.0625rem; }
.wp-block-post-content :where(h2) { font-size: var(--wp--preset--font-size--3-xl); margin-top: 2.5rem; }
.wp-block-post-content :where(h3) { font-size: var(--wp--preset--font-size--xl); margin-top: 2rem; }
/* Comparison scorecards: big marks, Autobuild's column first and highlighted (is-style-compare) */
.wp-block-table.dfx-scorecard table { min-width: 0; }
.wp-block-table.dfx-scorecard :is(th, td):not(:first-child) { text-align: center; }
.wp-block-table.dfx-scorecard td { font-size: 0.85rem; color: var(--ab-fg-muted); }
.wp-block-table.dfx-scorecard td:first-child { font-size: 0.95rem; color: var(--ab-fg); font-weight: 600; }
.wp-block-table.dfx-scorecard td:nth-child(2) { color: var(--ab-fg); }
.wp-block-table.dfx-roles :is(td, th):nth-child(2) { background: transparent; font-weight: inherit; }
/* The pricing page's three plan tables: the same columns in each, whatever their words */
.wp-block-table.dfx-plans table { table-layout: fixed; width: 100%; }
.wp-block-table.dfx-plans :is(th, td):first-child { width: 46%; }
@media (max-width: 640px) { .wp-block-table.dfx-plans :is(th, td):first-child { width: 34%; } .wp-block-table.dfx-plans td:not(:first-child) { overflow-wrap: anywhere; hyphens: auto; } }
.dfx-mark { display: inline-block; font-size: 1.5rem; line-height: 1.1; font-weight: 700; }
.dfx-mark-yes { color: var(--ab-success); }
.dfx-mark-partly { color: var(--ab-accent); }
.dfx-mark-no { color: var(--ab-danger); }
.dfx-mark-unknown { color: var(--ab-line); }
.dfx-big-mark { font-size: 2.25rem; line-height: 1; font-weight: 700; color: var(--ab-success); margin: 0; }
@media (max-width: 640px) { .wp-block-table.dfx-scorecard :is(th, td) { padding: 0.5rem 0.4rem; } .wp-block-table.dfx-scorecard td { font-size: 0.75rem; } .dfx-mark { font-size: 1.2rem; } }

/* A post's text: room between paragraphs, more above headings, plain tables (the comparison style marks a column) */
.wp-block-post-content .deployflix-site > * + * { margin-block-start: 1.1rem; }
.wp-block-post-content .deployflix-site > h2 { margin-block-start: 2.75rem; }
.wp-block-post-content .deployflix-site > h3 { margin-block-start: 2rem; }
.wp-block-post-content .deployflix-site > :is(h2, h3) + * { margin-block-start: 0.75rem; }
.wp-block-post-content .deployflix-site > .is-style-card { margin-block-start: 3rem; }
.wp-block-post-content .wp-block-table:not(.is-style-compare) { overflow-x: auto; }
.wp-block-post-content .wp-block-table:not(.is-style-compare) table { border-collapse: collapse; width: 100%; background: var(--ab-surface); border: 1px solid var(--ab-line); font-size: 0.95rem; }
.wp-block-post-content .wp-block-table:not(.is-style-compare) :is(th, td) { border: 0; border-top: 1px solid var(--ab-line); padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; }
.wp-block-post-content .wp-block-table:not(.is-style-compare) thead th { border-top: 0; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ab-fg-muted); }
.wp-block-post-terms a { text-decoration: none; font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.wp-block-query-pagination a { text-decoration: none; }

/* ---------- footer ---------- */
.dfx-footer { border-top: 1px solid var(--ab-line); color: var(--ab-fg-muted); font-size: 0.875rem; }
.dfx-footer a { color: var(--ab-fg-muted); text-decoration: none; }
.dfx-footer a:hover { color: var(--ab-link); }
.dfx-footer h2, .dfx-footer h3 { font-family: var(--wp--preset--font-family--text); font-size: 0.875rem; font-weight: 600; color: var(--ab-fg); letter-spacing: 0; margin-bottom: 0.4rem; }
.dfx-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.dfx-theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ab-line); border-radius: 999px; background: var(--ab-surface); }
.dfx-theme-switch button { border: 0; background: transparent; color: var(--ab-fg-muted); font: 600 0.8125rem var(--wp--preset--font-family--text); padding: 0.4rem 0.8rem; min-height: 2rem; border-radius: 999px; cursor: pointer; }
.dfx-theme-switch button[aria-pressed="true"] { background: var(--ab-fg); color: var(--ab-bg); }

/* ---------- skip link ---------- */
.skip-link.screen-reader-text:focus { background: var(--ab-surface); color: var(--ab-fg); }

/* ---------- logo: the reverse lockup in dark mode ---------- */
.dfx-logo { flex: none; }
.dfx-logo .wp-block-image { margin: 0; }
.dfx-logo img { display: block; height: 34px; width: auto; }
.dfx-logo img.dfx-logo-dark { display: none; }
:root[data-theme="dark"] .dfx-logo img.dfx-logo-light { display: none; }
:root[data-theme="dark"] .dfx-logo img.dfx-logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dfx-logo img.dfx-logo-light { display: none; } :root:not([data-theme="light"]) .dfx-logo img.dfx-logo-dark { display: block; } }
@media (max-width: 420px) { .dfx-logo img { height: 28px; } }

/* A section heading can mix weights inline: <strong> is the bold half, without the block. */
:is(h2, h3).is-style-two-weight strong { display: inline; }
:is(h2, h3).is-style-two-weight strong::after { content: none; }

/* Cards side by side are as tall as the tallest. */
.wp-block-column > :is(.is-style-card, .is-style-tile):only-child { height: 100%; }

/* ---------- the contact form (server/deployflix-contact.php) ---------- */
.df-contact { display: grid; gap: 1rem; }
.df-contact p { margin: 0; }
.df-field { display: flex; flex-direction: column; gap: 0.35rem; }
.df-field label { font-weight: 600; font-size: 0.875rem; }
.df-contact :is(input[type="text"], input[type="email"], textarea) { width: 100%; box-sizing: border-box; padding: 0.65rem 0.8rem; border: 1px solid var(--ab-line); border-radius: 6px; background: var(--ab-bg); color: var(--ab-fg); font: inherit; }
.df-contact textarea { min-height: 9rem; resize: vertical; }
.df-contact :is(input, textarea):focus { border-color: var(--ab-link); outline: 2px solid var(--ab-focus); outline-offset: 1px; }
.df-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.df-consent { font-size: 0.875rem; color: var(--ab-fg-muted); }
.df-contact button { justify-self: start; }
.df-contact-note { padding: 0.75rem 1rem; border-radius: 6px; background: var(--ab-danger-soft); color: var(--ab-danger); }
.df-contact-note.is-sent { background: var(--ab-success-soft); color: var(--ab-success); }

/* The header's sun/moon button: shows the moon in light, the sun in dark. */
.dfx-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--ab-line); border-radius: 6px; background: var(--ab-surface); color: var(--ab-fg); cursor: pointer; flex: none; }
.dfx-theme-toggle:hover { color: var(--ab-link); border-color: var(--ab-link); }
.dfx-theme-toggle .dfx-sun { display: none; }
:root[data-theme="dark"] .dfx-theme-toggle .dfx-sun { display: block; }
:root[data-theme="dark"] .dfx-theme-toggle .dfx-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dfx-theme-toggle .dfx-sun { display: block; } :root:not([data-theme="light"]) .dfx-theme-toggle .dfx-moon { display: none; } }

/* The header's button stays on one line; on a phone the header's pieces sit closer. */
.dfx-header-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 600px) { .dfx-header > .wp-block-group { gap: 0.6rem !important; } .dfx-header-cta .wp-block-button__link { padding: 0.5rem 0.8rem !important; font-size: 0.875rem; } }

/* Languages: each named in itself, with its English name below (A8 §19). */
.dfx-language-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.75rem; }
.dfx-language-list li { border: 1px solid var(--ab-line); background: var(--ab-surface); border-radius: 0.75rem; padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.dfx-language-list li > span:first-child { font-size: 1.15rem; font-weight: 600; color: var(--ab-fg); }
.dfx-language-list li > span[dir="rtl"] { text-align: right; }
.dfx-lang-en { font-size: 0.8rem; color: var(--ab-fg-muted); }

/* Sitemap: plain link lists. */
.dfx-sitemap { list-style: none; padding: 0; margin: 0; }
.dfx-sitemap li { padding: 0.3rem 0; }
.dfx-sitemap a { color: var(--ab-fg); text-decoration: none; }
.dfx-sitemap a:hover { color: var(--ab-link); text-decoration: underline; }

/* The language menu in the header (A8 §20): a globe and the language's code; the list opens below it. */
.dfx-lang-menu { position: relative; }
.dfx-lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.3rem; height: 2.25rem; padding: 0 0.55rem; border: 1px solid var(--ab-line); border-radius: 6px; background: var(--ab-surface); cursor: pointer; color: var(--ab-fg); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.dfx-lang-menu > summary::-webkit-details-marker { display: none; }
.dfx-lang-menu > summary:hover, .dfx-lang-menu[open] > summary { color: var(--ab-link); border-color: var(--ab-link); }
.dfx-lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 50; list-style: none; margin: 0; padding: 0.4rem; min-width: 12rem; max-height: min(70vh, 32rem); overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem; background: var(--ab-surface-raised, var(--ab-surface)); border: 1px solid var(--ab-line); border-radius: 10px; box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35); }
.dfx-lang-menu li a { display: block; padding: 0.4rem 0.6rem; border-radius: 6px; color: var(--ab-fg); text-decoration: none; font-size: 0.875rem; white-space: nowrap; }
.dfx-lang-menu li a:hover { background: var(--ab-surface); color: var(--ab-link); }
.dfx-lang-menu li a[aria-current] { color: var(--ab-link); font-weight: 600; }
@media (max-width: 600px) { .dfx-header .dfx-theme-toggle { display: none; } .dfx-lang-menu .dfx-lang-current { display: none; } .dfx-lang-menu ul { position: fixed; inset-inline: 16px; top: 64px; min-width: 0; } }

/* A translated page: its list of newest posts (in place of the latest-posts block), a post's cover, and right-to-left text. */
ul.dfx-latest { list-style: none; margin: 0; padding: 0; }
ul.dfx-latest li { border-top: 1px solid var(--ab-line); padding: 0.8rem 0; margin: 0; }
ul.dfx-latest a { font-weight: 600; color: var(--ab-fg); text-decoration: none; }
ul.dfx-latest a::after { content: " →"; color: var(--ab-accent); }
[dir="rtl"] ul.dfx-latest a::after, [dir="rtl"] .wp-block-latest-posts.dfx-latest a::after { content: " ←"; }
ul.dfx-latest a:hover { color: var(--ab-link); }
.wp-block-image.dfx-cover { margin: 0 0 2rem; border-radius: 14px; overflow: hidden; line-height: 0; }
.wp-block-image.dfx-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
[dir="rtl"] .dfx-language-list li > span[dir="rtl"] { text-align: start; }

/* A link from a translated page to a page only in English (A8 §20). */
.dfx-en { display: inline-block; margin-inline-start: 0.35em; padding: 0 0.3em; border: 1px solid currentColor; border-radius: 4px; font-size: 0.65em; font-weight: 600; letter-spacing: 0.04em; line-height: 1.5; vertical-align: 0.15em; opacity: 0.7; text-decoration: none; }
