:root {
  --pw-navy: #1e3a5f;
  --pw-navy-dark: #142a45;
  --pw-newsprint: #f7f5f0;
  --pw-ink: #1c1b19;
  --pw-body: #4a463c;
  --pw-muted: #6b6659;
  --pw-edge: #d5d0c4;
  --pw-warm: #e9e3d6;
  --pw-white: #fff;
}

.pw-masthead {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 40px 15px;
  border-bottom: 1px solid var(--pw-edge);
  background: var(--pw-newsprint);
}

.pw-brand {
  display: inline-block;
  width: max-content;
  color: var(--pw-ink);
  text-decoration: none;
}

.pw-brand img {
  display: block;
  width: auto;
  height: 45px;
  max-width: min(56vw, 330px);
  object-fit: contain;
  object-position: left center;
}

.pw-tagline {
  margin-top: 4px;
  color: var(--pw-muted);
  font: 400 12px/1.4 "IBM Plex Sans", Arial, sans-serif;
}


.pw-edition {
  color: var(--pw-ink);
  font: 600 13px/1.4 "IBM Plex Sans", Arial, sans-serif;
  text-align: right;
}

.pw-edition span {
  display: block;
  color: var(--pw-muted);
  font-size: 11px;
  font-weight: 400;
}

.pw-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-height: 48px;
  padding: 0 32px;
  overflow-x: auto;
  border-bottom: 1px solid var(--pw-edge);
  background: var(--pw-newsprint);
  scrollbar-color: var(--pw-navy) var(--pw-warm);
}

.pw-nav a {
  display: inline-flex;
  min-height: 48px;
  padding: 0 12px;
  flex: none;
  align-items: center;
  border-bottom: 3px solid transparent;
  color: var(--pw-body);
  font: 600 13px/1.2 "IBM Plex Sans", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.pw-nav a:hover,
.pw-nav a[aria-current="page"] {
  border-bottom-color: var(--pw-navy);
  color: var(--pw-ink);
}

.pw-nav .pw-publish {
  margin-left: auto;
  color: var(--pw-navy);
}

.pw-nav .pw-cta-verify {
  align-self: center;
  margin-left: 10px;
  height: 32px;
  min-height: 0;
  padding: 0 14px;
  border-radius: 4px;
  border-bottom: none;
  background: var(--pw-navy);
  color: #fff;
}

.pw-nav .pw-cta-verify:hover {
  background: var(--pw-navy-dark);
  color: #fff;
  border-bottom-color: transparent;
}

.pw-footer {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 40px 24px;
  background: var(--pw-ink);
  color: var(--pw-newsprint);
  font-family: "IBM Plex Sans", Arial, sans-serif;
}

.pw-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(120px, auto));
  gap: 28px;
  align-items: start;
}

.pw-footer-brand strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 17px;
}

.pw-footer-brand p {
  max-width: 40ch;
  margin: 3px 0 0;
  color: #d6d1c5;
  font-size: 12px;
  line-height: 1.5;
}

.pw-footer-brand p a {
  color: inherit;
  text-underline-offset: 3px;
}

.pw-footer-col h3 {
  margin: 0 0 14px;
  color: var(--pw-white);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 15px;
}

.pw-footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pw-footer-col nav a {
  color: #c9c4b6;
  font-size: 13px;
  text-underline-offset: 4px;
}

.pw-footer-col nav a:hover,
.pw-footer-col nav a:focus-visible {
  color: var(--pw-white);
}

.pw-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pw-footer-copyright {
  margin: 0;
  color: #8d8878;
  font-size: 12px;
}

.pw-footer-legal {
  display: flex;
  gap: 20px;
}

.pw-footer-legal a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  color: #a9a396;
  font-size: 12px;
  text-underline-offset: 3px;
}

.pw-footer-legal a:hover,
.pw-footer-legal a:focus-visible {
  color: var(--pw-white);
}

.pw-footer-preferred-source {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pw-footer-preferred-source span {
  color: #a9a396;
  font-size: 12px;
}

@media (max-width: 900px) {
  .pw-footer-top { grid-template-columns: minmax(0, 1fr) repeat(3, auto); gap: 22px; }
}

@media (max-width: 820px) {
  .pw-masthead { padding: 16px 22px; }
  .pw-nav { padding: 0 10px 0 14px; }
  .pw-nav .pw-publish { margin-left: 0; }
  .pw-nav .pw-cta-verify { margin-left: 8px; }
  .pw-footer { padding: 28px 22px 22px; }
  .pw-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .pw-footer-brand { grid-column: 1 / -1; }
  .pw-footer-bottom { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .pw-masthead { grid-template-columns: 1fr; gap: 10px; }
  .pw-brand img { height: 40px; }
  .pw-edition { text-align: left; }
}
