/* SYZ Rod Ends article body components.
   These rules apply only inside .syz-article-content.
   Keep article shell, hero, sidebar, and footer styles in the post template CSS. */

.syz-article-content {
  --syz-article-ink: var(--ink, #2d3e50);
  --syz-article-mid: var(--mid, #607080);
  --syz-article-slate: var(--slate, #1c2b3a);
  --syz-article-steel: var(--steel, #1a6fa8);
  --syz-article-steel-light: var(--steel-lt, #e8f2f9);
  --syz-article-red: var(--red, #c0392b);
  --syz-article-line: var(--line, #d0dce8);
  --syz-article-bg: var(--bg-alt, #f4f7fa);
}

/* Short inline emphasis for a phrase or sentence fragment. */
.syz-article-content .syz-article-highlight {
  padding: 0 .12em;
  border-radius: 2px;
  color: var(--syz-article-slate);
  background: var(--syz-article-steel-light);
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Explicitly styled bullet list. Plain article lists keep the template defaults. */
.syz-article-content ul.syz-article-list {
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.syz-article-content .syz-article-list > li {
  position: relative;
  margin: 0 0 .62rem;
  padding: 0 0 0 1.35rem;
  color: var(--syz-article-ink);
  line-height: 1.75;
}

.syz-article-content .syz-article-list > li:last-child {
  margin-bottom: 0;
}

.syz-article-content .syz-article-list > li::before {
  position: absolute;
  top: .68em;
  left: .18rem;
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: var(--syz-article-steel);
  content: "";
}

/* One restrained callout component with key, note, and caution variants. */
.syz-article-content .syz-article-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--syz-article-steel);
  border-radius: 0 4px 4px 0;
  background: var(--syz-article-bg);
}

.syz-article-content .syz-article-callout__label {
  margin: 0 0 .4rem;
  color: var(--syz-article-steel);
  font-family: var(--f-head, "Barlow Condensed", system-ui, sans-serif);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.syz-article-content .syz-article-callout__body {
  margin: 0;
  color: var(--syz-article-ink);
  line-height: 1.75;
}

.syz-article-content .syz-article-callout__body + .syz-article-callout__body {
  margin-top: .65rem;
}

.syz-article-content .syz-article-callout--key {
  border-left-color: var(--syz-article-steel);
  background: var(--syz-article-steel-light);
}

.syz-article-content .syz-article-callout--note {
  border-left-color: var(--syz-article-slate);
  background: var(--syz-article-bg);
}

.syz-article-content .syz-article-callout--note .syz-article-callout__label {
  color: var(--syz-article-slate);
}

.syz-article-content .syz-article-callout--caution {
  border-left-color: var(--syz-article-red);
  background: rgba(192, 57, 43, .055);
}

.syz-article-content .syz-article-callout--caution .syz-article-callout__label {
  color: var(--syz-article-red);
}

/* Numbered process or selection steps. */
.syz-article-content ol.syz-article-steps {
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: syz-article-step;
}

.syz-article-content .syz-article-steps > li {
  position: relative;
  min-height: 2rem;
  margin: 0;
  padding: .05rem 0 1rem 2.9rem;
  color: var(--syz-article-ink);
  line-height: 1.75;
  counter-increment: syz-article-step;
}

.syz-article-content .syz-article-steps > li + li {
  padding-top: .85rem;
  border-top: 1px solid var(--syz-article-line);
}

.syz-article-content .syz-article-steps > li::before {
  position: absolute;
  top: .05rem;
  left: 0;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid var(--syz-article-line);
  border-radius: 3px;
  color: var(--syz-article-steel);
  background: #fff;
  content: counter(syz-article-step, decimal-leading-zero);
  font-family: var(--f-head, "Barlow Condensed", system-ui, sans-serif);
  font-size: .9rem;
  font-weight: 700;
}

.syz-article-content .syz-article-steps > li + li::before {
  top: .85rem;
}

@media (max-width: 767px) {
  .syz-article-content .syz-article-callout {
    padding: .9rem 1rem;
  }

  .syz-article-content .syz-article-steps > li {
    padding-left: 2.65rem;
  }
}

/* Shared table treatment for converted article bodies. */
.syz-article-content .syz-article-table-wrap {
  width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--syz-article-line);
  border-radius: 4px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.syz-article-content table.syz-article-table {
  width: 100%;
  min-width: 680px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: .875rem;
  line-height: 1.5;
}

.syz-article-content table.syz-article-table th,
.syz-article-content table.syz-article-table td {
  padding: 11px 14px;
  border: 0 !important;
  border-bottom: 1px solid var(--syz-article-line) !important;
  color: var(--syz-article-ink);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.syz-article-content table.syz-article-table thead th {
  background: var(--syz-article-slate);
  color: #fff;
  font-family: var(--f-head, "Barlow Condensed", system-ui, sans-serif);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.syz-article-content table.syz-article-table tbody th:first-child,
.syz-article-content table.syz-article-table tbody td:first-child {
  min-width: 135px;
  background: var(--syz-article-bg);
  color: var(--syz-article-mid);
  font-weight: 600;
}

.syz-article-content table.syz-article-table tbody th:first-child {
  font-family: var(--f-body, system-ui, sans-serif);
  font-size: .82rem;
  letter-spacing: normal;
  text-transform: none;
}

.syz-article-content table.syz-article-table tbody tr:nth-child(even) td:not(:first-child),
.syz-article-content table.syz-article-table tbody tr:nth-child(even) th:not(:first-child) {
  background: #fafcff;
}

.syz-article-content table.syz-article-table tbody tr:last-child > * {
  border-bottom: 0 !important;
}

.syz-article-content .syz-article-callout__body > p {
  margin: 0;
  color: inherit;
  line-height: 1.75;
}

.syz-article-content .syz-article-callout__body > p + p {
  margin-top: .65rem;
}

.syz-article-content .syz-article-callout__body > ul,
.syz-article-content .syz-article-callout__body > ol {
  margin: .7rem 0 0;
}

/* Keep native list markers inset from the callout border. Bespoke lists add
   their own item spacing and should retain their existing zero list padding. */
.syz-article-content .syz-article-callout__body ul:not(.syz-article-list):not(.syz-article-steps),
.syz-article-content .syz-article-callout__body ol:not(.syz-article-list):not(.syz-article-steps) {
  padding-inline-start: 1.25rem;
}

.syz-article-content .syz-article-callout__body > :first-child {
  margin-top: 0;
}

.syz-article-content .syz-article-callout__body > :last-child {
  margin-bottom: 0;
}

/* Responsive YouTube embeds retained from Elementor video widgets. */
.syz-article-content .syz-article-video {
  margin: 1.5rem 0;
}

.syz-article-content .syz-article-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #111820;
}

.syz-article-content .syz-article-video__frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Street-legal post: keep the migrated color callouts and converted TablePress
   table readable inside the existing Rod Ends single-post template. */
body.postid-72152 .syz-single-post.is-live .prose .callout {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
}

body.postid-72152 .syz-single-post.is-live .prose .callout.tip {
  border-color: #c8dff0;
  background: #e8f2f9;
  color: #2d3e50;
}

body.postid-72152 .syz-single-post.is-live .prose .callout.warning {
  border-color: #f0d980;
  background: #fef9ec;
  color: #2d3e50;
}

body.postid-72152 .syz-single-post.is-live .prose .callout-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

body.postid-72152 .syz-single-post.is-live .prose .callout-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

body.postid-72152 .syz-single-post.is-live .prose .callout-body {
  min-width: 0;
  flex: 1 1 auto;
}

body.postid-72152 .syz-single-post.is-live .prose .callout-body h4 {
  margin: 0 0 5px;
  color: #1a6fa8;
  font-family: var(--f-head, "Barlow Condensed", system-ui, sans-serif);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: uppercase;
}

body.postid-72152 .syz-single-post.is-live .prose .callout.warning .callout-body h4,
body.postid-72152 .syz-single-post.is-live .prose .callout.warning .callout-icon {
  color: #c9960a;
}

body.postid-72152 .syz-single-post.is-live .prose .callout-body p {
  margin: 0;
  color: inherit;
  font-size: .9rem;
  line-height: 1.7;
}

body.postid-72152 .syz-single-post.is-live .prose .comparison-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid #d0dce8;
  border-radius: 4px;
}

body.postid-72152 .syz-single-post.is-live .prose table.comparison-table {
  width: 100%;
  min-width: 640px;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  font-size: .875rem;
}

body.postid-72152 .syz-single-post.is-live .prose table.comparison-table th,
body.postid-72152 .syz-single-post.is-live .prose table.comparison-table td {
  padding: 11px 16px;
  border: 0 !important;
  border-bottom: 1px solid #e8edf2 !important;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

body.postid-72152 .syz-single-post.is-live .prose table.comparison-table thead th {
  padding: 13px 16px;
  background: #1c2b3a;
  color: rgba(255, 255, 255, .9);
  font-family: var(--f-head, "Barlow Condensed", system-ui, sans-serif);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.postid-72152 .syz-single-post.is-live .prose table.comparison-table tbody th:first-child,
body.postid-72152 .syz-single-post.is-live .prose table.comparison-table tbody td:first-child {
  background: #f4f7fa;
  color: #607080;
  font-size: .82rem;
  font-weight: 600;
}

body.postid-72152 .syz-single-post.is-live .prose table.comparison-table tbody tr:last-child th,
body.postid-72152 .syz-single-post.is-live .prose table.comparison-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

@media (max-width: 767px) {
  body.postid-72152 .syz-single-post.is-live .prose .callout {
    padding: 16px;
  }
}

/* Responsive image galleries converted from Elementor gallery widgets. */
.syz-article-content .syz-article-gallery,
.syz-single-post.is-live .prose .syz-article-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.syz-article-content .syz-article-gallery figure,
.syz-single-post.is-live .prose .syz-article-gallery figure {
  min-width: 0;
  margin: 0;
}

.syz-article-content .syz-article-gallery a,
.syz-single-post.is-live .prose .syz-article-gallery a {
  display: block;
}

.syz-article-content .syz-article-gallery img,
.syz-single-post.is-live .prose .syz-article-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}

.syz-article-content .syz-article-gallery figcaption,
.syz-single-post.is-live .prose .syz-article-gallery figcaption {
  margin-top: .5rem;
  color: var(--syz-article-mid);
  font-size: .88rem;
  line-height: 1.55;
}

/* Preserve original two-column Elementor image rows after content conversion. */
.syz-article-content .syz-article-gallery--two,
.syz-single-post.is-live .prose .syz-article-gallery--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.syz-article-content figure.syz-article-media {
  margin: 1.4rem 0;
}

.syz-article-content figure.syz-article-media > img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
  box-shadow: none;
}

.syz-article-content figure.syz-article-media figcaption {
  margin-top: .5rem;
  color: var(--syz-article-mid);
  font-size: .88rem;
  line-height: 1.55;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .syz-article-content .syz-article-gallery,
  .syz-single-post.is-live .prose .syz-article-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .syz-article-content .syz-article-gallery,
  .syz-single-post.is-live .prose .syz-article-gallery {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .syz-article-content .syz-article-gallery--two,
  .syz-single-post.is-live .prose .syz-article-gallery--two {
    grid-template-columns: 1fr;
  }
}
