/* ============================================================
   TEMPLATE — News / Archive
   ============================================================ */

/* ── PAGE HEADER ── */
.phead {
  position: relative;
  background: var(--blue);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(140px, 18vh, 200px) 0 clamp(56px, 8vh, 92px);
}
.phead-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.85;
}
.phead-glow {
  position: absolute;
  top: -20%;
  right: -6%;
  width: min(560px, 66vw);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(129, 152, 199, 0.3),
    transparent 62%
  );
}
.phead-ring {
  position: absolute;
  top: 24%;
  right: 7%;
  width: clamp(100px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 48, 42, 0.6);
  z-index: 1;
  pointer-events: none;
}
.phead-ring::after {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  border: 1.5px solid rgba(129, 152, 199, 0.55);
}
.phead-ring .dot {
  position: absolute;
  top: 50%;
  left: -7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
}
.phead-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
}
.phead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 14px 0 0;
}
.phead h1 .it {
  color: var(--red);
}
.phead-sub {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--paper-dim);
  max-width: 580px;
  margin: 28px 0 0;
  line-height: 1.7;
}

/* ── CRUMB (news variant) ── */
.phead .crumb {
  margin-bottom: 26px;
}

/* ── PLACEHOLDER IMAGE ── */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--blue-soft);
  border: 1px solid var(--line-light);
}
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── FEATURED ── */
.feat {
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
}
.feat .wrap {
  padding-block: clamp(56px, 8vh, 100px);
}

.feat-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.feat-img {
  position: relative;
  border-left: 4px solid var(--red);
}
.feat-img .ph {
  aspect-ratio: 5 / 3.4;
}

.feat-flag {
  position: absolute;
  top: 20px;
  left: -4px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 8px 16px;
  z-index: 1;
}
.feat-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.feat-meta .cat {
  color: var(--steel);
}
.feat-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-faint);
}
.feat-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  color: var(--ink);
}
.feat-body p {
  color: var(--ink-dim);
  margin: 0 0 28px;
  max-width: 50ch;
}

.read-btn {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.read-btn svg {
  transition: transform 0.25s;
}
.read-btn:hover svg {
  transform: translateX(5px);
}

/* ── ARCHIVE ── */
.archive {
  background: var(--blue-soft);
}
.archive .wrap {
  padding-block: clamp(56px, 8vh, 100px);
}

.arch-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.arch-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 12px 0 0;
}
.arch-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── FILTERS ── */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filt {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 40px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.filt:hover {
  border-color: var(--steel);
  color: var(--ink);
}
.filt.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── POST GRID ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  transition: opacity 0.25s;
}
.pcard {
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px -28px rgba(28, 35, 80, 0.5);
}
.pcard .pimg .ph {
  aspect-ratio: 16 / 9;
  border: none;
  border-bottom: 1px solid var(--line-light);
}
.pcard .pbody {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard .pmeta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 13px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.pcard .pmeta .cat {
  color: var(--steel);
}
.pcard h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.18;
  margin: 0 0 11px;
  letter-spacing: -0.025em;
}
.pcard p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 20px;
}
.pcard .pread {
  margin-top: auto;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pcard .pread svg {
  transition: transform 0.25s;
}
.pcard:hover .pread svg {
  transform: translateX(4px);
}

.arch-empty {
  display: none;
  text-align: center;
  padding: 60px 0;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: 20px;
}
.arch-empty.show {
  display: block;
}

/* ── PAGINATION ── */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 54px;
}
.pager button,
.pager .pdot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: var(--white);
  color: var(--ink-dim);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}
.pager button:hover:not(:disabled) {
  border-color: var(--steel);
  color: var(--ink);
}
.pager button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pager .pdot {
  border: none;
  background: none;
  cursor: default;
}
.pager .nav-arrow {
  width: auto;
  padding: 0 18px;
  gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1040px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .feat-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feat-img {
    order: -1;
  }
}

@media (max-width: 560px) {
  .post-grid {
    grid-template-columns: 1fr;
  }
  .phead-ring {
    display: none;
  }
  .pager .nav-arrow span {
    display: none;
  }
  .pager .nav-arrow {
    width: 44px;
    padding: 0;
  }
}
