.pws-front,
.pws-reading #main-content,
.archive #main-content,
.search #main-content {
  --pws-ink: #142a40;
  --pws-muted: #40566c;
  --pws-blue: #164d76;
  --pws-line: #d4e1e8;
  --pws-paper: #fff;
  --pws-wash: #edf3f6;
}

.pws-home #main-content.pws-front {
  padding: clamp(1rem, 3vw, 2.6rem) 0 clamp(2.5rem, 6vw, 5rem);
  background: var(--pws-wash);
  color: var(--pws-ink);
}

.pws-front .pws-wrap {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.pws-front a:focus-visible,
.pws-reading .entry-content a:focus-visible,
.pws-reading .entry-content [tabindex]:focus-visible {
  outline: 3px solid #1769a0;
  outline-offset: 3px;
}

.pws-front .pws-hero {
  padding: clamp(1.35rem, 4vw, 3.2rem) clamp(1.15rem, 5vw, 4rem);
  background: linear-gradient(110deg, #102b45 12%, #164b64 100%);
  border-bottom: 4px solid #8bd0aa;
  border-radius: 14px;
  color: #f0f8fb;
}

.pws-front .pws-hero h1 {
  max-width: 16ch;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(2rem, 5.4vw, 4rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-transform: none;
}

.pws-front .pws-hero p {
  margin: .8rem 0 0;
  padding: 0;
  color: #e2eff5;
  font-size: clamp(.98rem, 2vw, 1.15rem);
  line-height: 1.55;
}

.pws-front .pws-wide-break { display: none; }

.pws-front .pws-topics,
.pws-front .pws-card-list {
  display: grid;
  gap: clamp(.65rem, 2vw, 1.2rem);
}

.pws-front .pws-topics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(.75rem, 2vw, 1.25rem);
}

.pws-front .pws-topic {
  position: relative;
  display: block;
  min-width: 0;
  padding: .85rem 1rem;
  background: var(--pws-paper);
  border: 1px solid var(--pws-line);
  border-radius: 9px;
  color: var(--pws-ink);
  line-height: 1.4;
}

.pws-front .pws-topic strong { display: block; margin-right: .8rem; }
.pws-front .pws-topic-detail { display: block; margin-top: .25rem; color: var(--pws-muted); font-size: .85rem; }
.pws-front .pws-arrow { position: absolute; top: .8rem; right: .7rem; color: var(--pws-blue); }
.pws-front .pws-topic:hover { border-color: #568ba4; }

.pws-front .pws-guides { margin-top: clamp(1.7rem, 4vw, 3rem); }
.pws-front .pws-guides-heading { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.pws-front .pws-guides-heading h2 { margin: 0; padding: 0; color: var(--pws-ink); text-transform: none; font-size: clamp(1.65rem, 3.5vw, 2.2rem); }
.pws-front .pws-guides-heading a,
.pws-front .pws-all-guides { color: var(--pws-blue); text-decoration: underline; text-underline-offset: .2em; font-weight: 650; }
.pws-front .pws-all-guides { display: inline-block; margin-top: 1.1rem; }

.pws-front .pws-card-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pws-front .pws-guide-card { min-width: 0; background: var(--pws-paper); border: 1px solid var(--pws-line); border-radius: 12px; }
.pws-front .pws-guide-card > a { display: flex; flex-direction: column; height: 100%; border-radius: inherit; color: var(--pws-ink); }
.pws-front .pws-guide-card:hover { border-color: #719db0; }
.pws-front .pws-guide-card a:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.pws-front .pws-guide-image { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 11px 11px 0 0; background: #d9e8ed; }
.pws-front .pws-guide-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pws-front .pws-guide-copy { padding: clamp(.9rem, 2vw, 1.3rem); }
.pws-front .pws-guide-copy h3 { margin: .3rem 0 .55rem; padding: 0; color: var(--pws-ink); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.24; text-transform: none; }
.pws-front .pws-guide-copy p { margin: 0; padding: 0; color: var(--pws-muted); line-height: 1.5; }
.pws-front .pws-guide-copy .pws-guide-topic { color: var(--pws-blue); font-size: .85rem; font-weight: 700; }

.archive .posts-blog-feed-module .post-content .post-title a,
.search .posts-blog-feed-module .post-content .post-title a,
.pws-reading .related-posts .post-title a {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.pws-reading .single-post-module .post-header { padding: clamp(1.3rem, 4vw, 2.9rem); text-align: left; }
.pws-reading .single-post-module h1.entry-title { color: var(--pws-ink); font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.14; letter-spacing: -.025em; }
.pws-reading .single-post-module .post-header .post-meta p:empty { display: none; }
.pws-reading .single-post-module > .post-thumbnail img { display: block; max-height: 390px; object-fit: cover; }
.pws-reading:not(.et_pb_pagebuilder_layout) .single-post-module .post-content {
  max-width: 76ch;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2.55rem);
  color: var(--pws-ink);
  font-size: clamp(1rem, 2vw, 1.095rem);
  line-height: 1.68;
}
.pws-reading .entry-content .pws-lead { color: var(--pws-ink); font-size: 1.13em; line-height: 1.55; }
.pws-reading .entry-content :is(h2, h3, h4, h5, h6, span[id]) { scroll-margin-top: 5rem; }
.pws-reading .entry-content #toc_container {
  width: 100%;
  max-width: 100%;
  margin: .75rem 0 1.55rem;
  padding: clamp(.8rem, 3vw, 1.3rem);
  background: #edf4f8;
  border: 1px solid var(--pws-line);
  border-radius: 9px;
  color: var(--pws-ink);
}
.pws-reading .entry-content #toc_container .toc_title { margin: 0 0 .5rem; padding: 0; text-align: left; font-size: 1.07em; }
.pws-reading .entry-content #toc_container a,
.pws-reading .entry-content .pws-tool-card a { color: var(--pws-blue); text-decoration: underline; text-underline-offset: .18em; }
.pws-reading .entry-content #toc_container li { margin-block: .3rem; }
.pws-reading .entry-content .pws-table-scroll { max-width: 100%; margin-block: 1rem; overflow-x: auto; }
.pws-reading .entry-content .pws-table-scroll table { width: 100%; min-width: 29rem; margin: 0; }
.pws-reading .entry-content .pws-table-scroll :is(th, td) { text-align: left; vertical-align: top; }
.pws-reading .entry-content .pws-table-scroll thead th { background: #e7f0f6; color: var(--pws-ink); }
.pws-reading .entry-content .pws-table-scroll caption { padding: .7rem 0; color: var(--pws-muted); text-align: left; }
.pws-reading .entry-content .pws-tool-card { margin: 1.1rem 0 1.6rem; padding: 1rem 1.15rem; border: 1px solid var(--pws-line); border-left: 4px solid #327b5a; border-radius: 8px; background: #f0f7f4; }
.pws-reading .entry-content .pws-tool-card p { margin: 0 0 .35rem; padding: 0; }
.pws-reading .entry-content .pws-tool-card-title { color: var(--pws-ink); font-size: 1.1em; font-weight: 700; }

@media (max-width: 850px) {
  .pws-front .pws-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pws-front .pws-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .pws-home #main-header a.logo { padding-block: 12px 7px; }
  .pws-home #main-header a.logo img { width: min(76vw, 290px); height: auto; }
  .pws-front .pws-card-list { grid-template-columns: minmax(0, 1fr); }
  .pws-front .pws-topic { padding: .7rem; font-size: .92rem; }
  .pws-front .pws-topic-detail { font-size: .79rem; }
  .pws-front .pws-arrow { right: .45rem; top: .65rem; }
}
