:root {
  --ink: #102b36;
  --muted: #5d6b71;
  --line: #dfe5e5;
  --paper: #f4f6f3;
  --lime: #d7f76b;
  --teal: #23636a;
  --white: #fff;
  --radius: 12px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #548c22;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: white;
  z-index: 99;
  padding: 15px;
}
.topline {
  background: var(--ink);
  color: #bed0d3;
  padding: 9px 5%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.8px;
}
header {
  display: flex;
  align-items: center;
  padding: 25px 5%;
  gap: 35px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 760;
  font-size: 22px;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-light {
  font-weight: 400;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 3px;
  margin-top: 3px;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
nav a:hover,
.member-link:hover {
  color: var(--teal);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
  font-weight: 650;
}
.basket {
  border: 1px solid var(--line);
  padding: 10px 13px;
  border-radius: 6px;
  white-space: nowrap;
}
.basket span {
  background: var(--ink);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-size: 10px;
}
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 65px 6% 45px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 1320px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 22px;
}
.hero .eyebrow {
  color: var(--lime);
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: -2.8px;
  font-weight: 560;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero p {
  color: #b9cdce;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.8;
}
.hero-visual img {
  display: block;
  height: auto;
  width: 100%;
  max-height: 380px;
}
.hero-visual {
  position: relative;
}
.visual-caption {
  position: absolute;
  left: 15%;
  bottom: 5%;
  font-family: monospace;
  font-size: 10px;
  color: #b9cdce;
  letter-spacing: 2px;
}
.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--ink);
}
.searchbar input {
  border: 0;
  min-width: 0;
  flex: 1;
  padding: 10px;
  background: transparent;
}
.searchbar button,
.primary {
  border: 0;
  background: var(--lime);
  color: var(--ink);
  border-radius: 5px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}
.primary.dark {
  background: var(--ink);
  color: white;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 650;
}
.hero-search {
  max-width: 760px;
  margin: 20px 0;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.hero .hint {
  color: #b9cdce;
}
.stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid #35505a;
  margin-top: 40px;
  padding-top: 24px;
}
.stats strong {
  font-size: 27px;
  font-weight: 500;
  display: block;
  letter-spacing: -1px;
}
.stats span {
  font-size: 10px;
  color: #b9cdce;
}
.stats a.stat-link {
  color: inherit;
  border-radius: 8px;
  outline-offset: 4px;
}
.stats a.stat-link:hover strong,
.stats a.stat-link:focus-visible strong {
  text-decoration: underline;
}
.stats a.stat-link:focus-visible {
  outline: 3px solid var(--lime);
}
.wrap {
  max-width: 1320px;
  margin: auto;
  padding: 45px 5%;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 8px;
  font-weight: 550;
}
.section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.textlink {
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #9badb3;
  padding-bottom: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: white;
}
.browse-card {
  background: var(--paper);
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.browse-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}
.card-number {
  font-family: monospace;
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 30px;
}
.card h3 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.card .arrow {
  display: block;
  margin-top: 20px;
  font-size: 22px;
}
.workflow {
  background: var(--paper);
}
.workflow .card {
  background: transparent;
  border: none;
  border-left: 1px solid #cdd7d5;
  border-radius: 0;
  padding: 5px 28px;
}
.workflow .card-number {
  margin-bottom: 18px;
  color: var(--teal);
}
.page-head {
  background: var(--paper);
  padding: 40px 5%;
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: 39px;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}
.page-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  max-width: 720px;
  line-height: 1.7;
}
.breadcrumbs {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
}
.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 34px;
}
.filters label,
.field label {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 8px;
}
.filters label {
  margin-top: 22px;
}
.filters select,
.filters input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ccd5d6;
  border-radius: 5px;
  padding: 11px;
  background: white;
  font-size: 13px;
  color: var(--ink);
}
.filters h2 {
  font-size: 15px;
  margin: 0;
}
.filters .primary {
  margin-top: 22px;
  width: 100%;
}
.filters .textlink {
  display: inline-block;
  margin-top: 20px;
}
.results-head {
  display: flex;
  justify-content: space-between;
  margin: 24px 0 14px;
  color: var(--muted);
  font-size: 11px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: var(--paper);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 15px 18px;
  color: var(--muted);
  font-weight: 600;
}
td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}
td:first-child a {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
}
td .add {
  background: #edf4df;
  border: 0;
  border-radius: 4px;
  padding: 7px 10px;
  font-weight: 700;
  color: #314d16;
  white-space: nowrap;
}
.empty {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  font-size: 12px;
}
.pagination a {
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 5px;
}
.badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 4px;
  background: #eef3ee;
  font-size: 10px;
  font-weight: 650;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chips a {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}
.detail-grid .card {
  margin-bottom: 20px;
}
.detail-grid h2 {
  font-size: 19px;
  font-weight: 600;
}
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.specs dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.specs dd {
  margin: 0;
  font-size: 14px;
}
.part-code {
  font-family: monospace;
}
.side-panel {
  background: var(--ink);
  color: white;
  align-self: start;
  border: 0;
}
.side-panel p {
  color: #c0cfd3;
}
.side-panel .primary {
  width: 100%;
  margin: 16px 0;
}
.side-panel .textlink {
  display: inline-block;
  color: white;
}
.notice {
  background: #f5f6e9;
  border: 1px solid #e4e7d3;
  border-radius: 6px;
  padding: 14px 17px;
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
  color: #536137;
}
.notice.error {
  background: #fff1ed;
  color: #963c23;
  border-color: #f0d1c7;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field.full {
  grid-column: 1/-1;
}
.field {
  margin-bottom: 10px;
}
.rfq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}
.qty {
  width: 90px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.remove {
  border: none;
  background: none;
  color: #8b4b3c;
  padding: 8px;
}
.directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.directory .directory-entry,
.directory a {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
  display: block;
}
.directory a:hover {
  border-color: var(--teal);
}
.directory small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 10px;
}
.directory strong {
  font-size: 14px;
  font-weight: 600;
}
.account-layout {
  max-width: 760px;
  margin: auto;
}
.account-layout h2 {
  font-size: 23px;
  font-weight: 550;
}
.account-layout .card {
  margin-bottom: 25px;
}
.supplier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.supplier-grid h3 {
  font-size: 17px;
}
.supplier-grid address {
  font-style: normal;
  font-size: 12px;
  line-height: 1.9;
}
.supplier-grid details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 12px;
}
.supplier-grid a {
  color: var(--teal);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.supplier-grid .contact {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.prose {
  max-width: 800px;
  font-size: 14px;
  line-height: 1.9;
}
.prose h2 {
  margin-top: 30px;
}
footer {
  background: var(--ink);
  color: #b9cdce;
  padding: 50px 6% 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  font-size: 12px;
}
footer a {
  display: block;
  margin: 12px 0;
}
footer .eyebrow {
  color: #88a5ab;
  font-size: 9px;
}
.footer-brand {
  color: white;
  font-size: 23px;
  letter-spacing: -1px;
}
.footer-brand span {
  color: var(--lime);
  margin-left: 15px;
}
footer p {
  line-height: 1.8;
}
.footer-note {
  grid-column: 1/-1;
  font-size: 10px;
  border-top: 1px solid #35505a;
  padding-top: 22px;
  margin: 0;
  color: #8ba4aa;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  right: auto;
  padding: 16px 24px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  box-shadow: 0 6px 25px #0002;
  max-width: 330px;
  display: none;
  font-size: 13px;
  z-index: 20;
}
#toast.show {
  display: block;
}
.success {
  border-left: 4px solid #66872b;
}
.login-icon {
  font-size: 34px;
  margin-bottom: 20px;
}
.account-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 20px 0;
}
.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.admin-controls select,
.admin-controls input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  max-width: 170px;
}
.danger-row {
  background: #fff2ed;
}
.urgent-row {
  background: #fff9de;
}
@media (min-width: 1600px) {
  header,
  .page-head {
    padding-left: calc((100vw - 1200px) / 2);
    padding-right: calc((100vw - 1200px) / 2);
  }
}
@media (max-width: 1000px) {
  header {
    gap: 20px;
    flex-wrap: wrap;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero h1 {
    font-size: 46px;
  }
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .rfq-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .directory {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .topline span:last-child {
    display: none;
  }
  header {
    padding: 20px 5%;
    gap: 14px;
  }
  .brand {
    font-size: 19px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .member-link {
    font-size: 11px;
  }
  .header-actions {
    gap: 12px;
  }
  .basket {
    padding: 8px;
  }
  .basket span {
    margin-left: 3px;
  }
  nav {
    gap: 25px;
    font-size: 12px;
    flex-wrap: wrap;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .hero-visual {
    display: none;
  }
  .hero p {
    font-size: 14px;
  }
  .hero-search {
    margin-top: 25px;
  }
  .searchbar {
    gap: 0;
  }
  .searchbar button {
    padding: 13px;
  }
  .stats {
    gap: 30px;
  }
  .stats strong {
    font-size: 23px;
  }
  .cards,
  .layout,
  .detail-grid,
  .rfq-grid,
  .supplier-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards {
    gap: 12px;
  }
  .card-number {
    margin-bottom: 16px;
  }
  .browse-card {
    padding: 22px;
  }
  .browse-card .arrow {
    margin-top: 10px;
  }
  .page-head h1 {
    font-size: 31px;
  }
  .wrap {
    padding: 30px 5%;
  }
  .filters {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 25px;
  }
  .filters > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .filters select,
  .filters input {
    min-width: 0;
  }
  .filters h2 {
    grid-column: 1/-1;
  }
  .filters label {
    margin-top: 8px;
  }
  .filters .primary {
    margin-top: 5px;
  }
  .filters .textlink {
    margin-top: 8px;
    align-self: center;
    justify-self: start;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .directory {
    gap: 10px;
  }
  .directory .directory-entry,
  .directory a {
    padding: 15px;
  }
  .specs {
    grid-template-columns: 1fr 1fr;
  }
  td,
  th {
    padding: 12px 10px;
  }
  td .add {
    font-size: 11px;
  }
  td {
    font-size: 11px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .section-heading .textlink {
    white-space: nowrap;
  }
  footer {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
  footer > div:first-child {
    grid-column: 1/-1;
  }
  .workflow .card {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .rfq-grid > aside {
    grid-row: 1;
  }
  .qty {
    width: 70px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 2px;
  }
}

.sr-only {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* AffectionPlus language menu, with the AeroPartsBridge header palette. */
.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.lang-switch > a,
.lang-switch > span {
  padding: 6px;
}
.lang-menu {
  position: relative;
  margin-left: auto;
}
.lang-menu > button,
.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #eef4f5;
}
.lang-menu > summary:hover,
.lang-menu > summary[aria-expanded='true'],
.lang-menu > button:hover,
.lang-menu > button[aria-expanded='true'] {
  background: #dfecee;
}
.lang-menu .flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}
.lang-menu .caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}
.lang-menu > ul {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  width: 200px;
  max-height: min(420px, 65vh);
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 28px #0003;
  border: 1px solid var(--line);
}
.lang-menu[open] > ul,
.lang-menu.open > ul {
  display: block;
}
.lang-menu > ul li {
  margin: 0;
}
.lang-menu > ul > li > a,
.lang-menu > ul > li > span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  min-height: 40px;
  border-radius: 6px;
  width: 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.lang-menu > ul > li > a:hover,
.lang-menu > ul > li > a:focus-visible {
  background: #eef4f5;
}
.lang-menu > ul > li > span {
  background: #eef4f5;
  font-weight: 700;
}
.lang-menu .code {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.6;
  letter-spacing: 0.06em;
}
.language-chooser {
  padding-top: 10vh;
  padding-bottom: 10vh;
}
.language-chooser h1 {
  margin-top: 50px;
}
.language-chooser .cards {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 700px) {
  .header-actions {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
  }
  .language-chooser .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
mark {
  background: #e3f6ac;
  color: #152633;
  border-radius: 2px;
}

.site-credit {
  grid-column: 1 / -1;
  font-size: 10px;
  text-align: center;
  margin: 0;
}
.site-credit a {
  display: inline;
  margin: 0;
  text-decoration: underline;
}

/* The language selector is usable without scripts and does not move the header on startup. */
details.lang-switch {
  display: block;
}
.lang-menu > summary {
  list-style: none;
}
.lang-menu > summary::-webkit-details-marker {
  display: none;
}

.directory [hidden] {
  display: none;
}
/* Marketplace: visible cart, keyboard-accessible assistant, compact mobile navigation. */
.stats strong {
  font-size: clamp(2.8rem, 6vw, 5rem);
}
.site-header nav {
  flex-wrap: wrap;
  gap: 0.7rem;
}
.site-header {
  padding-inline: 5%;
  column-gap: clamp(1rem, 2vw, 2rem);
}
.site-header > nav {
  flex-wrap: nowrap;
  align-items: center;
}
.site-header > nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
}
@media (max-width: 1399px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .site-header > .header-actions {
    margin-left: auto;
  }
  .site-header > nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    gap: 0 1.25rem;
  }
}
.active-filters {
  margin: 0 0 1.25rem;
}
.active-filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.active-filters li {
  max-width: 100%;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.filter-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.filter-chip:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.market-page {
  padding-top: 2rem;
  padding-bottom: 6rem;
}
.market-page .card {
  margin: 1rem 0;
}
.market-page label {
  display: block;
  margin: 1rem 0;
}
.market-page input[type='checkbox'] {
  width: auto;
  margin-right: 0.6rem;
}
.market-page textarea {
  width: 100%;
}
.rfq-summary {
  margin-top: 1rem;
}
.rfq-summary .specs {
  align-items: start;
  gap: 1.25rem;
}
.rfq-summary .specs dd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.rfq-summary .specs > div:nth-child(3) {
  grid-column: 1 / -1;
}
#rfq-review-services {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.market-country-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 1.25rem 0 0.75rem;
}
.market-country-filter label {
  display: grid;
  gap: 0.45rem;
  flex: 1 1 12rem;
  max-width: 24rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}
.market-country-filter input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.market-country-filter .secondary {
  min-height: 44px;
}
.rfq-publish {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
#rfq-review-error:not(:empty) {
  margin-top: 1rem;
}
.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
}
.market-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cart-drawer {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(480px, 100%);
  max-width: 100%;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  box-shadow: -8px 0 40px #102b3626;
}
.cart-drawer[open] {
  display: flex;
  flex-direction: column;
}
.cart-drawer::backdrop {
  background: #102b3659;
}
.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-bottom: 1px solid var(--line);
}
.cart-heading h2 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.cart-selection-count {
  color: var(--muted);
  font-size: 0.85rem;
}
.cart-drawer .drawer-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1.5rem;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}
.cart-item {
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cart-pn {
  color: var(--teal);
  font-weight: 750;
  overflow-wrap: anywhere;
}
.cart-description {
  margin: 0.6rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cart-suppliers {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  color: var(--teal);
  background: #edf4f0;
  font-size: 0.8rem;
}
.cart-item-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.cart-item-actions label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
}
.cart-item input {
  width: 6rem;
  min-height: 42px;
  padding: 0.5rem 0.65rem;
  border: 1px solid #bdcfd0;
  border-radius: 7px;
  color: var(--ink);
  background: white;
  font-size: 0.95rem;
}
.cart-remove {
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 7px;
  color: #8b3935;
  background: transparent;
  font-size: 0.8rem;
}
.cart-remove:hover {
  background: #fbefec;
}
.cart-footer {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem max(1.25rem, env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid var(--line);
}
.cart-footer .primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  border-radius: 8px;
}
.cart-footer #keep-searching {
  min-height: 44px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 0.85rem;
}
.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}
.purchase-result {
  white-space: pre-wrap;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.purchase-request {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.purchase-request > button {
  justify-self: start;
}
.market-jeanne {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
  width: min(390px, calc(100vw - 2rem));
  border: 1px solid #bdcfd7;
  border-radius: 16px;
  background: #fff;
  color: #102f42;
  box-shadow: 0 5px 30px #142c4426;
}
.market-jeanne summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
}
.jeanne-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: #e7eef1;
}
.jeanne-body {
  padding: 0 1rem 1rem;
  max-height: 65dvh;
  overflow: auto;
}
.jeanne-body textarea {
  width: 100%;
}
.jeanne-body .card {
  padding: 1rem;
  margin: 0.5rem 0;
}
.jeanne-body a {
  color: #205b71;
}
.market-jeanne[open] {
  z-index: 30;
}
@media (max-width: 760px) {
  .site-header nav {
    display: flex;
    flex-basis: 100%;
    overflow-x: auto;
    font-size: 0.8rem;
  }
  .market-jeanne {
    bottom: 0.5rem;
    right: 0.5rem;
    width: calc(100vw - 1rem);
  }
  .market-jeanne summary {
    padding: 0.7rem;
    font-size: 0.85rem;
  }
  .cart-drawer {
    height: 90dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .table-scroll {
    max-width: 100%;
    overflow: auto;
  }
}

.member-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 1rem;
}
.hero .stats > :first-child {
  text-align: left;
}
.hero .stats > :nth-child(2) {
  text-align: center;
}
.hero .stats > :last-child {
  text-align: right;
}
@media (max-width: 480px) {
  .hero .stats {
    gap: 0.5rem;
  }
  .hero .stats strong {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
  .hero .stats span {
    font-size: 0.7rem;
  }
}

/* Keep Jeanne's existing panel styling and official portrait. */
.market-jeanne summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.jeanne-avatar {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

#rfq-requirements {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#rfq-requirements legend {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
[hidden] {
  display: none !important;
}

.member-menu {
  position: relative;
}
.member-menu summary {
  cursor: pointer;
  list-style: none;
}
.member-menu summary::-webkit-details-marker {
  display: none;
}
.site-header .member-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 50;
  display: grid;
  gap: 0.25rem;
  width: max-content;
  min-width: 210px;
  max-width: calc(100vw - 2rem);
  padding: 0.6rem;
  border: 1px solid #bdcfd7;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #142c4426;
}
.site-header .member-options a,
.site-header .member-options button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
}
.site-header .member-options button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.site-header .member-options a:hover,
.site-header .member-options button:hover {
  background: #eff4f5;
}
.site-header .member-options button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.contact-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}
.contact-form-card,
.contact-jeanne {
  padding: clamp(1.25rem, 3vw, 2rem);
}
.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
}
.contact-email {
  color: var(--teal);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-jeanne {
  background: var(--paper);
  display: grid;
  justify-items: start;
  gap: 1rem;
}
.contact-jeanne h2,
.contact-jeanne p {
  margin: 0;
}
.contact-jeanne-avatar {
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
#profile-aircraft {
  width: 100%;
  margin: 0.5rem 0;
}
@media (max-width: 760px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.market-jeanne:not([open]) {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.market-jeanne:not([open]) summary {
  padding: 4px;
  gap: 0;
}
.market-jeanne:not([open]) summary span {
  display: none;
}
.market-jeanne summary::-webkit-details-marker {
  display: none;
}
.market-jeanne summary::marker {
  content: '';
}

.hero .stats > div,
.hero .stats > a.stat-link {
  width: max-content;
  max-width: 100%;
  text-align: center;
}
.hero .stats > :first-child {
  justify-self: start;
  text-align: center;
}
.hero .stats > :nth-child(2) {
  justify-self: center;
  text-align: center;
}
.hero .stats > :last-child {
  justify-self: end;
  text-align: center;
}

.jeanne-credit {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 9px;
  line-height: 1.2;
  color: var(--muted);
}
.jeanne-credit a {
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}
.jeanne-messages {
  max-height: 42dvh;
  overflow-y: auto;
}
.jeanne-message {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--paper);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.jeanne-message.user {
  margin-left: 1.5rem;
  background: #e2edef;
}
.jeanne-chat-form {
  display: grid;
  gap: 0.5rem;
}
.parts-assistant textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 6rem;
  margin: 0.6rem 0;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.parts-assistant label {
  font-size: 0.85rem;
  font-weight: 600;
}
.parts-assistant textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.parts-assistant {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.jeanne-chat-form textarea {
  min-height: 48px;
  max-height: 120px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #bdcfd0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.jeanne-part-results {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.jeanne-part-result {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.jeanne-part-result:hover {
  background: var(--paper);
}
.jeanne-part-result small {
  color: var(--muted);
}
/* Jeanne's warning when the catalogue does not link the parts to the aircraft
   the visitor named, and the sources of a documentary answer. */
.jeanne-note {
  margin: 0.4rem 0 0.6rem;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  background: var(--paper);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.jeanne-sources {
  display: grid;
  gap: 0.25rem;
  margin: 0.3rem 0 0.8rem;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

#parts-matches > section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
#parts-matches > section > h3 {
  grid-column: 1 / -1;
  margin: 0.5rem 0;
}
#parts-matches .card {
  margin: 0;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: start;
}
#parts-matches .card > a {
  font-weight: 700;
  color: var(--teal);
  overflow-wrap: anywhere;
}
#parts-matches .card .add {
  margin-top: auto;
  min-height: 40px;
}

.registered-supplier-name,
.more-suppliers {
  display: block;
  margin: 0.3rem 0;
}
.more-suppliers {
  font-size: 0.8rem;
}
.registered-supplier-contacts article {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.registered-supplier-contacts article:last-child {
  border-bottom: 0;
}
.registered-supplier-contacts a {
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .market-page h1 {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
  }
}

.manufacturer-supplier-name,
.supplier-role {
  display: block;
}
.manufacturer-supplier-name {
  max-inline-size: 34ch;
}
.table-scroll td .badge {
  white-space: nowrap;
}
.supplier-role {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}
.manufacturer-supplier-name:not(:first-child) {
  margin-top: 0.5rem;
}
