/*
 * Legacy v1 element-level base styles (migrated from LESS common.less).
 * Only loaded by _Layout.cshtml and _AdminLayout.cshtml — pages like
 * ProformaInvoice that use Layout=null are unaffected.
 */

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 28px;
  background-color: #00385E;
}

img {
  width: 100%;
  height: auto;
}

a {
  color: #00385E;
}

a:hover {
  color: #02E8E5;
}

table {
  width: 100%;
}

th {
  text-align: left;
  background-color: #00385E;
  color: white;
}

th,
td {
  margin: 0;
  padding: 6px 8px;
}

td.right {
  text-align: right;
}

td.red {
  color: #ca4141;
}

figcaption {
  margin: 0;
  font-style: italic;
  color: rgba(0, 56, 94, 0.6);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

figcaption cite {
  font-size: 10px;
  line-height: 10px;
  font-weight: bold;
  display: block;
  padding-bottom: 1.5em;
}

details summary {
  cursor: pointer;
}

summary h5 {
  user-select: none;
}

/* Headings */
h1 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-style: italic;
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-cond);
  padding-top: 1rem;
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
}

h2.sub {
  font-family: var(--font-cond);
  font-size: 1.8rem;
  font-style: normal;
  margin-top: 6px;
}

h3 {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 24px;
}

h3.upperlight {
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 16px;
}

h4 {
  font-family: var(--font-cond);
}

h5 {
  font-family: var(--font-cond);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

dd, dt {
  font-size: 14px;
  font-style: italic;
}

dt {
  width: 20%;
  min-width: 60px;
  font-weight: bold;
}

dl > div {
  display: flex;
}

dt::after {
  content: ": ";
}

article h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

article li {
  margin-top: 8px;
  margin-bottom: 8px;
}

article h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.section__header {
  color: #00385E;
  margin-bottom: 20px;
}

p {
  margin-top: 0.3em;
  margin-bottom: 1.5em;
}

p:first-child {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

form {
  display: block;
}

/* Responsive base styles */
@media screen and (max-width: 450px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 9vw;
  }

  h2 {
    font-size: 26px;
  }

  h2.sub {
    font-size: 16px;
  }

  .section__header > span {
    font-size: 12px;
  }
}
