/* ==========================================================================
   Blog: answer articles (one question, one direct answer, a table).
   Hero layout and table spacing only. Article body styling comes from
   v2_blog.css, which the blog layout always loads.
   ========================================================================== */

.v2-blog-answer-hero {
  padding-bottom: 16px;
}

.v2-blog-answer-hero .v2-hero__actions {
  margin-bottom: 0;
}

.v2-blog-answer-hero .v2-hero__inner {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.v2-blog-answer-hero .v2-hero__title {
  font-size: 46px;
}

.v2-blog-answer-hero .v2-hero__desc {
  max-width: 720px;
}

.v2-blog-answer-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
}

.v2-blog-answer-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  background: var(--v2-soft-bg);
  color: var(--v2-gray);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .v2-blog-answer-hero .v2-hero__title {
    font-size: 32px;
  }
}

/* Tables in the article body borrow .v2-docs-table from v2_components.css and
   need article-flow spacing (same treatment as the geolocation article). */
.v2-blog-article .v2-docs-table-wrap {
  margin: 24px 0 30px;
}

.v2-blog-article .v2-docs-table th,
.v2-blog-article .v2-docs-table td {
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* On a phone a three-column table scrolls sideways and hides its last column, which is the one
   that says what to do. An answer table stacks instead: every row is a block, every cell after
   the first carries its column heading (`data-label`) above it. */
@media (max-width: 700px) {
  .v2-blog-article .v2-answer-table,
  .v2-blog-article .v2-answer-table tbody,
  .v2-blog-article .v2-answer-table tr,
  .v2-blog-article .v2-answer-table td {
    display: block;
    width: auto;
  }

  /* kept for screen readers, which read the table as a table */
  .v2-blog-article .v2-answer-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .v2-blog-article .v2-answer-table tr {
    padding: 16px;
    border-bottom: 1px solid var(--v2-border);
  }

  .v2-blog-article .v2-answer-table tr:last-child {
    border-bottom: none;
  }

  .v2-blog-article .v2-answer-table td {
    padding: 0;
    border-bottom: none;
    font-size: 15px;
  }

  .v2-blog-article .v2-answer-table td + td {
    margin-top: 12px;
  }

  .v2-blog-article .v2-answer-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--v2-gray);
  }
}
