/**
 * studio-updates-page.css — Immature Comics
 * Styles for the /updates listing page
 * View CSS class: studio-updates-page
 *
 * Field order in markup:
 *   1. user-picture            — avatar (80x80 square from image style)
 *   2. realname                — creator name
 *   3. created                 — date below name
 *   4. field-studio-post-type  — small badge above title
 *   5. title                   — post title
 *   6. body                    — post body text
 *   7. field-feature-image     — full-bleed image at bottom
 *
 * Two visual zones per card:
 *   ZONE A (header): avatar left | name + date stacked right
 *   ZONE B (content): badge → title → body → image
 */


/* ─────────────────────────────────────────────────────────────
   FEED WRAPPER
───────────────────────────────────────────────────────────── */

.studio-updates-page {
  max-width: 680px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}


/* ─────────────────────────────────────────────────────────────
   POST CARD
───────────────────────────────────────────────────────────── */

.studio-updates-page .studio-updates-row.views-row {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas:
    "avatar  name"
    "avatar  date"
    "divider divider"
    "badge   badge"
    "title   title"
    "body    body"
    "image   image";
}


/* ─────────────────────────────────────────────────────────────
   ZONE A — HEADER: avatar + name + date
───────────────────────────────────────────────────────────── */

/* Avatar */
.studio-updates-page .studio-updates-row .views-field-user-picture {
  grid-area: avatar;
  padding: 1.1rem 0 1rem 1.1rem;
  align-self: center;
}

.studio-updates-page .studio-updates-row .views-field-user-picture .field-content {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.08);
  display: block;
}

.studio-updates-page .studio-updates-row .views-field-user-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Creator name */
.studio-updates-page .studio-updates-row .views-field-realname {
  grid-area: name;
  padding: 1.1rem 1.25rem 0 0.75rem;
  align-self: end;
}

.studio-updates-page .studio-updates-row .views-field-realname .field-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a0a0a;
  line-height: 1;
}

/* Date — sits directly below name, right column */
.studio-updates-page .studio-updates-row .views-field-created {
  grid-area: date;
  padding: 0.3rem 1.25rem 1rem 0.75rem;
  align-self: start;
  margin: -13px 0 0 0;
}

.studio-updates-page .studio-updates-row .views-field-created .field-content,
.studio-updates-page .studio-updates-row .views-field-created time {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: #999;
}

/* Divider between header zone and content zone */
.studio-updates-page .studio-updates-row .views-field-field-studio-post-type {
  grid-area: badge;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.2rem 1.25rem;
}

/* ─────────────────────────────────────────────────────────────
   ZONE B — CONTENT: badge → title → body → image
───────────────────────────────────────────────────────────── */

/* Post type badge — small, above title */
.studio-updates-page .studio-updates-row .views-field-field-studio-post-type .field-content {
  display: inline-block;
}

.studio-updates-page .studio-updates-row .views-field-field-studio-post-type .field-content a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #e8671a;
  background: #fff3ec;
  /* border: 1px solid rgba(232, 103, 26, 0.2); */
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
}

/* Title */
.studio-updates-page .studio-updates-row .views-field-title {
  grid-area: title;
  padding: 0.3rem 1.25rem 0.6rem;
}

.studio-updates-page .studio-updates-row .views-field-title .field-content a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #0a0a0a;
  text-decoration: none;
  line-height: 1.25;
  display: block;
}

.studio-updates-page .studio-updates-row .views-field-title .field-content a:hover {
  color: #e8671a;
}

/* Body */
.studio-updates-page .studio-updates-row .views-field-body {
  grid-area: body;
  padding: 0 1.25rem 1.1rem;
}

.studio-updates-page .studio-updates-row .views-field-body .field-content,
.studio-updates-page .studio-updates-row .views-field-body p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #1a1a1a;
  margin: 0;
}

/* Feature image — full bleed, rounded bottom corners */
.studio-updates-page .studio-updates-row .views-field-field-feature-image {
  grid-area: image;
}

.studio-updates-page .studio-updates-row .views-field-field-feature-image .field-content {
  display: block;
  line-height: 0;
}

.studio-updates-page .studio-updates-row .views-field-field-feature-image a {
  display: block;
  width: 100%;
}

.studio-updates-page .studio-updates-row .views-field-field-feature-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0 0 10px 10px;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .studio-updates-page {
    padding: 0 1rem;
    gap: 1.25rem;
    margin: 1.5rem auto;
  }

  .studio-updates-page .studio-updates-row .views-field-body .field-content,
  .studio-updates-page .studio-updates-row .views-field-body p {
    font-size: 0.85rem;
  }

  .studio-updates-page .studio-updates-row .views-field-field-feature-image img {
    max-height: 360px;
  }
}
