/* Delphi O.E.M. Co. — modern manufacturing theme */

:root{
  --bg:#edf1f4;
  --panel:#ffffff;
  --panel-soft:#f7f9fa;
  --ink:#1f252b;
  --muted:#64717c;
  --line:#cfd7dd;
  --header:#18232c;
  --header-deep:#101820;
  --steel:#2f4657;
  --accent:#b56a2b;
  --accent-dark:#8d4f1d;
  --accent-soft:#f4e8dc;
  --link:#245f83;
  --link-hover:#163f5a;
  --shadow:0 8px 24px rgba(15,28,38,.10);
  --radius:10px;
}

*{box-sizing:border-box}
html{min-height:100%;background:var(--bg)}
body{
  margin:0;
  min-height:100vh;
  background:linear-gradient(180deg,#dde5ea 0,var(--bg) 260px);
  color:var(--ink);
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
  font-size:17px;
  line-height:1.55;
}

a{color:var(--link);text-decoration:none}
a:hover,a:focus{color:var(--link-hover);text-decoration:underline}

body>table:first-of-type{
  width:100%;
  margin:0;
  padding:18px max(22px,calc((100vw - 1120px)/2));
  border-collapse:separate;
  border-spacing:0;
  background:linear-gradient(135deg,var(--header-deep),var(--header));
  color:#fff;
  box-shadow:0 3px 14px rgba(0,0,0,.18);
}
body>table:first-of-type td{padding:8px 14px;vertical-align:middle}
body>table:first-of-type td:first-child{width:auto!important}
body>table:first-of-type img{display:block;max-width:430px;width:100%;height:auto}
body>table:first-of-type center{
  text-align:right;color:#dce5eb;font-size:.96rem;line-height:1.55
}

body>center:first-of-type{
  width:min(1120px,calc(100% - 36px));
  margin:18px auto 0;
  padding:0;
}
body>center:first-of-type hr{
  border:0;border-top:1px solid var(--line);margin:0
}
body>center:first-of-type>a{
  display:inline-block;
  padding:13px 18px;
  margin:0 2px;
  color:var(--steel);
  font-size:.95rem;
  font-weight:700;
  letter-spacing:.025em;
  text-transform:uppercase;
}
body>center:first-of-type>a:hover,
body>center:first-of-type>a:focus{
  color:var(--accent-dark);text-decoration:none
}

body>center:nth-of-type(2){
  width:min(1120px,calc(100% - 36px));
  margin:22px auto 44px;
}
body>center:nth-of-type(2)>table{
  width:100%!important;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
body>center:nth-of-type(2)>table>tbody>tr>td{
  padding:28px;
  vertical-align:top;
}
body>center:nth-of-type(2)>table>tbody>tr:first-child>td:first-child{width:58%}
body>center:nth-of-type(2)>table>tbody>tr:first-child>td:last-child{
  width:42%;
  background:var(--panel-soft);
  border-left:1px solid var(--line);
}

h1,h2,h3{color:var(--header);line-height:1.22}
h1{margin:0 0 12px;font-size:clamp(1.9rem,4vw,3rem);letter-spacing:-.025em}
h2{margin:18px 0 10px;font-size:clamp(1.25rem,2.5vw,1.65rem);font-weight:650}
h3{margin:14px 0;font-size:1.05rem;font-weight:550}

body>center:nth-of-type(2) h1:first-of-type{
  display:inline-block;
  padding:7px 13px;
  margin-bottom:16px;
  border:1px solid #d9b792;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-dark);
  font-size:.9rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

img{max-width:100%;height:auto}
body>center:nth-of-type(2) td img{display:block;border-radius:8px}
body>center:nth-of-type(2)>table>tbody>tr:first-child>td:last-child>img{
  margin:0 auto 20px;
  border:1px solid #c9d2d9;
  box-shadow:0 5px 16px rgba(15,28,38,.12);
}
body>center:nth-of-type(2)>table>tbody>tr:last-child img{
  margin:0 auto;border:1px solid #c9d2d9
}
body>center:nth-of-type(2)>table>tbody>tr:first-child>td:last-child h3{
  color:var(--muted);font-size:.9rem;line-height:1.75;font-weight:600
}

input,textarea,select,button{font:inherit}
input[type="text"],input[type="email"],input[type="tel"],textarea,select{
  width:100%;
  max-width:560px;
  padding:10px 12px;
  border:1px solid #b9c5cd;
  border-radius:6px;
  background:#fff;
  color:var(--ink);
}
input:focus,textarea:focus,select:focus{
  outline:3px solid rgba(181,106,43,.18);
  border-color:var(--accent);
}
.btn,button,input[type="submit"],input[type="reset"]{
  display:inline-block;
  padding:9px 15px;
  border:1px solid var(--accent-dark);
  border-radius:6px;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.btn:hover,button:hover,input[type="submit"]:hover{background:var(--accent-dark)}

@media(max-width:760px){
  body{font-size:16px}
  body>table:first-of-type,
  body>table:first-of-type tbody,
  body>table:first-of-type tr,
  body>table:first-of-type td{
    display:block;width:100%!important
  }
  body>table:first-of-type{padding:16px 18px}
  body>table:first-of-type td{padding:5px 0}
  body>table:first-of-type img{max-width:360px;margin:0 auto}
  body>table:first-of-type center{margin-top:8px;text-align:center}
  body>center:first-of-type{width:calc(100% - 24px)}
  body>center:first-of-type>a{padding:11px 9px;font-size:.86rem}
  body>center:nth-of-type(2){width:calc(100% - 24px)}
  body>center:nth-of-type(2)>table,
  body>center:nth-of-type(2)>table>tbody,
  body>center:nth-of-type(2)>table>tbody>tr,
  body>center:nth-of-type(2)>table>tbody>tr>td{
    display:block;width:100%!important
  }
  body>center:nth-of-type(2)>table>tbody>tr>td{padding:21px}
  body>center:nth-of-type(2)>table>tbody>tr:first-child>td:last-child{
    border-left:0;border-top:1px solid var(--line)
  }
}
/* ---------- Legacy product/service tables ---------- */

body > center:nth-of-type(2) > table > tbody > tr > td {
  border: 0 !important;
  border-top: 1px solid var(--line) !important;
}

body > center:nth-of-type(2) > table > tbody > tr:first-child > td {
  border-top: 0 !important;
}

body > center:nth-of-type(2) > table > tbody > tr > td:first-child {
  width: 58%;
}

body > center:nth-of-type(2) > table > tbody > tr > td:last-child {
  width: 42%;
  background: var(--panel-soft);
  border-left: 1px solid var(--line) !important;
}

body > center:nth-of-type(2) > table > tbody > tr > td[colspan] {
  width: 100% !important;
  background: var(--panel);
  border-left: 0 !important;
}

body > center:nth-of-type(2) > table h1 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
}

body > center:nth-of-type(2) > table form {
  margin-top: 12px;
}

/* ---------- Simple content pages ---------- */

.simple-page {
  width: min(1120px, calc(100% - 36px));
  margin: 22px auto 44px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.simple-page > h2:first-of-type {
  margin-top: 0;
}

.simple-page > img {
  display: inline-block;
  width: min(48%, 520px);
  height: auto !important;
  margin: 10px 1% 0 0;
  vertical-align: top;
  border: 1px solid #c9d2d9;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(15, 28, 38, 0.10);
}

/* ---------- Product-detail pages ---------- */

/* The micro-amp pages retain their useful product-specific card/layout CSS.
   These rules make their surrounding site chrome match Delphi O.E.M. */
.page {
  color: var(--ink);
}

.callout {
  border-color: #d9b792 !important;
  background: var(--accent-soft) !important;
  color: var(--ink) !important;
}

.callout b {
  color: var(--accent-dark) !important;
}

@media (max-width: 760px) {
  body > center:nth-of-type(2) > table > tbody > tr > td:first-child,
  body > center:nth-of-type(2) > table > tbody > tr > td:last-child {
    width: 100% !important;
  }

  body > center:nth-of-type(2) > table > tbody > tr > td:last-child {
    border-left: 0 !important;
    border-top: 1px solid var(--line) !important;
  }

  .simple-page {
    width: calc(100% - 24px);
    padding: 21px;
  }

  .simple-page > img {
    display: block;
    width: 100%;
    margin: 12px 0 0;
  }
}
/* ---------- Capabilities page ---------- */

.capabilities-page {
  width: min(1040px, calc(100% - 72px));
}

.capabilities-intro {
  max-width: 78ch;
  font-size: 1.05rem;
}

.shop-photo-right {
  float: right;
  width: min(31%, 310px);
  margin: 0 0 18px 28px;
}

.shop-photo-right img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c9d2d9;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(15, 28, 38, 0.12);
}

.shop-photo-right figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.clear-float {
  clear: both;
}

@media (max-width: 760px) {
  .capabilities-page {
    width: calc(100% - 30px);
  }

  .shop-photo-right {
    float: none;
    width: min(100%, 420px);
    margin: 14px auto 20px;
  }
}
/* ---------- Shared navigation/footer ---------- */

body > center:first-of-type > a.active {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 6px;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: var(--header-deep);
  color: #dce5eb;
}

.site-footer-inner {
  width: min(1040px, calc(100% - 72px));
  margin: 0 auto;
  padding: 24px 0 26px;
  text-align: center;
  line-height: 1.65;
}

.site-footer-copy {
  margin-top: 5px;
  color: #9fb0bc;
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .site-footer-inner {
    width: calc(100% - 30px);
  }
}
/* ---------- Services page ---------- */

.services-photo-right {
  float: right;
  width: min(31%, 310px);
  margin: 2px 0 22px 30px;
}

.services-photo-right figure {
  margin: 0 0 18px;
}

.services-photo-right img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c9d2d9;
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(15, 28, 38, 0.12);
}

.services-photo-right figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .services-photo-right {
    float: none;
    width: min(100%, 420px);
    margin: 18px auto 24px;
  }
}
