/*
 * Engineers & consultants page: cards and tabs (ec_cards), Engineering
 * Specification Hub (ec_hub) and the anchors of the two forms. Tabs and
 * chips reuse the Landing strips (.lp-tablist, .lp-filter): one row, swiped
 * sideways on phones. Logical properties only, so the page mirrors for ar
 * and he. Button labels never wrap; the page fits a 360px screen.
 */
.ec-grid { display: grid; gap: 16px; align-items: stretch; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
@media (min-width: 1100px) {
  .ec-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ec-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ec-card { display: flex; flex-direction: column; gap: 12px; min-inline-size: 0; padding: 22px 22px 18px; background: var(--white); border: 1px solid var(--steel-200); border-block-start: 3px solid var(--navy-900); color: var(--ink); }
.band.light .ec-card { background: var(--white); }
.band.navy .ec-card { border-block-start-color: var(--red); }
.ec-top { display: flex; gap: 14px; align-items: center; }
.ec-top h3 { margin: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.ec-ico { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; flex: none; background: var(--steel-50); color: var(--red); }
.ec-ico .ico { inline-size: 24px; block-size: 24px; }
.ec-tag { display: block; margin-block-end: 2px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--red); }
.ec-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.ec-lists { display: grid; gap: 14px; }
.ec-h4 { margin: 0 0 6px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy-900); }
.ec-list { margin: 0; padding: 0; list-style: none; }
.ec-list li { position: relative; padding-inline-start: 16px; margin-block-end: 5px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ec-list li::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .62em; inline-size: 6px; block-size: 6px; background: var(--red); }
.ec-links { border-block-start: 1px solid var(--steel-200); padding-block-start: 10px; }
.ec-links ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.ec-links a, .ec-res-links a { font-size: 14px; font-weight: 600; color: var(--navy-900); text-decoration-color: var(--red); }
.ec-links a:hover, .ec-links a:focus-visible, .ec-res-links a:hover, .ec-res-links a:focus-visible { color: var(--red); }
.ec-cta { margin-block-start: auto !important; padding-block-start: 6px; }
.ec-cta .btn, .ec-ctas .btn, .ec-res-cta .btn, .ec-hub-status .btn { white-space: nowrap; max-inline-size: 100%; }
.ec-note { margin-block-start: 24px; }
.ec-ctas { margin-block-start: 28px; }

/* Tabs: with JavaScript one panel at a time, the panel shows its lists side by side. */
.ec-tabs { display: grid; gap: 16px; }
.ec-tabs.is-js { gap: 0; }
.ec-tablist [role="tab"] { text-transform: none; font-family: var(--f-body, inherit); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.ec-tab-n { font-family: var(--f-mono); font-size: 12px; opacity: .8; }
.ec-panel[hidden] { display: none; }
.ec-tabs.is-js .ec-panel { padding: clamp(20px, 3vw, 32px); }
@media (min-width: 900px) {
  .ec-tabs.is-js .ec-lists { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* Engineering Specification Hub */
.ec-hub-tools { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; margin-block-end: 20px; padding: 18px; background: var(--white); border: 1px solid var(--steel-200); }
.ec-hub-tools[hidden] { display: none; }
.ec-hub-tools label { display: block; margin-block-end: 6px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy-900); }
.ec-hub-tools input, .ec-hub-tools select { inline-size: 100%; min-block-size: 44px; padding: 8px 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--steel-300); border-radius: 0; }
.ec-hub-tools input:focus-visible, .ec-hub-tools select:focus-visible { outline: 2px solid var(--focus, var(--red)); outline-offset: 1px; }
.ec-hub-cats { grid-column: 1 / -1; margin: 0; }
.ec-hub-status { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ec-hub-status p { margin: 0; font-size: 14px; color: var(--ink-2); }
.ec-hub-groups { display: grid; gap: 28px; }
.ec-hub-cat[hidden] { display: none; }
.ec-hub-h3 { margin: 0 0 12px; font-size: 19px; line-height: 1.3; color: var(--navy-900); }
.ec-res-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ec-res { display: flex; flex-direction: column; gap: 8px; min-inline-size: 0; padding: 16px 18px; background: var(--white); border: 1px solid var(--steel-200); border-inline-start: 3px solid var(--navy-900); }
.ec-res[hidden] { display: none; }
.ec-res-head { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; }
.ec-res-type, .ec-res-access { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.ec-res-type { color: var(--red); }
.ec-res-access { padding: 2px 8px; border: 1px solid var(--steel-300); color: var(--ink-2); white-space: nowrap; }
.ec-res-public { border-color: var(--navy-900); color: var(--navy-900); }
.ec-res-title { margin: 0; font-size: 16px; line-height: 1.35; }
.ec-res-title a { color: var(--navy-900); text-decoration-color: var(--red); }
.ec-res-title a:hover, .ec-res-title a:focus-visible { color: var(--red); }
.ec-res p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ec-res-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ec-res-tags li { padding: 2px 8px; font-size: 12.5px; background: var(--steel-50); color: var(--ink-2); }
.ec-res-tags li.is-market { background: var(--navy-900); color: var(--white); }
.ec-res-links span { font-weight: 600; }
.ec-res-cta { margin-block-start: auto !important; }
.ec-hub-empty { padding: 18px; background: var(--white); border: 1px dashed var(--steel-300); }
.ec-hub-empty[hidden] { display: none; }
@media (min-width: 1100px) {
  .ec-res-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Hidden targets of #rfq-{request}, #rfq-stage-{x} and #partner-{model}. */
.ec-anchor { display: block; block-size: 0; overflow: hidden; scroll-margin-block-start: 140px; }
.lp-rfq-form .ec-stage-hint { clear: both; margin-block: 6px 12px; }

@media (max-width: 760px) {
  .ec-hub-tools { grid-template-columns: minmax(0, 1fr); padding: 14px; }
}
@media (max-width: 400px) {
  .ec-card { padding-inline: 16px; }
  .ec-res { padding-inline: 14px; }
  .ec-cta .btn, .ec-ctas .btn, .ec-res-cta .btn, .ec-hub-status .btn { font-size: 14px; padding-inline: 14px; }
  .ec-hub-status { flex-wrap: wrap; }
  .lp-hero .ctas .btn { font-size: 13.5px; padding-inline: 12px; white-space: nowrap; max-inline-size: 100%; }
}

/* Cards are white on every band: their outline buttons stay navy. */
.ec-card .btn-ghost { border-color: var(--navy-900); color: var(--navy-900); }
.ec-card .btn-ghost:hover, .ec-card .btn-ghost:focus-visible { background: var(--navy-900); color: var(--white); }
