/* =========================================================
   SkyGuru — Blog listing + article pages
   (shared .bcard / .phero / .cta styles live in style.css)
   ========================================================= */

/* ---------- Listing ---------- */
.blist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.blist__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* featured post: full-width, photo left / text right */
.bcard--wide { grid-column: 1 / -1; }
.bcard--wide .bcard__link { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.bcard--wide .bcard__media { min-height: clamp(300px, 34vw, 440px); }
.bcard--wide .bcard__body { padding: clamp(28px, 3.4vw, 52px); justify-content: center; }
.bcard--wide .bcard__title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.bcard--wide .bcard__more { margin-top: 28px; padding-top: 0; }

/* regular post: photo on top */
.bcard--stack .bcard__link { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.bcard--stack .bcard__media { min-height: 0; aspect-ratio: 16 / 9; }
.bcard--stack .bcard__body { padding: 26px 28px 30px; }
.bcard--stack .bcard__title { font-size: clamp(21px, 1.8vw, 26px); }

/* ---------- Article hero ---------- */
.ahero { position: relative; text-align: center; padding: clamp(130px, 20vh, 190px) 0 clamp(30px, 5vh, 50px); }
.ahero__in { display: flex; flex-direction: column; align-items: center; }
.ahero__back { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #a9b5d2; margin-bottom: 28px; transition: color .3s; }
.ahero__back svg { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .4s var(--ease); }
.ahero__back:hover { color: var(--orange-2); }
.ahero__back:hover svg { transform: rotate(180deg) translateX(4px); }
.ahero__meta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.ahero__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.ahero__cat { padding: 6px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-2); background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 150, 60, .3); }
.ahero__title { font-family: var(--display); font-weight: 700; font-size: clamp(36px, min(4.8vw, 8.6vh), 76px); line-height: 1.05; letter-spacing: -.045em; max-width: 20ch; margin: 0; }

/* ---------- Article body ---------- */
.article { padding-bottom: calc(var(--gap-y) / 2); }
.article__cover { margin: 0 auto clamp(40px, 5vw, 64px); max-width: 1120px; aspect-ratio: 16 / 8; border-radius: 28px; overflow: hidden; border: 1px solid rgba(140, 170, 255, .18); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); background: #0a1124; }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__body { max-width: 740px; margin: 0 auto; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.8; color: #c9d2e8; }
.article__body p { margin: 0 0 1.4em; }
.article__body h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.03em; color: #fff; margin: 1.8em 0 .6em; }
.article__body ul { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 12px; }
.article__body li { position: relative; padding-left: 30px; }
.article__body li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(140deg, var(--orange), var(--orange-2)); box-shadow: 0 0 0 4px rgba(255, 122, 26, .14); }
.article__body strong { color: #fff; }
.article__body blockquote p:only-child { margin: 0; }
.article__body blockquote { position: relative; margin: 2em 0; padding: 30px 34px 30px 38px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 122, 26, .1), rgba(10, 18, 44, .6)); border: 1px solid rgba(255, 150, 60, .25); }
.article__body blockquote::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; background: linear-gradient(var(--orange), var(--orange-2)); }
.article__body blockquote p { margin: 0 0 12px; font-family: var(--display); font-size: clamp(20px, 1.7vw, 25px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; color: #fff; }
.article__body cite { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); }

.article__share { display: flex; align-items: center; gap: 10px; margin-top: 2.6em; padding-top: 26px; border-top: 1px solid var(--line); }
.article__share span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.article__share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: #dfe6f7; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.article__share a:hover { background: var(--orange); border-color: var(--orange); color: #000; transform: translateY(-3px); }
.article__share svg { width: 17px; height: 17px; }

.article__pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.article__pn a { display: block; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(140, 170, 255, .16); background: rgba(10, 18, 44, .5); font-size: 16px; font-weight: 700; line-height: 1.35; color: #fff; transition: border-color .3s, color .3s; }
.article__pn a:last-child { text-align: right; }
.article__pn a:hover { border-color: rgba(255, 150, 60, .5); color: var(--orange-2); }
.article__pn small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

@media (max-width: 900px) {
  .bcard--wide .bcard__link { grid-template-columns: 1fr; }
  .bcard--wide .bcard__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .blist__grid, .blist__grid--two { grid-template-columns: 1fr; }
  .article__cover { aspect-ratio: 16 / 10; border-radius: 20px; }
  .article__body blockquote { padding: 24px 22px 24px 28px; }
  .article__pn { grid-template-columns: 1fr; }
  .article__pn a:last-child { text-align: left; }
}

/* ---------- Compact header (category / archive / tag pages) ---------- */
.bhead { position: relative; padding: clamp(120px, 17vh, 160px) 0 clamp(28px, 4vw, 44px); }
.bcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-bottom: clamp(22px, 3vw, 34px); }
.bcrumb a { color: #c4cde4; transition: color .3s; }
.bcrumb a:hover { color: var(--orange-2); }
.bcrumb i { font-style: normal; opacity: .5; }
.bcrumb span { color: var(--orange-2); font-weight: 700; }
.bhead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(24px, 3vw, 34px); border-bottom: 1px solid var(--line); }
.bhead__kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-2); margin: 0 0 10px; }
.bhead__title { font-family: var(--display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.04em; margin: 0; }
.bhead__count { display: inline-flex; align-items: baseline; gap: 8px; margin: 0; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(140, 170, 255, .2); background: rgba(10, 18, 44, .55); font-size: 14px; font-weight: 700; color: #c4cde4; }
.bhead__count b { font-family: var(--display); font-size: 20px; color: #fff; }
.bhead + .blist { padding-top: clamp(30px, 4vw, 50px); }

/* ---------- Listing: posts + sticky sidebar ---------- */
.blist__layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 320px); gap: clamp(28px, 3.6vw, 56px); align-items: start; }
.blist__posts { display: grid; gap: 22px; }
.bcard--row .bcard__link { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); }
.bcard--row .bcard__media { min-height: clamp(220px, 19vw, 280px); }
.bcard--row .bcard__body { padding: clamp(24px, 2.4vw, 34px); justify-content: center; }
.bcard--row .bcard__title { font-size: clamp(21px, 1.8vw, 27px); line-height: 1.18; }
.bcard--row .bcard__excerpt { font-size: 15.5px; }
.bcard--row .bcard__more { margin-top: 22px; padding-top: 0; }

.bside { position: sticky; top: 100px; display: grid; gap: 16px; }
.bside__box { padding: 22px; border-radius: 22px; border: 1px solid rgba(140, 170, 255, .16); background: linear-gradient(165deg, rgba(20, 34, 74, .6), rgba(6, 11, 28, .85)); }
.bside__h { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-2); margin: 0 0 12px; }
.bside__h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 150, 60, .4), transparent); }
.bside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bside__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 700; color: #c4cde4; transition: background .3s, color .3s; }
.bside__link b { min-width: 26px; padding: 3px 8px; border-radius: 999px; font-size: 12px; text-align: center; background: rgba(140, 170, 255, .12); color: #8f9cbc; transition: background .3s, color .3s; }
.bside__link:hover { color: #fff; background: rgba(140, 170, 255, .08); }
.bside__link.is-active { color: #fff; background: rgba(255, 122, 26, .12); box-shadow: inset 3px 0 0 var(--orange); }
.bside__link.is-active b { background: linear-gradient(140deg, var(--orange), var(--orange-2)); color: #160800; }
.bside__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bchip { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(140, 170, 255, .2); background: rgba(10, 18, 44, .55); color: #c4cde4; font-size: 13.5px; font-weight: 700; line-height: 1; transition: color .3s, border-color .3s, background .3s; }
.bchip:hover { color: #fff; border-color: rgba(255, 150, 60, .45); }
.bchip.is-active { color: #160800; border-color: transparent; background: linear-gradient(140deg, var(--orange), var(--orange-2)); }

/* article: category + date are links, tags row */
a.ahero__cat { transition: background .3s, color .3s; }
a.ahero__cat:hover { background: var(--orange); color: #160800; }
.ahero__date { color: inherit; transition: color .3s; }
.ahero__date:hover { color: var(--orange-2); }
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2.4em 0 0; }
.article__tags span { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.article__tags a { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; line-height: 1; color: #c4cde4; border: 1px solid rgba(140, 170, 255, .2); background: rgba(10, 18, 44, .55); transition: color .3s, border-color .3s; }
.article__tags a:hover { color: var(--orange-2); border-color: rgba(255, 150, 60, .45); }
.article__tags + .article__share { margin-top: 22px; }

@media (max-width: 1080px) {
  .blist__layout { grid-template-columns: 1fr; }
  .bside { position: static; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 760px) {
  .bcard--row .bcard__link { grid-template-columns: 1fr; }
  .bcard--row .bcard__media { min-height: 0; aspect-ratio: 16 / 9; }
  .bhead__row { align-items: flex-start; }
}
