/* ==========================================================================
   Peddlers 30A — Blog (landing grid + article template)
   ========================================================================== */

.page-blog .hero__lead {
  color: var(--s1);
}

/* The base .hero class carries a min-height: 45rem floor -- both blog
   heroes are meant to be shorter than the sitewide default, so this
   overrides that floor to let their own inline height actually apply. */
.page-blog .hero--rentals {
  min-height: 0;
}

/* --------------------------------------------------------------------------
   Landing page — post grid
   -------------------------------------------------------------------------- */

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.blog-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--s1);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--p1);
  color: var(--s1);
  font-size: 0.6875rem;
  letter-spacing: 0.0625rem;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

.blog-card__body {
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--ink);
}

.blog-card:hover .blog-card__title {
  color: var(--p1);
}

.blog-card__excerpt {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.blog-card__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8125rem;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  color: var(--p2);
}

.blog-card__meta span + span::before {
  content: "\2022";
  margin-right: 0.75rem;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Article template
   -------------------------------------------------------------------------- */

.article {
  padding-top: 1.5rem;
  padding-bottom: var(--sp-11);
}

.article__title-page {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.375rem);
  line-height: 1.15;
  color: var(--ink);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  color: var(--white);
  background: var(--p1);
  padding: 1rem var(--gutter);
  margin: 0 0 2rem;
  position: sticky;
  top: var(--nav-h);
  z-index: 45;
}

/* The photo renders at its own natural aspect ratio, full column width,
   with nothing cropped off -- this is the point of the section, so no
   object-fit/cover and no fixed height. */
.article__featured-image {
  margin: 0 0 1.5rem;
}

.article__featured-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article__meta a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Three-column layout: table of contents, article body, CTA + inquiry
   form -- table stakes on a long-form guide so a reader can jump straight
   to the section they need instead of scrolling past all 9. */
.article-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) 18rem;
  gap: 3rem;
  align-items: start;
}

.article-toc,
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 5.75rem);
}

.article-toc__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--s1);
  max-height: calc(100vh - 10rem);
  overflow-y: auto;
  counter-reset: toc;
}

.article-toc__list li {
  counter-increment: toc;
}

.article-toc__list a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text);
}

.article-toc__list a::before {
  content: counter(toc) ". ";
}

.article-toc__list a:hover {
  color: var(--p1);
}

.article-toc__list a.is-active {
  border-left-color: var(--p1);
  color: var(--p1);
  font-weight: 500;
}

.article-sidebar__cta {
  background: var(--p1);
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

.article-sidebar__cta h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.article-sidebar__cta h3 em {
  font-style: normal;
  color: var(--s3);
}

.article-sidebar__cta .btn {
  width: 100%;
}

.article-sidebar__form {
  background: var(--s1);
  padding: 1.75rem;
}

.article-sidebar__form h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.article-sidebar__form .inquiry-form {
  gap: 1rem;
}

.article-sidebar__form .inquiry-form__field input,
.article-sidebar__form .inquiry-form__field textarea {
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  background: var(--white);
}

.article-sidebar__form .inquiry-form__field textarea {
  height: 5rem;
}

.article-sidebar__form .inquiry-form__submit {
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  border-color: var(--p1);
  color: var(--p1);
}

.article-sidebar__form .inquiry-form__submit:hover {
  background: var(--p1);
  color: var(--white);
}

.article__meta span + span::before {
  content: "\2022";
  margin-right: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.article__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.article__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 2.5rem;
}

.article__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--text);
}

.article__body h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 2rem;
  color: var(--ink);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article__body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article__body p {
  margin-bottom: 1.25rem;
}

.article__body ul,
.article__body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article__body ul {
  list-style: disc;
}

.article__body ol {
  list-style: decimal;
}

.article__body li {
  margin-bottom: 0.5rem;
}

.article__body li strong {
  color: var(--ink);
}

.article__body a {
  color: var(--p1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Direct Answer / Quick Takeaways callout boxes */
.article__callout {
  background: var(--cream);
  border-left: 4px solid var(--p1);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--text);
}

.article__callout-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: var(--p1);
  margin-bottom: 0.625rem;
}

.article__callout p {
  margin-bottom: 0;
}

.article__callout ul {
  margin-bottom: 0;
}

/* Data tables (community reference, drive times, ride times, comparisons) */
.article__table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article-table th,
.article-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* The article FAQ reuses the sitewide .faq/.accordion__* component (its
   card background, spacing and open/closed panel display are all scoped
   under a .faq ancestor) but sits inside an already-padded content column,
   so its own section padding/background need to be neutralized here. */
.article-main .faq {
  padding: 0;
  background: transparent;
}

.article-main .faq .accordion__trigger {
  padding: 1.5rem;
  font-size: 1.375rem;
  text-align: left;
  justify-content: space-between;
}

.article-main .faq .accordion__trigger span {
  text-align: left;
}

.article-main .faq .accordion__panel,
.article-main .faq .accordion__panel p {
  text-align: left;
}

.article-main .faq .accordion__chevron {
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--p1);
}

.article-table th {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  background: var(--s1);
  white-space: nowrap;
}

.article-table tr:last-child td {
  border-bottom: none;
}

/* Author bio card at the end of the article -- no staff headshot exists
   yet, so a lettermark avatar stands in for a photo. */
.author-box {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.author-box__avatar {
  flex-shrink: 0;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--p1);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02rem;
}

.author-box__name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 0.125rem;
}

.author-box__role {
  font-size: 0.875rem;
  color: var(--p2);
  margin-bottom: 0.75rem;
}

.author-box__bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1rem;
}

.author-box__social {
  display: flex;
  gap: 0.625rem;
}

.author-box__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--p1);
  color: var(--white);
}

.author-box__social svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 480px) {
  .author-box {
    flex-direction: column;
  }
}

/* Below 1280px the TOC column is the first to go -- there isn't room for
   three columns and the reader can still get a sense of the piece's shape
   from the section headings alone. */
@media (max-width: 1280px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }

  .article-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    max-width: 26rem;
  }
}

@media (max-width: 1024px) {
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog__grid {
    grid-template-columns: 1fr;
  }

  .article-table {
    font-size: 0.8125rem;
  }

  .article-table th,
  .article-table td {
    padding: 0.5rem 0.625rem;
  }
}
