/* =========================================================
   OW TEMPLATE POST
   File   : assets/ow-templatepost.css
   Dipakai: HANYA di single post berkategori "Template"
            (dimuat lewat functions.php, bagian 6).

   Tampilan halaman download — sengaja BERBEDA dari artikel
   (ow-post.css tidak dimuat di halaman ini).

   Semua aturan dibatasi ke  body.ow-template-post  supaya
   tidak bocor ke artikel atau Page lain.

   ISI FILE
   01. Variabel
   02. Lebar & pembungkus halaman
   03. Kepala: breadcrumb
   04. Kepala: gambar + judul berdampingan
   05. Kepala: meta (department, format, tanggal)
   06. Tombol
   07. Label "About this file"
   08. Isi post (tipografi)
   09. Panel download
   10. Tag
   11. Tombol "Back to Templates List"
   12. More templates
   13. Tablet
   14. Mobile
   15. Reduced motion
========================================================= */


/* =========================================================
   01. VARIABEL
========================================================= */

body.ow-template-post {
  --ow-tpl-ink: #172B3A;
  --ow-tpl-ink-soft: #3C4E5C;
  --ow-tpl-muted: #64747E;
  --ow-tpl-teal: #00AEA5;
  --ow-tpl-teal-dark: #008F88;
  --ow-tpl-paper: #F5F7F7;
  --ow-tpl-line: rgba(23,43,58,.12);
  --ow-tpl-line-dark: rgba(255,255,255,.14);

  --ow-tpl-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Lebar maksimal isi halaman */
  --ow-tpl-width: 1120px;
}


/* =========================================================
   02. LEBAR & PEMBUNGKUS HALAMAN
   Lepas batas lebar bawaan Kadence, lalu pakai lebar sendiri.
========================================================= */

body.ow-template-post .site-main,
body.ow-template-post .content-area,
body.ow-template-post .entry-content-wrap,
body.ow-template-post article,
body.ow-template-post .site-container,
body.ow-template-post .content-container {
  max-width: none !important;
}

body.ow-template-post .content-area {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.ow-template-post .entry.content-bg {
  background: #FFFFFF !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.ow-template-post .entry-content-wrap {
  padding: 0 !important;
}

body.ow-template-post .entry-content {
  width: auto !important;
  max-width: var(--ow-tpl-width) !important;

  margin: 0 auto !important;

  /* 92px = tinggi header custom yang melayang di atas konten */
  padding: 118px 40px 82px !important;

  box-sizing: border-box;

  font-family: var(--ow-tpl-font);
  color: var(--ow-tpl-ink-soft);

  -webkit-font-smoothing: antialiased;
}

body.ow-template-post .entry-content *,
body.ow-template-post .entry-content *::before,
body.ow-template-post .entry-content *::after {
  box-sizing: border-box;
}


/* =========================================================
   03. KEPALA: BREADCRUMB
========================================================= */

body.ow-template-post .ow-tpl-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 8px;

  margin: 0 0 22px;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .16em;
  text-transform: uppercase;

  color: var(--ow-tpl-muted);
}

body.ow-template-post .ow-tpl-crumb a {
  color: var(--ow-tpl-teal-dark) !important;
  text-decoration: none !important;
}

body.ow-template-post .ow-tpl-crumb a:hover {
  color: var(--ow-tpl-ink) !important;
}

body.ow-template-post .ow-tpl-crumb span[aria-current] {
  max-width: 420px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: var(--ow-tpl-ink);
}


/* =========================================================
   04. KEPALA: FEATURE IMAGE + FILE INFO
   Clean / full-image / compact editorial layout
========================================================= */

body.ow-template-post .ow-tpl-head {
  margin: 0 0 58px;
}

body.ow-template-post .ow-tpl-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
  align-items: center;
  gap: 48px;

  padding: 0;
  border: 0;
  background: transparent;
}

/* ---- Feature image: no dark frame, no crop ---- */
body.ow-template-post .ow-tpl-cover {
  position: relative;
  min-height: 0;
  height: auto;
  overflow: visible;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.ow-template-post .ow-tpl-cover img {
  position: relative;
  inset: auto;
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 620px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
  object-position: center;
}

body.ow-template-post .ow-tpl-cover::after {
  display: none;
}

body.ow-template-post .ow-tpl-cover-fallback {
  position: relative;
  inset: auto;
  min-height: 280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(23,43,58,.10);
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 800;
  letter-spacing: -.06em;
  background: var(--ow-tpl-paper);
}

/* ---- File information ---- */
body.ow-template-post .ow-tpl-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0 10px 12px;
  max-width: 360px;
}

body.ow-template-post .ow-tpl-info::before {
  display: none;
}

body.ow-template-post .ow-tpl-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: var(--ow-tpl-teal-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.ow-template-post .ow-tpl-kicker i {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ow-tpl-teal);
}

body.ow-template-post .ow-tpl-title {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 340px;
  font-family: var(--ow-tpl-font) !important;
  font-size: clamp(22px, 2.2vw, 31px) !important;
  font-weight: 750 !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
  color: var(--ow-tpl-ink) !important;
}

body.ow-template-post .ow-tpl-title::before {
  display: none !important;
}


/* =========================================================
   05. KEPALA: META
   Compact vertical metadata
========================================================= */

body.ow-template-post .ow-tpl-meta {
  display: block;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--ow-tpl-line);
}

body.ow-template-post .ow-tpl-meta-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ow-tpl-line);
}

body.ow-template-post .ow-tpl-meta-item:nth-child(odd) {
  border-right: 0;
}

body.ow-template-post .ow-tpl-meta-item::before {
  display: none;
}

body.ow-template-post .ow-tpl-meta dt {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ow-tpl-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1.3;
}

body.ow-template-post .ow-tpl-meta dd {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ow-tpl-ink);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
}


/* =========================================================
   06. TOMBOL
========================================================= */

body.ow-template-post .ow-tpl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 20px;
}

body.ow-template-post .ow-tpl-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--ow-tpl-ink);
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

body.ow-template-post .ow-tpl-btn b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ow-tpl-teal);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s ease;
}

body.ow-template-post .ow-tpl-btn:hover {
  background: var(--ow-tpl-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,143,136,.18);
}

body.ow-template-post .ow-tpl-btn:hover b {
  background: var(--ow-tpl-ink);
  transform: translateX(2px);
}

body.ow-template-post .ow-tpl-btn-light {
  background: #FFFFFF;
  color: var(--ow-tpl-ink) !important;
  border: 1px solid var(--ow-tpl-line);
}

body.ow-template-post .ow-tpl-btn-light:hover {
  background: var(--ow-tpl-teal);
  color: #FFFFFF !important;
  border-color: var(--ow-tpl-teal);
  box-shadow: none;
}

body.ow-template-post .ow-tpl-link {
  color: var(--ow-tpl-ink) !important;
  text-decoration: none !important;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ow-tpl-line);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}

body.ow-template-post .ow-tpl-link:hover {
  color: var(--ow-tpl-teal-dark) !important;
  border-color: var(--ow-tpl-teal);
}


/* =========================================================
   07. LABEL "ABOUT THIS FILE"
========================================================= */

body.ow-template-post .ow-tpl-about-label {
  display: flex;
  align-items: center;

  gap: 10px;

  max-width: 780px;

  margin: 0 0 22px;
  padding-bottom: 14px;

  border-bottom: 1px solid var(--ow-tpl-line);

  color: var(--ow-tpl-teal-dark);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .17em;
  text-transform: uppercase;

  /* supaya tidak tertutup header saat link "What is inside" diklik */
  scroll-margin-top: 120px;
}

body.ow-template-post .ow-tpl-about-label i {
  display: block;

  width: 30px;
  height: 2px;

  background: var(--ow-tpl-teal);
}


/* =========================================================
   08. ISI POST (TIPOGRAFI)
   Kolom baca dibuat lebih sempit (780px) dari kepala halaman.
========================================================= */

body.ow-template-post .entry-content > p,
body.ow-template-post .entry-content > ul,
body.ow-template-post .entry-content > ol,
body.ow-template-post .entry-content > h2,
body.ow-template-post .entry-content > h3,
body.ow-template-post .entry-content > h4,
body.ow-template-post .entry-content > blockquote,
body.ow-template-post .entry-content > figure,
body.ow-template-post .entry-content > table,
body.ow-template-post .entry-content > .wp-block-table,
body.ow-template-post .entry-content > hr {
  max-width: 780px;
}

body.ow-template-post .entry-content > p {
  margin: 0 0 1.2em;

  font-size: 16.5px;
  line-height: 1.75;

  color: var(--ow-tpl-ink-soft);
}

body.ow-template-post .entry-content strong,
body.ow-template-post .entry-content b {
  color: var(--ow-tpl-ink);
  font-weight: 750;
}

/* Heading di dalam isi */

body.ow-template-post .entry-content > h2,
body.ow-template-post .entry-content > h3,
body.ow-template-post .entry-content > h4 {
  margin: 1.9em 0 .6em;
  padding: 0;

  font-family: var(--ow-tpl-font);
  font-weight: 800;

  line-height: 1.12;
  letter-spacing: -.035em;

  text-transform: none;

  color: var(--ow-tpl-ink);
}

body.ow-template-post .entry-content > h2 {
  font-size: clamp(24px, 2.4vw, 30px);
}

body.ow-template-post .entry-content > h3 {
  font-size: clamp(21px, 2vw, 25px);
}

body.ow-template-post .entry-content > h4 {
  font-size: 18px;
}

body.ow-template-post .ow-tpl-about-label + h2,
body.ow-template-post .ow-tpl-about-label + h3,
body.ow-template-post .ow-tpl-about-label + h4 {
  margin-top: 0;
}

/* Link di dalam isi */

body.ow-template-post .entry-content > p a,
body.ow-template-post .entry-content > ul a,
body.ow-template-post .entry-content > ol a {
  color: var(--ow-tpl-teal-dark);

  font-weight: 650;

  text-decoration: underline;
  text-decoration-color: rgba(0,174,165,.4);
  text-underline-offset: 3px;

  transition:
    color .2s ease,
    text-decoration-color .2s ease;
}

body.ow-template-post .entry-content > p a:hover,
body.ow-template-post .entry-content > ul a:hover,
body.ow-template-post .entry-content > ol a:hover {
  color: var(--ow-tpl-ink);

  text-decoration-color: var(--ow-tpl-teal);
}

/* List — bergaris seperti lembar spesifikasi */

body.ow-template-post .entry-content > ul,
body.ow-template-post .entry-content > ol {
  margin: 0 0 1.6em;
  padding: 0;

  list-style: none;

  border-top: 1px solid var(--ow-tpl-line);

  counter-reset: ow-tpl-list;
}

body.ow-template-post .entry-content > ul > li,
body.ow-template-post .entry-content > ol > li {
  position: relative;

  margin: 0;
  padding: 12px 0 12px 44px;

  border-bottom: 1px solid var(--ow-tpl-line);

  font-size: 15.5px;
  line-height: 1.65;

  color: var(--ow-tpl-ink-soft);

  counter-increment: ow-tpl-list;
}

body.ow-template-post .entry-content > ul > li::before {
  content: "";

  position: absolute;

  left: 4px;
  top: 25px;

  width: 14px;
  height: 2px;

  background: var(--ow-tpl-teal);
}

body.ow-template-post .entry-content > ol > li::before {
  content: counter(ow-tpl-list, decimal-leading-zero);

  position: absolute;

  left: 2px;
  top: 14px;

  color: var(--ow-tpl-teal-dark);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .1em;
}

/* Gambar di dalam isi */

body.ow-template-post .entry-content > figure,
body.ow-template-post .entry-content > .wp-block-image {
  margin: 1.8em 0;
}

body.ow-template-post .entry-content > figure img,
body.ow-template-post .entry-content > p > img {
  display: block;

  max-width: 100%;
  height: auto;

  border: 1px solid var(--ow-tpl-line);
}

body.ow-template-post .entry-content figcaption {
  margin-top: .7em;

  color: var(--ow-tpl-muted);

  font-size: 12px;

  letter-spacing: .02em;
}

/* Tabel */

body.ow-template-post .entry-content table {
  width: 100%;

  margin: 1.8em 0;

  border-collapse: collapse;

  font-size: 14.5px;
}

body.ow-template-post .entry-content th {
  padding: 11px 14px;

  border-bottom: 2px solid var(--ow-tpl-ink);

  color: var(--ow-tpl-ink);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
}

body.ow-template-post .entry-content td {
  padding: 11px 14px;

  border-bottom: 1px solid var(--ow-tpl-line);
}

/* Blockquote */

body.ow-template-post .entry-content > blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;

  border-left: 3px solid var(--ow-tpl-teal);

  color: var(--ow-tpl-ink);

  font-size: 18px;
  line-height: 1.55;
}

body.ow-template-post .entry-content > hr {
  margin: 2.4em 0;

  border: 0;
  border-top: 1px solid var(--ow-tpl-line);
}


/* =========================================================
   09. PANEL DOWNLOAD (gelap, di akhir isi)
========================================================= */

body.ow-template-post .ow-tpl-download {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 28px 40px;

  overflow: hidden;

  margin: 46px 0 0;
  padding: 34px 36px;

  color: #FFFFFF;

  background:
    radial-gradient(
      circle at calc(100% - 20px) 50%,
      transparent 149px,
      rgba(0,174,165,.22) 149.5px,
      rgba(0,174,165,.22) 150.5px,
      transparent 151px
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(0,174,165,.18),
      transparent 32%
    ),
    var(--ow-tpl-ink);
}

/* Garis grid halus */

body.ow-template-post .ow-tpl-download::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: .28;

  background-image:
    linear-gradient(
      rgba(255,255,255,.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.035) 1px,
      transparent 1px
    );

  background-size: 90px 90px;
}

/* Strip halus */

body.ow-template-post .ow-tpl-download::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: .035;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.7) 0,
      rgba(255,255,255,.7) 1px,
      transparent 1px,
      transparent 4px
    );
}

body.ow-template-post .ow-tpl-download > * {
  position: relative;
  z-index: 2;
}

body.ow-template-post .ow-tpl-download-copy {
  min-width: 0;
}

body.ow-template-post .ow-tpl-download-label {
  margin-bottom: 10px;

  color: var(--ow-tpl-teal);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .2em;
  text-transform: uppercase;
}

body.ow-template-post .ow-tpl-download-title {
  color: #FFFFFF;

  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;

  line-height: 1.05;
  letter-spacing: -.04em;
}

body.ow-template-post .ow-tpl-download-note {
  margin-top: 10px;

  color: #A9B8BE;

  font-size: 13px;
}

body.ow-template-post .ow-tpl-download .ow-tpl-btn {
  flex: 0 0 auto;
}


/* =========================================================
   10. TAG
========================================================= */

body.ow-template-post .ow-tpl-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 8px;

  margin: 30px 0 0;
}

body.ow-template-post .ow-tpl-tags-label {
  margin-right: 8px;

  color: var(--ow-tpl-muted);

  font-size: 9.5px;
  font-weight: 800;

  letter-spacing: .17em;
  text-transform: uppercase;
}

body.ow-template-post .ow-tpl-tags a {
  display: inline-block;

  padding: 6px 12px;

  border: 1px solid rgba(0,143,136,.3);
  border-radius: 999px;

  color: var(--ow-tpl-teal-dark) !important;
  text-decoration: none !important;

  font-size: 9.5px;
  font-weight: 800;

  letter-spacing: .12em;
  text-transform: uppercase;

  line-height: 1.2;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

body.ow-template-post .ow-tpl-tags a:hover {
  background: var(--ow-tpl-ink);
  border-color: var(--ow-tpl-ink);

  color: #FFFFFF !important;
}


/* =========================================================
   11. TOMBOL "BACK TO TEMPLATES LIST"
========================================================= */

body.ow-template-post .ow-tpl-back-wrap {
  margin: 44px 0 0;
  padding-top: 28px;

  border-top: 1px solid var(--ow-tpl-line);
}

body.ow-template-post .ow-tpl-back {
  display: inline-flex;
  align-items: center;

  gap: 14px;

  color: var(--ow-tpl-ink) !important;
  text-decoration: none !important;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .15em;
  text-transform: uppercase;
}

body.ow-template-post .ow-tpl-back b {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid var(--ow-tpl-line);
  border-radius: 50%;

  font-size: 16px;
  font-weight: 400;

  line-height: 1;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

body.ow-template-post .ow-tpl-back:hover b {
  background: var(--ow-tpl-teal);
  border-color: var(--ow-tpl-teal);

  color: #FFFFFF;

  transform: translateX(-4px);
}


/* =========================================================
   12. MORE TEMPLATES
========================================================= */

body.ow-template-post .ow-tpl-more {
  margin: 52px 0 0;
}

body.ow-template-post .ow-tpl-more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;

  gap: 20px;

  padding-bottom: 16px;

  border-bottom: 1px solid var(--ow-tpl-line);
}

body.ow-template-post .ow-tpl-more-title {
  margin: 0 !important;
  padding: 0 !important;

  font-family: var(--ow-tpl-font) !important;
  font-size: 11px !important;
  font-weight: 800 !important;

  letter-spacing: .17em !important;
  text-transform: uppercase !important;

  line-height: 1.3 !important;

  color: var(--ow-tpl-ink) !important;
}

body.ow-template-post .ow-tpl-more-title::before {
  display: none !important;
}

body.ow-template-post .ow-tpl-more-head a {
  color: var(--ow-tpl-teal-dark) !important;
  text-decoration: none !important;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .15em;
  text-transform: uppercase;
}

body.ow-template-post .ow-tpl-more-head a:hover {
  color: var(--ow-tpl-ink) !important;
}

body.ow-template-post .ow-tpl-more-row {
  display: grid;

  grid-template-columns: 104px minmax(0, 1fr) auto;

  align-items: center;

  gap: 22px;

  padding: 18px 16px 18px 0;

  border-bottom: 1px solid var(--ow-tpl-line);

  color: var(--ow-tpl-ink) !important;
  text-decoration: none !important;

  transition:
    background .25s ease,
    padding-left .25s ease;
}

body.ow-template-post .ow-tpl-more-row:hover {
  background: var(--ow-tpl-paper);

  padding-left: 16px;
}

body.ow-template-post .ow-tpl-more-thumb {
  position: relative;

  display: block;

  width: 104px;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #294255,
      #0E202C
    );
}

body.ow-template-post .ow-tpl-more-thumb img {
  display: block;

  width: 100% !important;
  height: 100% !important;

  margin: 0 !important;

  border-radius: 0 !important;
  box-shadow: none !important;

  object-fit: cover;
}

body.ow-template-post .ow-tpl-more-body {
  display: block;

  min-width: 0;
}

body.ow-template-post .ow-tpl-more-date {
  display: block;

  margin-bottom: 6px;

  color: var(--ow-tpl-muted);

  font-size: 10px;
  font-weight: 700;

  letter-spacing: .1em;
  text-transform: uppercase;
}

body.ow-template-post .ow-tpl-more-name {
  display: block;

  color: var(--ow-tpl-ink);

  font-size: 18px;
  font-weight: 760;

  line-height: 1.2;
  letter-spacing: -.03em;
}

body.ow-template-post .ow-tpl-more-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid var(--ow-tpl-line);
  border-radius: 50%;

  font-size: 15px;
  font-weight: 400;

  line-height: 1;

  transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease,
    transform .2s ease;
}

body.ow-template-post .ow-tpl-more-row:hover .ow-tpl-more-arrow {
  background: var(--ow-tpl-teal);
  border-color: var(--ow-tpl-teal);

  color: #FFFFFF;

  transform: translateX(3px);
}


/* =========================================================
   13. TABLET
========================================================= */

@media (max-width: 1000px) {

  body.ow-template-post .entry-content {
    padding: 108px 26px 72px !important;
  }

  body.ow-template-post .ow-tpl-head-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 34px;
  }

  body.ow-template-post .ow-tpl-cover img {
    max-height: 520px;
  }

  body.ow-template-post .ow-tpl-info {
    padding: 8px 0;
  }

  body.ow-template-post .ow-tpl-title {
    font-size: clamp(21px, 3vw, 28px) !important;
  }

  body.ow-template-post .ow-tpl-download {
    padding: 30px 28px;
  }

}


/* =========================================================
   14. MOBILE
   Gambar di atas, judul + meta di bawahnya.
========================================================= */

@media (max-width: 700px) {

  body.ow-template-post .entry-content {
    padding: 92px 17px 60px !important;
  }

  body.ow-template-post .ow-tpl-crumb {
    margin-bottom: 14px;
    font-size: 8px;
  }

  body.ow-template-post .ow-tpl-crumb span[aria-current] {
    max-width: 180px;
  }

  body.ow-template-post .ow-tpl-head {
    margin-bottom: 42px;
  }

  body.ow-template-post .ow-tpl-head-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  body.ow-template-post .ow-tpl-cover {
    width: 100%;
  }

  body.ow-template-post .ow-tpl-cover img {
    width: 100% !important;
    max-height: none;
  }

  body.ow-template-post .ow-tpl-info {
    max-width: none;
    padding: 0;
  }

  body.ow-template-post .ow-tpl-title {
    max-width: 100%;
    font-size: 27px !important;
    line-height: 1.08 !important;
  }

  body.ow-template-post .ow-tpl-meta {
    margin-top: 18px !important;
  }

  body.ow-template-post .ow-tpl-meta-item {
    grid-template-columns: 82px minmax(0,1fr);
    gap: 10px;
    padding: 8px 0;
  }

  body.ow-template-post .ow-tpl-meta dd {
    font-size: 11px;
  }

  body.ow-template-post .ow-tpl-actions {
    margin-top: 18px;
  }

  body.ow-template-post .ow-tpl-btn {
    width: auto;
    justify-content: space-between;
  }

  body.ow-template-post .entry-content > p {
    font-size: 15px;
  }

  body.ow-template-post .ow-tpl-download {
    flex-direction: column;
    align-items: stretch;
    margin-top: 36px;
    padding: 28px 21px;
  }

  body.ow-template-post .ow-tpl-more {
    margin-top: 46px;
  }

  body.ow-template-post .ow-tpl-more-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 13px;
    padding: 14px 0;
  }

  body.ow-template-post .ow-tpl-more-row:hover {
    padding-left: 0;
    background: transparent;
  }

  body.ow-template-post .ow-tpl-more-thumb {
    width: 76px;
  }

  body.ow-template-post .ow-tpl-more-name {
    font-size: 15px;
  }

  body.ow-template-post .ow-tpl-more-arrow {
    display: none;
  }
}


/* =========================================================
   15. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  body.ow-template-post .entry-content *,
  body.ow-template-post .entry-content *::before,
  body.ow-template-post .entry-content *::after {
    transition: none !important;
  }

}

/* =========================================================
   16. FLOATING PREVIEW
   Desktop only — appears after hero and disappears before
   the main content reaches the lower download sections.
========================================================= */

body.ow-template-post .ow-tpl-floating-preview {
  position: fixed;
  z-index: 90;

  top: 50%;
  right: max(20px, calc((100vw - 1180px) / 2 - 205px));

  width: 176px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-46%) translateX(24px) scale(.94);

  transition:
    opacity .45s cubic-bezier(.2,.7,.2,1),
    transform .55s cubic-bezier(.2,.7,.2,1),
    visibility .45s ease;
}

body.ow-template-post .ow-tpl-floating-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-46%) translateX(0) scale(1);
}

body.ow-template-post .ow-tpl-floating-image {
  position: relative;

  width: 100%;
  aspect-ratio: 4 / 3;

  overflow: hidden;

  border: 1px solid rgba(16,38,51,.12);
  border-radius: 14px;

  background: #fff;

  box-shadow:
    0 22px 55px rgba(16,38,51,.14),
    0 4px 12px rgba(16,38,51,.06);
}

body.ow-template-post .ow-tpl-floating-image::after {
  content: "";

  position: absolute;
  inset: 0;

  border: 1px solid rgba(255,255,255,.75);
  border-radius: inherit;

  pointer-events: none;
}

body.ow-template-post .ow-tpl-floating-image img {
  display: block;

  width: 100% !important;
  height: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  object-fit: contain !important;
  background: #fff;
}

body.ow-template-post .ow-tpl-floating-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 20px;
  padding: 0 8px;

  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;

  background: rgba(16,38,51,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #fff;

  font-size: 7px;
  font-weight: 850;
  letter-spacing: .17em;
  line-height: 1;
}

body.ow-template-post .ow-tpl-floating-caption {
  margin-top: 10px;
  padding-left: 3px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  color: var(--ow-tpl-ink);

  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.01em;
}

/* =========================================================
   FLOATING PREVIEW — LARGE LAPTOP / DESKTOP
========================================================= */

@media (min-width: 1401px) {

  body.ow-template-post .ow-tpl-floating-preview {
    width: 190px;
  }
}


/* =========================================================
   TABLET + MOBILE
   Do not use fixed floating preview on narrower screens.
   The hero remains the visual anchor and content stays clean.
========================================================= */

@media (max-width: 1000px) {

  body.ow-template-post .ow-tpl-floating-preview {
    display: none !important;
  }

  body.ow-template-post.ow-template-floating-active .ow-tpl-about-label::after {
    display: none;
  }
}
