/*
Theme Name: JobsNowPK Modern
Theme URI: https://jobsnowpk.com/
Description: A consolidated mobile-first editorial redesign for JobsNowPK, built on MagOne.
Author: JobsNowPK
Version: 3.0.0
Template: magone
Text Domain: jobsnowpk-modern
*/

/* One consolidated design system. No external font or icon requests. */
:root {
  --jnp-ink: #162b3f;
  --jnp-muted: #607286;
  --jnp-blue: #1558a6;
  --jnp-blue-dark: #0d3d73;
  --jnp-teal: #087f78;
  --jnp-teal-dark: #06635d;
  --jnp-gold: #f4bb45;
  --jnp-page: #f5f7fa;
  --jnp-surface: #fff;
  --jnp-line: #dce4ed;
  --jnp-soft: #eef4f8;
  --jnp-radius: 12px;
  --jnp-shadow: 0 4px 16px rgba(21, 42, 64, .055);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  color: var(--jnp-ink);
  background: var(--jnp-page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video, iframe, embed, object, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
a { color: var(--jnp-blue); text-underline-offset: 3px; }
a:hover { color: var(--jnp-teal-dark); }
:focus-visible { outline: 3px solid rgba(8, 127, 120, .3); outline-offset: 2px; }

/* Match MagOne's fixed-width wrappers to current responsive screens. */
.m1-wrapper { width: 100% !important; max-width: 1320px; margin: 0 auto; padding-bottom: 22px; }
.m1-wrapper > .wide { width: calc(100% - 36px) !important; max-width: 1260px; margin: 0 auto; }
#primary { min-width: 0; }
#content { min-width: 0; }
#content > .content-inner { min-width: 0; }
#content img, .post-body img, .entry-content img { max-width: 100%; height: auto; }

/* Header and navigation: compact, useful, restrained. */
#header { padding-top: 16px; z-index: 50; }
#header-section {
  overflow: visible;
  border: 1px solid var(--jnp-line);
  border-radius: 14px;
  background: var(--jnp-surface);
  box-shadow: 0 2px 8px rgba(22, 43, 63, .035);
}
#header-content { min-width: 0; }
#header-content .blog-title, #header-content .site-title, #header-content .header-title,
#header-content .blog-title a, #header-content .site-title a, #header-content .header-title a {
  color: var(--jnp-ink) !important;
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}
#header .header-button, #header .main-menu-toggle { color: var(--jnp-ink); }
#header .header-button .color, #header .main-menu-toggle .color { color: var(--jnp-teal); }
#main-menu {
  border-top: 1px solid var(--jnp-line) !important;
  background: transparent;
  box-shadow: none !important;
}
#main-menu ul.menu > li > a {
  color: #3f5266 !important;
  font-size: .9rem;
  font-weight: 650;
  padding-top: 14px;
  padding-bottom: 14px;
}
#main-menu ul.menu > li:hover > a, #main-menu ul.menu > li.current-menu-item > a { color: var(--jnp-teal-dark) !important; }
#header .mobile-menu .menu { background: #fff; }
#header .mobile-menu .menu li a { color: var(--jnp-ink); border-bottom: 1px solid var(--jnp-line); }
#header .mobile-menu .menu li a:hover { color: var(--jnp-teal-dark); background: var(--jnp-soft); }

/* Content containers: one card, rather than several nested white panels. */
.widget.content-scroll, .blog-posts.hfeed { background: transparent; box-shadow: none; }
.post-outer { min-width: 0; margin-bottom: 22px; }
#content .post {
  min-width: 0;
  color: var(--jnp-ink);
  background: var(--jnp-surface);
  border: 1px solid var(--jnp-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--jnp-shadow);
}
#content .post-header, #content .post-body {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#content .post-header { padding: 26px 28px 12px; }
#content .post-body { padding: 8px 28px 28px; }
#content .post-title, #content h1.post-title, #content .entry-title {
  color: var(--jnp-ink) !important;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.18;
  margin: 12px 0 14px;
}
#content .post-title a, #content .entry-title a { color: inherit !important; }
#content .post-title a:hover, #content .entry-title a:hover { color: var(--jnp-blue) !important; }
.post-breadcrumb, .post-meta-wrapper, .post-meta-wrapper a { color: var(--jnp-muted) !important; font-size: .82rem; }
.post-breadcrumb { line-height: 1.5; margin-bottom: 10px; }
.post-meta-wrapper { display: flex; flex-wrap: wrap; gap: 8px 14px; }

/* Article reading column: readable line length, hierarchy and media. */
.post-body-inner, .entry-content { color: #26394d; font-size: 1.03rem; line-height: 1.85; min-width: 0; overflow-wrap: anywhere; }
.post-body-inner > * { max-width: 100%; }
.post-body-inner p, .entry-content p { margin: 0 0 1.15em; }
.post-body-inner h1, .post-body-inner h2, .post-body-inner h3,
.post-body-inner h4, .entry-content h1, .entry-content h2,
.entry-content h3, .entry-content h4 {
  color: var(--jnp-ink) !important;
  font-weight: 780;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 1.45em 0 .55em;
}
.post-body-inner h1, .entry-content h1 { font-size: 1.8rem; }
.post-body-inner h2, .entry-content h2 { font-size: clamp(1.3rem, 2.3vw, 1.75rem); }
.post-body-inner h3, .entry-content h3 { font-size: 1.2rem; }
.post-body-inner a, .entry-content a { color: var(--jnp-blue) !important; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body-inner a:hover, .entry-content a:hover { color: var(--jnp-teal-dark) !important; }
.post-body-inner img, .entry-content img { display: block; max-width: 100% !important; height: auto !important; margin: 18px auto; border-radius: 8px; }
.post-body-inner figure, .entry-content figure { max-width: 100%; margin-left: auto; margin-right: auto; }
.post-body-inner iframe, .entry-content iframe, .post-body-inner video, .entry-content video { max-width: 100%; }
.post-body-inner ul, .post-body-inner ol, .entry-content ul, .entry-content ol { padding-left: 1.4em; margin: .6em 0 1.2em; }
.post-body-inner li, .entry-content li { margin: 0 0 .55em; padding-left: .1em; }
.post-body-inner blockquote, .entry-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--jnp-teal); background: var(--jnp-soft); color: #3c5063; }
.post-body-inner table, .entry-content table {
  display: block;
  width: 100% !important;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 1.2em 0;
  background: #fff;
}
.post-body-inner th, .post-body-inner td, .entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--jnp-line); vertical-align: top; }
.post-body-inner th, .entry-content th { background: #edf4f8; color: var(--jnp-ink); font-weight: 750; }
.post-body-inner .wp-block-button__link, .post-body-inner a.button, .entry-content .wp-block-button__link, .entry-content a.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: 8px; background: var(--jnp-teal); color: #fff !important;
  font-weight: 750; text-decoration: none; border: 0;
}
.post-body-inner .wp-block-button__link:hover, .post-body-inner a.button:hover, .entry-content .wp-block-button__link:hover { background: var(--jnp-teal-dark); }

/* Archives and search: tidy list cards with consistent interaction targets. */
body.archive #content .post, body.search #content .post, body.blog #content .post {
  padding: 18px 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: none;
}
body.archive #content .post-header, body.search #content .post-header, body.blog #content .post-header { padding: 0; }
body.archive #content .post-body, body.search #content .post-body, body.blog #content .post-body { padding: 6px 0 0; }
body.archive #content .post-title, body.search #content .post-title, body.blog #content .post-title { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; margin: 6px 0; }
body.archive #content .post-body-inner, body.search #content .post-body-inner, body.blog #content .post-body-inner { font-size: .94rem; line-height: 1.7; }
.pagination a, .post-page-buttons a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 12px; border: 1px solid var(--jnp-line); border-radius: 8px; background: #fff; color: var(--jnp-blue) !important; }

/* Sidebar: remove the old bright-orange look and tighten link lists. */
#primary .main-sidebar { min-width: 0; }
#primary .main-sidebar .widget {
  background: var(--jnp-surface);
  border: 1px solid var(--jnp-line);
  border-radius: 12px;
  box-shadow: none !important;
  padding: 18px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
#primary .main-sidebar .widget > h2, #primary .main-sidebar .widget .widget-title,
#footer .widget-title {
  color: var(--jnp-ink) !important;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--jnp-line);
  padding: 0 0 10px;
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}
#primary .main-sidebar .widget a { color: #31536f !important; text-decoration: none; }
#primary .main-sidebar .widget a:hover { color: var(--jnp-teal-dark) !important; }
#primary .main-sidebar .widget ul { margin: 6px 0 0; padding-left: 18px; }
#primary .main-sidebar .widget li { margin: 0 0 8px; padding: 0; line-height: 1.5; }
#primary .main-sidebar .widget img { max-width: 100%; height: auto; }
#primary .main-sidebar .widget input[type=search], #primary .main-sidebar .widget input[type=text] { width: 100%; min-width: 0; }

/* Header/footer and comments */
#footer { margin-top: 26px !important; }
#footer .footer-inner { background: #12273c; color: #e0e9f2; border-radius: 12px 12px 0 0; box-shadow: none !important; padding: 22px; }
#footer .footer-col .widget { background: transparent; border: 0; box-shadow: none; padding: 8px; color: #e0e9f2; }
#footer .footer-col a, #footer .widget-title { color: #fff !important; }
#footer .footer-col .widget-title { border-bottom-color: rgba(255,255,255,.18); }
#magone-copyright { background: #0c1b2a; color: #c4d2e0; padding: 13px 18px; text-align: center; font-size: .83rem; }
#magone-copyright a { color: #fff !important; }
#comments, .comments { color: var(--jnp-ink); }
#comments .comment-form, #comments .comment-list, .comments .comment-form { background: #fff; border: 1px solid var(--jnp-line); border-radius: 10px; padding: 16px; }
input[type=search], input[type=text], input[type=email], input[type=url], input[type=tel], select, textarea {
  max-width: 100%; min-width: 0; border: 1px solid #cfdbe6; border-radius: 8px; padding: 11px 12px; background: #fff; color: var(--jnp-ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(8,127,120,.16); border-color: var(--jnp-teal); }
button, input[type=submit], .button { border-radius: 8px; }
.scroll-up { z-index: 40 !important; right: 16px !important; bottom: 16px !important; width: 42px; height: 42px; border-radius: 10px !important; background: #fff !important; color: var(--jnp-teal) !important; border: 1px solid var(--jnp-line) !important; box-shadow: 0 4px 14px rgba(22,43,63,.12); }

/* Homepage: a calmer job-discovery experience instead of an oversized promo banner. */
body.front-page #content, body.front-page #content > .content-inner, body.home #content, body.home #content > .content-inner { float: none; width: 100%; margin: 0; }
body.front-page #primary .main-sidebar, body.home #primary .main-sidebar { display: none !important; }
.jnp-home { width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 0 44px; color: var(--jnp-ink); }
.jnp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 42px);
  background: linear-gradient(125deg, #f0f6f8 0%, #e7f3f1 100%);
  border: 1px solid #d8e7e7;
  border-radius: 16px;
  color: var(--jnp-ink);
}
.jnp-hero::before, .jnp-hero::after { display: none; }
.jnp-hero-inner { position: relative; z-index: 1; max-width: 850px; }
.jnp-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--jnp-teal-dark); font-size: .76rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.jnp-eyebrow::before { content: ""; width: 20px; height: 3px; border-radius: 2px; background: var(--jnp-gold); }
.jnp-hero h1 { color: var(--jnp-ink) !important; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; font-weight: 820; letter-spacing: -.045em; max-width: 760px; margin: 13px 0 10px; }
.jnp-hero p { max-width: 680px; color: #4b6174; font-size: 1.02rem; line-height: 1.55; margin: 0 0 17px; }
.jnp-search { display: flex; align-items: stretch; gap: 0; max-width: 730px; width: 100%; border: 1px solid #cbd9e3; border-radius: 10px; padding: 5px; background: #fff; }
.jnp-search input[type=search] { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; box-shadow: none; padding: 10px 12px; border-radius: 6px; color: var(--jnp-ink); }
.jnp-search button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 0; border-radius: 7px; background: var(--jnp-teal); color: #fff; font-size: .9rem; font-weight: 800; cursor: pointer; }
.jnp-search button:hover { background: var(--jnp-teal-dark); }
.jnp-hero-note { font-size: .8rem !important; color: #5b7081 !important; margin: 8px 0 0 !important; }
.jnp-quicklinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 0; }
.jnp-quicklinks a { display: inline-flex; align-items: center; padding: 6px 11px; border: 1px solid #cbdeda; border-radius: 7px; color: #28534f; background: rgba(255,255,255,.72); font-size: .82rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.jnp-quicklinks a:hover { color: #fff; background: var(--jnp-teal); border-color: var(--jnp-teal); }
.jnp-section { margin-top: 30px; }
.jnp-section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 14px; }
.jnp-section-head h2 { color: var(--jnp-ink); font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.25; font-weight: 800; margin: 0; letter-spacing: -.025em; }
.jnp-section-head p { margin: 4px 0 0; color: var(--jnp-muted); font-size: .91rem; line-height: 1.5; }
.jnp-text-link { color: var(--jnp-blue); font-size: .88rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.jnp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jnp-job-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--jnp-line); border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(22,43,63,.025); transition: border-color .16s ease, box-shadow .16s ease; }
.jnp-job-card:hover { border-color: #b9d2d7; box-shadow: var(--jnp-shadow); }
.jnp-job-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); }
.jnp-card-image { display: flex; align-items: center; justify-content: center; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #f2f5f8; }
.jnp-job-card-featured .jnp-card-image { height: 100%; aspect-ratio: auto; min-height: 220px; }
.jnp-card-image img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 0; }
.jnp-card-placeholder { display: block; width: 100%; height: 100%; min-height: 110px; background: linear-gradient(110deg, #eaf1f5, #f5f8fa); }
.jnp-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 16px; }
.jnp-job-card-featured .jnp-card-body { padding: clamp(18px, 2.5vw, 26px); }
.jnp-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; color: var(--jnp-muted); font-size: .77rem; margin-bottom: 8px; }
.jnp-category-pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 5px; background: #e7f3f1; color: #14665f; font-size: .72rem; font-weight: 800; }
.jnp-card-title { color: var(--jnp-ink); font-size: 1.03rem; line-height: 1.38; font-weight: 780; letter-spacing: -.015em; margin: 0 0 8px; }
.jnp-job-card-featured .jnp-card-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.28; }
.jnp-card-title a { color: inherit !important; text-decoration: none; }
.jnp-card-title a:hover { color: var(--jnp-blue) !important; }
.jnp-card-excerpt { margin: 0 0 14px; color: #5d6e80; font-size: .89rem; line-height: 1.6; }
.jnp-card-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 11px; margin-top: auto; border-top: 1px solid #edf1f5; }
.jnp-card-source { color: var(--jnp-muted); font-size: .76rem; }
.jnp-read-link { color: var(--jnp-blue); font-size: .84rem; font-weight: 800; text-decoration: none; }
.jnp-read-link:hover { color: var(--jnp-teal-dark); }
.jnp-empty { margin: 0; padding: 18px; border: 1px dashed var(--jnp-line); border-radius: 10px; color: var(--jnp-muted); background: #fff; }
.jnp-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
.jnp-category-link { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-width: 0; padding: 12px 14px; border: 1px solid var(--jnp-line); border-radius: 9px; background: #fff; color: var(--jnp-ink); font-size: .88rem; font-weight: 700; line-height: 1.35; text-decoration: none; }
.jnp-category-link span:first-child { min-width: 0; }
.jnp-category-link span:last-child { flex: 0 0 auto; color: var(--jnp-teal); font-size: 1.05rem; }
.jnp-category-link:hover { background: #f0f8f7; border-color: #bedbd7; color: var(--jnp-teal-dark); }
.jnp-trust-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.jnp-trust-item { padding: 14px 16px; border: 1px solid var(--jnp-line); border-radius: 9px; background: #f9fbfc; }
.jnp-trust-item strong { display: block; font-size: .92rem; line-height: 1.35; margin-bottom: 4px; }
.jnp-trust-item span { display: block; color: var(--jnp-muted); font-size: .82rem; line-height: 1.5; }
.jnp-skip-link { position: absolute; left: 12px; top: -50px; z-index: 9999; padding: 8px 12px; background: #fff; color: var(--jnp-ink); border: 1px solid var(--jnp-line); border-radius: 8px; }
.jnp-skip-link:focus { top: 12px; }

/* Tablet */
@media (max-width: 980px) {
  .jnp-home { padding-top: 18px; }
  .jnp-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .jnp-job-card-featured { grid-template-columns: minmax(220px,.8fr) minmax(0,1.2fr); }
  .jnp-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #content { width: 66%; }
  .main-sidebar { width: 34%; }
}

/* Phone: one-column article/listing, no desktop menu spacer, and no page-wide horizontal scroll. */
@media (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: clip; }
  .m1-wrapper { width: 100% !important; max-width: 100%; padding-bottom: 14px; }
  .m1-wrapper > .wide { width: calc(100% - 20px) !important; max-width: 100%; }
  #header { padding-top: 6px; }
  #header-section { border-radius: 12px; }
  #header #main-menu { display: none !important; }
  #header-content .blog-title, #header-content .site-title, #header-content .header-title,
  #header-content .blog-title a, #header-content .site-title a, #header-content .header-title a { font-size: 1.05rem !important; white-space: nowrap !important; }
  #header .mobile-menu .menu { background: #fff; }
  #primary { width: 100%; }
  #content { float: none !important; width: 100% !important; }
  #content > .content-inner { margin: 0 !important; }
  .main-sidebar { float: none !important; width: 100% !important; margin-top: 12px; }
  #content .post { border-radius: 10px; }
  #content .post-header { padding: 18px 16px 8px; }
  #content .post-body { padding: 6px 16px 20px; }
  #content .post-title, #content h1.post-title, #content .entry-title { font-size: clamp(1.55rem, 6.5vw, 2rem); line-height: 1.2; }
  .post-body-inner, .entry-content { font-size: 1rem; line-height: 1.78; }
  .post-body-inner img, .entry-content img { max-width: 100% !important; height: auto !important; }
  .post-body-inner table, .entry-content table { max-width: 100%; }
  #primary .main-sidebar .widget { margin-top: 12px; padding: 14px; }
  #footer { margin-top: 18px !important; }
  #footer .footer-inner { padding: 16px 12px; border-radius: 10px 10px 0 0; }
  #magone-copyright { padding: 12px; line-height: 1.5; }
  .scroll-up { width: 38px; height: 38px; right: 10px !important; bottom: 10px !important; }
  .jnp-home { padding: 14px 0 28px; }
  .jnp-hero { padding: 22px 17px; border-radius: 12px; }
  .jnp-eyebrow { font-size: .7rem; letter-spacing: .055em; }
  .jnp-hero h1 { font-size: clamp(1.65rem, 7.3vw, 2rem); line-height: 1.15; margin: 10px 0 9px; letter-spacing: -.035em; }
  .jnp-hero p { font-size: .94rem; line-height: 1.5; margin-bottom: 13px; }
  .jnp-search { display: grid; grid-template-columns: minmax(0,1fr); gap: 7px; padding: 4px; }
  .jnp-search input[type=search] { min-height: 44px; padding: 9px 10px; }
  .jnp-search button { min-height: 44px; }
  .jnp-hero-note { font-size: .76rem !important; margin-top: 7px !important; }
  .jnp-quicklinks { gap: 6px; margin-top: 10px; }
  .jnp-quicklinks a { padding: 6px 8px; font-size: .75rem; }
  .jnp-section { margin-top: 24px; }
  .jnp-section-head { align-items: start; gap: 8px; }
  .jnp-section-head h2 { font-size: 1.3rem; }
  .jnp-section-head p { font-size: .83rem; }
  .jnp-text-link { font-size: .8rem; }
  .jnp-post-grid { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .jnp-job-card-featured { display: flex; grid-column: auto; }
  .jnp-job-card-featured .jnp-card-image { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .jnp-card-image { aspect-ratio: 16 / 8.5; }
  .jnp-card-body, .jnp-job-card-featured .jnp-card-body { padding: 14px; }
  .jnp-card-title { font-size: 1rem; }
  .jnp-job-card-featured .jnp-card-title { font-size: 1.17rem; }
  .jnp-card-excerpt { font-size: .86rem; margin-bottom: 10px; }
  .jnp-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .jnp-category-link { padding: 10px; font-size: .8rem; }
  .jnp-trust-strip { grid-template-columns: 1fr; gap: 7px; margin-top: 20px; }
  .jnp-trust-item { padding: 12px 13px; }
}
@media (max-width: 380px) {
  .m1-wrapper > .wide { width: calc(100% - 14px) !important; }
  .jnp-hero { padding: 19px 13px; }
  .jnp-quicklinks a { font-size: .72rem; padding: 5px 7px; }
  .jnp-category-link { font-size: .75rem; padding: 9px 8px; }
  #content .post-header { padding: 15px 13px 6px; }
  #content .post-body { padding: 4px 13px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
