/* =========================================================
   OW ARCHIVE — HALAMAN ARSIP TAG
   File   : assets/ow-archive.css
   Dipakai: HANYA di halaman arsip tag (/tag/nama-tag/),
            dimuat lewat functions.php bagian 7.

   Senada dengan halaman Template Library: kepala ringkas,
   lalu daftar post dengan gambar kecil di kiri.

   ISI FILE
   01. Variabel & pembungkus
   02. Kepala halaman
   03. Daftar post
   04. Pagination
   05. Kosong
   06. Link bawah
   07. Tablet
   08. Mobile
   09. Reduced motion
========================================================= */


/* =========================================================
   01. VARIABEL & PEMBUNGKUS
========================================================= */

.ow-arc,
.ow-arc *,
.ow-arc *::before,
.ow-arc *::after {
  box-sizing: border-box;
}

.ow-arc {
  --ow-arc-ink: #172B3A;
  --ow-arc-teal: #00AEA5;
  --ow-arc-teal-dark: #008F88;
  --ow-arc-paper: #F5F7F7;
  --ow-arc-muted: #64747E;
  --ow-arc-line: rgba(23,43,58,.12);

  display: block;

  width: 100%;

  overflow-x: clip;

  background: var(--ow-arc-paper);
  color: var(--ow-arc-ink);

  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  -webkit-font-smoothing: antialiased;
}

body.ow-archive-page {
  background: #F5F7F7;
}

.ow-arc-inner {
  width: min(1400px, calc(100% - 80px));

  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   02. KEPALA HALAMAN
========================================================= */

.ow-arc-head {
  /* ruang untuk header custom yang melayang di atas */
  padding-top: 150px;
  padding-bottom: 34px;

  border-bottom: 1px solid var(--ow-arc-line);
}

.ow-arc-head-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 50px;
}

.ow-arc-eyebrow {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 18px;

  color: var(--ow-arc-teal-dark);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .17em;
  text-transform: uppercase;
}

.ow-arc-eyebrow i {
  display: block;

  width: 30px;
  height: 2px;

  background: var(--ow-arc-teal);
}

.ow-arc-title {
  margin: 0 !important;
  padding: 0 !important;

  color: var(--ow-arc-ink) !important;

  font-family: inherit !important;
  font-size: clamp(30px, 3.6vw, 52px) !important;
  font-weight: 800 !important;

  line-height: 1.02 !important;
  letter-spacing: -.045em !important;

  text-transform: none !important;
}

.ow-arc-title span {
  color: var(--ow-arc-teal);
}

.ow-arc-intro {
  width: 360px;
  flex: 0 0 360px;
}

.ow-arc-intro p {
  margin: 0;

  color: var(--ow-arc-muted);

  font-size: 13.5px;
  line-height: 1.7;
}

.ow-arc-stat {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-top: 14px;

  color: var(--ow-arc-ink);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .14em;
  text-transform: uppercase;
}

.ow-arc-stat b {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--ow-arc-teal);
}


/* =========================================================
   03. DAFTAR POST — gambar kecil di kiri
========================================================= */

.ow-arc-body {
  padding-top: 18px;
  padding-bottom: 96px;
}

.ow-arc-list {
  display: flex;
  flex-direction: column;
}

.ow-arc-row {
  position: relative;

  display: grid;

  grid-template-columns: 132px minmax(0, 1fr) auto;

  align-items: center;

  gap: 26px;

  padding: 22px 18px 22px 0;

  border-bottom: 1px solid var(--ow-arc-line);

  color: var(--ow-arc-ink) !important;
  text-decoration: none !important;

  transition:
    background .25s ease,
    padding-left .25s ease;
}

.ow-arc-row::before {
  content: "";

  position: absolute;

  left: 0;
  top: 22px;
  bottom: 22px;

  width: 3px;

  background: var(--ow-arc-teal);

  transform: scaleY(0);
  transform-origin: top;

  transition: transform .25s ease;
}

.ow-arc-row:hover {
  background: #FFFFFF;

  padding-left: 18px;
}

.ow-arc-row:hover::before {
  transform: scaleY(1);
}

/* ---- Gambar ---- */

.ow-arc-thumb {
  position: relative;

  display: block;

  width: 132px;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  border: 1px solid var(--ow-arc-line);
  border-radius: 10px;

  background: #DCE5E7;
}

.ow-arc-thumb img {
  display: block;

  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  margin: 0 !important;

  /* dokumen biasanya tinggi: tampilkan bagian atasnya */
  object-fit: cover;
  object-position: top center;

  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

.ow-arc-row:hover .ow-arc-thumb img {
  transform: scale(1.05);
}

.ow-arc-thumb-fallback {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at center,
      rgba(0,174,165,.2),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      #294255,
      #0E202C
    );

  color: rgba(255,255,255,.82);

  font-size: 13px;
  font-weight: 800;

  letter-spacing: .12em;
}

/* ---- Teks ---- */

.ow-arc-row-body {
  display: block;

  min-width: 0;
}

.ow-arc-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 6px 8px;

  margin-bottom: 9px;
}

.ow-arc-type,
.ow-arc-chip {
  padding: 4px 9px;

  border: 1px solid var(--ow-arc-line);
  border-radius: 100px;

  color: var(--ow-arc-ink);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .12em;
  text-transform: uppercase;

  line-height: 1.2;
}

.ow-arc-type {
  border-color: var(--ow-arc-ink);

  background: var(--ow-arc-ink);

  color: #FFFFFF;
}

.ow-arc-type.is-template {
  border-color: var(--ow-arc-teal-dark);

  background: var(--ow-arc-teal-dark);
}

.ow-arc-chip {
  border-color: rgba(0,143,136,.3);

  color: var(--ow-arc-teal-dark);
}

.ow-arc-date {
  margin-left: 4px;

  color: #7C8A92;

  font-size: 10px;

  letter-spacing: .05em;
  text-transform: uppercase;
}

.ow-arc-row-title {
  display: block;

  margin: 0 0 7px;

  color: var(--ow-arc-ink);

  font-size: 20px;
  font-weight: 760;

  line-height: 1.15;
  letter-spacing: -.03em;
}

.ow-arc-row-excerpt {
  display: -webkit-box;

  max-width: 680px;

  overflow: hidden;

  color: var(--ow-arc-muted);

  font-size: 13px;
  line-height: 1.6;

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---- Aksi di kanan ---- */

.ow-arc-get {
  display: inline-flex;
  align-items: center;

  gap: 11px;

  color: var(--ow-arc-ink);

  font-size: 9.5px;
  font-weight: 800;

  letter-spacing: .15em;
  text-transform: uppercase;

  white-space: nowrap;
}

.ow-arc-get i {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid var(--ow-arc-line);
  border-radius: 50%;

  font-style: normal;
  font-size: 15px;
  font-weight: 400;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.ow-arc-row:hover .ow-arc-get i {
  background: var(--ow-arc-teal);
  border-color: var(--ow-arc-teal);

  color: #FFFFFF;
}


/* =========================================================
   04. PAGINATION
========================================================= */

.ow-arc-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  gap: 5px;

  margin-top: 36px;
}

.ow-arc-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 36px;
  height: 36px;

  padding: 0 9px;

  border: 1px solid var(--ow-arc-line);

  color: var(--ow-arc-ink) !important;
  text-decoration: none !important;

  font-size: 10px;
  font-weight: 800;

  transition: border-color .2s ease;
}

.ow-arc-pagination a.page-numbers:hover {
  border-color: var(--ow-arc-teal);
}

.ow-arc-pagination .page-numbers.current {
  background: var(--ow-arc-ink);
  border-color: var(--ow-arc-ink);

  color: #FFFFFF !important;
}

.ow-arc-pagination .page-numbers.dots {
  border-color: transparent;
}

.ow-arc-pagination .page-numbers.prev,
.ow-arc-pagination .page-numbers.next {
  font-size: 15px;
  font-weight: 400;
}


/* =========================================================
   05. KOSONG
========================================================= */

.ow-arc-empty {
  margin-top: 22px;
  padding: 60px 20px;

  border: 1px dashed var(--ow-arc-line);

  text-align: center;

  color: var(--ow-arc-muted);

  font-size: 13px;
  line-height: 1.6;
}

.ow-arc-empty strong {
  display: block;

  margin-bottom: 6px;

  color: var(--ow-arc-ink);

  font-size: 19px;

  letter-spacing: -.02em;
}


/* =========================================================
   06. LINK BAWAH
========================================================= */

.ow-arc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 16px 30px;

  margin-top: 56px;
  padding-top: 26px;

  border-top: 1px solid var(--ow-arc-line);
}

.ow-arc-foot a {
  display: inline-flex;
  align-items: center;

  gap: 13px;

  color: var(--ow-arc-ink) !important;
  text-decoration: none !important;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .15em;
  text-transform: uppercase;
}

.ow-arc-foot a b {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--ow-arc-line);
  border-radius: 50%;

  font-size: 16px;
  font-weight: 400;

  line-height: 1;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.ow-arc-foot a:hover b {
  background: var(--ow-arc-teal);
  border-color: var(--ow-arc-teal);

  color: #FFFFFF;
}


/* =========================================================
   07. TABLET
========================================================= */

@media (max-width: 1100px) {

  .ow-arc-inner {
    width: min(100% - 50px, 1000px);
  }

}


/* =========================================================
   08. MOBILE
========================================================= */

@media (max-width: 700px) {

  .ow-arc-inner {
    width: calc(100% - 34px);
  }

  .ow-arc-head {
    padding-top: 100px;
    padding-bottom: 26px;
  }

  .ow-arc-head-inner {
    display: block;
  }

  .ow-arc-title {
    font-size: 32px !important;
  }

  .ow-arc-intro {
    width: auto;

    padding-top: 16px;
  }

  .ow-arc-body {
    padding-top: 8px;
    padding-bottom: 70px;
  }

  .ow-arc-row {
    grid-template-columns: 92px minmax(0, 1fr);

    align-items: start;

    gap: 14px 15px;

    padding: 18px 0;
  }

  .ow-arc-row:hover {
    padding-left: 0;

    background: transparent;
  }

  .ow-arc-row::before {
    display: none;
  }

  .ow-arc-thumb {
    width: 92px;

    border-radius: 8px;
  }

  .ow-arc-row-title {
    font-size: 17px;
  }

  .ow-arc-row-excerpt {
    font-size: 12.5px;
  }

  .ow-arc-date {
    width: 100%;

    margin-left: 0;
  }

  .ow-arc-get {
    grid-column: 2;
  }

  .ow-arc-get i {
    width: 30px;
    height: 30px;

    font-size: 13px;
  }

  .ow-arc-foot {
    margin-top: 40px;
  }

}


/* =========================================================
   09. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .ow-arc *,
  .ow-arc *::before,
  .ow-arc *::after {
    transition: none !important;
  }

}