/* =============================================================
   UWS single blog post  (blog-details.php)
   Created 17 Nov 2026, matched to the reference layout the same day.
   Previous version: css1/blog-details-backup-2026-11-17.css

   responsive.css forces heading sizes with !important site-wide,
   so heading rules here restate them with !important.
   ============================================================= */

/* ---- make the sticky sidebar possible on this page ----
   responsive.css sets overflow-x:hidden !important on html AND body. That
   turns <body> into its own scroll container, and position:sticky then has
   nothing to stick to. "clip" hides horizontal overflow just the same but
   does not create a scroll container. (Browsers without "clip" ignore this
   rule and simply show a non-sticky sidebar.) */
body#body1 {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.uws-post {
  --uws-ink: #0f1d2c;
  --uws-title: #20497a;
  --uws-text: #2f3a47;
  --uws-muted: #8b95a1;
  --uws-line: #e3e8ee;
  --uws-date: #2e7d32;

  padding: 48px 0 80px;
  background: #ffffff;
  color: var(--uws-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.uws-post > .container {
  max-width: 1240px;
}

.uws-post-main,
.uws-post-side {
  min-width: 0;
}

.uws-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 48px;
  align-items: start;
}

/* ---- breadcrumb ---- */
.uws-post-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 26px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: uppercase;
}

.uws-post-crumbs a {
  color: var(--uws-ink);
  text-decoration: none;
}

.uws-post-crumbs a:hover {
  color: var(--uws-title);
}

.uws-crumb-sep {
  color: var(--uws-muted);
  font-weight: 400;
}

.uws-crumb-current {
  color: var(--uws-muted);
}

/* ---- headline + summary ---- */
.uws-post .uws-post-title {
  margin: 0 0 26px !important;
  padding: 0 !important;
  color: var(--uws-title) !important;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif !important;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem) !important;
  font-weight: 900 !important;
  line-height: 1.32 !important;
  letter-spacing: -0.005em !important;
  text-align: left !important;
}

.uws-post-summary {
  margin: 0 0 28px;
  color: var(--uws-text);
  font-size: 1.15rem;
  line-height: 1.65;
}

/* ---- featured image ---- */
.uws-post-hero {
  margin: 0 0 30px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f6f8;
}

.uws-post-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- date + chips ---- */
.uws-post-meta {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--uws-line);
}

.uws-post-date {
  display: block;
  margin-bottom: 18px;
  color: var(--uws-date);
  font-size: 1.05rem;
  font-weight: 600;
}

.uws-post-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.uws-chip {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid #d6dee8;
  border-radius: 999px;
  background: #eef2f7;
  color: #1f3b5c;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ---- article body (HTML from WordPress) ---- */
.uws-post-content {
  color: var(--uws-text);
  font-size: 1.08rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.uws-post-content p {
  margin: 0 0 1.2em;
  color: inherit;
  text-align: left;
}

.uws-post .uws-post-content h2 {
  margin: 1.8em 0 0.6em !important;
  color: var(--uws-title) !important;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif !important;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.uws-post .uws-post-content h3 {
  margin: 1.6em 0 0.5em !important;
  color: var(--uws-title) !important;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif !important;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem) !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

.uws-post .uws-post-content h4,
.uws-post .uws-post-content h5,
.uws-post .uws-post-content h6 {
  margin: 1.4em 0 0.5em !important;
  color: var(--uws-ink) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

.uws-post-content ul,
.uws-post-content ol {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}

.uws-post-content li {
  margin-bottom: 0.45em;
}

.uws-post-content a {
  color: var(--uws-title);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.uws-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.uws-post-content figure {
  margin: 1.6em 0;
  max-width: 100%;
}

.uws-post-content blockquote {
  margin: 1.6em 0;
  padding: 14px 22px;
  border-left: 4px solid var(--uws-title);
  background: #f4f7fa;
  color: var(--uws-text);
}

.uws-post-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.4em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.uws-post-content th,
.uws-post-content td {
  padding: 10px 14px;
  border: 1px solid var(--uws-line);
  vertical-align: top;
}

.uws-post-content th {
  background: #f3f6f9;
  color: var(--uws-ink);
}

/* ---- sidebar (sticky on desktop) ---- */
.uws-post-side {
  position: sticky;
  top: 32px;
}

.uws-side-box {
  padding-top: 28px;
  border-top: 3px solid #1f3a57;
}

.uws-post .uws-side-title {
  margin: 0 !important;
  padding: 0 0 26px !important;
  border-bottom: 1px solid var(--uws-line);
  color: var(--uws-ink) !important;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
}

.uws-side-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.uws-side-list li {
  margin: 0;
  border-bottom: 1px solid var(--uws-line);
}

.uws-side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--uws-ink);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.42;
  text-decoration: none;
  transition: color 0.2s ease;
}

.uws-side-list a svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: #9aa3ad;
  transition: transform 0.2s ease, color 0.2s ease;
}

.uws-side-list a:hover {
  color: var(--uws-title);
}

.uws-side-list a:hover svg {
  color: var(--uws-title);
  transform: translateX(3px);
}

.uws-side-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 2px solid var(--uws-ink);
  border-radius: 0;
  background: #ffffff;
  color: var(--uws-ink);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.uws-side-all:hover,
.uws-side-all:focus-visible {
  background: var(--uws-ink);
  color: #ffffff;
}

/* ---- not found ---- */
.uws-post-missing {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
}

.uws-post .uws-post-missing h1 {
  margin: 0 0 12px !important;
  color: var(--uws-title) !important;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
}

.uws-post-missing p {
  margin-bottom: 26px;
  color: var(--uws-text);
}

.uws-post-missing .uws-side-all {
  max-width: 260px;
  margin: 0 auto;
}

/* ---- responsive ---- */
@media only screen and (max-width: 1199px) {
  .uws-post-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
  }

  .uws-post .uws-side-title {
    font-size: 1.4rem !important;
  }

  .uws-side-list a {
    font-size: 1rem;
  }
}

@media only screen and (max-width: 991px) {
  .uws-post {
    padding: 32px 0 56px;
  }

  /* minmax(0, ...) stops a wide table or image inside the article from
     stretching the column past the screen edge */
  .uws-post-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .uws-post-side {
    position: static;
  }
}

@media only screen and (max-width: 575px) {
  .uws-post-crumbs {
    font-size: 0.8rem;
  }

  .uws-post-summary {
    font-size: 1.02rem;
  }

  .uws-post-content {
    font-size: 1rem;
    line-height: 1.78;
  }

  .uws-chip {
    padding: 7px 15px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uws-side-list a,
  .uws-side-list a svg,
  .uws-side-all {
    transition: none;
  }
}
