/* Blog listing and article page styles. */

.blog-main {
  display: grid;
  grid-template-rows: 17% minmax(0, 1fr) 184px;
  row-gap: 10px;
  overflow: hidden;
  padding: 10px 0 12px;
}

.blog-hero {
  grid-template-columns: minmax(0, 1fr) 18%;
  min-height: 0;
}

.blog-hero .projects-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(280px, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 0;
  padding: 2.1%;
}

.blog-hero .projects-hero-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.blog-hero .projects-hero-copy h1 {
  margin-bottom: 0;
  font-size: 42px;
}

.blog-hero .projects-hero-copy p:not(.eyebrow) {
  max-width: none;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.25;
}

.blog-status {
  padding: 8%;
}

.blog-status .panel-number {
  color: var(--cyan);
  font-size: 58px;
}

.blog-status strong {
  font-size: 24px;
}

.blog-status p {
  font-size: 14px;
  line-height: 1.2;
}

.blog-board {
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 0.7%;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(0, 214, 223, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(255, 194, 47, 0.12), transparent 42%),
    rgba(10, 14, 16, 0.94);
  box-shadow: var(--shadow);
}

.blog-board-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
}

.blog-board-header h2 {
  margin-bottom: 0;
  color: var(--yellow);
  font-size: 48px;
  line-height: 0.95;
  text-shadow: 0.06em 0.06em 0 #000;
}

.blog-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: var(--text);
  background: rgba(5, 7, 8, 0.72);
  font-family: "Bangers", "Barlow Condensed", sans-serif;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.blog-controls button:hover {
  color: #061012;
  background: var(--cyan);
}

.blog-controls button[hidden] {
  display: none;
}

.blog-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: hidden;
  min-height: 0;
}

.blog-card,
.blog-empty {
  display: grid;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  background: rgba(5, 7, 8, 0.62);
}

.blog-card {
  grid-template-rows: 62% minmax(0, 1fr);
}

.blog-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 194, 47, 0.2), transparent 44%),
    linear-gradient(135deg, rgba(0, 214, 223, 0.36), rgba(5, 7, 8, 0.9));
}

.blog-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.blog-card:hover .blog-card-image img {
  filter: saturate(1.12);
  transform: scale(1.035);
}

.blog-card-copy {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 0;
  padding: 3.4%;
}

.blog-card h2 {
  margin-bottom: 0;
  color: var(--cyan);
  font-size: 24px;
  line-height: 0.95;
  letter-spacing: 0.065em;
}

.blog-card h2 a:hover {
  color: var(--yellow);
}

.blog-card p:not(.project-status),
.blog-empty p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.18;
}

.blog-empty {
  grid-column: 1 / -1;
  align-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.blog-empty h2 {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 34px;
}

.blog-page .contact-strip {
  height: 184px;
  min-height: 184px;
  padding-top: 16px;
}

.blog-page .contact-strip h2 {
  font-size: 2rem;
}

.blog-page .contact-strip p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

@media (max-width: 860px) {
  .blog-page .contact-strip {
    height: auto;
    min-height: 0;
    padding-top: 18px;
  }

  .blog-page .contact-strip p {
    margin-bottom: 0;
  }
}

.article-main {
  display: grid;
  overflow: hidden;
  padding: 10px 0 12px;
}

.article-shell {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background:
    linear-gradient(135deg, rgba(0, 214, 223, 0.14), transparent 30%),
    linear-gradient(315deg, rgba(255, 194, 47, 0.13), transparent 42%),
    rgba(10, 14, 16, 0.96);
  box-shadow: var(--shadow);
}

.article-back {
  width: fit-content;
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: "Bangers", "Barlow Condensed", sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-back:hover {
  color: var(--yellow);
}

.article-status {
  display: grid;
  min-height: 180px;
  place-items: center;
  border-top: 1px solid rgba(255, 194, 47, 0.28);
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  gap: 0;
  min-height: 320px;
  overflow: hidden;
  border: 2px solid var(--yellow);
  border-radius: 0.55rem;
  padding: 10px;
  background: #000;
}

.article-hero-copy {
  display: grid;
  align-content: center;
  min-height: 0;
  padding: 22px 26px;
  background: #000;
  position: relative;
  z-index: 2;
}

.article-hero-copy h1 {
  max-width: none;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: clamp(40px, 3.2vw, 54px);
  line-height: 0.95;
  text-shadow: 0.06em 0.06em 0 #000;
}

.article-title-rule {
  width: min(100%, 520px);
  height: 5px;
  margin: clamp(14px, 2vw, 24px) 0 14px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65);
}

.article-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 14px;
}

.article-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-family: "Bangers", "Barlow Condensed", sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.article-detail img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.article-hero-copy p:not(.project-status) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.32;
}

.article-main-image {
  position: relative;
  overflow: hidden;
  min-height: 0;
  margin: 0;
}

.article-main-image::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 16%;
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.26) 44%, transparent 100%);
  pointer-events: none;
}

.article-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  overflow-y: auto;
  min-height: 0;
  padding: 30px 34px 18px;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
}

.article-body p,
.article-body li {
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.article-body p {
  margin-bottom: 18px;
}

.article-body h2,
.article-body h3 {
  margin: 28px 0 12px;
  color: var(--cyan);
  line-height: 0.98;
}

.article-body h2 {
  font-size: 34px;
}

.article-body h3 {
  font-size: 28px;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--yellow);
  color: var(--muted);
  background: rgba(255, 194, 47, 0.08);
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 8px;
  margin: 0 0 20px 24px;
  padding: 0;
}

.article-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body figure {
  display: grid;
  justify-items: center;
  margin: 24px 0;
}

.article-body figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0.45rem;
  object-fit: contain;
}

@media (max-width: 860px) {
  .blog-main {
    display: block;
    overflow: visible;
    padding-top: 18px;
  }

  .blog-hero {
    grid-template-columns: 1fr;
  }

  .blog-hero .projects-hero-copy {
    display: block;
    padding: 22px 18px;
  }

  .blog-hero .projects-hero-copy .eyebrow {
    margin-bottom: 8px;
  }

  .blog-hero .projects-hero-copy h1 {
    font-size: 44px;
  }

  .blog-hero .projects-hero-copy p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.25;
  }

  .blog-board {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px;
  }

  .blog-board-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .blog-board-header h2 {
    flex: 1 1 auto;
    font-size: 36px;
  }

  .blog-controls {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .blog-card {
    grid-template-rows: auto;
  }

  .blog-card-image {
    height: 190px;
    min-height: 190px;
  }

  .blog-card h2 {
    font-size: 32px;
  }

  .article-main {
    display: block;
    overflow: visible;
    padding-top: 18px;
  }

  .article-shell {
    display: block;
    padding: 10px;
  }

  .article-back,
  .article-status,
  .article-hero,
  .article-body {
    margin-bottom: 0;
  }

  .article-hero {
    grid-template-columns: 1fr;
    gap: 10px;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 10px;
  }

  .article-hero-copy {
    padding: 20px 16px;
  }

  .article-hero-copy h1 {
    font-size: clamp(34px, 9.5vw, 42px);
  }

  .article-hero-copy p:not(.project-status) {
    font-size: 16px;
  }

  .article-title-rule {
    margin-top: 18px;
  }

  .article-details {
    margin-bottom: 0;
  }

  .article-main-image {
    min-height: 220px;
    order: -1;
  }

  .article-main-image::before {
    inset: auto 0 0;
    width: auto;
    height: 20%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08), transparent);
  }

  .article-body {
    overflow: visible;
    padding: 20px 18px;
  }

  .article-body p,
  .article-body li {
    font-size: 16px;
  }
}

@media (max-width: 470px) {
  .article-hero {
    gap: 8px;
    padding: 8px;
  }

  .article-main-image {
    min-height: 0;
    background: #000;
  }

  .article-main-image img {
    height: auto;
    object-fit: contain;
  }

  .article-main-image::before {
    display: none;
  }
}
