/* Styles for what site/js/amp-site.js adds: cookie banner, quote and question windows,
   quote-list button, form messages, and the call-to-action blocks tools/patch_site.py inserts.
   Colours follow the theme: navy #081935, blue #2e9ef2, steel #2c5577. */

/* ---- windows ---- */
html.amp-dlg-open { overflow: hidden; }
.amp-dlg { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 12, 30, .65); }
.amp-dlg-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 12px; padding: 28px; font: 15px/1.5 Lato, Arial, sans-serif; color: #081935; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: left; }
.amp-dlg-box.amp-dlg-wide { max-width: 680px; }
.amp-dlg-box h2 { margin: 0 36px 10px 0; font-size: 22px; line-height: 1.25; color: #081935; letter-spacing: 0; text-transform: none; }
.amp-dlg-box h3 { margin: 0 0 10px; font-size: 17px; color: #081935; letter-spacing: 0; text-transform: none; }
.amp-dlg-box hr { border: 0; border-top: 1px solid #e3e7ee; margin: 16px 0; }
.amp-dlg-box p { margin: 0 0 12px; }
.amp-dlg-box a { color: #0d4f7f; text-decoration: underline; }
.amp-dlg-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #555; text-shadow: none; box-shadow: none; padding: 0; }

/* ---- fields ---- */
.amp-f { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #33405a; }
.amp-f > span { display: block; }
.amp-dlg-box input, .amp-dlg-box select, .amp-dlg-box textarea, .amp-form input, .amp-form select, .amp-form textarea { display: block; width: 100%; height: auto; box-sizing: border-box; margin: 4px 0 0; padding: 9px 11px; border: 1px solid #c9d1de; border-radius: 6px; font: 15px Lato, Arial, sans-serif; color: #081935; background: #fff; box-shadow: none; }
.amp-dlg-box textarea, .amp-form textarea { min-height: 84px; resize: vertical; }
.amp-dlg-box input[type=checkbox], .amp-form input[type=checkbox] { display: inline-block; width: 18px; height: 18px; margin: 0 8px 0 0; padding: 0; vertical-align: -3px; }
.amp-checkline { display: block; margin: 4px 0 12px; font-size: 14px; font-weight: 700; color: #33405a; }
.amp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 14px; }
.amp-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.amp-note { font-size: 13px; color: #55636e; }
.amp-ts:empty { display: none; }
.amp-ts { margin: 0 0 10px; }

/* ---- quote lines ---- */
.amp-lines { display: grid; gap: 8px; }
.amp-line { display: grid; grid-template-columns: minmax(0, 1fr) 76px 168px 34px; gap: 8px; align-items: center; }
.amp-line input, .amp-line select { margin: 0; }
.amp-line-x { width: 34px; height: 34px; border: 1px solid #c9d1de; border-radius: 6px; background: #fff; color: #55636e; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; text-shadow: none; box-shadow: none; }
.amp-line-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; }
.amp-pastebox { margin-top: 10px; }
.amp-pastebox textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; margin-bottom: 8px; }

/* ---- buttons ---- */
.amp-btn-solid, .amp-btn-quiet, .amp-btn-dark { display: inline-block; padding: 11px 22px; border-radius: 999px; font: 700 15px/1.2 Lato, Arial, sans-serif; cursor: pointer; text-decoration: none !important; text-shadow: none; box-shadow: none; letter-spacing: 0; text-transform: none; }
.amp-btn-solid { border: 1px solid #1c86d6; background: #1c86d6; color: #fff !important; }
.amp-btn-solid:hover, .amp-btn-solid:focus-visible { background: #0d4f7f; border-color: #0d4f7f; color: #fff; }
.amp-btn-solid[disabled] { opacity: .6; cursor: default; }
.amp-btn-quiet { border: 1px solid #c9d1de; background: #fff; color: #0d4f7f !important; padding: 8px 16px; font-size: 14px; }
.amp-btn-quiet:hover, .amp-btn-quiet:focus-visible { border-color: #0d4f7f; background: #f2f6f9; color: #0d4f7f; }
.amp-btn-dark { border: 1px solid #081935; background: #081935; color: #fff !important; }
.amp-dlg-box :focus-visible, .amp-form :focus-visible, .amp-page :focus-visible, .amp-consent :focus-visible, .amp-pill:focus-visible, .amp-cta :focus-visible { outline: 3px solid #f5b83d; outline-offset: 2px; }

/* ---- messages ---- */
.amp-msg { margin: 10px 0; font-size: 14px; min-height: 1px; }
.amp-msg:empty { display: none; }
.amp-bad { color: #b3261e; }
.amp-ok { color: #1b6e2a; font-weight: 700; font-size: 16px; }
.amp-done { padding: 6px 0; font: 15px/1.5 Lato, Arial, sans-serif; color: #081935; }
.amp-form-status { margin: 0 0 16px; padding: 14px 16px; border: 1px solid #b3261e; border-radius: 4px; color: #b3261e; font-size: 15px; }

/* ---- quote-list button ---- */
.amp-pill { position: fixed; right: 18px; bottom: 18px; z-index: 9000; padding: 12px 20px; border: 0; border-radius: 999px; background: #081935; color: #fff; font: 700 15px/1 Lato, Arial, sans-serif; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); text-shadow: none; }
.amp-pill[hidden] { display: none; }
.amp-pill:hover { background: #0d4f7f; color: #fff; }

/* ---- cookie banner ---- */
.amp-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99000; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 20px; background: #fff; color: #081935; border: 1px solid #c9d1de; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); font: 14px/1.5 Lato, Arial, sans-serif; }
.amp-consent p { margin: 0; }
.amp-consent a { color: #0d4f7f; text-decoration: underline; }
.amp-consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.amp-consent .amp-btn-solid { padding: 8px 18px; font-size: 14px; }

/* ---- call-to-action block (service pages, news posts) ---- */
.amp-cta { margin: 0; padding: 44px 7%; background: #0c1a32; color: #dbe5ee; text-align: center; font-family: Lato, Arial, sans-serif; }
.amp-cta-title { margin: 0 0 8px; font: 800 28px/1.25 Dortmund, Lato, sans-serif; color: #fff; letter-spacing: .5px; }
.amp-cta-text { margin: 0 auto 22px; max-width: 640px; font-size: 16px; line-height: 1.55; color: #c5d7e6; }
.amp-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.amp-cta .amp-btn-quiet { background: transparent; color: #fff !important; border-color: #6f89a3; padding: 11px 22px; font-size: 15px; }
.amp-cta .amp-btn-quiet:hover, .amp-cta .amp-btn-quiet:focus-visible { background: #16294a; border-color: #fff; }

/* ---- skip link ---- */
.amp-skip { position: absolute; left: -9999px; top: 0; z-index: 100001; padding: 10px 16px; background: #fff; color: #081935; font: 700 15px Lato, Arial, sans-serif; }
.amp-skip:focus { left: 8px; top: 8px; }

@media (max-width: 560px) {
  .amp-dlg-box { padding: 22px 18px; }
  .amp-grid { grid-template-columns: 1fr; }
  .amp-line { grid-template-columns: minmax(0, 1fr) 64px 34px; }
  .amp-line select { grid-column: 1 / -1; grid-row: 2; }
  .amp-consent { flex-direction: column; align-items: stretch; }
  .amp-consent-actions { justify-content: flex-end; }
  .amp-cta { padding: 34px 22px; }
  .amp-cta-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .amp-dlg, .amp-consent { scroll-behavior: auto; } }

/* ---- parts catalog additions (the page keeps its own #post-2541 styles) ---- */
.amp-catalog .amp-list-panel { margin-top: 36px; padding: 28px; background: #f2f6f9; border: 1px solid #dce3e9; scroll-margin-top: 130px; }
.amp-catalog .amp-list-label { display: block; font-size: 13px; font-weight: 700; color: #33405a; margin: 14px 0 6px; }
.amp-catalog #amp-list-input { display: block; width: 100%; box-sizing: border-box; min-height: 140px; height: auto; padding: 12px 14px; border: 1px solid #c9d1de; border-radius: 4px; background: #fff; font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace; color: #203b53; box-shadow: none; resize: vertical; margin: 0; }
.amp-catalog .amp-list-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.amp-catalog .amp-list-file { font-size: 13px; color: #55636e; }
.amp-catalog .amp-list-file input { display: inline-block; width: auto; max-width: 220px; font-size: 13px; margin: 0 0 0 6px; padding: 0; border: 0; height: auto; box-shadow: none; }
.amp-catalog #amp-list-result { margin-top: 20px; }
.amp-catalog #amp-list-result:empty { display: none; }
.amp-catalog .amp-list-summary { font-weight: 700; color: #203b53; font-size: 15px; margin: 0 0 12px; }
.amp-catalog #amp-list-result .amp-part-table { background: #fff; }
.amp-catalog .amp-hit { color: #1b6e2a; font-weight: 700; }
.amp-catalog .amp-miss { color: #8a5a00; font-weight: 700; }
.amp-catalog .amp-linkbtn { border: 0; background: none; padding: 0; margin: 0; font: 700 13px/1.5 Lato, Arial, sans-serif; color: #0d4f7f; cursor: pointer; text-shadow: none; box-shadow: none; text-decoration: none; letter-spacing: 0; text-transform: none; }
.amp-catalog .amp-linkbtn:hover, .amp-catalog .amp-linkbtn:focus-visible { color: #081935; text-decoration: underline; }
.amp-catalog .amp-linkbtn[aria-pressed=true] { color: #1b6e2a; }
.amp-catalog .amp-card-gate { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid #e8eef3; font-size: 12px !important; line-height: 1.5; color: #65727c; }
.amp-catalog .amp-card-gate a { font-weight: 700; }
.amp-catalog .amp-part-table a[data-amp-rfq] { text-decoration: none; }
.amp-catalog .amp-part-table a[data-amp-rfq]:hover code, .amp-catalog .amp-part-table a[data-amp-rfq]:focus-visible code { text-decoration: underline; }
@media (max-width: 540px) { .amp-catalog .amp-list-panel { padding: 20px; } }

/* ---- pages built by tools/build_pages.py (sell or consign, quality, engine pages) ---- */
.amp-page { font-family: Lato, Arial, sans-serif; }
.amp-page-hero { background: #081935; padding: 150px 20px 56px; text-align: center; }
.amp-page-hero h1 { color: #fff; font-size: 42px; line-height: 1.15; margin: 0 auto 14px; max-width: 900px; font-weight: 700; letter-spacing: .5px; }
.amp-page-hero p { color: #c5d7e6; font-size: 18px; line-height: 1.55; margin: 0 auto; max-width: 720px; }
.amp-page-hero .amp-cta-actions { margin-top: 24px; }
.amp-page-hero .amp-btn-quiet { background: transparent; color: #fff !important; border-color: #6f89a3; padding: 11px 22px; font-size: 15px; }
.amp-page-body { background: #fff; padding: 56px 20px 72px; }
.amp-page-body.amp-tint { background: #f2f6f9; }
.amp-page-inner { max-width: 980px; margin: 0 auto; color: #333; font-size: 16px; line-height: 1.7; }
.amp-page-inner h2 { color: #081935; font-size: 28px; line-height: 1.25; margin: 0 0 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.amp-page-inner h3 { color: #0d4f7f; font-size: 19px; line-height: 1.3; margin: 0 0 8px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.amp-page-inner p { margin: 0 0 16px; }
.amp-page-inner ul { margin: 0 0 16px; padding-left: 22px; }
.amp-page-inner li { margin-bottom: 6px; }
.amp-page-inner a { color: #0d4f7f; text-decoration: underline; }
.amp-page-inner a.amp-btn-solid, .amp-page-inner a.amp-btn-dark, .amp-page-inner a.amp-btn-quiet { text-decoration: none; }
.amp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 8px; padding: 0; list-style: none; }
.amp-cards.amp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.amp-cards > li, .amp-card { margin: 0; padding: 22px; background: #fff; border: 1px solid #d8e1e8; border-top: 3px solid #2c5577; }
.amp-step { display: block; font: 800 13px/1 Lato, Arial, sans-serif; letter-spacing: 1.5px; color: #71818f; margin-bottom: 10px; text-transform: uppercase; }
.amp-form { margin-top: 20px; padding: 28px; background: #fff; border: 1px solid #d8e1e8; }
.amp-form fieldset { border: 0; margin: 0 0 8px; padding: 0; }
.amp-form legend { font: 700 17px/1.3 Lato, Arial, sans-serif; color: #081935; margin: 0 0 12px; padding: 0; border: 0; width: auto; }
.amp-form .amp-grid { margin-top: 0; }
.amp-form input[type=file] { padding: 8px; font-size: 14px; }
.amp-form .amp-help { display: block; font-weight: 400; font-size: 12px; color: #65727c; margin-top: 4px; }
.amp-faq details { border-bottom: 1px solid #dce3e9; padding: 14px 0; }
.amp-faq summary { font-weight: 700; color: #081935; cursor: pointer; font-size: 17px; }
.amp-faq details p { margin: 10px 0 0; }
.amp-badges { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 0; padding: 0; list-style: none; }
.amp-badges li { margin: 0; padding: 12px 16px; border: 1px solid #d8e1e8; background: #fff; font-size: 14px; line-height: 1.4; color: #203b53; }
.amp-badges strong { display: block; color: #081935; font-size: 15px; }
@media (max-width: 800px) { .amp-cards, .amp-cards.amp-two { grid-template-columns: 1fr; } .amp-page-hero { padding: 120px 16px 44px; } .amp-page-hero h1 { font-size: 30px; } .amp-page-body { padding: 40px 16px 50px; } .amp-form { padding: 20px 16px; } }
.amp-page-inner ul.amp-cards, .amp-page-inner ul.amp-badges { padding-left: 0; margin-left: 0; }

/* ---- keyboard focus: the theme removes outlines everywhere; show one for keyboard users only ---- */
a:focus-visible, button:focus-visible, [role=button]:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 3px solid #f5b83d !important; outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #1c86d6 !important; outline-offset: 1px; }

/* ---- per-part pages (/parts/<slug>/) ---- */
.amp-eyebrow { margin: 0 auto 12px !important; font-size: 12px !important; letter-spacing: 1.5px; text-transform: uppercase; }
.amp-eyebrow a { color: #c5d7e6; text-decoration: none; }
.amp-part-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.amp-part-facts { margin: 0 0 18px; display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 1px solid #dce3e9; }
.amp-part-facts dt, .amp-part-facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid #dce3e9; }
.amp-part-facts dt { font-weight: 700; color: #55636e; font-size: 14px; }
.amp-part-facts dd { color: #203b53; overflow-wrap: anywhere; }
.amp-part-facts code, .amp-related code { font: 700 15px/1.5 Lato, Arial, sans-serif; color: #203b53; background: none; border: 0; padding: 0; }
.amp-part-grid .amp-card h2 { font-size: 22px; }
.amp-part-grid .amp-card hr { border: 0; border-top: 1px solid #e3e7ee; margin: 16px 0; }
.amp-related { list-style: none; margin: 0 0 16px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.amp-related li { display: flex; gap: 12px; justify-content: space-between; margin: 0; padding: 10px 0; border-bottom: 1px solid #e3e7ee; font-size: 14px; }
.amp-related span { color: #55636e; text-align: right; overflow-wrap: anywhere; }
.amp-page-inner .amp-part-grid + h2 { margin-top: 40px; }
@media (max-width: 800px) { .amp-part-grid, .amp-related { grid-template-columns: 1fr; } .amp-part-facts { grid-template-columns: 120px minmax(0, 1fr); } }

/* ---- engine pages ---- */
.amp-table-scroll { overflow-x: auto; border: 1px solid #d8e1e8; background: #fff; }
.amp-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.amp-table th { background: #2c5577; color: #fff; text-align: left; padding: 12px 14px; font-weight: 700; border: 0; }
.amp-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid #e1e7ec; vertical-align: top; overflow-wrap: anywhere; }
.amp-table tr:nth-child(even) td { background: #f5f8fa; }
.amp-table code { font: 700 14px/1.5 Lato, Arial, sans-serif; color: #203b53; background: none; border: 0; padding: 0; }
.amp-table a { text-decoration: none !important; }
.amp-table a:hover code { text-decoration: underline; }
.amp-newslist { grid-template-columns: 1fr !important; }
.amp-newslist span { white-space: nowrap; }
.amp-cards h3 a { color: #0d4f7f; text-decoration: none; }
.amp-cards h3 a:hover { text-decoration: underline; }
.amp-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; margin-bottom: 8px; }
@media (max-width: 800px) { .amp-topic-grid { grid-template-columns: 1fr 1fr; } }

/* ---- AOG button (every page, bottom left) ---- */
.amp-aog { position: fixed; left: 18px; bottom: 18px; z-index: 8900; font-family: Lato, Arial, sans-serif; }
.amp-aog-btn { padding: 11px 18px 11px 34px; border: 0; border-radius: 999px; background: #081935; color: #fff; font: 700 14px/1 Lato, Arial, sans-serif; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); text-shadow: none; position: relative; letter-spacing: .3px; }
.amp-aog-btn::before { content: ""; position: absolute; left: 15px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: #f5b83d; }
.amp-aog-btn:hover { background: #0d4f7f; color: #fff; }
.amp-aog-panel { width: 270px; margin-bottom: 10px; padding: 16px; background: #fff; color: #081935; border: 1px solid #c9d1de; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.5; }
.amp-aog-panel[hidden] { display: none; }
.amp-aog-panel p { margin: 0 0 12px; }
.amp-aog-panel a { display: block; text-align: center; margin-top: 8px; padding: 10px 12px; font-size: 14px; }
.amp-footer-certs { margin-top: 8px !important; font-size: 13px; }
@media (max-width: 560px) { .amp-aog { left: 12px; bottom: 12px; } .amp-pill { right: 12px; bottom: 12px; } }
@media print { .amp-aog, .amp-pill, .amp-consent { display: none !important; } }

/* ---- click-to-play video (YouTube loads only after the click) ---- */
.amp-yt { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #081935 url(/wp-content/uploads/2024/06/amp-hero-poster.jpg) center / cover no-repeat; overflow: hidden; }
.amp-yt::before { content: ""; position: absolute; inset: 0; background: rgba(8, 25, 53, .45); }
.amp-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.amp-yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 14px 26px 14px 20px; border: 0; border-radius: 999px; background: #fff; color: #081935; font: 700 16px/1 Lato, Arial, sans-serif; cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); text-shadow: none; }
.amp-yt-play span { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #1c86d6; }
.amp-yt-play:hover { background: #f2f6f9; color: #081935; }
