/*
 * allstatesexpressinc.com - single blog posts only.
 * Every rule starts with body.single-post, so no other page is touched.
 * Tokens come from /style-guide/ (Exo, #FFCA00 yellow, #171717 ink, #404041 panel).
 * Header is position:absolute (90px >=1369, 82px 681-1368, 154px <=680, 145px at 390),
 * so the post wrapper (main#primary) carries the clearance as padding-top.
 */

/* ---------- wrapper: column + clearance under the header ---------- */
body.single-post main#primary {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 884px;                 /* 820px text + 2 x 32px */
  margin: 0 auto;
  padding: 176px 32px 120px;
  font-family: "Exo400", sans-serif;
  color: #fff;
}
@media (max-width: 1368px) {
  body.single-post main#primary { padding-top: 160px; }
}
@media (max-width: 680px) {
  body.single-post main#primary { padding: 212px 24px 88px; }
}

/* faint truck dot-grid watermark, same asset and opacity as the site's text pages */
body.single-post main#primary::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 100vw; height: 100%;
  transform: translateX(-50%);
  background: url("/wp-content/themes/allstatesexpressinc/assets/images/svg/banner-bg.svg") repeat-x top center;
  opacity: .1;
  pointer-events: none;
  z-index: -1;
}

body.single-post main#primary article,
body.single-post main#primary .post-navigation {
  font-family: "Exo400", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #fff;
  overflow-wrap: break-word;
}
@media (max-width: 680px) {
  body.single-post main#primary article,
  body.single-post main#primary .post-navigation { font-size: 17px; }
}

/* ---------- entry header: title + meta ---------- */
body.single-post main#primary .entry-header { margin: 0 0 40px; }

body.single-post main#primary .entry-title {
  margin: 0;
  padding: 0 .12em .12em 0;         /* italic overhang + descenders stay visible */
  font-family: "Exo700Italic", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #FFCA00;
  text-wrap: balance;
}
@media (max-width: 1368px) {
  body.single-post main#primary .entry-title { font-size: 38px; }
}
@media (max-width: 680px) {
  body.single-post main#primary .entry-title { font-size: 26px; line-height: 1.2; }
}

body.single-post main#primary .entry-meta {
  margin: 20px 0 0;
  font-family: "Exo400", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #B7B6B8;
}
body.single-post main#primary .entry-meta a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
body.single-post main#primary .entry-meta a:hover { color: #FFCA00; }
body.single-post main#primary .entry-meta .byline { margin-left: .6em; }

/* ---------- featured image ---------- */
body.single-post main#primary .post-thumbnail { margin: 0 0 48px; }
body.single-post main#primary .post-thumbnail img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;             /* tall source photos are cropped, not stretched */
  object-fit: cover;
  object-position: center 38%;
  border-radius: 30px;
}
@media (max-width: 680px) {
  body.single-post main#primary .post-thumbnail { margin-bottom: 36px; }
  body.single-post main#primary .post-thumbnail img { border-radius: 20px; aspect-ratio: 4 / 3; }
}

/* ---------- content typography ---------- */
body.single-post main#primary .entry-content > :first-child { margin-top: 0; }

body.single-post main#primary .entry-content p {
  margin: 0 0 1.35em;
  font-family: "Exo400", sans-serif;
  font-size: 1em;
  line-height: 1.7;
  letter-spacing: 0;
  color: #E9E9E9;
  text-wrap: pretty;
}
/* lead paragraph */
body.single-post main#primary .entry-content > p:first-child {
  font-size: 1.16em;
  line-height: 1.6;
  color: #fff;
}

body.single-post main#primary .entry-content h2,
body.single-post main#primary .entry-content h3,
body.single-post main#primary .entry-content h4 {
  font-family: "Exo700Italic", sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  color: #fff;
  padding: 0 .12em .12em 0;
  text-wrap: balance;
}
body.single-post main#primary .entry-content h2 {
  margin: 2.1em 0 .7em;
  font-size: 1.7em;                 /* 30.6px */
  line-height: 1.2;
  text-transform: uppercase;
}
body.single-post main#primary .entry-content h3 {
  margin: 2em 0 .6em;
  font-size: 1.28em;
  line-height: 1.3;
  color: #FFCA00;
}
body.single-post main#primary .entry-content h4 {
  margin: 1.8em 0 .5em;
  font-size: 1.05em;
  line-height: 1.4;
  text-transform: uppercase;
}
@media (max-width: 680px) {
  body.single-post main#primary .entry-content h2 { font-size: 1.5em; margin-top: 1.9em; }
  body.single-post main#primary .entry-content > p:first-child { font-size: 1.08em; }
  body.single-post main#primary .entry-content h3 { font-size: 1.2em; }
}

body.single-post main#primary .entry-content strong,
body.single-post main#primary .entry-content b {
  font-family: "Exo700Bold", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #fff;
}
body.single-post main#primary .entry-content em,
body.single-post main#primary .entry-content i { font-style: italic; }

body.single-post main#primary .entry-content a {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  color: #FFCA00;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s ease, text-decoration-color .2s ease;
  overflow-wrap: anywhere;
}
body.single-post main#primary .entry-content a:hover {
  color: #FFB905;
  text-decoration-thickness: 2px;
}

/* lists: real markers, indent, yellow marker */
body.single-post main#primary .entry-content ul,
body.single-post main#primary .entry-content ol {
  margin: 0 0 1.5em;
  padding: 0 0 0 1.5em;
  color: #E9E9E9;
}
body.single-post main#primary .entry-content ul { list-style: disc outside; }
body.single-post main#primary .entry-content ol { list-style: decimal outside; }
body.single-post main#primary .entry-content li {
  display: list-item;
  list-style: inherit;
  margin: 0 0 .65em;
  padding-left: .3em;
  line-height: 1.65;
}
body.single-post main#primary .entry-content li::marker { color: #FFCA00; font-family: "Exo700Bold", sans-serif; }
body.single-post main#primary .entry-content li > ul,
body.single-post main#primary .entry-content li > ol { margin: .65em 0 0; }

/* quote: charcoal panel with the site's one-corner blob radius */
body.single-post main#primary .entry-content blockquote {
  margin: 2em 0;
  padding: 28px 32px 28px 32px;
  background: #404041;
  border: 0;
  border-radius: 0 64px 0 0;
  font-family: "Exo500Italic", "Exo400", sans-serif;
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.6;
  color: #fff;
}
body.single-post main#primary .entry-content blockquote p { margin: 0 0 .8em; color: inherit; }
body.single-post main#primary .entry-content blockquote > :last-child { margin-bottom: 0; }
body.single-post main#primary .entry-content cite { font-style: normal; font-size: .85em; color: #B7B6B8; }
@media (max-width: 680px) {
  body.single-post main#primary .entry-content blockquote { padding: 22px 22px; border-radius: 0 40px 0 0; }
}

/* tables scroll inside themselves, never the page */
body.single-post main#primary .entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 2em 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: .9em;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}
body.single-post main#primary .entry-content th,
body.single-post main#primary .entry-content td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #E9E9E9;
}
body.single-post main#primary .entry-content thead th,
body.single-post main#primary .entry-content tr:first-child th {
  background: #404041;
  font-family: "Exo600", sans-serif;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* images and embeds inside the text */
body.single-post main#primary .entry-content img,
body.single-post main#primary .entry-content video,
body.single-post main#primary .entry-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
}
body.single-post main#primary .entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
body.single-post main#primary .entry-content figure { margin: 2em 0; max-width: 100%; }
body.single-post main#primary .entry-content figcaption { margin-top: .7em; font-size: .8em; line-height: 1.5; color: #B7B6B8; }
body.single-post main#primary .entry-content hr {
  height: 1px; margin: 2.5em 0; border: 0; background: rgba(255, 255, 255, .16);
}
body.single-post main#primary .entry-content pre,
body.single-post main#primary .entry-content code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .88em;
  color: #fff;
  background: #2a2a2b;
  border-radius: 6px;
}
body.single-post main#primary .entry-content code { padding: .1em .4em; }
body.single-post main#primary .entry-content pre { margin: 1.6em 0; padding: 16px 20px; overflow-x: auto; }
body.single-post main#primary .entry-content pre code { padding: 0; background: none; }

/* ---------- entry footer (category) ---------- */
body.single-post main#primary .entry-footer {
  margin: 56px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px;
  line-height: 1.5;
  color: #B7B6B8;
}
body.single-post main#primary .entry-footer a {
  color: #fff;
  text-decoration: none;
  transition: color .2s ease;
}
body.single-post main#primary .entry-footer a:hover { color: #FFCA00; }

/* ---------- previous / next ---------- */
body.single-post main#primary .post-navigation { margin: 48px 0 0; }
body.single-post main#primary .post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
body.single-post main#primary .post-navigation .nav-previous { grid-column: 1; }
body.single-post main#primary .post-navigation .nav-next { grid-column: 2; }
body.single-post main#primary .post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  box-sizing: border-box;
  padding: 24px 28px 26px;
  background: #404041;
  border-radius: 0 48px 0 0;
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease;
}
body.single-post main#primary .post-navigation .nav-next a { text-align: right; align-items: flex-end; border-radius: 48px 0 0 0; }
body.single-post main#primary .post-navigation a:hover { background: #4a4a4b; }
body.single-post main#primary .post-navigation .nav-subtitle {
  font-family: "Exo600", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FFCA00;
}
body.single-post main#primary .post-navigation .nav-title {
  font-family: "Exo400", sans-serif;
  font-size: 17px;
  line-height: 1.4;
  color: #fff;
}
body.single-post main#primary .post-navigation a:hover .nav-title { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 680px) {
  body.single-post main#primary .post-navigation .nav-links { grid-template-columns: 1fr; gap: 14px; }
  body.single-post main#primary .post-navigation .nav-previous,
  body.single-post main#primary .post-navigation .nav-next { grid-column: 1; }
  body.single-post main#primary .post-navigation a { padding: 20px 22px 22px; }
  body.single-post main#primary .post-navigation .nav-next a { text-align: left; align-items: flex-start; border-radius: 0 48px 0 0; }
}
body.single-post main#primary .post-navigation .screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}

/* ---------- comments: closed on posts ---------- */
body.single-post #comments,
body.single-post .comments-area,
body.single-post .comment-respond { display: none !important; }

/* No byline: posts carry the publishing account name ("author", agency name), not a person (24.11.2026). */
body.single-post .entry-meta .byline { display: none; }
