/*
Theme Name: James Mobile Blog
Author: OpenAI
Description: Mobile/tablet site with consistent header, 4-line post cards, homepage-only handwriting, preview-image handling, Camera Roll, and continuation feed.
Version: 31.0.0
Text Domain: james-mobile-blog
*/

:root{
  --page-max: 920px;
  --pad: clamp(18px, 5vw, 54px);
  --blue: #1735d1;
  --muted: #8a8a8a;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #050505;
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }

.site-shell {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* The uploaded artwork, split into three exact image files. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(18px, 4vw, 44px);
  padding: 34px 0 38px;
  background: rgba(255,255,255,.97);
}

.brand-art {
  width: min(100%, 500px);
  display: block;
}

.brand-art img,
.image-nav img {
  display: block;
  width: 100%;
  height: auto;
}

.image-nav {
  display: flex;
  align-items: flex-start;
  gap: clamp(17px, 3.5vw, 34px);
  padding-top: 15px;
  white-space: nowrap;
}

.image-nav__info {
  width: clamp(57px, 10vw, 105px);
}

.image-nav__camera {
  width: clamp(145px, 25vw, 280px);
}

.camera-roll-feed {
  padding-top: 2px;
}

.remote-post {
  margin: 0 0 clamp(56px, 11vw, 112px);
}

.remote-post__image-link {
  display: block;
  width: 100%;
  background: #f4f4f4;
  overflow: hidden;
}

.remote-post__image {
  display: block;
  width: 100%;
  height: auto;
}

.remote-post__title {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: clamp(19px, 4vw, 30px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.remote-post__meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 2.5vw, 15px);
  line-height: 1.2;
}

.feed-sentinel { height: 1px; }
.feed-status {
  padding: 0 0 36px;
  text-align: center;
  color: #aaa;
  font-size: 12px;
}

.single-post {
  padding-bottom: 80px;
}

.single-post__title {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: clamp(29px, 7vw, 54px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.045em;
}

.single-post__content {
  font-size: clamp(17px, 3vw, 21px);
  line-height: 1.45;
}

.single-post__content img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Keep plugin clutter away. */
.sd-sharing-enabled,
.sharedaddy,
.jetpack-likes-widget-wrapper,
.jetpack-likes-widget-loaded,
#jp-post-flair,
.jp-relatedposts,
#jp-relatedposts,
.navigation.post-navigation,
.post-navigation,
.entry-footer,
.post-footer {
  display: none !important;
}

@media (max-width: 560px) {
  /* Keep the complete header on ONE ROW on phones, matching the original artwork. */
  .site-header {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(10px, 3vw, 16px);
    padding: 26px 0 30px;
  }

  .brand-art {
    width: 100%;
    max-width: none;
  }

  .image-nav {
    width: 100%;
    padding-top: clamp(8px, 2.5vw, 14px);
    gap: clamp(9px, 2.7vw, 14px);
    justify-content: flex-end;
    align-items: flex-start;
  }

  .image-nav__info {
    width: 28%;
    flex: 0 0 28%;
  }

  .image-nav__camera {
    width: 64%;
    flex: 0 0 64%;
  }
}

@media (max-width: 390px) {
  .site-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
    gap: 8px;
  }

  .image-nav {
    gap: 7px;
    padding-top: 9px;
  }
}


/* LOCAL HOMEPAGE POSTS */
.posts-feed {
  padding-top: 2px;
}

.feed-post {
  margin: 0 0 clamp(56px, 11vw, 112px);
}

.feed-post__media {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f4f4f4;
}

.feed-post__media img {
  display: block;
  width: 100%;
  height: auto;
}

.feed-post__title {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: clamp(19px, 4vw, 30px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.feed-post__meta,
.single-post__meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 2.5vw, 15px);
  line-height: 1.2;
}

.single-post__featured {
  margin: 24px 0;
}

/* INFO PAGE */
.info-page {
  min-height: 55vh;
  padding-top: clamp(14px, 4vw, 40px);
  padding-bottom: 80px;
}

.info-page p {
  margin: 0;
  font-size: clamp(21px, 5vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}


/* =============================================================
   V8 REFERENCE MATCHING
   ============================================================= */

/* Header artwork alignment:
   navigation aligns with the black JAMES HOLLIDAY line rather than with
   the full height of the handwritten artwork. */
.site-header {
  grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(10px, 2.5vw, 22px);
}

.image-nav {
  padding-top: clamp(4px, 1.1vw, 10px);
  gap: clamp(10px, 2.2vw, 20px);
  justify-content: flex-end;
}

.image-nav__info {
  width: 27%;
  flex: 0 0 27%;
}

.image-nav__camera {
  width: 65%;
  flex: 0 0 65%;
}

/* Single-post masthead from the reference: black JAMES HOLLIDAY only. */
.site-header--single {
  position: static;
  display: block;
  padding-bottom: clamp(20px, 5vw, 40px);
}

.brand-art--single {
  width: min(58%, 500px);
}

/* Homepage/card typography: compact blue editorial text. */
.feed-post__text,
.single-post__heading {
  margin-top: 8px;
  color: #001bd1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 3.7vw, 20px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.feed-post__title,
.single-post__title {
  margin: 0;
  color: #001bd1;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: 700;
}

.feed-post__title a,
.single-post__title {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.feed-post__line,
.single-post__line {
  margin: 0;
  color: #001bd1;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
}

/* Dates are intentionally never displayed in V8. */
.feed-post__meta,
.remote-post__meta,
.single-post__meta {
  display: none !important;
}

/* The remote Camera Roll title uses the same small blue treatment. */
.remote-post__title {
  margin: 8px 0 0;
  color: #001bd1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 3.7vw, 20px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

/* Single post layout from supplied Wix references. */
.single-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 0 0 clamp(32px, 8vw, 64px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(23px, 5.7vw, 38px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.single-post-nav a,
.single-post__back a {
  color: #050505;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.single-post-nav__next {
  text-align: right;
}

.single-post__featured {
  margin: 0 0 clamp(18px, 4vw, 32px);
}

.single-post__heading {
  margin: 0 0 clamp(26px, 6vw, 48px);
}

.single-post__content {
  color: #001bd1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(15px, 3.7vw, 20px);
  line-height: 1.13;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.single-post__content p {
  margin: 0 0 1em;
}

.single-post__content a {
  color: inherit;
  text-decoration: underline;
}

.single-post__back {
  margin: clamp(26px, 6vw, 52px) 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 6vw, 40px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
}

@media (max-width: 560px) {
  .site-header:not(.site-header--single) {
    grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr);
    gap: 9px;
    padding: 26px 0 30px;
  }

  .site-header:not(.site-header--single) .image-nav {
    padding-top: 5px;
    gap: 8px;
  }

  .site-header--single {
    padding: 24px 0 30px;
  }

  .brand-art--single {
    width: 58%;
  }
}

@media (max-width: 390px) {
  .site-header:not(.site-header--single) {
    grid-template-columns: minmax(0, 1.60fr) minmax(0, 1fr);
    gap: 7px;
  }

  .site-header:not(.site-header--single) .image-nav {
    padding-top: 4px;
    gap: 6px;
  }
}


/* =============================================================
   V9 — HIGH-QUALITY ARTWORK + CONTINUATION FEED
   ============================================================= */

/* Use the newly supplied header as a single composite so alignment is exact. */
.site-header--composite {
  position: static;
  display: block;
  padding: clamp(24px, 5vw, 42px) 0 clamp(34px, 7vw, 58px);
}

.header-composite {
  position: relative;
  width: 100%;
}

.header-composite img {
  display: block;
  width: 100%;
  height: auto;
}

/* Clickable invisible hit areas over the exact artwork. */
.header-composite__home,
.header-composite__info,
.header-composite__camera {
  position: absolute;
  z-index: 2;
  display: block;
}

.header-composite__home {
  left: 0%;
  top: 23%;
  width: 49%;
  height: 62%;
}

.header-composite__info {
  left: 55%;
  top: 36%;
  width: 13%;
  height: 27%;
}

.header-composite__camera {
  left: 68%;
  top: 35%;
  width: 31%;
  height: 29%;
}

/* Plain single-post masthead: no handwriting, no nav artwork. */
.site-header--single {
  position: static;
  display: block;
  padding: clamp(22px, 5vw, 38px) 0 clamp(26px, 6vw, 46px);
}

.brand-art--single {
  width: min(58%, 540px);
}

.brand-art--single img {
  display: block;
  width: 100%;
  height: auto;
}

/* Previous / next use the supplied high-res images. */
.single-post-nav {
  margin-bottom: clamp(34px, 8vw, 70px);
}

.single-post-nav__previous,
.single-post-nav__next {
  display: flex;
  align-items: center;
}

.single-post-nav__previous {
  justify-content: flex-start;
}

.single-post-nav__next {
  justify-content: flex-end;
}

.single-post-nav a {
  display: block;
  width: min(38%, 180px);
}

.single-post-nav img {
  display: block;
  width: 100%;
  height: auto;
}

/* Four visible rows maximum on cards: title + Line 2 + Line 3 + Line 4. */
.feed-post__text,
.single-post__heading {
  font-size: clamp(14px, 3.45vw, 19px);
  line-height: 1.04;
}

.feed-post__title,
.feed-post__line,
.single-post__title,
.single-post__line {
  margin: 0;
}

/* Continue browsing directly after a single post. */
.post-continuation-feed {
  margin-top: clamp(72px, 16vw, 150px);
  padding-top: clamp(10px, 2vw, 20px);
}

/* Back-to-top artwork appears after the entire finite feed has loaded. */
.back-to-top-art {
  display: block;
  width: min(100%, 640px);
  margin: clamp(70px, 14vw, 140px) auto clamp(30px, 8vw, 72px);
}

.back-to-top-art[hidden] {
  display: none !important;
}

.back-to-top-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keep the text beneath images close to the reference. */
.feed-post__text {
  margin-top: 7px;
}

.feed-post {
  margin-bottom: clamp(62px, 13vw, 126px);
}

@media (max-width: 560px) {
  .site-header--composite {
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .brand-art--single {
    width: 64%;
  }

  .single-post-nav a {
    width: min(46%, 150px);
  }

  .post-continuation-feed {
    margin-top: 86px;
  }
}


/* =============================================================
   V10 — CONSISTENT HEADER + SMALLER BACK TO TOP + FRESH PREVIEW
   ============================================================= */

/* Every page uses exactly the same header footprint and navigation.
   Only the Home Screen swaps in the handwritten composite artwork. */
.site-header--composite {
  padding: clamp(24px, 5vw, 42px) 0 clamp(34px, 7vw, 58px);
}

/* Reference scale: intentionally smaller than V9 and aligned to the
   left content edge rather than filling/centering across the page. */
.back-to-top-art {
  width: min(78%, 470px);
  margin: clamp(62px, 13vw, 126px) 0 clamp(30px, 8vw, 72px);
}

/* The homepage card is the one place the first image belongs. */
.single-post__featured {
  display: none !important;
}

@media (max-width: 560px) {
  .back-to-top-art {
    width: 76%;
    max-width: 360px;
  }
}


/* =============================================================
   V11 — PREVIEW CODE + TOUCH TARGETS + COMMENTS
   ============================================================= */

/* Generous tap areas over the full composite artwork. */
.header-composite__home {
  left: 0;
  top: 6%;
  width: 50%;
  height: 86%;
}

.header-composite__info {
  left: 50%;
  top: 8%;
  width: 17%;
  height: 76%;
}

.header-composite__camera {
  left: 67%;
  top: 8%;
  width: 33%;
  height: 76%;
}

.header-composite__home,
.header-composite__info,
.header-composite__camera {
  z-index: 10;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,.06);
}

/* Each explicit preview row owns a real baseline, including <>. */
.feed-post__line {
  min-height: 1.14em;
}

/* Camera Roll only: date + comment link are deliberately restored. */
.camera-roll-feed .remote-post__meta {
  display: block !important;
  margin: 4px 0 0;
  color: #777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0;
}

.camera-roll-feed .remote-post__meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

/* Main blog remains dateless; opened posts get a minimal comment form. */
.single-post__comments {
  margin: 54px 0 0;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.single-post__comments .comments-title,
.single-post__comments .comment-reply-title {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
}

.single-post__comments .comment-list {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.single-post__comments .comment-body {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.3;
}

.single-post__comments .comment-meta {
  margin: 0 0 6px;
  color: #777;
  font-size: 11px;
}

.single-post__comments textarea,
.single-post__comments input[type="text"],
.single-post__comments input[type="email"],
.single-post__comments input[type="url"] {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid #aaa;
  border-radius: 0;
  padding: 8px;
  background: #fff;
  color: #111;
  font: 13px/1.3 Arial, Helvetica, sans-serif;
}

.single-post__comments textarea {
  min-height: 110px;
}

.single-post__comments input[type="submit"] {
  border: 0;
  border-bottom: 2px solid #000;
  border-radius: 0;
  padding: 2px 0;
  background: transparent;
  color: #000;
  font: 700 15px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.single-post .comments-area,
.single-post .comment-respond {
  display: block !important;
}


/* =============================================================
   V12 — SAFE [[...]] HOMEPAGE PREVIEW SYNTAX
   ============================================================= */

.feed-post__line a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}


/* =============================================================
   V13 — WIX-SCALE TYPOGRAPHY + RELIABLE 3-LINE PREVIEWS
   ============================================================= */

/*
 * Wix reference: preview copy is intentionally small, compact and blue.
 * These selectors are placed last so they override all earlier theme versions.
 */
.feed-post__text {
  margin-top: 6px !important;
  color: #0b27c9 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

.feed-post__title,
.feed-post__line {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.08 !important;
  font-weight: 600 !important;
  letter-spacing: inherit !important;
  min-height: 1.08em;
}

.feed-post__title {
  font-weight: 700 !important;
}

.feed-post__title a,
.feed-post__line a {
  color: inherit !important;
}

.feed-post__title a {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 1px !important;
}

/* Opened article: smaller/lighter like the original Wix post pages. */
.single-post__content {
  color: #0b27c9 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12.5px !important;
  line-height: 1.16 !important;
  font-weight: 500 !important;
  letter-spacing: -0.004em !important;
}

.single-post__content p {
  margin: 0 0 .95em !important;
}

.single-post__content li {
  margin-bottom: .25em;
}

/* Approved comments should be visibly present. */
.single-post__comments .comment-list,
.single-post__comments .comment {
  display: block !important;
}

@media (min-width: 700px) {
  .feed-post__text {
    font-size: 14px !important;
  }

  .single-post__content {
    font-size: 14px !important;
  }
}


/* =============================================================
   V14 — UNLIMITED [[...]] ROWS + WIX-REFERENCE TYPE REFINEMENT
   ============================================================= */

/*
 * Homepage preview:
 * keep the tracking we liked, but open the leading slightly so rows no longer
 * visually merge into one another.
 */
.feed-post__text {
  margin-top: 7px !important;
  color: #0b27c9 !important;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.20 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

.feed-post__title,
.feed-post__line {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.20 !important;
  letter-spacing: inherit !important;
  min-height: 1.20em !important;
}

.feed-post__title {
  font-weight: 700 !important;
}

.feed-post__line {
  font-weight: 500 !important;
}

/*
 * Opened-post body:
 * noticeably lighter than V13, with slightly more air between baselines.
 * This is much closer to the supplied Wix reference than the previous
 * semi-bold treatment.
 */
.single-post__content {
  color: #0b27c9 !important;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.19 !important;
  font-weight: 400 !important;
  letter-spacing: -0.003em !important;
}

.single-post__content p {
  margin: 0 0 .92em !important;
  font-weight: 400 !important;
}

.single-post__content strong,
.single-post__content b {
  font-weight: 600 !important;
}

.single-post__content li {
  margin-bottom: .22em !important;
  font-weight: 400 !important;
}

@media (min-width: 700px) {
  .feed-post__text {
    font-size: 14px !important;
    line-height: 1.20 !important;
  }

  .feed-post__title,
  .feed-post__line {
    line-height: 1.20 !important;
    min-height: 1.20em !important;
  }

  .single-post__content {
    font-size: 14px !important;
    line-height: 1.20 !important;
  }
}


/* =============================================================
   V15 — POST HEADER / MANUAL SINGLE TITLE / TYPE MATCH
   ============================================================= */

/* HOME ONLY:
   JAMES HOLLIDAY + handwriting + info + camera roll stay together. */

/* NON-HOME:
   no info, no camera roll, no handwriting — just the clean masthead. */
.site-header--plain {
  position: static !important;
  display: block !important;
  padding: clamp(24px, 5vw, 38px) 0 clamp(26px, 5.5vw, 44px) !important;
  background: #fff !important;
}

.plain-brand {
  display: block;
  width: min(56%, 480px);
}

.plain-brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* On posts, previous/next sit immediately beneath the clean masthead. */
.single-post-nav {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center !important;
  margin: 0 0 clamp(36px, 8vw, 64px) !important;
}

.single-post-nav__previous {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.single-post-nav__next {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.single-post-nav a {
  display: block !important;
  width: auto !important;
  max-width: none !important;
}

.single-post-nav img {
  display: block !important;
  width: auto !important;
  height: clamp(31px, 6.3vw, 48px) !important;
  max-width: 100% !important;
}

/* Do not auto-show the WordPress post title or teaser rows inside a post.
   If you want a title after an image, add a normal Heading/Paragraph block
   exactly where you want it in the WordPress editor. */
.single-post__heading,
.single-post__title,
.single-post__line {
  display: none !important;
}

/* HOMEPAGE LEADING:
   tracking stays the same, but baselines are opened further. */
.feed-post__text {
  margin-top: 8px !important;
  color: #0b27c9 !important;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.30 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

.feed-post__title,
.feed-post__line {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: 1.30 !important;
  letter-spacing: inherit !important;
  min-height: 1.30em !important;
}

.feed-post__title {
  font-weight: 700 !important;
  margin-bottom: 1px !important;
}

.feed-post__line {
  font-weight: 500 !important;
}

/* OPENED POST BODY:
   tuned back toward the Wix reference:
   small, dense, medium-weight blue sans serif rather than thin text. */
.single-post__content {
  color: #0a22c9 !important;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.17 !important;
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
}

.single-post__content p {
  margin: 0 0 .92em !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

.single-post__content h1,
.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  margin: 0 0 .22em !important;
  color: #0a22c9 !important;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  line-height: 1.08 !important;
  letter-spacing: -0.018em !important;
}

.single-post__content h1 {
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  font-size: 13px !important;
  font-weight: 600 !important;
}

.single-post__content strong,
.single-post__content b {
  font-weight: 700 !important;
}

.single-post__content a {
  color: inherit !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 1px !important;
}

/* Image/gallery spacing inside posts, closer to the reference. */
.single-post__content figure,
.single-post__content .wp-block-image,
.single-post__content .wp-block-gallery {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
}

@media (min-width: 700px) {
  .feed-post__text {
    font-size: 14px !important;
    line-height: 1.30 !important;
  }

  .feed-post__title,
  .feed-post__line {
    line-height: 1.30 !important;
    min-height: 1.30em !important;
  }

  .single-post__content {
    font-size: 14px !important;
    line-height: 1.17 !important;
  }

  .single-post__content h1 {
    font-size: 16px !important;
  }
}


/* =============================================================
   V16 — DREAMWEAVER TYPOGRAPHY MATCH + FORCED POST NAV
   Source style being matched:
   body { font-family: "Trebuchet MS", Tahoma, Myriad Pro, Arial; }
   .WIXTEXT { font-size: 12px; width: 360px; }
   #jameswudsbold { margin: 0; } with <strong> around linked titles.
   ============================================================= */

/* HOMEPAGE / FEED TEXT
   Match the Dreamweaver .homes / inherited body styling much more literally. */
.feed-post__text {
  margin-top: 7px !important;
  color: blue !important;
  font-family: "Trebuchet MS", Tahoma, "Myriad Pro", Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
}

.feed-post__title,
.feed-post__line {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: normal !important;
  letter-spacing: normal !important;
  min-height: 0 !important;
}

.feed-post__title {
  font-weight: 700 !important;
}

.feed-post__line {
  font-weight: 400 !important;
}

/* Slight breathing room between each actual row, without changing glyph tracking. */
.feed-post__line + .feed-post__line,
.feed-post__title + .feed-post__line {
  margin-top: 1px !important;
}

.feed-post__title a,
.feed-post__line a {
  color: blue !important;
}

.feed-post__title a {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 1px !important;
}

/* OPENED POST BODY
   This is now based directly on the original Dreamweaver WIXTEXT:
   Trebuchet MS stack, 12px, normal weight, browser-normal line-height. */
.single-post__content {
  color: blue !important;
  font-family: "Trebuchet MS", Tahoma, "Myriad Pro", Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
}

.single-post__content p,
.single-post__content li,
.single-post__content div {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
}

.single-post__content p {
  margin-top: 0 !important;
  margin-bottom: 1em !important;
}

/* If you manually add the post title after an image, use a Heading block.
   This mirrors #jameswudsbold + <strong><a> from the Dreamweaver pages. */
.single-post__content h1,
.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  margin: 0 !important;
  padding: 0 !important;
  color: blue !important;
  font-family: "Trebuchet MS", Tahoma, "Myriad Pro", Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: normal !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
}

.single-post__content h1 a,
.single-post__content h2 a,
.single-post__content h3 a,
.single-post__content h4 a,
.single-post__content a {
  color: blue !important;
}

/* When you want the manually-placed title to look exactly like a linked title,
   WordPress Heading 1 is blue, bold and underlined. */
.single-post__content h1 {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 1px !important;
}

/* POST HEADER / PREVIOUS + NEXT
   Force the row to be visible directly below the plain JAMES HOLLIDAY image. */
body.single .site-header--plain,
body.single-post .site-header--plain {
  padding-bottom: 22px !important;
}

body.single .single-post-nav,
body.single-post .single-post-nav {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100% !important;
  margin: 0 0 42px !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 20 !important;
}

body.single .single-post-nav__previous,
body.single-post .single-post-nav__previous {
  display: flex !important;
  justify-content: flex-start !important;
  min-height: 36px !important;
}

body.single .single-post-nav__next,
body.single-post .single-post-nav__next {
  display: flex !important;
  justify-content: flex-end !important;
  min-height: 36px !important;
}

body.single .single-post-nav a,
body.single-post .single-post-nav a {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
}

body.single .single-post-nav img,
body.single-post .single-post-nav img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: 38px !important;
  max-width: 180px !important;
  object-fit: contain !important;
}

/* Keep your image-based bold controls unchanged. */


/* =============================================================
   V17 — EXACT NAV ARTWORK + HOMEPAGE DRAFT PREVIEW
   ============================================================= */

/* Previous / next must sit directly under JAMES HOLLIDAY on post pages. */
body.single-post .single-post-nav {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 0 42px !important;
  padding: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.single-post .single-post-nav__previous {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

body.single-post .single-post-nav__next {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

body.single-post .single-post-nav a {
  display: block !important;
  width: auto !important;
  height: auto !important;
}

body.single-post .single-post-nav img {
  display: block !important;
  width: auto !important;
  height: 39px !important;
  max-width: 44vw !important;
  object-fit: contain !important;
}

/* Exact uploaded BACK artwork. */
.single-post__back {
  margin: 34px 0 0 !important;
}

.single-post__back a {
  display: block !important;
  width: auto !important;
  max-width: none !important;
}

.single-post__back img {
  display: block !important;
  width: auto !important;
  height: 37px !important;
  max-width: 40vw !important;
}

/* Only visible during an authenticated homepage draft preview. */
.jmb-preview-banner {
  margin: 0 0 12px;
  padding: 7px 9px;
  border: 1px solid #bbb;
  color: #555;
  background: #fafafa;
  font-family: "Trebuchet MS", Tahoma, "Myriad Pro", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.2;
}

@media (max-width: 390px) {
  body.single-post .single-post-nav img {
    height: 34px !important;
  }

  .single-post__back img {
    height: 33px !important;
  }
}


/* =============================================================
   V18 — CIRCULAR POST NAV + TITLE GAP FIX + BACK ALIGNMENT
   ============================================================= */

/* Both nav graphics are now tightly cropped and should always show if
   there is more than one published post. */
body.single-post .single-post-nav {
  margin-bottom: 44px !important;
}

body.single-post .single-post-nav img {
  height: 36px !important;
  width: auto !important;
  max-width: 43vw !important;
}

/* Remove stray empty editor blocks that can create fake spacing. */
.single-post__content p:empty,
.single-post__content .wp-block-paragraph:empty {
  display: none !important;
}

/* Manual article title + following description should sit as one compact group. */
.single-post__content h1 + p,
.single-post__content h2 + p,
.single-post__content h3 + p,
.single-post__content h4 + p {
  margin-top: 0 !important;
}

/* Keep the title itself tight to what follows, like the Wix reference. */
.single-post__content h1,
.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  margin-bottom: 0 !important;
}

/* Back graphic: tightly cropped file + same left edge as the article body. */
.single-post__back {
  margin: 34px 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.single-post__back a {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-post__back img {
  display: block !important;
  height: 34px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 36vw !important;
}

@media (max-width: 390px) {
  body.single-post .single-post-nav img {
    height: 33px !important;
  }

  .single-post__back img {
    height: 31px !important;
  }
}


/* =============================================================
   V19 — CROSS-DEVICE PRIVATE PREVIEW
   ============================================================= */

.jmb-preview-banner--post {
  margin-bottom: 18px;
}

.jmb-preview-comment-note {
  margin: 0;
  color: #777;
  font-family: "Trebuchet MS", Tahoma, "Myriad Pro", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.3;
}


/* =============================================================
   V20 — LIVE PREVIEW FRESHNESS + SMALL WIX-SCALE BACK TO TOP
   ============================================================= */

/*
 * Match the Wix reference: the handwritten/back-to-top artwork is a small
 * left-aligned detail, not a full-width footer graphic.
 */
.back-to-top-art {
  display: block !important;
  width: min(44vw, 178px) !important;
  max-width: 178px !important;
  margin: 62px 0 36px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.back-to-top-art[hidden] {
  display: none !important;
}

.back-to-top-art img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 390px) {
  .back-to-top-art {
    width: min(43vw, 164px) !important;
    max-width: 164px !important;
    margin-top: 54px !important;
  }
}


/* =============================================================
   V21 — CLEAN POST END + SMALL NAV CONTROLS
   ============================================================= */

/* Hide any legacy "that's everything" output if cached HTML still contains it. */
#home-feed-end,
.post-continuation-feed,
.post-continuation-feed .feed-status {
  display: none !important;
}

/*
 * Match Previous / Next / Back to the small visual scale of the
 * successfully reduced Back To Top artwork.
 */
body.single-post .single-post-nav {
  margin: 0 0 34px !important;
}

body.single-post .single-post-nav img,
body.single .single-post-nav img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
}

/* Previous is naturally wider than Next, so constrain by width rather than height. */
body.single-post .single-post-nav__previous img,
body.single .single-post-nav__previous img {
  width: min(30vw, 118px) !important;
  max-width: 118px !important;
}

body.single-post .single-post-nav__next img,
body.single .single-post-nav__next img {
  width: min(17vw, 68px) !important;
  max-width: 68px !important;
}

/* Back is also a small typographic detail, aligned with article copy. */
.single-post__back {
  margin: 46px 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

.single-post__back a {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-post__back img {
  display: block !important;
  width: min(18vw, 72px) !important;
  max-width: 72px !important;
  height: auto !important;
  margin: 0 !important;
}

/* Comments now sit before Back; keep a clear but restrained gap. */
.single-post__comments {
  margin-top: 54px !important;
  margin-bottom: 0 !important;
}

@media (max-width: 390px) {
  body.single-post .single-post-nav__previous img,
  body.single .single-post-nav__previous img {
    width: min(29vw, 108px) !important;
  }

  body.single-post .single-post-nav__next img,
  body.single .single-post-nav__next img {
    width: min(16vw, 62px) !important;
  }

  .single-post__back img {
    width: min(17vw, 66px) !important;
  }
}


/* =============================================================
   V22 — RETURN TO SAME HOMEPAGE POINT + TINIER POST NAV
   ============================================================= */

/*
 * Previous / Next / Back are intentionally a little SMALLER than the already
 * successful Back To Top detail.
 */
body.single-post .single-post-nav__previous img,
body.single .single-post-nav__previous img {
  width: min(24vw, 92px) !important;
  max-width: 92px !important;
  height: auto !important;
}

body.single-post .single-post-nav__next img,
body.single .single-post-nav__next img {
  width: min(13vw, 50px) !important;
  max-width: 50px !important;
  height: auto !important;
}

.single-post__back img {
  width: min(13vw, 50px) !important;
  max-width: 50px !important;
  height: auto !important;
}

@media (max-width: 390px) {
  body.single-post .single-post-nav__previous img,
  body.single .single-post-nav__previous img {
    width: min(23vw, 86px) !important;
  }

  body.single-post .single-post-nav__next img,
  body.single .single-post-nav__next img {
    width: min(12vw, 46px) !important;
  }

  .single-post__back img {
    width: min(12vw, 46px) !important;
  }
}


/* =============================================================
   V23 — MANUAL TITLE / METADATA SPACING FIX
   ============================================================= */

/*
 * WordPress gives Heading/Paragraph blocks their own default margins.
 * For the manually placed title + info group, make the relationship match
 * the compact homepage treatment.
 */
.single-post__content h1,
.single-post__content h2,
.single-post__content h3,
.single-post__content h4 {
  margin-top: 0 !important;
  margin-bottom: 2px !important;
}

/* First paragraph directly under a manual title: no extra top gap. */
.single-post__content h1 + p,
.single-post__content h2 + p,
.single-post__content h3 + p,
.single-post__content h4 + p {
  margin-top: 0 !important;
}

/*
 * If your 2–4 info lines are in one paragraph using Shift+Return,
 * keep those lines compact and even.
 */
.single-post__content h1 + p,
.single-post__content h2 + p {
  line-height: 1.18 !important;
}

/* Empty editor spacer paragraphs should never create visual holes. */
.single-post__content p:empty,
.single-post__content p > br:only-child {
  margin: 0 !important;
}

/*
 * Keep a deliberate reading gap only when moving from the metadata paragraph
 * into the actual prose.
 */
.single-post__content h1 + p + p,
.single-post__content h2 + p + p {
  margin-top: 1.05em !important;
}


/* =============================================================
   V24 — EDITOR SPACING = PUBLISHED SPACING
   =============================================================
   Deliberate empty paragraph blocks are no longer deleted. Each blank
   paragraph in Gutenberg produces one visible blank line in the post.
*/
.single-post__content p.jmb-intentional-space {
  display: block !important;
  min-height: 1.19em !important;
  height: 1.19em !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 700px) {
  .single-post__content p.jmb-intentional-space {
    min-height: 1.20em !important;
    height: 1.20em !important;
  }
}


/* =============================================================
   V26 — SWIPE BETWEEN POSTS
   ============================================================= */

/*
 * No visible swipe UI is added; the page stays exactly as designed.
 * touch-action keeps ordinary vertical reading natural.
 */
body.single-post .single-post,
body.single-post .single-post__content {
  touch-action: pan-y pinch-zoom;
}


/* =============================================================
   V27 — SHARED HEADER + REUSABLE POST TITLE / COMMENT LINK
   ============================================================= */

/*
 * [post-title] deliberately matches the manual linked-title treatment without
 * needing the title to be typed again in every article.
 */
.single-post__content .jmb-inline-post-title {
  margin: 0 0 2px !important;
  padding: 0 !important;
  color: #001bd1 !important;
  font-family: "Trebuchet MS", Tahoma, "Myriad Pro", Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: normal !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

/* [leave-comment] is just an ordinary editorial hyperlink in the article. */
.single-post__content .jmb-leave-comment-link {
  color: #001bd1 !important;
  font-family: "Trebuchet MS", Tahoma, "Myriad Pro", Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: normal !important;
  font-weight: 400 !important;
  text-decoration: underline !important;
  cursor: pointer;
}

/* The full form/comments are absent from the normal post view until requested. */
.jmb-comments-panel[hidden] {
  display: none !important;
}

.jmb-comments-panel.is-open {
  display: block !important;
  margin-top: 30px !important;
  scroll-margin-top: 20px;
}


/* =============================================================
   V28 — TITLE LINKS TO A DEDICATED COMMENTS PAGE
   ============================================================= */

.single-post__content .jmb-inline-post-title__link,
.single-post__content .jmb-inline-post-title__link:visited {
  color: #001bd1 !important;
  font: inherit !important;
  font-weight: inherit !important;
  text-decoration: underline !important;
}

/* Comments now live on their own compact page. */
.jmb-comments-page {
  width: 100%;
}

.jmb-comments-page__inner {
  width: min(360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 42px;
  color: #001bd1;
  font-family: "Trebuchet MS", Tahoma, "Myriad Pro", Arial, sans-serif;
  font-size: 12px;
  line-height: normal;
  font-weight: 400;
}

.jmb-comments-page__title {
  margin: 0 0 24px;
}

.jmb-comments-page__title a,
.jmb-comments-page__title a:visited {
  color: #001bd1;
  font-weight: 700;
  text-decoration: underline;
}

.jmb-comments-page__comments {
  margin: 0;
}

.jmb-comments-page__back {
  margin: 28px 0 0;
}

.jmb-comments-page__back a,
.jmb-comments-page__back a:visited {
  color: #001bd1;
  text-decoration: underline;
}


/* V29: dedicated comments page should never inherit a hidden-content state. */
.jmb-comments-page,
.jmb-comments-page__inner,
.jmb-comments-page__comments {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* =============================================================
   V31 — COMMENT AVATARS
   ============================================================= */

.jmb-comment__body {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.jmb-comment__avatar {
  flex: 0 0 32px;
}

.jmb-comment__avatar img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.jmb-comment__content {
  min-width: 0;
  flex: 1 1 auto;
}

.jmb-comment__meta {
  margin-top: 0 !important;
}
