/* ArtAcademy blog detail (desktop 237:310 + mobile 237:473) */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aa-bd-hero {
  padding: 48px 0 24px;
}

.aa-bd-hero .aa-breadcrumbs {
  margin-bottom: 24px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.aa-bd-title {
  margin: 0;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--aa-text);
}

.aa-bd-featured {
  padding: 0 0 48px;
}

.aa-bd-featured__frame {
  position: relative;
  width: 100%;
  height: 520px;
  border: 2px solid var(--aa-border-strong);
  border-radius: var(--aa-radius);
  overflow: hidden;
  background: var(--aa-surface-2);
}

.aa-bd-featured__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-bd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas:
    "meta sidebar"
    "body sidebar"
    "comments sidebar";
  gap: 0 48px;
  align-items: start;
  padding-bottom: 80px;
}

.aa-bd-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid var(--aa-border-strong);
  margin-bottom: 48px;
}

.aa-bd-meta__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.aa-bd-meta__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.aa-bd-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--aa-text);
}

.aa-bd-author img {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  object-fit: cover;
  flex: 0 0 32px;
}

.aa-bd-meta__item {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--aa-muted);
}

.aa-bd-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aa-bd-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--aa-pill);
  background: var(--aa-surface-2);
  color: var(--aa-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.aa-bd-pill:hover {
  color: var(--aa-accent);
}

.aa-bd-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  margin-bottom: 48px;
}

.aa-bd-body p,
.aa-bd-p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--aa-muted);
}

.aa-bd-heading {
  margin: 0;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  color: var(--aa-text);
}

.aa-bd-prev {
  margin: 8px 0 0;
  font-size: 14px;
}

.aa-bd-prev a {
  color: var(--aa-accent);
  font-weight: 600;
  text-decoration: none;
}

.aa-bd-prev a:hover {
  text-decoration: underline;
}

.aa-bd-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 24px;
}

.aa-bd-widget {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--aa-surface);
  border: 1.5px solid var(--aa-border-strong);
  border-radius: var(--aa-radius);
}

.aa-bd-widget--related {
  gap: 24px;
}

.aa-bd-widget__title {
  margin: 0;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: var(--aa-text);
}

.aa-bd-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--aa-border-strong);
  border-radius: var(--aa-pill);
  background: var(--aa-bg);
}

.aa-bd-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--aa-sans);
  font-size: 13px;
  color: var(--aa-text);
  outline: none;
}

.aa-bd-search input::placeholder {
  color: var(--aa-muted);
}

.aa-bd-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 16px;
}

.aa-bd-search button img {
  width: 16px;
  height: 16px;
  display: block;
}

.aa-bd-related-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aa-bd-related-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.aa-bd-related-item__thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--aa-surface-2);
}

.aa-bd-related-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-bd-related-item__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aa-bd-related-item__date {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--aa-muted);
}

.aa-bd-related-item__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--aa-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aa-bd-related-item:hover .aa-bd-related-item__title {
  color: var(--aa-accent);
}

.aa-bd-comments {
  grid-area: comments;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 24px;
  min-width: 0;
}

.aa-bd-comments__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aa-bd-comments__title {
  margin: 0;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  color: var(--aa-text);
}

.aa-bd-comments__note,
.aa-bd-comments__status,
.aa-bd-comments__alert {
  margin: 0;
  font-size: 14px;
  color: var(--aa-muted);
}

.aa-bd-comments__status {
  color: var(--aa-accent);
  font-weight: 600;
}

.aa-bd-comments__alert {
  color: #b42318;
}

.aa-bd-comment-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aa-bd-comment {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--aa-border-strong);
}

.aa-bd-comment--reply {
  margin-left: 48px;
}

.aa-bd-comment__avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  overflow: hidden;
  background: var(--aa-surface-2);
}

.aa-bd-comment__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-bd-comment__body {
  flex: 1 1 auto;
  min-width: 0;
}

.aa-bd-comment__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--aa-text);
}

.aa-bd-comment__date {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--aa-muted);
}

.aa-bd-comment__text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--aa-muted);
}

.aa-bd-comment__reply {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aa-accent);
  text-decoration: none;
}

.aa-bd-comment__reply:hover {
  text-decoration: underline;
}

.aa-bd-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aa-bd-form__title {
  margin: 0;
  font-family: var(--aa-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: var(--aa-text);
}

.aa-bd-form__reply-note {
  margin: 0;
  font-size: 14px;
  color: var(--aa-muted);
}

.aa-bd-form__reply-note a {
  color: var(--aa-accent);
  font-weight: 600;
}

.aa-bd-form__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aa-bd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.aa-bd-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aa-bd-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--aa-text);
}

.aa-bd-field input,
.aa-bd-field textarea {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--aa-border-strong);
  border-radius: 8px;
  background: var(--aa-surface);
  font-family: var(--aa-sans);
  font-size: 14px;
  color: var(--aa-text);
  outline: none;
  resize: vertical;
}

.aa-bd-field input {
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.aa-bd-field textarea {
  min-height: 140px;
}

.aa-bd-field input::placeholder,
.aa-bd-field textarea::placeholder {
  color: #a39e96;
}

.aa-bd-field input:focus,
.aa-bd-field textarea:focus {
  border-color: var(--aa-accent);
}

.aa-bd-field__error {
  margin: 0;
  font-size: 12px;
  color: #b42318;
}

.aa-bd-form__submit {
  align-self: flex-start;
  min-height: 52px;
  padding: 16px 40px;
  border: 0;
  border-radius: var(--aa-pill);
  background: var(--aa-accent);
  color: var(--aa-on-accent);
  font-family: var(--aa-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.aa-bd-form__submit:hover {
  opacity: 0.92;
}

.aa-bd-materials {
  background: var(--aa-surface);
  border-top: 1px solid var(--aa-border-strong);
  padding: 64px 0 84px;
}

.aa-bd-materials__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.aa-bd-materials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.aa-bd-mat-card {
  display: flex;
  flex-direction: column;
  background: var(--aa-surface);
  border: 2px solid var(--aa-border-strong);
  border-radius: var(--aa-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aa-bd-mat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(192, 92, 62, 0.08);
}

.aa-bd-mat-card__media {
  height: 240px;
  background: var(--aa-surface-2);
}

.aa-bd-mat-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aa-bd-mat-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

.aa-bd-mat-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.aa-bd-mat-card__cat {
  font-weight: 700;
  color: var(--aa-accent);
  text-transform: uppercase;
}

.aa-bd-mat-card__date {
  font-weight: 400;
  color: var(--aa-muted);
}

.aa-bd-mat-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--aa-text);
}

.aa-bd-mat-card__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--aa-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .aa-bd-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "meta"
      "body"
      "sidebar"
      "comments";
    gap: 0;
    padding-bottom: 48px;
  }

  .aa-bd-sidebar {
    position: static;
    margin-bottom: 40px;
  }

  .aa-bd-featured__frame {
    height: 360px;
  }

  .aa-bd-materials__grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: artacademy-blog-detail-mobile */
@media (max-width: 700px) {
  .aa-bd-hero {
    padding: 24px 0 0;
  }

  .aa-bd-hero .aa-breadcrumbs {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .aa-bd-title {
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 20px;
  }

  .aa-bd-featured {
    padding: 0 0 24px;
  }

  .aa-bd-featured__frame {
    height: 220px;
    border-radius: 16px;
  }

  .aa-bd-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 0 24px;
  }

  .aa-bd-meta__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .aa-bd-meta__details {
    gap: 16px;
  }

  .aa-bd-meta__item {
    font-size: 13px;
  }

  .aa-bd-pill {
    font-size: 11px;
  }

  .aa-bd-body {
    gap: 20px;
    margin-bottom: 40px;
  }

  .aa-bd-body p,
  .aa-bd-p {
    font-size: 15px;
  }

  .aa-bd-heading {
    font-size: 28px;
  }

  .aa-bd-sidebar {
    gap: 24px;
    margin-bottom: 0;
    padding-bottom: 40px;
  }

  .aa-bd-widget {
    padding: 20px;
    border-radius: 20px;
  }

  .aa-bd-widget--related {
    gap: 20px;
  }

  .aa-bd-related-list {
    gap: 16px;
  }

  .aa-bd-related-item {
    gap: 12px;
  }

  .aa-bd-related-item__thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 52px;
    border-radius: 8px;
  }

  .aa-bd-related-item__date {
    font-size: 11px;
  }

  .aa-bd-comments {
    gap: 32px;
    padding-top: 0;
    padding-bottom: 48px;
    border-top: 1px solid var(--aa-border-strong);
    padding-top: 32px;
  }

  .aa-bd-comments__title {
    font-size: 32px;
  }

  .aa-bd-comment--reply {
    margin-left: 24px;
  }

  .aa-bd-form {
    gap: 24px;
  }

  .aa-bd-form__title {
    font-size: 28px;
  }

  .aa-bd-form__row {
    grid-template-columns: 1fr;
  }

  .aa-bd-field label {
    font-size: 13px;
  }

  .aa-bd-field textarea {
    min-height: 120px;
  }

  .aa-bd-form__submit {
    width: 100%;
    align-self: stretch;
    padding: 14px 24px;
    font-size: 13px;
  }

  .aa-bd-materials {
    padding: 40px 0 48px;
  }

  .aa-bd-materials__head {
    margin-bottom: 24px;
  }

  .aa-bd-materials__head .aa-kicker {
    font-size: 12px;
  }

  .aa-bd-materials__head .aa-title {
    font-size: 32px;
  }

  .aa-bd-materials__grid {
    gap: 20px;
  }

  .aa-bd-mat-card {
    border-radius: 20px;
  }

  .aa-bd-mat-card__media {
    height: 160px;
  }

  .aa-bd-mat-card__body {
    padding: 16px;
    gap: 12px;
  }

  .aa-bd-mat-card__meta {
    font-size: 11px;
  }

  .aa-bd-mat-card__title {
    font-size: 15px;
  }

  .aa-bd-mat-card__excerpt {
    font-size: 13px;
    line-height: 1.4;
  }
}
