/* Vendored from aircraft-parts-condition-codes.php embedded style. */
body { background: #f5f5f5; }
/* Legacy body font for elements without an explicit family (e.g. .cg-cta p) —
   the legacy corporate theme sets body to "Open Sans"; replicate it here scoped
   to this page so it doesn't inherit the app's global body font. */
.condition-codes-page {
  font-family: "Open Sans", Arial, sans-serif;
}
.cg-hero {
  background: linear-gradient(135deg, #2843A7 0%, #1b3a57 58%, #0E1A2B 100%);
  padding: 150px 0 56px;
  text-align: center;
  color: #fff;
}
@media (max-width: 768px) { .cg-hero { padding: 120px 0 40px; } }
.cg-hero h1 { font-family: "EB Garamond", serif; font-size: 44px; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; }
@media (max-width: 768px) { .cg-hero h1 { font-size: 30px; } }
.cg-hero p { font-family: "EB Garamond", serif; font-size: 20px; opacity: 0.92; max-width: 760px; margin: 0 auto; }
.breadcrumb-bar { background: #eaf0f6; padding: 12px 0; }
.breadcrumb-bar nav { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.breadcrumb-bar a { color: #2c5f8a; text-decoration: none; font-size: 14px; }
.breadcrumb-bar span { color: #888; font-size: 14px; }
.cg-section { max-width: 960px; margin: 0 auto; padding: 40px 20px 20px; }
.cg-section .intro { font-family: "Roboto", "Open Sans", sans-serif; font-size: 16px; line-height: 1.8; color: #444; }
.cg-section h2 {
  font-family: "EB Garamond", serif; font-size: 28px; font-weight: 600; color: #1b3a57;
  margin: 36px 0 18px; padding-bottom: 10px; border-bottom: 2px solid #e0e0e0;
  text-transform: uppercase;
}
.cg-table-wrap { overflow-x: auto; }
.cg-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.cg-table th, .cg-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid #eee; font-family: "Roboto", "Open Sans", sans-serif; font-size: 15px; vertical-align: top; }
.cg-table thead th { background: #2843A7; color: #fff; font-weight: 600; }
.cg-table tbody tr:last-child td { border-bottom: none; }
.cg-code { display: inline-block; font-family: "Roboto Mono", monospace; font-weight: 700; color: #2843A7; }
.cg-term { font-weight: 600; color: #1b3a57; }
.accordion-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { font-family: "EB Garamond", serif; font-size: 18px; font-weight: 600; color: #1b3a57; padding: 18px 26px; background: #fff; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: #f0f6fb; color: #1b3a57; }
.accordion-button:focus { box-shadow: none; border-color: #e0e0e0; }
.accordion-body { font-family: "Roboto", "Open Sans", sans-serif; font-size: 15px; line-height: 1.9; color: #555; padding: 14px 28px 28px; }
.cg-cta { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 32px; text-align: center; margin: 28px 0 60px; }
.cg-cta h3 { font-family: "EB Garamond", serif; font-size: 24px; color: #1b3a57; margin-bottom: 10px; text-transform: uppercase; }
.cg-cta p { font-size: 15px; color: #666; margin-bottom: 20px; }
.cg-cta a { display: inline-block; padding: 12px 32px; background: #2843A7; color: #fff; border-radius: 6px; text-decoration: none; font-family: "EB Garamond", serif; font-size: 16px; font-weight: 600; transition: background 0.3s ease; }
.cg-cta a:hover { background: #1b3a57; color: #fff; }

/* React rebuild: the FAQ uses native <details>/<summary> instead of the legacy
   Bootstrap collapse, so map the accordion styles onto them. */
details.accordion-item > summary.accordion-button {
  list-style: none;
  cursor: pointer;
  display: block;
}
details.accordion-item > summary.accordion-button::-webkit-details-marker {
  display: none;
}
details.accordion-item > summary.accordion-button::after {
  content: "⌄";
  float: right;
  transition: transform 0.2s ease;
}
details.accordion-item[open] > summary.accordion-button {
  background: #f0f6fb;
}
details.accordion-item[open] > summary.accordion-button::after {
  transform: rotate(180deg);
}

/* Smooth expand/collapse for the native <details> accordion (modern CSS:
   animates the details content height both ways via interpolate-size +
   ::details-content; degrades to an instant toggle on older browsers). */
.condition-codes-page {
  interpolate-size: allow-keywords;
}
details.accordion-item::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size 0.32s ease,
    content-visibility 0.32s ease allow-discrete;
}
details.accordion-item[open]::details-content {
  block-size: auto;
}
