/* Paul, Weiss brand overrides (fonts and colors from paulweiss.com).
   Loaded after style.css; replaces the legacy maroon (#660505) and Georgia styling. */

@font-face {
  font-family: 'ABCDiatype';
  src: url(../fonts/ABCDiatype-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url(../fonts/ABCDiatype-Medium.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'ABCDiatype';
  src: url(../fonts/ABCDiatype-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'UntitledSerif';
  src: url(../fonts/untitled-serif-regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'UntitledSerif';
  src: url(../fonts/untitled-serif-regular-italic.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'UntitledSerif';
  src: url(../fonts/untitled-serif-bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Brand palette
   navy       #03203D  primary text, headings, links, bullets
   blue       #0B3D71  link hover
   light blue #B9C8DA  rules and borders
   pale       #F1F4F8  page background */

body {
  font-family: 'UntitledSerif', Georgia, serif;
  color: #000;
  background: #F1F4F8;
}

#wrapper,
#wrapper #header {
  background: #fff;
}
#wrapper #header {
  border-bottom: 4px solid #B9C8DA;
}

a,
.gridcol-1 p a {
  color: #03203D;
  text-decoration: underline;
}
a:hover {
  color: #0B3D71;
}

/* Headings: sans, navy, sentence case */
h1, h2, h3, h4, h5 {
  font-family: 'ABCDiatype', Arial, sans-serif;
  color: #03203D;
  text-transform: none;
  letter-spacing: -0.02em;
}

.PaulWeissFrm h1,
.dot-middle-content .gridcol-5 .row-4 h1 {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 700;
  padding: 0 0 10px;
}
.PaulWeissFrm h2 {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
  margin: 34px 0 8px;
}
.PaulWeissFrm h3 {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 500;
  margin: 26px 0 6px;
}

/* Body copy */
p,
ul,
.PaulWeissFrm p,
.PaulWeissFrm li {
  font-family: 'UntitledSerif', Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}
.PaulWeissFrm p {
  margin: 0 0 10px;
}
.gridcol-1 strong {
  color: inherit;
}

/* Square navy bullets, as on paulweiss.com */
.PaulWeissFrm ul {
  padding: 0 0 10px;
}
.PaulWeissFrm ul li {
  list-style: none;
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.PaulWeissFrm ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background-color: #03203D;
}

.PaulWeissFrm img.outline {
  border: 1px solid #8a8a8a;
  max-width: 100%;
  height: auto;
  padding: 0;
  margin: 10px 0 15px;
}
.PaulWeissFrm p.warning {
  color: #a4262c;
}
.PaulWeissFrm p.warning strong {
  color: #a4262c;
}
.PaulWeissFrm .callout-dotted {
  border: 3px dotted #B9C8DA;
  padding: 5px 25px 10px;
  margin: 30px 0;
}
.PaulWeissFrm .callout-dotted h3 {
  margin-top: 14px;
}

#footer {
  background: #fff;
  border-top: 4px solid #B9C8DA;
  color: #03203D;
  font-family: 'ABCDiatype', Arial, sans-serif;
}
#footer p,
#footer a {
  font-family: 'ABCDiatype', Arial, sans-serif;
  color: #03203D;
  text-decoration: none;
}
#footer a:hover {
  color: #0B3D71;
  text-decoration: underline;
}

#footer {
  overflow: hidden;
}

/* ---------- Layout: fluid instead of fixed 995px ---------- */

#wrapper {
  width: auto;
  max-width: 995px;
}
#wrapper #header,
#wrapper #middle {
  width: auto;
}
#footer {
  width: auto;
}
.dot-middle-content .gridcol-5 .row-4 {
  box-sizing: border-box;
}
.PaulWeissFrm img {
  max-width: 100%;
  height: auto;
}

/* Header: logo left, title and help line right */
#wrapper #header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  height: auto;
  padding: 44px 32px 19px 49px;
}
#wrapper #header #header-logo {
  float: none;
  margin: 0;
  flex-shrink: 0;
}
#header-logo img {
  display: block;
}
.header-text {
  text-align: right;
  color: #03203D;
  font-family: 'ABCDiatype', Arial, sans-serif;
}
.header-title {
  font-size: 32px;
  line-height: 1.1;
}
.header-help {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 14px;
}

@media (max-width: 1035px) {
  #wrapper {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  #wrapper #header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 16px 16px;
  }
  #header-logo img {
    width: 82px;
    height: auto;
  }
  .header-text {
    text-align: left;
  }
  .header-title {
    font-size: 24px;
  }
  .header-help {
    margin-top: 6px;
  }

  .dot-middle-content .gridcol-5 {
    padding: 24px 16px 0;
  }
  .dot-middle-content .gridcol-5 .row-4 {
    padding: 0 0 48px;
  }

  .PaulWeissFrm h1,
  .dot-middle-content .gridcol-5 .row-4 h1 {
    font-size: 27px;
  }
  .PaulWeissFrm h2 {
    font-size: 22px;
    margin-top: 28px;
  }
  .PaulWeissFrm h3 {
    font-size: 18px;
  }
  .PaulWeissFrm .callout-dotted {
    padding: 4px 16px 8px;
  }

  #footer {
    padding: 8px 16px;
  }
  #footer p {
    float: none;
    padding: 0;
  }
}
