/* ════════════════════════════════════════════════════════════
   InAction Inner Pages (page.php / single.php)
   ════════════════════════════════════════════════════════════ */

/* ── Nav override for inner pages (always dark/stuck) ────── */
.ia-inner .nav {
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* ════════════════════════════════════════════════════════════
   PAGE / POST HERO
════════════════════════════════════════════════════════════ */
.ip-hero {
  position: relative;
  min-height: 480px;
  display: flex; align-items: flex-end;
  margin-top: 72px;
  overflow: hidden;
  background: var(--bk2);
}

.ip-hero__img {
  position: absolute; inset: 0;
}
.ip-hero__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  filter: brightness(.55);
}
.ip-hero__img--plain {
  background: linear-gradient(135deg, var(--bk2) 0%, var(--g2) 100%);
}
.ip-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.85) 0%, rgba(13,13,13,.2) 60%, transparent 100%);
}

.ip-hero__body {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px 64px;
}

.ip-hero__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.ip-cat {
  font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--or); color: var(--wh);
  padding: 4px 12px; border-radius: 3px;
  transition: background .2s;
}
.ip-cat:hover { background: var(--or-dk); }
.ip-date {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,.45);
}

.ip-hero__title {
  font-size: clamp(32px, 5vw, 68px);
  font-weight: 800; line-height: .95;
  letter-spacing: -.025em; color: var(--wh);
  max-width: 820px; margin-bottom: 20px;
}

.ip-hero__byline {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,.5);
}
.ip-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.ip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ip-dot { color: rgba(255,255,255,.25); }

/* ════════════════════════════════════════════════════════════
   PAGE CONTENT (page.php)
════════════════════════════════════════════════════════════ */
.ip-content {
  background: var(--wh); padding: 80px 0 100px;
}
.ip-content__inner {
  max-width: 780px; margin: 0 auto; padding: 0 40px;
}

/* ════════════════════════════════════════════════════════════
   POST BODY (single.php) — article + sidebar
════════════════════════════════════════════════════════════ */
.ip-post {
  background: var(--wh); padding: 72px 0 100px;
}
.ip-post__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 80px;
  display: grid; grid-template-columns: 1fr 320px; gap: 72px;
  align-items: start;
}

/* ── Article typography ─────────────────────────────────── */
.ip-article { min-width: 0; }
.ip-article p {
  font-size: 17px; font-weight: 400; line-height: 1.8;
  color: var(--g2); margin-bottom: 24px;
}
.ip-article h2 {
  font-size: clamp(22px, 2.5vw, 30px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1;
  color: var(--bk); margin: 52px 0 20px;
}
.ip-article h3 {
  font-size: clamp(18px, 2vw, 22px); font-weight: 700;
  letter-spacing: -.01em; color: var(--bk); margin: 40px 0 16px;
}
.ip-article img {
  width: 100%; border-radius: 6px;
  margin: 32px 0; display: block;
}
.ip-article blockquote {
  border-left: 4px solid var(--or);
  margin: 36px 0; padding: 20px 28px;
  background: var(--cream); border-radius: 0 6px 6px 0;
}
.ip-article blockquote p {
  font-size: 18px; font-style: italic;
  color: var(--bk); margin: 0;
}
.ip-article ul, .ip-article ol {
  margin: 0 0 24px 24px; padding: 0;
}
.ip-article li {
  font-size: 17px; font-weight: 400; line-height: 1.7;
  color: var(--g2); margin-bottom: 8px;
}
.ip-article a { color: var(--or); text-decoration: underline; text-underline-offset: 3px; }
.ip-article a:hover { color: var(--or-dk); }

/* Tags */
.ip-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0;
  padding-top: 32px; border-top: 1px solid rgba(0,0,0,.08);
}
.ip-tag {
  font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,.05); color: var(--g3);
  padding: 6px 14px; border-radius: 4px;
  transition: background .2s, color .2s;
}
.ip-tag:hover { background: var(--or); color: var(--wh); }

/* ── Sidebar ─────────────────────────────────────────────── */
.ip-aside { position: sticky; top: 96px; }
.ip-aside__block { margin-bottom: 40px; }
.ip-aside__title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--g4); margin-bottom: 18px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Nav posts */
.ip-nav-post {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06);
  transition: opacity .2s;
}
.ip-nav-post:hover { opacity: .7; }
.ip-nav-post__thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.ip-nav-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ip-nav-post__info { display: flex; flex-direction: column; gap: 4px; }
.ip-nav-post__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.ip-nav-post__ttl { font-size: 14px; font-weight: 600; color: var(--bk); line-height: 1.35; }

/* Related posts */
.ip-related {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.06);
  transition: opacity .2s;
}
.ip-related:hover { opacity: .7; }
.ip-related__thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.ip-related__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ip-related__info { display: flex; flex-direction: column; gap: 4px; }
.ip-related__ttl { font-size: 14px; font-weight: 600; color: var(--bk); line-height: 1.35; }
.ip-related__date { font-size: 12px; color: var(--g4); }

/* Pagination */
.ip-pagination {
  margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,.08); padding-top: 32px;
}
.ip-pagination a, .ip-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  font-size: 14px; font-weight: 600; border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,.1); color: var(--bk);
  transition: background .2s, border-color .2s, color .2s;
}
.ip-pagination a:hover { background: var(--or); border-color: var(--or); color: var(--wh); }

/* ════════════════════════════════════════════════════════════
   FRONT-PAGE NEWS SECTION
════════════════════════════════════════════════════════════ */
.news {
  background: var(--cream);
  padding: 100px 0;
}
.news__head {
  max-width: 1500px; margin: 0 auto;
  padding: 0 80px 56px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
}
.news__label {
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--or); margin-bottom: 16px;
}
.news__h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800; line-height: .92;
  letter-spacing: -.025em; color: var(--bk);
  white-space: nowrap;
}
.news__h2 em { font-style: normal; color: var(--or); }
.news__all {
  font-size: 14px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--bk) !important; white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--bk);
  transition: color .2s, border-color .2s;
  flex-shrink: 0; align-self: flex-end;
}
.news__all:hover { color: var(--or); border-color: var(--or); }

/* Grid: first card is wide (featured), rest are 3-col */
.news__grid {
  max-width: 1500px; margin: 0 auto; padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 24px;
}
.news__card {
  background: var(--wh); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.news__card:hover { transform: translateY(-4px); box-shadow: 0 20px 56px rgba(0,0,0,.1); }

.news__card--featured {
  grid-column: 1 / 3;
  grid-row: 1;
  flex-direction: row;
}
.news__card--featured .news__card-img { flex: 1; min-height: 280px; }
.news__card--featured .news__card-body { flex: 1; padding: 40px 44px; }
.news__card--featured .news__card-title { font-size: clamp(20px, 2.2vw, 28px); }

.news__card-img {
  overflow: hidden;
  height: 220px; flex-shrink: 0;
}
.news__card-img--empty { background: var(--g2); }
.news__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news__card:hover .news__card-img img { transform: scale(1.04); }

.news__card-body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.news__card-cat {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--or);
}
.news__card-title {
  font-size: 18px; font-weight: 800;
  letter-spacing: -.015em; line-height: 1.2;
  color: var(--bk); flex: 1;
}
.news__card-excerpt {
  font-size: 14px; font-weight: 400;
  color: var(--g3); line-height: 1.65;
}
.news__card-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 12px; font-weight: 400; color: var(--g4);
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,.07);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — inner pages
════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ip-hero__body   { padding: 0 48px 52px; }
  .ip-post__inner  { padding: 0 48px; gap: 48px; }
  .news__head, .news__grid { padding-left: 48px; padding-right: 48px; }
}

@media (max-width: 900px) {
  .ip-post__inner  { grid-template-columns: 1fr; }
  .ip-aside        { position: static; }
  .news__card--featured { flex-direction: column; grid-column: 1 / -1; }
  .news__card--featured .news__card-img { min-height: 220px; }
  .news__grid      { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .ip-hero         { min-height: 340px; }
  .ip-hero__body   { padding: 0 24px 40px; }
  .ip-content__inner { padding: 0 24px; }
  .ip-post__inner  { padding: 0 24px; }
  .news__head      { padding: 0 24px 40px; flex-direction: column; align-items: flex-start; }
  .news__grid      { padding: 0 24px; grid-template-columns: 1fr; }
  .news__card--featured { grid-column: 1; }
}
