/*
Theme Name: OMSA C3
Template: twentytwentyfive
Description: OMSA Biosystems design direction C3 (Living Bento): Cormorant Garamond + Manrope, cream, ink and moss.
Version: 1.8.4
Text Domain: omsa-c3
*/

/* ---------- Page content polish ---------- */
.entry-content > .wp-block-image:first-child img,
.wp-block-post-content > .wp-block-image:first-child img { width: 100%; height: clamp(280px, 38vw, 520px); object-fit: cover; }
.wp-block-post-content > .wp-block-image:first-child { margin-bottom: 48px; }

.wp-block-post-content h1.wp-block-heading { margin-top: 0; }
.wp-block-post-content p.has-large-font-size { font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(26px, 2.6vw, 34px) !important; font-style: italic; color: var(--wp--preset--color--moss); line-height: 1.2; }
.wp-block-post-content p.has-small-font-size { letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--amber); font-weight: 700; }

/* tables */
.wp-block-table table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; overflow: hidden; background: var(--wp--preset--color--paper); font-size: 16px; }
.wp-block-table th { background: var(--wp--preset--color--sage); color: var(--wp--preset--color--moss-dark); text-align: left; font-weight: 700; }
.wp-block-table th, .wp-block-table td { border: 0; border-top: 1px solid var(--wp--preset--color--line); padding: 14px 18px; vertical-align: top; }
.wp-block-table thead th { border-top: 0; }

/* lists */
.wp-block-post-content ul.wp-block-list { padding-left: 1.1em; }
.wp-block-post-content ul.wp-block-list li::marker { color: var(--wp--preset--color--amber); }
.wp-block-post-content ol.wp-block-list li::marker { color: var(--wp--preset--color--moss); font-weight: 700; }
.wp-block-post-content li { margin-bottom: .45em; }

/* separators become airy section breaks */
.wp-block-post-content hr.wp-block-separator { border: 0; border-top: 1px solid var(--wp--preset--color--line); margin: 64px auto; opacity: 1; }

/* buttons: second button is an outline style */
.wp-block-buttons .wp-block-button + .wp-block-button .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--ink); }
.wp-block-buttons .wp-block-button + .wp-block-button .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--cream); }

/* team placeholders [ ] stay visible */
mark.has-inline-color { border-radius: 4px; padding: 0 3px; }

/* header */
.omsa-header { position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--cream) !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.omsa-header .wp-block-navigation a { font-weight: 600; font-size: 15px; }
.omsa-logo a { text-decoration: none; color: var(--wp--preset--color--ink); }
.omsa-logo .dot { color: var(--wp--preset--color--amber); }

/* footer */
.omsa-footer a { color: var(--wp--preset--color--cream); text-decoration: none; }
.omsa-footer a:hover { color: var(--wp--preset--color--gold); }

/* blog cards */
.omsa-post-card { background: var(--wp--preset--color--paper); border-radius: 22px; overflow: hidden; height: 100%; }
.omsa-post-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.omsa-post-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.omsa-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--moss); }
.omsa-chip a, .omsa-chip { display: inline-block; background: var(--wp--preset--color--sage); color: var(--wp--preset--color--moss) !important; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; text-decoration: none; }

/* single post */
.single .wp-block-post-content { font-size: 19px; }
.single .wp-block-post-content img { border-radius: 18px; }

/* WordPress switches to the hamburger menu below 600px; hide the header button only then (the menu has its own). */
@media (max-width: 599px) {
  .omsa-header .wp-block-buttons { display: none; }
}

/* ===================== Designed sections (page-wide template) ===================== */
.omsa-wide .wp-block-post-content > * { margin-block-start: 0; }
.omsa-section { padding: clamp(64px, 8vw, 112px) max(24px, 4vw) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.omsa-section.omsa-tight { padding-top: 24px !important; padding-bottom: clamp(48px, 6vw, 80px) !important; }
.omsa-section > * { margin-left: auto; margin-right: auto; }
.omsa-section h2.wp-block-heading { margin-top: .2em; }
.omsa-label { font-size: 13px !important; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--amber); margin-bottom: 0 !important; }
.omsa-dark .omsa-label { color: var(--wp--preset--color--gold); }
.omsa-dark h2, .omsa-dark h3 { color: var(--wp--preset--color--cream); }
.omsa-lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; }
.omsa-dark .omsa-lead, .omsa-dark p { color: #C9CFC9; }
.omsa-sub { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--wp--preset--color--moss); }
.omsa-crumb { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); }
.omsa-crumb a { text-decoration: none; }

/* hero */
.omsa-hero { padding-top: clamp(40px, 5vw, 72px) !important; }
.omsa-hero h1 em { color: var(--wp--preset--color--moss); }
.omsa-hero .omsa-hero-img img { width: 100%; height: clamp(320px, 38vw, 560px); object-fit: cover; border-radius: 26px; }
.omsa-hero-row { gap: 24px !important; }
.omsa-hero-row > .wp-block-group { max-width: 620px; }

/* cards */
.omsa-cards { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 40px !important; }
.omsa-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0 !important; }
.omsa-card { background: var(--wp--preset--color--paper); border-radius: 22px; padding: 28px 28px 30px; margin: 0 !important; }
.omsa-card h3 { font-size: 26px; margin: 0 0 10px; }
.omsa-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--wp--preset--color--muted); }
.omsa-card-dark { background: #1F2B25; border: 1px solid #34413A; }
.omsa-card-dark h3 { font-size: 22px; }
.omsa-card-dark p { color: #B9C1BA; }
.omsa-step { font-family: var(--wp--preset--font-family--cormorant); font-size: 20px !important; color: var(--wp--preset--color--gold) !important; margin-bottom: 6px !important; }
.omsa-proof p { color: var(--wp--preset--color--ink); }

/* chips */
ul.omsa-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
ul.omsa-chips li { background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 10px 18px; font-size: 16px; margin: 0; }
ul.omsa-chips li::marker { content: ""; }
ul.omsa-links li { padding: 0; }
ul.omsa-links li a { display: block; padding: 10px 18px; text-decoration: none; font-weight: 600; }
ul.omsa-links li:hover { background: var(--wp--preset--color--sage); }

/* bento */
.omsa-bento { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; }
.omsa-bento > .omsa-tile:first-child { grid-column: span 2; grid-row: span 2; }
.omsa-bento > .omsa-tile:nth-child(6) { grid-column: span 2; }
.omsa-tile { position: relative; border-radius: 22px; overflow: hidden; margin: 0 !important; background: var(--wp--preset--color--ink); }
.omsa-tile figure { margin: 0 !important; position: absolute; inset: 0; }
.omsa-tile figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; transition: transform .6s ease; }
.omsa-tile:hover figure img { transform: scale(1.04); }
.omsa-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,24,18,.88) 0%, rgba(14,24,18,.15) 55%, rgba(14,24,18,0) 100%); pointer-events: none; }
.omsa-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px; margin: 0 !important; display: flex; flex-direction: column; gap: 6px; }
.omsa-tile .omsa-tile-title { margin: 0 !important; color: #fff; font-size: 26px; line-height: 1.05; }
.omsa-bento > .omsa-tile:first-child .omsa-tile-title { font-size: 40px; }
.omsa-tile .omsa-tile-title a { color: #fff; text-decoration: none; }
.omsa-tile .omsa-tile-title a::after { content: ""; position: absolute; inset: -600px 0 0 0; z-index: 3; }
.omsa-tile .omsa-tile-title { position: static; }
.omsa-tile .omsa-tile-text { margin: 0 !important; font-size: 14px; line-height: 1.45; color: #E7E9E3; }
.omsa-tile-dark { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.omsa-tile-dark::after { display: none; }
.omsa-tile-dark .omsa-tile-title a { color: var(--wp--preset--color--cream); }
.omsa-tile-dark .omsa-tile-title a:hover { color: var(--wp--preset--color--gold); }
.omsa-num { font-family: var(--wp--preset--font-family--manrope); font-size: 12px; letter-spacing: .18em; color: var(--wp--preset--color--gold); vertical-align: middle; margin-right: 6px; }

/* cta */
.omsa-cta { border-radius: 28px; padding: clamp(40px, 5vw, 72px) clamp(28px, 4.5vw, 64px) !important; gap: 32px !important; }
.omsa-cta h2 { color: #fff !important; margin: 0 0 8px; font-size: clamp(36px, 4.4vw, 56px); }
.omsa-cta p { color: #DCE6DE; margin: 0; max-width: 640px; }
.omsa-cta .wp-block-button__link { background: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--ink) !important; }

@media (max-width: 900px) {
  .omsa-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .omsa-bento > .omsa-tile:nth-child(6) { grid-column: span 1; }
  .omsa-cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .omsa-bento { grid-template-columns: 1fr; }
  .omsa-bento > .omsa-tile:first-child { grid-column: span 1; grid-row: span 1; }
  .omsa-bento > .omsa-tile:first-child .omsa-tile-title { font-size: 30px; }
}

/* ===================== Technology page ===================== */
.omsa-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.omsa-flow { counter-reset: none; }
.omsa-flow-card { position: relative; }
.omsa-flow-card:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 34px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.omsa-numrow { margin: 0 0 4px !important; }
.omsa-bignum { font-family: var(--wp--preset--font-family--cormorant); font-size: 54px; line-height: 1; color: var(--wp--preset--color--gold); }
.omsa-platform { padding: 34px 34px 36px; display: flex; flex-direction: column; gap: 12px; }
.omsa-platform h3 { font-size: 34px; margin: 0; }
.omsa-fullname { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; font-size: 21px !important; line-height: 1.25 !important; color: var(--wp--preset--color--moss) !important; margin: 0 !important; }
.omsa-platform p { margin: 0; }
.omsa-label-sm { font-size: 11px !important; margin-top: 8px !important; }
ul.omsa-chips-sm li { font-size: 14px; padding: 7px 13px; background: var(--wp--preset--color--cream); }
.omsa-principle { gap: 22px !important; padding: 22px 0; border-top: 1px solid rgba(22,32,27,.14); margin: 0 !important; }
.omsa-principle:last-child { border-bottom: 1px solid rgba(22,32,27,.14); }
.omsa-principle h3 { font-size: 28px; margin: 0 0 6px; }
.omsa-principle p { margin: 0; color: var(--wp--preset--color--muted); }
.omsa-bignum-row { font-family: var(--wp--preset--font-family--cormorant); font-size: 40px; line-height: 1; color: var(--wp--preset--color--moss); min-width: 48px; margin: 0 !important; }
.omsa-tiles-3 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 16px; margin-top: 40px !important; }
.omsa-stat { font-family: var(--wp--preset--font-family--cormorant); font-size: 52px !important; line-height: 1 !important; color: var(--wp--preset--color--gold) !important; margin: 0 0 12px !important; }
.omsa-stat em { font-size: 26px; color: var(--wp--preset--color--cream); }
.omsa-dark .omsa-card a { color: var(--wp--preset--color--gold); }
@media (max-width: 1000px) {
  .omsa-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .omsa-flow-card::after { display: none !important; }
  .omsa-tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .omsa-cards-4, .omsa-tiles-3 { grid-template-columns: 1fr; }
}

.wp-block-post-content ul.omsa-chips li { margin: 0 !important; }

/* ===================== Projects ===================== */
.omsa-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.omsa-stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px !important; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.omsa-statbox { padding: 26px 24px 26px 0; margin: 0 !important; }
.omsa-statbox + .omsa-statbox { border-left: 1px solid var(--wp--preset--color--line); padding-left: 24px; }
.omsa-stat-num { font-family: var(--wp--preset--font-family--cormorant); font-size: 56px; line-height: 1; font-weight: 600; color: var(--wp--preset--color--moss); margin: 0 0 6px !important; }
.omsa-stat-lab { font-size: 15px; color: var(--wp--preset--color--muted); margin: 0 !important; }
.omsa-tagrow { margin: 0 0 4px !important; display: flex; flex-wrap: wrap; gap: 8px; }
.omsa-tag { display: inline-block; background: var(--wp--preset--color--sage); color: var(--wp--preset--color--moss); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
.omsa-tag-light { background: rgba(224,181,102,.16); color: var(--wp--preset--color--gold); }
.omsa-status { display: inline-block; border: 1px solid currentColor; color: var(--wp--preset--color--moss); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.omsa-dark .omsa-status { color: var(--wp--preset--color--gold); }
.omsa-status-tbc { color: var(--wp--preset--color--muted); border-style: dashed; }
.omsa-project { display: flex; flex-direction: column; gap: 10px; }
.omsa-project h3 { font-size: 28px; margin: 6px 0 0; }
.omsa-project h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.omsa-project h3 a:hover { color: var(--wp--preset--color--moss); }
.omsa-meta { font-size: 14px !important; font-weight: 600; color: var(--wp--preset--color--muted) !important; margin: 0 !important; }
.omsa-result-slot { margin-top: auto !important; padding-top: 14px; border-top: 1px dashed var(--wp--preset--color--line); }
.omsa-more { font-size: 14px !important; font-weight: 700; margin: 0 !important; }
.omsa-more a { text-decoration: none; }
.omsa-more-muted { color: var(--wp--preset--color--muted) !important; font-weight: 500; }
.omsa-bigresult { font-family: var(--wp--preset--font-family--cormorant); font-size: 64px !important; line-height: 1 !important; font-weight: 600; color: var(--wp--preset--color--moss) !important; margin: 8px 0 4px !important; }
.omsa-dark .omsa-bigresult { color: var(--wp--preset--color--gold) !important; }
.omsa-result-lab { font-size: 15px !important; margin: 0 !important; }
.omsa-feature-card { padding: 36px; display: flex; flex-direction: column; gap: 10px; }
.omsa-result { background: var(--wp--preset--color--white); }
/* project page */
.omsa-facts { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: 40px !important; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.omsa-fact { padding: 18px 16px 18px 0; margin: 0 !important; }
.omsa-fact + .omsa-fact { border-left: 1px solid var(--wp--preset--color--line); padding-left: 16px; }
.omsa-fact-lab { font-size: 11px !important; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--wp--preset--color--amber); margin: 0 0 6px !important; }
.omsa-fact-val { font-size: 15px !important; font-weight: 600; margin: 0 !important; }
.omsa-photo-slot { margin-top: 32px !important; border: 2px dashed var(--wp--preset--color--line); border-radius: 22px; padding: 56px 24px; text-align: center; color: var(--wp--preset--color--muted); }
@media (max-width: 1000px) {
  .omsa-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .omsa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .omsa-statbox:nth-child(3) { border-left: 0; padding-left: 0; }
  .omsa-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .omsa-fact:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
  .omsa-cards-3, .omsa-stats { grid-template-columns: 1fr; }
  .omsa-statbox + .omsa-statbox { border-left: 0; padding-left: 0; border-top: 1px solid var(--wp--preset--color--line); }
  .omsa-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===================== Science & Testing ===================== */
.omsa-what { font-size: 14px !important; font-weight: 600; color: var(--wp--preset--color--gold) !important; margin: 0 0 8px !important; }
.omsa-warning { margin-top: 20px !important; font-size: 15px; }
.omsa-results { margin-top: 32px !important; align-items: start; }
.omsa-panel { background: var(--wp--preset--color--paper); }
.omsa-panel h3 { font-size: 30px; margin: 0 0 6px; }
.omsa-stack { display: flex; flex-direction: column; gap: 16px; margin: 0 !important; }
.omsa-barrow { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; margin: 16px 0 0 !important; font-size: 15px; }
.omsa-bar-val { font-weight: 700; color: var(--wp--preset--color--moss); }
.omsa-bar { grid-column: 1 / -1; display: block; height: 10px; border-radius: 999px; background: var(--wp--preset--color--sage); overflow: hidden; }
.omsa-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--wp--preset--color--moss); }
.omsa-note { margin-top: 24px !important; padding-top: 18px; border-top: 1px solid var(--wp--preset--color--line); font-size: 15px; color: var(--wp--preset--color--ink) !important; }
.omsa-panel .wp-block-table { margin: 14px 0 0; }
.omsa-panel .wp-block-table table { background: var(--wp--preset--color--white); font-size: 15px; }
.omsa-ok { color: var(--wp--preset--color--moss); }
.omsa-report { display: flex; flex-direction: column; gap: 10px; }
.omsa-report h3 { font-size: 26px; margin: 4px 0 0; }
.omsa-report .wp-block-buttons { margin-top: auto; padding-top: 8px; }
.omsa-report .wp-block-button__link { padding: 11px 18px; font-size: 14px; }
ul.omsa-checks { list-style: none; padding: 0 !important; margin: 0; }
ul.omsa-checks li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid #34413A; margin: 0 !important; font-size: 19px; color: var(--wp--preset--color--cream); }
ul.omsa-checks li:last-child { border-bottom: 1px solid #34413A; }
.omsa-check { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }

/* ===================== Services ===================== */
.omsa-bestfor { margin-top: auto !important; padding-top: 14px; border-top: 1px dashed var(--wp--preset--color--line); font-size: 15px !important; color: var(--wp--preset--color--ink) !important; }
.omsa-flow-3 .omsa-flow-card:nth-child(3n)::after { display: none; }
.omsa-faq { border-top: 1px solid var(--wp--preset--color--line); padding: 20px 0; margin: 0 !important; }
.omsa-faq:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.omsa-faq summary { cursor: pointer; font-family: var(--wp--preset--font-family--cormorant); font-size: 26px; font-weight: 600; line-height: 1.2; list-style: none; position: relative; padding-right: 40px; }
.omsa-faq summary::-webkit-details-marker { display: none; }
.omsa-faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-family: var(--wp--preset--font-family--manrope); font-size: 28px; color: var(--wp--preset--color--moss); }
.omsa-faq[open] summary::after { content: "–"; }
.omsa-faq p { margin: 12px 0 0; color: var(--wp--preset--color--muted); }

/* ===================== About ===================== */
h1.omsa-h1-long { font-size: clamp(46px, 6vw, 88px) !important; max-width: 1100px; }
.omsa-hero-row .omsa-lead { max-width: 760px; }
.omsa-mv { padding: clamp(32px, 4vw, 52px) !important; }
.omsa-statement { font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.22 !important; margin: 12px 0 0 !important; }
.omsa-card.has-moss-background-color .omsa-label { color: var(--wp--preset--color--gold); }
.omsa-card.has-moss-background-color .omsa-statement { color: #fff !important; }
.omsa-card:not(.has-moss-background-color) .omsa-statement { color: var(--wp--preset--color--ink) !important; }
.omsa-year { font-family: var(--wp--preset--font-family--cormorant); font-size: 30px; font-weight: 600; color: var(--wp--preset--color--moss); min-width: 110px; margin: 0 !important; line-height: 1.1; }
.omsa-ms-text { margin: 0 !important; font-size: 17px; }
.omsa-person { display: flex; flex-direction: column; gap: 10px; }
.omsa-person h3 { font-size: 30px; margin: 6px 0 0; }
.omsa-person p { margin: 0; }
.omsa-avatar-row { margin: 0 !important; }
.omsa-avatar { display: inline-flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; background: var(--wp--preset--color--sage); color: var(--wp--preset--color--moss); font-family: var(--wp--preset--font-family--cormorant); font-size: 34px; font-weight: 600; }
.omsa-role { font-size: 14px !important; font-weight: 700; color: var(--wp--preset--color--amber) !important; }
.omsa-person .omsa-meta { margin-top: auto !important; padding-top: 12px; }
.omsa-photo-slot-dark { border-color: #34413A !important; color: #A9B1AA !important; margin-top: 0 !important; padding: 96px 24px !important; }

/* ===================== Partner with us ===================== */
.omsa-cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.omsa-cards-5 .omsa-card-dark h3 { font-size: 22px; }
.omsa-for { font-size: 15px !important; color: var(--wp--preset--color--ink) !important; }
.omsa-contact { padding: clamp(30px, 3.5vw, 44px) !important; }
.omsa-contact .omsa-label { color: var(--wp--preset--color--gold); }
.omsa-contact h3 { color: #fff; font-size: 34px; margin: 10px 0 0; }
.omsa-contact .omsa-fullname { color: var(--wp--preset--color--gold) !important; }
ul.omsa-contact-list { list-style: none; padding: 0 !important; margin: 20px 0 0; }
ul.omsa-contact-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); margin: 0 !important; font-size: 16px; color: #E6EEE8; }
ul.omsa-contact-list li strong { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--gold); }
ul.omsa-contact-list a { color: #fff; }
.omsa-form-card { padding: clamp(30px, 3.5vw, 44px) !important; }
.omsa-form-card h3 { font-size: 36px; margin: 0 0 8px; }
.omsa-form-slot { margin-top: 20px !important; border: 2px dashed var(--wp--preset--color--line); border-radius: 18px; padding: 24px; }
.omsa-form-note { margin: 0 0 12px !important; font-size: 15px; }
ul.omsa-fieldlist { columns: 2; column-gap: 24px; padding-left: 1.1em !important; margin: 0; font-size: 15px; color: var(--wp--preset--color--muted); }
@media (max-width: 1000px) { .omsa-cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .omsa-cards-5 { grid-template-columns: 1fr; } ul.omsa-fieldlist { columns: 1; } }

ul.omsa-contact-list li { display: block; }
ul.omsa-contact-list li strong { display: block; margin-bottom: 3px; }

/* ===================== Enquiry form (Contact Form 7) ===================== */
.wpcf7 { margin-top: 24px; }
.wpcf7 form > p { margin: 0; }
.omsa-f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.omsa-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--wp--preset--color--ink); }
.omsa-f br { display: none; }
.omsa-f-full { margin-top: 16px; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
  width: 100%; box-sizing: border-box; font: 400 16px/1.4 var(--wp--preset--font-family--manrope); color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 13px 14px; }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--moss); outline-offset: 1px; border-color: var(--wp--preset--color--moss); }
.omsa-f-consent { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--wp--preset--color--muted); }
.omsa-f-consent .wpcf7-list-item { margin: 0; }
.omsa-f-consent input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--wp--preset--color--moss); vertical-align: -3px; margin-right: 6px; }
.wpcf7 .omsa-f-submit { margin-top: 20px; background: var(--wp--preset--color--moss); color: #fff; border: 0; border-radius: 999px; padding: 15px 30px; font: 700 15px var(--wp--preset--font-family--manrope); cursor: pointer; }
.wpcf7 .omsa-f-submit:hover { background: var(--wp--preset--color--moss-dark); }
.wpcf7 .omsa-f-submit:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7-not-valid-tip { font-size: 13px; font-weight: 600; color: #A3341F; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--moss); background: var(--wp--preset--color--sage); color: var(--wp--preset--color--moss-dark); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-color: #C9772B; background: #FBF1E4; }
@media (max-width: 600px) { .omsa-f-grid { grid-template-columns: 1fr; } }

.omsa-f .wpcf7-form-control-wrap { display: block; }
.omsa-f-consent .wpcf7-form-control-wrap { display: inline; }

/* ===================== ODM / OEM ===================== */
.omsa-card-white { background: var(--wp--preset--color--white); }
ul.omsa-briefs { list-style: none; padding: 0 !important; margin: 18px 0 0; }
ul.omsa-briefs li { padding: 12px 0 12px 30px; border-top: 1px solid var(--wp--preset--color--line); margin: 0 !important; position: relative; }
ul.omsa-briefs li:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
ul.omsa-briefs li::before { content: "✓"; position: absolute; left: 0; top: 12px; color: var(--wp--preset--color--moss); font-weight: 700; }

/* ===================== Home / 404 / Search ===================== */
h1.omsa-h1-home { font-size: clamp(56px, 9vw, 120px) !important; line-height: .92 !important; }
.omsa-adv .omsa-stat-num { font-size: 48px; }
.omsa-adv h3 { font-size: 22px; margin: 4px 0 8px; }
.omsa-side-img img { width: 100%; height: clamp(300px, 34vw, 480px); object-fit: cover; border-radius: 26px; }
ul.omsa-checks-light li { color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--line) !important; font-size: 17px; }
ul.omsa-checks-light li:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.omsa-person-sm { align-items: flex-start; }
.omsa-person-sm .omsa-avatar { width: 72px; height: 72px; font-size: 28px; }
.omsa-home-posts { margin-top: 32px; }
.omsa-404 { min-height: 52vh; }
.omsa-404 ul.omsa-links { margin-top: 28px; }
.omsa-search { max-width: 640px; margin-top: 24px; }
.omsa-search .wp-block-search__inside-wrapper { gap: 10px; border: 0; padding: 0; }
.omsa-search .wp-block-search__input { border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 14px 20px; background: var(--wp--preset--color--white); font: 16px var(--wp--preset--font-family--manrope); }
.omsa-search .wp-block-search__button { border-radius: 999px; background: var(--wp--preset--color--moss); color: #fff; border: 0; padding: 14px 26px; font-weight: 700; margin: 0; }
h1.omsa-search-title { font-size: clamp(44px, 6vw, 80px); }
.omsa-search-card { gap: 8px; }
.omsa-search-card a { color: var(--wp--preset--color--ink); text-decoration: none; }

/* ===================== Logo ===================== */
.omsa-logo-img { margin: 0 !important; line-height: 0; }
.omsa-logo-img img { border-radius: 0 !important; height: auto; max-width: 100%; display: block; }
.omsa-header .omsa-logo-img img { width: clamp(170px, 18vw, 230px) !important; }
.omsa-logo-footer { margin-bottom: 18px !important; }
.omsa-privacy-row { padding: 26px 0; border-top: 1px solid var(--wp--preset--color--line); margin: 0 !important; }
.omsa-privacy-row h3 { font-size: 28px; margin: 0; }
.omsa-privacy-row p { margin: 0 0 12px; }

/* ===================== Master Consortium / Series ===================== */
.omsa-series { display: inline-block; background: var(--wp--preset--color--sage); color: var(--wp--preset--color--moss-dark) !important; border-radius: 14px; padding: 10px 16px; font-size: 15px !important; line-height: 1.5; }
.omsa-series strong { color: var(--wp--preset--color--moss); }
.omsa-tree { margin-top: 40px !important; display: flex; flex-direction: column; align-items: center; gap: 0 !important; }
.omsa-tree-root { max-width: 520px; text-align: center; padding: 30px 34px !important; position: relative; }
.omsa-tree-root h3 { color: var(--wp--preset--color--cream); font-size: 34px; margin: 6px 0; }
.omsa-tree-root p { color: #C9CFC9; margin: 0; }
.omsa-tree-root::after { content: ""; position: absolute; left: 50%; bottom: -36px; width: 2px; height: 36px; background: var(--wp--preset--color--moss); }
.omsa-tree-leaves { width: 100%; display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 36px !important; padding-top: 22px; border-top: 2px solid var(--wp--preset--color--moss); }
.omsa-tree-leaf { background: var(--wp--preset--color--white); position: relative; padding: 22px !important; }
.omsa-tree-leaf::before { content: ""; position: absolute; left: 50%; top: -24px; width: 2px; height: 22px; background: var(--wp--preset--color--moss); }
.omsa-tree-leaf h3 { font-size: 24px; margin: 0 0 6px; }
.omsa-tree-leaf h3 a { color: var(--wp--preset--color--moss); text-decoration: none; }
.omsa-tree-leaf p { font-size: 14px; margin: 0; color: var(--wp--preset--color--muted); }
@media (max-width: 1000px) { .omsa-tree-leaves { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; } .omsa-tree-leaf::before { display: none; } .omsa-tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .omsa-tree-leaves, .omsa-tiles-3 { grid-template-columns: 1fr; } }

/* ===================== What OMSA stands for ===================== */
.omsa-acro-row { margin: 0 0 6px !important; }
.omsa-acro { font-family: var(--wp--preset--font-family--cormorant); font-size: 72px; line-height: .9; font-weight: 700; color: var(--wp--preset--color--gold); letter-spacing: -0.02em; }
.omsa-acro-card { background: #1F2B25; border: 1px solid #34413A; display: flex; flex-direction: column; gap: 10px; }
.omsa-acro-card h3 { color: var(--wp--preset--color--cream); font-size: 32px; margin: 0; }
.omsa-acro-card p { color: #C9CFC9; margin: 0; font-size: 16px; }
.omsa-acro-card p.omsa-why { margin-top: auto !important; padding-top: 14px; border-top: 1px solid #34413A; color: var(--wp--preset--color--gold) !important; font-weight: 600; font-size: 15px; }
.omsa-avatar-wide { width: auto !important; height: auto !important; border-radius: 999px !important; padding: 10px 18px; font-family: var(--wp--preset--font-family--manrope) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .14em; text-transform: uppercase; }

/* ===================== Mobile menu ===================== */
/* No backdrop-filter/transform on the header: they trap the full-screen menu inside the header box. */
.omsa-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; justify-content: center; align-items: center; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); }
.omsa-header .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--ink) !important; padding: 24px max(24px, 6vw) 40px !important; z-index: 100000; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px !important; align-items: flex-start !important; gap: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wp--preset--color--line); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--cormorant); font-size: 28px; font-weight: 600; padding: 14px 0 !important; color: var(--wp--preset--color--ink); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding: 0 0 12px 14px !important; gap: 0 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border: 0; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-family: var(--wp--preset--font-family--manrope) !important; font-size: 17px !important; font-weight: 500 !important; padding: 7px 0 !important; color: var(--wp--preset--color--muted) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle { display: none; }
.wp-block-navigation__responsive-container-close { top: 22px !important; right: max(24px, 6vw) !important; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--wp--preset--color--line) !important; }
/* "Partner with us" appears inside the mobile menu only (the header button covers desktop) */
.wp-block-navigation .omsa-mobile-only { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .omsa-mobile-only { display: block !important; border-bottom: 0 !important; margin-top: 22px; }
.wp-block-navigation__responsive-container.is-menu-open .omsa-mobile-only > a { display: inline-block !important; background: var(--wp--preset--color--moss); color: #fff !important; border-radius: 999px; padding: 15px 26px !important; font-family: var(--wp--preset--font-family--manrope) !important; font-size: 16px !important; font-weight: 700 !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; text-align: left; }
.wp-block-navigation__responsive-container.is-menu-open a:focus:not(:focus-visible) { outline: none; }
.wp-block-navigation__responsive-container.is-menu-open a:focus-visible { outline: 2px solid var(--wp--preset--color--moss); outline-offset: 4px; border-radius: 6px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.omsa-mobile-only > .wp-block-navigation-item__content { padding: 15px 28px !important; font-family: var(--wp--preset--font-family--manrope) !important; font-size: 16px !important; color: #fff !important; }

/* ---------- Chinese pages (/zh/) ---------- */
.omsa-lang { margin: 0 !important; }
.omsa-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--wp--preset--color--ink); box-sizing: border-box; }
.omsa-lang a:hover { border-color: var(--wp--preset--color--moss); color: var(--wp--preset--color--moss); }
html[lang^="zh"] {
	--wp--preset--font-family--cormorant: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "STSong", serif;
	--wp--preset--font-family--manrope: Manrope, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html[lang^="zh"] body { line-height: 1.8; }
html[lang^="zh"] :is(h1, h2, h3, h4) { letter-spacing: 0.01em; line-height: 1.3; }
/* No fake italics for Chinese characters */
html[lang^="zh"] :is(em, i, .omsa-sub, .omsa-fullname, .omsa-statement, p.has-large-font-size, .has-cormorant-font-family) { font-style: normal; }
html[lang^="zh"] :is(h1, h2) em { color: var(--wp--preset--color--moss); }
/* Chinese line spacing: CJK glyphs fill the whole em box, so the tight Latin values make lines touch */
html[lang^="zh"] h1.omsa-h1-home { line-height: 1.18 !important; letter-spacing: 0.02em; }
html[lang^="zh"] :is(h1, h2) { line-height: 1.35; }
html[lang^="zh"] :is(h3, h4) { line-height: 1.45; }
html[lang^="zh"] .omsa-tile .omsa-tile-title { line-height: 1.35; }
html[lang^="zh"] :is(.omsa-sub, .omsa-statement, .omsa-fullname, .omsa-faq summary, .wp-block-post-content p.has-large-font-size) { line-height: 1.5 !important; }
html[lang^="zh"] .omsa-label { line-height: 1.7; }
html[lang^="zh"] .omsa-label + :is(h1, h2) { margin-top: max(14px, 0.28em) !important; }

/* ---------- Brand hero (homepage) ---------- */
.omsa-brand { font-family: var(--wp--preset--font-family--cormorant) !important; font-weight: 500 !important; text-transform: uppercase; letter-spacing: .03em; line-height: .98 !important; font-size: clamp(42px, 5.4vw, 84px) !important; margin: 0 !important; }
.omsa-brand sup, .omsa-brand-sub sup { font-size: .32em; vertical-align: top; position: relative; top: .2em; margin-left: .06em; letter-spacing: 0; }
.omsa-brand-sub { font-family: var(--wp--preset--font-family--manrope); font-weight: 700; text-transform: uppercase; letter-spacing: .32em; font-size: clamp(12px, 1.45vw, 21px) !important; color: var(--wp--preset--color--amber); margin: .9em 0 0 !important; }
.omsa-tagline { font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(30px, 3.4vw, 50px) !important; line-height: 1.1 !important; margin: clamp(26px, 3vw, 44px) 0 0 !important; }
.omsa-tagline em { font-style: italic; }
.omsa-hero-copy .omsa-lead, .omsa-hero-b .omsa-lead { max-width: 640px; margin-top: 18px !important; }
.omsa-hero-copy .wp-block-buttons, .omsa-hero-b .wp-block-buttons { margin-top: 30px !important; }

/* Version A: full-bleed photo with the copy on the dark left side */
.omsa-hero-a { margin-top: 0 !important; margin-bottom: 0 !important; min-height: min(88vh, 860px); display: flex !important; align-items: center; padding: clamp(72px, 8vw, 120px) max(24px, 4vw) !important; color: var(--wp--preset--color--cream);
	background: linear-gradient(90deg, rgba(8,20,12,.96) 0%, rgba(8,20,12,.9) 40%, rgba(8,20,12,.5) 56%, rgba(8,20,12,0) 70%), #0b170e url(assets/omsa-hero-wide.webp) right center / cover no-repeat; }
.omsa-hero-a > .omsa-hero-copy { width: 100%; max-width: 1240px !important; }
.omsa-hero-a .omsa-hero-copy > * { max-width: 600px; }
.omsa-hero-a .omsa-hero-copy > .omsa-brand, .omsa-hero-a .omsa-hero-copy > .omsa-brand-sub, .omsa-hero-a .omsa-hero-copy > .wp-block-buttons { max-width: none; }
.omsa-hero-a .omsa-brand { color: var(--wp--preset--color--cream); }
.omsa-hero-a .omsa-brand-sub { color: var(--wp--preset--color--gold); }
.omsa-hero-a .omsa-tagline { color: var(--wp--preset--color--cream); }
.omsa-hero-a .omsa-tagline em { color: var(--wp--preset--color--gold); }
.omsa-hero-a .omsa-lead { color: rgba(240, 236, 226, .86); }
.omsa-hero-a .wp-block-button__link { background: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--ink) !important; }
.omsa-hero-a .wp-block-button + .wp-block-button .wp-block-button__link { background: transparent !important; color: var(--wp--preset--color--cream) !important; box-shadow: inset 0 0 0 1.5px rgba(240, 236, 226, .7) !important; }
.omsa-hero-a .wp-block-button + .wp-block-button .wp-block-button__link:hover { background: var(--wp--preset--color--cream) !important; color: var(--wp--preset--color--ink) !important; }
@media (max-width: 760px) {
	.omsa-hero-a { min-height: 0; align-items: flex-end; padding-top: calc(66vw + 8px) !important; padding-bottom: 56px !important;
		background: linear-gradient(180deg, rgba(11,23,14,0) 0, rgba(11,23,14,0) 40vw, #0b170e 68vw), #0b170e url(assets/omsa-hero-wide-1400.webp) 76% 0 / 190% auto no-repeat; }
}

/* Version B: copy left, photo right */
.omsa-hero-b .omsa-brand { color: var(--wp--preset--color--ink); }
.omsa-hero-b .omsa-tagline em { color: var(--wp--preset--color--moss); }
.omsa-hero-b-cols { gap: clamp(28px, 4vw, 64px) !important; }
.omsa-hero-b-img { margin: 0 !important; }
.omsa-hero-b-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 26px; display: block; }
@media (max-width: 781px) { .omsa-hero-b-img img { aspect-ratio: 4 / 3; } }

/* ---------- Dark sections: soft light (gold glow top-right, moss glow bottom-left) + glass cards ---------- */
.wp-block-group.omsa-dark { position: relative; isolation: isolate; background: radial-gradient(55% 75% at 88% 0%, rgba(216,176,90,.20), rgba(216,176,90,0) 70%), radial-gradient(50% 70% at 0% 100%, rgba(70,130,80,.32), rgba(70,130,80,0) 70%), #16201B !important; }
.omsa-dark :is(.omsa-card-dark, .omsa-acro-card) { background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.02)) !important; border: 1px solid rgba(216,184,106,.16) !important; box-shadow: inset 0 1px 0 rgba(216,184,106,.38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.omsa-dark :is(.omsa-card-dark, .omsa-acro-card):hover { transform: translateY(-3px); border-color: rgba(216,184,106,.42) !important; box-shadow: inset 0 1px 0 rgba(216,184,106,.65), 0 22px 44px -24px rgba(0,0,0,.7); }
.omsa-dark .omsa-acro-card p.omsa-why { border-top-color: rgba(216,184,106,.2); }
@media (prefers-reduced-motion: reduce) { .omsa-dark :is(.omsa-card-dark, .omsa-acro-card):hover { transform: none; } }

/* ---------- Blog articles: tables, lead, meta ---------- */
.wp-block-table.omsa-article-table { margin: 28px 0 !important; overflow-x: auto; }
.omsa-article-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.55; background: var(--wp--preset--color--white); border-radius: 14px; overflow: hidden; }
.omsa-article-table th { background: var(--wp--preset--color--sage); color: var(--wp--preset--color--moss-dark); font-weight: 700; text-align: left; padding: 12px 14px; border: 0; }
.omsa-article-table td { padding: 12px 14px; border: 0; border-top: 1px solid var(--wp--preset--color--line); vertical-align: top; }
.omsa-article-table td:first-child { font-weight: 600; }
.wp-block-post-content .omsa-lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.6; }
.wp-block-post-content .omsa-meta { font-size: 14px; color: var(--wp--preset--color--muted); }
.wp-block-post-content .omsa-faq summary { font-size: 22px; }
.wp-block-post-content .wp-block-heading + .omsa-faq { margin-top: clamp(24px, 3vw, 36px) !important; }
.wp-block-post-content .omsa-faq { padding: 24px 0; }
.wp-block-post-content .omsa-faq + :not(.omsa-faq) { margin-top: clamp(32px, 4vw, 48px) !important; }
/* Articles: more breathing room above each section heading */
.wp-block-post-content > h2.wp-block-heading { margin-top: clamp(56px, 6vw, 88px) !important; }
