/*
 * Certifications landing page (CertificationsLanding module). Loaded after
 * ms.css, whose heading, card, note, workflow and link styles the reused
 * blocks keep. Logical properties only (RTL for ar and he). Button labels
 * never wrap; chip and tab strips stay on one row and swipe sideways on
 * phones. Motion runs only under .ce-motion (set by ce.js when the visitor
 * has not asked for reduced motion); without it every element is in its
 * final state. Section headings follow the site token --fs-h2.
 */

.lp-sec.ce-sec .ctas .btn { white-space: nowrap; }
.lp-sec.ce-sec .ms-note + .ctas { margin-block-start: var(--flow-gap); }
.ce-sec .ctas .btn .ico { inline-size: 18px; block-size: 18px; margin-inline-end: 8px; vertical-align: -3px; }

/* ------------------------------------------------------------------ */
/* Ecosystem style · dossier                                            */
/* ------------------------------------------------------------------ */
.ce-dossier { position: relative; overflow: hidden; }
.ce-dossier::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 26, 48, .035) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(rgba(10, 26, 48, .035) 1px, transparent 1px) 0 0 / 28px 28px; pointer-events: none; }
.ce-dossier > .wrap { position: relative; }
.ce-dos { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; margin-block-start: var(--space-6, 40px); }

/* Index: the folder tabs */
.ce-dos-index { position: relative; padding-block: 18px; padding-inline: 0; background: var(--navy-900); color: var(--white); }
.ce-dos-count { margin: 0; padding-block: 0 14px; padding-inline: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); border-block-end: 1px solid var(--navy-700); }
.ce-dos-count span { font-size: 22px; font-weight: 600; margin-inline-end: 4px; }
.ce-dos-tabs { display: flex; flex-direction: column; }
.ce-dos-group { display: block; padding-block: 16px 6px; padding-inline: 22px; font-size: 11px; font-weight: 700; letter-spacing: var(--tracking-label, 3px); text-transform: uppercase; color: var(--mist-2); }
.ce-dos-tab { position: relative; display: flex; align-items: center; gap: 12px; padding-block: 12px; padding-inline: 22px 18px; color: var(--mist); text-decoration: none; border-inline-start: 3px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.ce-dos-tab:hover { background: var(--navy-800); color: var(--white); }
.ce-dos-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.ce-dos-tab[aria-selected="true"] { background: var(--steel-50); color: var(--ink); border-inline-start-color: var(--red); }
.ce-dos-tab[aria-selected="true"]::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: -1px; inline-size: 2px; background: var(--steel-50); }
.ce-dos-tab-ico { display: inline-grid; place-items: center; flex: none; inline-size: 34px; block-size: 34px; background: var(--navy-700); color: #FF8A8A; transition: background .2s ease, color .2s ease; }
.ce-dos-tab-ico .ico { inline-size: 18px; block-size: 18px; }
.ce-dos-tab[aria-selected="true"] .ce-dos-tab-ico { background: var(--red); color: var(--white); }
.ce-dos-tab-txt { display: flex; flex-direction: column; min-inline-size: 0; line-height: 1.2; }
.ce-dos-tab-txt b { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.ce-dos-tab-txt small { font-size: 12px; color: inherit; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-dos-dot { margin-inline-start: auto; flex: none; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(63, 191, 127, .18); }

/* Folder: one certificate */
.ce-dos-folder { position: relative; min-inline-size: 0; background: var(--white); border: 1px solid var(--steel-200); border-inline-start: 0; box-shadow: 0 24px 48px rgba(10, 26, 48, .08); }
.ce-dos-file { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: clamp(20px, 3vw, 40px); }
.ce-dos-file + .ce-dos-file { border-block-start: 1px solid var(--steel-200); }
.ce-dos-file:focus { outline: none; }
.js-ce .ce-dos-file[hidden] { display: none; }

.ce-dos-sheet { position: relative; align-self: start; padding-block-start: 30px; }
.ce-dos-label { position: absolute; inset-block-start: 0; inset-inline-start: 0; display: inline-flex; align-items: center; gap: 8px; max-inline-size: 100%; padding-block: 6px; padding-inline: 12px 18px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 1px; color: var(--white); background: var(--navy-900); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .ce-dos-label { clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
.ce-dos-label span { color: var(--gold); font-weight: 600; }
.ce-dos-scan { position: relative; margin: 0; padding: 12px; background: var(--steel-50); border: 1px solid var(--steel-200); box-shadow: 0 1px 0 var(--white) inset, 0 18px 36px rgba(10, 26, 48, .14); }
.ce-dos-scan::before { content: ""; position: absolute; inset: 6px -6px -6px 6px; z-index: -1; background: var(--steel-100); border: 1px solid var(--steel-200); }
.ce-dos-scan a { position: relative; display: block; }
.ce-dos-scan img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1 / 1.414; object-fit: contain; background: var(--white); }
.ce-dos-zoom { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 6px; padding-block: 6px; padding-inline: 10px; font-size: 12px; font-weight: 600; color: var(--white); background: rgba(10, 26, 48, .86); white-space: nowrap; opacity: .92; transition: background .2s ease; }
.ce-dos-zoom .ico { inline-size: 16px; block-size: 16px; }
.ce-dos-scan a:is(:hover, :focus-visible) .ce-dos-zoom { background: var(--red); opacity: 1; }
.ce-dos-scan a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.ce-seal { position: absolute; inset-block-end: -22px; inset-inline-end: -18px; inline-size: 104px; block-size: 104px; color: var(--red); filter: drop-shadow(0 6px 10px rgba(10, 26, 48, .18)); transform: rotate(-12deg); }
.ce-seal-o { fill: rgba(255, 255, 255, .94); stroke: currentColor; stroke-width: 3; }
.ce-seal-i { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 3; }
.ce-seal-t { font-family: var(--f-display); font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; fill: currentColor; text-transform: uppercase; }
.ce-seal-k { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: square; }

.ce-dos-body { display: flex; flex-direction: column; gap: 18px; min-inline-size: 0; }
.ce-dos-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ce-tag { display: inline-flex; align-items: center; padding-block: 4px; padding-inline: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-2); background: var(--steel-50); border: 1px solid var(--steel-200); white-space: nowrap; }
.ce-tag--ok { color: #1E7A4E; background: rgba(63, 191, 127, .1); border-color: rgba(63, 191, 127, .35); }
.ce-tag--ok::before { content: ""; inline-size: 7px; block-size: 7px; margin-inline-end: 7px; border-radius: 50%; background: var(--success); }
.ce-dos-title { margin: 0; font-family: var(--f-card-title); font-size: var(--fs-card-title-lg, 26px); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); line-height: 1.12; text-transform: uppercase; color: var(--ink); }
.ce-dos-sum { margin: 0; color: var(--ink-2); line-height: 1.6; }

.ce-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-block-start: 2px solid var(--navy-900); }
.ce-facts > div { padding-block: 12px; padding-inline: 0 16px; border-block-end: 1px solid var(--steel-200); }
.ce-facts > div:nth-child(even) { padding-inline: 16px 0; border-inline-start: 1px solid var(--steel-200); }
.ce-facts dt { margin-block-end: 4px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-2); }
.ce-facts dd { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.ce-mono { font-family: var(--f-mono); letter-spacing: .5px; }
.ce-left { display: inline-block; margin-inline-start: 4px; font-size: 12px; font-weight: 600; color: #1E7A4E; white-space: nowrap; }

.ce-dos-covers h4, .ce-dos-use h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.ce-dos-covers dl { margin: 0; }
.ce-dos-covers dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding-block: 8px; border-block-end: 1px dashed var(--steel-300); }
.ce-dos-covers dt { font-weight: 700; color: var(--ink); font-size: 14px; }
.ce-dos-covers dd { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.ce-dos-use { padding: 16px 18px; background: var(--steel-50); border-inline-start: 3px solid var(--navy-900); }
.ce-dos-use h4 { color: var(--navy-900); }
.ce-dos-use h4 .ico { inline-size: 16px; block-size: 16px; color: var(--red); }
.ce-dos-use p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: 15px; }
.ce-dos-markets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ce-dos-mk { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-2); }
.ce-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ce-chips li { padding-block: 5px; padding-inline: 10px; font-size: 13px; font-weight: 600; color: var(--navy-900); background: var(--white); border: 1px solid var(--steel-300); white-space: nowrap; }
.ce-dos-actions { margin: 0; }

.ce-motion .ce-dos-file.is-opening .ce-dos-scan { animation: ce-slide .5s ease both; }
.ce-motion .ce-dos-file.is-opening .ce-seal { animation: ce-stamp .55s cubic-bezier(.2, 1.4, .4, 1) .25s both; }
.ce-motion .ce-dos-file.is-opening .ce-dos-body > * { animation: ce-fade .45s ease both; }
@keyframes ce-slide { from { opacity: 0; transform: translateY(14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes ce-stamp { from { opacity: 0; transform: rotate(-30deg) scale(1.6); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes ce-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* Validity ledger                                                      */
/* ------------------------------------------------------------------ */
.ce-led { margin-block-start: var(--space-6, 40px); }
.ce-led-ruler, .ce-led-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; gap: 20px; }
.ce-led-years { position: relative; block-size: 64px; border-block-end: 2px solid var(--navy-900); }
.ce-led-years > span { position: absolute; inset-block-end: 8px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
[dir="rtl"] .ce-led-years > span { transform: translateX(50%); }
.ce-led-years > span::after { content: ""; position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 50%; inline-size: 1px; block-size: 8px; background: var(--navy-900); }
.ce-led-today { position: absolute; inset-block: 22px -2px; inline-size: 2px; background: var(--red); font-style: normal; }
.ce-led-today b { margin-block-start: -22px; }
[dir="rtl"] .ce-led-today b { transform: translateX(50%); }
.ce-led-today b { position: absolute; inset-block-start: 0; inset-inline-start: 0; transform: translateX(-50%); padding-block: 2px; padding-inline: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--white); background: var(--red); white-space: nowrap; }
.ce-led-rows { margin: 0; padding: 0; list-style: none; }
.ce-led-row { padding-block: 12px; border-block-end: 1px solid var(--steel-200); }
.ce-led-lab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; color: var(--ink); text-decoration: none; }
a.ce-led-lab:is(:hover, :focus-visible) b { color: var(--red); }
.ce-led-lab b { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.ce-led-lab small { font-size: 12.5px; color: var(--ink-2); }
.ce-led-track { position: relative; display: flex; flex-direction: column; gap: 6px; min-inline-size: 0; }
.ce-led-bar { position: relative; display: block; block-size: 14px; background: linear-gradient(90deg, var(--navy-900), var(--navy-600)); }
.ce-led-bar::after { content: ""; position: absolute; inset-block: -3px; inset-inline-end: 0; inline-size: 3px; background: var(--red); }
.ce-led-row.is-open .ce-led-bar { background: repeating-linear-gradient(135deg, var(--navy-600) 0 6px, var(--steel-200) 6px 12px); }
.ce-led-row.is-open .ce-led-bar::after, .ce-led-row.is-renewed .ce-led-bar::after { display: none; }
.ce-led-row.is-renewed .ce-led-bar { background: var(--steel-300); }
.ce-led-txt { font-size: 13.5px; color: var(--ink-2); }
.ce-led-txt time { font-weight: 600; color: var(--ink); }
.ce-motion .ce-led .ce-led-bar { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
[dir="rtl"] .ce-motion .ce-led .ce-led-bar { transform-origin: 100% 50%; }
.ce-motion .ce-led.is-in .ce-led-bar { transform: none; }

/* ------------------------------------------------------------------ */
/* Market coverage                                                      */
/* ------------------------------------------------------------------ */
.ce-matrix .lp-lede { color: var(--mist); }
.ce-mx-filter { display: flex; flex-wrap: nowrap; gap: 8px; margin-block-start: var(--space-5, 32px); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.ce-mx-filter::-webkit-scrollbar { display: none; }
.ce-mx-chip { flex: none; padding-block: 9px; padding-inline: 16px; font: inherit; font-size: 14px; font-weight: 600; color: var(--mist); background: transparent; border: 1px solid var(--navy-600); cursor: pointer; white-space: nowrap; scroll-snap-align: start; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.ce-mx-chip:hover { color: var(--white); border-color: var(--mist-2); }
.ce-mx-chip[aria-pressed="true"] { color: var(--white); background: var(--red); border-color: var(--red); }
.ce-mx-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.ce-mx-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-block: var(--space-5, 28px) 0; margin-inline: 0; padding: 0; list-style: none; }
.ce-mx-row { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--navy-800); border: 1px solid var(--navy-700); border-block-start: 3px solid var(--success); }
.ce-mx-row[hidden] { display: none; }
.ce-mx--project { border-block-start-color: #8FB3E0; }
.ce-mx--progress { border-block-start-color: var(--gold); }
.ce-mx--not_held { border-block-start-color: var(--mist-2); background: rgba(16, 36, 63, .55); }
.ce-mx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ce-mx-market { font-size: 11.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--mist-2); }
.ce-mx-status { display: inline-flex; align-items: center; gap: 6px; padding-block: 3px; padding-inline: 8px; font-size: 12px; font-weight: 700; color: #7FE0AE; background: rgba(63, 191, 127, .12); white-space: nowrap; }
.ce-mx-status .ico { inline-size: 14px; block-size: 14px; }
.ce-mx--project .ce-mx-status { color: #B9D2F0; background: rgba(143, 179, 224, .14); }
.ce-mx--progress .ce-mx-status { color: var(--gold); background: rgba(212, 161, 46, .14); }
.ce-mx--not_held .ce-mx-status { color: var(--mist); background: rgba(195, 205, 218, .1); }
.ce-mx-cred { margin: 0; font-family: var(--f-card-title); font-size: var(--fs-card-title-sm, 18px); font-weight: var(--fw-card-title); letter-spacing: var(--tracking-card-title); line-height: 1.15; text-transform: uppercase; color: var(--white); }
.ce-mx--not_held .ce-mx-cred { color: var(--mist); }
.ce-mx-req, .ce-mx-det { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mist); }
.ce-mx-req span { display: block; margin-block-end: 2px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mist-2); }
.ce-mx-link { margin-block-start: auto; font-size: 14px; font-weight: 600; color: #FF8A8A; text-decoration: none; white-space: nowrap; }
.ce-mx-link:is(:hover, :focus-visible) { color: var(--white); text-decoration: underline; }
.ce-matrix .ms-note { color: var(--mist); }

/* ------------------------------------------------------------------ */
/* Audit photos                                                         */
/* ------------------------------------------------------------------ */
.ce-au-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block: var(--space-6, 40px) 0; margin-inline: 0; padding: 0; list-style: none; }
.ce-au--lead { grid-column: span 2; grid-row: span 2; }
.ce-au figure { position: relative; margin: 0; block-size: 100%; overflow: hidden; background: var(--navy-900); }
.ce-au img { display: block; inline-size: 100%; block-size: 100%; min-block-size: 200px; object-fit: cover; transition: transform .6s ease; }
.ce-au figure:hover img { transform: scale(1.03); }
.ce-au figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 30px 14px 12px; font-size: 13px; line-height: 1.4; color: var(--white); background: linear-gradient(transparent, rgba(6, 17, 31, .9)); }
.ce-au-tag { display: inline-block; margin-inline-end: 6px; padding-block: 2px; padding-inline: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: var(--red); white-space: nowrap; }
.ce-au-src { display: flex; align-items: center; gap: 8px; margin-block: 14px 0; font-size: 13px; color: var(--ink-2); }
.ce-au-src .ico { inline-size: 16px; block-size: 16px; color: var(--red); }
.ce-motion .ce-au-grid > li { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.ce-motion .ce-au-grid.is-in > li { opacity: 1; transform: none; }
.ce-motion .ce-au-grid.is-in > li:nth-child(2) { transition-delay: .08s; }
.ce-motion .ce-au-grid.is-in > li:nth-child(3) { transition-delay: .16s; }
.ce-motion .ce-au-grid.is-in > li:nth-child(4) { transition-delay: .24s; }
.ce-motion .ce-au-grid.is-in > li:nth-child(n+5) { transition-delay: .32s; }

/* ------------------------------------------------------------------ */
/* Tablet and phone                                                     */
/* ------------------------------------------------------------------ */
@media (max-width: 1099px) {
  .ce-dos { grid-template-columns: 250px minmax(0, 1fr); }
  .ce-dos-file { grid-template-columns: minmax(0, 1fr); }
  .ce-dos-sheet { max-inline-size: 360px; }
}
@media (max-width: 899px) {
  .ce-dos { grid-template-columns: minmax(0, 1fr); }
  .ce-dos-index { padding-block: 12px 0; }
  .ce-dos-count { padding-inline: 16px; padding-block-end: 10px; }
  /* One row of tabs, swiped sideways */
  .ce-dos-tabs { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .ce-dos-tabs::-webkit-scrollbar { display: none; }
  .ce-dos-group { display: none; }
  .ce-dos-tab { flex: none; padding-block: 12px; padding-inline: 14px; border-inline-start: 0; border-block-end: 3px solid transparent; scroll-snap-align: start; }
  .ce-dos-tab[aria-selected="true"] { border-block-end-color: var(--red); }
  .ce-dos-tab[aria-selected="true"]::after { display: none; }
  .ce-dos-tab-ico { inline-size: 28px; block-size: 28px; }
  .ce-dos-tab-txt small, .ce-dos-dot { display: none; }
  .ce-dos-folder { border-inline-start: 1px solid var(--steel-200); }
  .ce-led-ruler, .ce-led-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ce-led-ruler > .ce-led-lab { display: none; }
  .ce-au-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .ce-dos-file { padding: 18px 16px 24px; }
  .ce-dos-sheet { max-inline-size: 280px; margin-inline: auto; }
  .ce-seal { inline-size: 84px; block-size: 84px; inset-inline-end: -10px; }
  .ce-facts { grid-template-columns: minmax(0, 1fr); }
  .ce-facts > div:nth-child(even) { padding-inline: 0; border-inline-start: 0; }
  .ce-dos-covers dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ce-dos-actions { flex-direction: column; align-items: stretch; }
  .ce-dos-actions .btn { justify-content: center; text-align: center; }
  .ce-led-years > span:nth-child(even) { display: none; }
  .ce-au-grid { grid-template-columns: minmax(0, 1fr); }
  .ce-au--lead { grid-column: auto; grid-row: auto; }
}
@media print {
  .js-ce .ce-dos-file[hidden] { display: grid; }
  .ce-dos-index, .ce-mx-filter { display: none; }
}
