/*
Theme Name: Pena Migran Magazine
Theme URI: https://penamigran.id
Author: Pena Migran
Author URI: https://penamigran.id
Description: Tema WordPress bergaya majalah (magazine) untuk portal artikel penamigran.id. Beranda editorial dengan hero, ticker berita, seksi kategori, artikel terpopuler, halaman artikel dengan progress bar baca, artikel terkait, dan pengaturan lengkap lewat Customizer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: penamigran
Tags: news, blog, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ==========================================================================
   1. Variabel & reset
   ========================================================================== */
:root {
  --pm-ink: #14181f;
  --pm-ink-soft: #4a5260;
  --pm-muted: #7a8190;
  --pm-paper: #fbf8f3;
  --pm-white: #ffffff;
  --pm-line: #e4ddd0;
  --pm-accent: #c8102e;
  --pm-accent-dark: #9c0c24;
  --pm-navy: #0f2747;
  --pm-gold: #e0a526;
  --pm-radius: 6px;
  --pm-shadow: 0 6px 24px rgba(20, 24, 31, .08);
  --pm-font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --pm-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pm-wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pm-paper);
  color: var(--pm-ink);
  font-family: var(--pm-font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pm-accent); }
h1, h2, h3, h4, h5 { font-family: var(--pm-font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--pm-gold); outline-offset: 2px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.screen-reader-text:focus {
  background: #fff; clip: auto; clip-path: none; height: auto; width: auto;
  padding: 12px 18px; left: 8px; top: 8px; z-index: 100000; font-weight: 700;
}

.pm-wrap { width: 100%; max-width: var(--pm-wrap); margin: 0 auto; padding: 0 20px; }
.pm-main { padding: 32px 0 56px; }

/* ==========================================================================
   2. Header
   ========================================================================== */
.pm-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--pm-accent); z-index: 9999; }

.pm-topbar { background: var(--pm-navy); color: #dfe6f1; font-size: 13px; }
.pm-topbar .pm-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.pm-topbar a:hover { color: var(--pm-gold); }
.pm-date { letter-spacing: .02em; }
.pm-social { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pm-social a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 26px; padding: 0 8px; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: rgba(255, 255, 255, .1); color: #fff;
}
.pm-social a:hover { background: var(--pm-accent); color: #fff; }

.pm-masthead { text-align: center; padding: 28px 0 22px; background: var(--pm-white); border-bottom: 1px solid var(--pm-line); }
.pm-brand { display: inline-block; }
.pm-brand .custom-logo { max-height: 70px; width: auto; margin: 0 auto; }
.pm-site-title {
  font-family: var(--pm-font-head); font-weight: 900; font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -.02em; line-height: 1; margin: 0; color: var(--pm-ink);
}
.pm-site-title span { color: var(--pm-accent); }
.pm-tagline { margin: 8px 0 0; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--pm-muted); }

.pm-navbar { background: var(--pm-white); border-bottom: 3px double var(--pm-ink); position: sticky; top: 0; z-index: 900; }
.admin-bar .pm-navbar { top: 32px; }
.pm-navbar .pm-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.pm-menu li { position: relative; }
.pm-menu a {
  display: block; padding: 15px 16px; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .06em;
}
.pm-menu > li > a::after {
  content: ""; display: block; height: 3px; width: 0; background: var(--pm-accent);
  margin-top: 4px; transition: width .25s ease;
}
.pm-menu > li:hover > a::after, .pm-menu > .current-menu-item > a::after, .pm-menu > .current-menu-ancestor > a::after { width: 100%; }
.pm-menu .sub-menu {
  position: absolute; left: 0; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: 8px 0;
  background: var(--pm-white); border: 1px solid var(--pm-line); border-top: 3px solid var(--pm-accent);
  box-shadow: var(--pm-shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .2s ease;
}
.pm-menu li:hover > .sub-menu, .pm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pm-menu .sub-menu a { text-transform: none; letter-spacing: 0; font-weight: 600; padding: 9px 18px; }

.pm-actions { display: flex; align-items: center; gap: 4px; }
.pm-icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--pm-ink); border-radius: 50%;
}
.pm-icon-btn:hover { background: var(--pm-paper); color: var(--pm-accent); }
.pm-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-burger { display: none; }

.pm-searchbar { background: var(--pm-ink); padding: 18px 0; display: none; }
.pm-searchbar.is-open { display: block; }

.pm-search-form { display: flex; max-width: 640px; margin: 0 auto; }
.pm-search-form input[type="search"] {
  flex: 1; padding: 13px 16px; border: 2px solid var(--pm-line); border-right: 0;
  background: var(--pm-white); border-radius: var(--pm-radius) 0 0 var(--pm-radius); min-width: 0;
}
.pm-search-form button {
  padding: 0 22px; background: var(--pm-accent); color: #fff; border: 2px solid var(--pm-accent);
  font-weight: 700; cursor: pointer; border-radius: 0 var(--pm-radius) var(--pm-radius) 0;
}
.pm-search-form button:hover { background: var(--pm-accent-dark); border-color: var(--pm-accent-dark); }

/* Ticker */
.pm-ticker { background: var(--pm-white); border-bottom: 1px solid var(--pm-line); font-size: 14px; }
.pm-ticker .pm-wrap { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.pm-ticker-label {
  flex: none; background: var(--pm-accent); color: #fff; font-weight: 800; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; margin: 8px 0;
}
.pm-ticker-track { overflow: hidden; flex: 1; white-space: nowrap; }
.pm-ticker-inner { display: inline-block; padding-left: 100%; animation: pm-marquee 45s linear infinite; }
.pm-ticker-track:hover .pm-ticker-inner { animation-play-state: paused; }
.pm-ticker-inner a { margin-right: 44px; font-weight: 600; }
.pm-ticker-inner a::before { content: "●"; color: var(--pm-accent); margin-right: 10px; font-size: 9px; vertical-align: middle; }
@keyframes pm-marquee { to { transform: translateX(-100%); } }

/* ==========================================================================
   3. Komponen umum
   ========================================================================== */
.pm-section { margin-bottom: 48px; }
.pm-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--pm-ink); margin-bottom: 22px; padding-bottom: 8px;
}
.pm-section-title {
  margin: 0; font-size: 24px; position: relative; padding-left: 16px;
}
.pm-section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; background: var(--pm-accent);
}
.pm-more { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pm-accent); }
.pm-more:hover { text-decoration: underline; }

.pm-badge {
  display: inline-block; background: var(--pm-accent); color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 2px; line-height: 1.5;
}
.pm-badge:hover { background: var(--pm-ink); color: #fff; }

.pm-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--pm-muted); margin: 0; }
.pm-meta a:hover { color: var(--pm-accent); }
.pm-meta span + span::before { content: "·"; margin-right: 14px; }

.pm-thumb { display: block; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--pm-navy), #26497a); border-radius: var(--pm-radius); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pm-thumb:hover img { transform: scale(1.05); }
.pm-thumb--16x10 { aspect-ratio: 16 / 10; }
.pm-thumb--square { aspect-ratio: 1; }
.pm-thumb-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .55); font-family: var(--pm-font-head); font-size: 34px; font-weight: 900;
}

.pm-card { display: flex; flex-direction: column; gap: 12px; }
.pm-card .pm-card-title { font-size: 20px; margin: 0; }
.pm-card .pm-card-title a { background: linear-gradient(var(--pm-accent), var(--pm-accent)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease, color .2s; }
.pm-card:hover .pm-card-title a { background-size: 100% 2px; }
.pm-card-excerpt { color: var(--pm-ink-soft); font-size: 15px; margin: 0; }

.pm-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.pm-row .pm-card-title { font-size: 17px; margin: 4px 0 6px; line-height: 1.3; }

.pm-grid { display: grid; gap: 28px; }
.pm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pm-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ==========================================================================
   4. Beranda
   ========================================================================== */
.pm-hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; margin-bottom: 48px; }
.pm-hero-main { position: relative; border-radius: var(--pm-radius); overflow: hidden; min-height: 460px; background: var(--pm-navy); }
.pm-hero-main .pm-thumb { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
.pm-hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 14, 26, .92) 8%, rgba(8, 14, 26, .15) 70%); pointer-events: none; }
.pm-hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; z-index: 2; color: #fff; }
.pm-hero-body .pm-hero-title { font-size: clamp(26px, 3.4vw, 40px); margin: 12px 0 10px; }
.pm-hero-body .pm-hero-title a:hover { color: var(--pm-gold); }
.pm-hero-body .pm-meta, .pm-hero-body .pm-meta a { color: #d4dbe7; }
.pm-hero-side { display: flex; flex-direction: column; gap: 18px; }
.pm-hero-side .pm-row { padding-bottom: 18px; border-bottom: 1px solid var(--pm-line); }
.pm-hero-side .pm-row:last-child { border-bottom: 0; padding-bottom: 0; }

.pm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.pm-list { display: flex; flex-direction: column; gap: 26px; }
.pm-list .pm-row { grid-template-columns: 260px 1fr; gap: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--pm-line); }
.pm-list .pm-row .pm-card-title { font-size: 24px; }

.pm-cat-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; }
.pm-cat-block .pm-cat-list { display: flex; flex-direction: column; gap: 18px; }

.pm-cta {
  background: var(--pm-navy); color: #fff; border-radius: var(--pm-radius); padding: 42px 34px;
  text-align: center; margin-bottom: 48px; position: relative; overflow: hidden;
}
.pm-cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(224, 165, 38, .18); }
.pm-cta h2 { color: #fff; font-size: clamp(24px, 3.5vw, 34px); position: relative; }
.pm-cta p { max-width: 620px; margin: 0 auto 22px; color: #cbd5e6; position: relative; }

.pm-btn {
  display: inline-block; background: var(--pm-accent); color: #fff; padding: 13px 28px; font-weight: 800;
  border: 0; border-radius: var(--pm-radius); cursor: pointer; letter-spacing: .04em; position: relative;
}
.pm-btn:hover { background: var(--pm-gold); color: var(--pm-ink); }

/* ==========================================================================
   5. Sidebar & widget
   ========================================================================== */
.pm-sidebar .widget, .pm-widget-box {
  background: var(--pm-white); border: 1px solid var(--pm-line); border-radius: var(--pm-radius);
  padding: 22px; margin-bottom: 26px;
}
.widget-title, .pm-widget-title {
  font-size: 18px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--pm-ink); position: relative;
}
.widget-title::after, .pm-widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--pm-accent); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--pm-line); }
.widget li:last-child { border-bottom: 0; }

.pm-popular { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.pm-popular li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--pm-line); counter-increment: pop; }
.pm-popular li:last-child { border-bottom: 0; padding-bottom: 0; }
.pm-popular li::before { content: counter(pop); font-family: var(--pm-font-head); font-size: 32px; font-weight: 900; color: var(--pm-line); line-height: 1; }
.pm-popular a { font-family: var(--pm-font-head); font-weight: 700; font-size: 16px; line-height: 1.35; display: block; }
.pm-popular small { color: var(--pm-muted); font-size: 12px; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a, .pm-tags a {
  font-size: 13px !important; padding: 4px 12px; border: 1px solid var(--pm-line); border-radius: 99px; background: var(--pm-paper); display: inline-block;
}
.tagcloud a:hover, .pm-tags a:hover { background: var(--pm-accent); border-color: var(--pm-accent); color: #fff; }

/* ==========================================================================
   6. Artikel tunggal
   ========================================================================== */
.pm-article-head { max-width: 860px; margin: 0 auto 28px; text-align: center; }
.pm-article-head .pm-badge { margin-bottom: 16px; }
.pm-article-title { font-size: clamp(30px, 5vw, 52px); letter-spacing: -.015em; margin-bottom: 16px; }
.pm-lede { font-size: 20px; color: var(--pm-ink-soft); line-height: 1.55; margin-bottom: 20px; }
.pm-article-head .pm-meta { justify-content: center; }
.pm-article-figure { margin: 0 auto 36px; max-width: 1000px; }
.pm-article-figure .pm-thumb { aspect-ratio: 16 / 9; }
.pm-article-figure figcaption { font-size: 13px; color: var(--pm-muted); text-align: center; margin-top: 8px; }

.pm-article-grid { display: grid; grid-template-columns: 56px minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.pm-article-grid--full { grid-template-columns: 56px minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
.pm-share { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 8px; }
.pm-share a, .pm-share button {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--pm-line); background: var(--pm-white); border-radius: 50%; font-size: 12px; font-weight: 800; cursor: pointer; color: var(--pm-ink);
}
.pm-share a:hover, .pm-share button:hover { background: var(--pm-accent); border-color: var(--pm-accent); color: #fff; }

.pm-content { font-size: 18px; line-height: 1.85; }
.pm-content > *:first-child { margin-top: 0; }
.pm-content h2 { font-size: 30px; margin: 1.8em 0 .6em; }
.pm-content h3 { font-size: 24px; margin: 1.6em 0 .5em; }
.pm-content a { color: var(--pm-accent); text-decoration: underline; text-underline-offset: 3px; }
.pm-content img { border-radius: var(--pm-radius); }
.pm-content figure { margin: 1.8em 0; }
.pm-content figcaption, .wp-caption-text { font-size: 13px; color: var(--pm-muted); margin-top: 6px; }
.pm-content blockquote {
  margin: 2em 0; padding: 6px 0 6px 26px; border-left: 5px solid var(--pm-accent);
  font-family: var(--pm-font-head); font-size: 26px; font-style: italic; line-height: 1.4; color: var(--pm-navy);
}
.pm-content blockquote cite { display: block; font-family: var(--pm-font-body); font-size: 14px; font-style: normal; color: var(--pm-muted); margin-top: 10px; }
.pm-content > p:first-of-type::first-letter {
  float: left; font-family: var(--pm-font-head); font-size: 76px; line-height: .85; font-weight: 900; padding: 8px 12px 0 0; color: var(--pm-accent);
}
.pm-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 16px; }
.pm-content th, .pm-content td { border: 1px solid var(--pm-line); padding: 10px 12px; text-align: left; }
.pm-content th { background: var(--pm-navy); color: #fff; }
.pm-content pre, .pm-content code { background: #eef0f4; border-radius: 4px; font-size: 15px; }
.pm-content code { padding: 2px 6px; }
.pm-content pre { padding: 16px; overflow: auto; }
.pm-content .alignwide { margin-left: -40px; margin-right: -40px; max-width: none; width: auto; }
.pm-content .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.pm-content .alignright { float: right; margin: .4em 0 1em 1.4em; }
.pm-content .aligncenter { margin-left: auto; margin-right: auto; }

.pm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 28px; align-items: center; }
.pm-tags strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

.pm-author-box {
  display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 26px; background: var(--pm-white);
  border: 1px solid var(--pm-line); border-top: 4px solid var(--pm-accent); border-radius: var(--pm-radius); margin: 36px 0;
}
.pm-author-box img { border-radius: 50%; }
.pm-author-box h4 { margin: 0 0 6px; font-size: 20px; }
.pm-author-box p { margin: 0; color: var(--pm-ink-soft); font-size: 15px; }

.pm-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0; }
.pm-post-nav a { display: block; padding: 18px 20px; background: var(--pm-white); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.pm-post-nav a:hover { border-color: var(--pm-accent); }
.pm-post-nav small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; color: var(--pm-accent); margin-bottom: 4px; }
.pm-post-nav .next { text-align: right; }
.pm-post-nav strong { font-family: var(--pm-font-head); font-size: 17px; line-height: 1.3; display: block; }

.pm-related { margin-top: 56px; }

/* ==========================================================================
   7. Arsip, pencarian, 404, halaman
   ========================================================================== */
.pm-archive-head { text-align: center; padding: 18px 0 34px; margin-bottom: 36px; border-bottom: 3px double var(--pm-ink); }
.pm-archive-head .pm-kicker { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--pm-accent); }
.pm-archive-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0; }
.pm-archive-head p { color: var(--pm-ink-soft); max-width: 640px; margin: 0 auto; }
.pm-archive-head .pm-search-form { margin-top: 20px; }

.pm-pagination { margin-top: 44px; }
.pm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pm-pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--pm-line); background: var(--pm-white); border-radius: var(--pm-radius); font-weight: 700;
}
.pm-pagination .page-numbers:hover { border-color: var(--pm-accent); color: var(--pm-accent); }
.pm-pagination .page-numbers.current { background: var(--pm-ink); border-color: var(--pm-ink); color: #fff; }

.pm-empty { text-align: center; padding: 60px 0; }
.pm-empty .pm-404 { font-family: var(--pm-font-head); font-size: clamp(90px, 18vw, 180px); font-weight: 900; line-height: 1; color: var(--pm-accent); margin: 0; }
.pm-page-box { max-width: 820px; margin: 0 auto; }

/* ==========================================================================
   8. Komentar
   ========================================================================== */
.pm-comments { margin-top: 48px; }
.pm-comments .comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.pm-comments .comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--pm-line); }
.pm-comments .comment-body { background: var(--pm-white); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 18px; margin-bottom: 16px; }
.pm-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.pm-comments .comment-author img { border-radius: 50%; }
.pm-comments .comment-metadata { font-size: 12px; color: var(--pm-muted); margin: 4px 0 10px; }
.pm-comments .reply a { font-size: 13px; font-weight: 700; color: var(--pm-accent); }
.comment-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); background: var(--pm-white);
}
.comment-form .submit { background: var(--pm-accent); color: #fff; border: 0; padding: 13px 28px; font-weight: 800; border-radius: var(--pm-radius); cursor: pointer; }
.comment-form .submit:hover { background: var(--pm-ink); }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.pm-footer { background: var(--pm-ink); color: #c4cad6; padding-top: 54px; }
.pm-footer a:hover { color: var(--pm-gold); }
.pm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.pm-footer .pm-site-title { color: #fff; font-size: 34px; margin-bottom: 12px; }
.pm-footer .widget-title, .pm-footer .pm-widget-title { color: #fff; border-color: rgba(255, 255, 255, .25); }
.pm-footer .widget { background: none; border: 0; padding: 0; margin: 0 0 20px; }
.pm-footer .widget li { border-color: rgba(255, 255, 255, .12); }
.pm-footer-menu { list-style: none; padding: 0; margin: 0; }
.pm-footer-menu li { padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.pm-footer .pm-social { margin-top: 18px; }
.pm-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: 13px; }
.pm-footer-bottom .pm-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.pm-totop {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--pm-accent); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; visibility: hidden;
  transition: all .25s ease; box-shadow: var(--pm-shadow); z-index: 800;
}
.pm-totop.is-visible { opacity: 1; visibility: visible; }
.pm-totop:hover { background: var(--pm-ink); }

/* ==========================================================================
   10. Responsif
   ========================================================================== */
@media (max-width: 1080px) {
  .pm-article-grid { grid-template-columns: 56px minmax(0, 1fr); }
  .pm-article-grid .pm-sidebar { grid-column: 1 / -1; }
  .pm-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pm-hero { grid-template-columns: 1fr; }
  .pm-hero-main { min-height: 380px; }
  .pm-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .pm-cat-block { grid-template-columns: 1fr; }
  .pm-footer-grid { grid-template-columns: 1fr 1fr; }
  .pm-footer-grid > :first-child { grid-column: 1 / -1; }

  .pm-burger { display: inline-flex; }
  .pm-navbar .pm-wrap { flex-wrap: wrap; }
  .pm-nav { order: 3; width: 100%; display: none; }
  .pm-nav.is-open { display: block; padding-bottom: 12px; }
  .pm-menu { flex-direction: column; }
  .pm-menu a { padding: 12px 4px; border-bottom: 1px solid var(--pm-line); }
  .pm-menu > li > a::after { display: none; }
  .pm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 16px; }
  .pm-navbar .pm-actions { margin-left: auto; }
  .pm-navbar .pm-mobile-title { display: block; }
}
@media (max-width: 640px) {
  .pm-topbar .pm-date { display: none; }
  .pm-topbar .pm-wrap { justify-content: center; }
  .pm-grid--3, .pm-grid--2 { grid-template-columns: 1fr; }
  .pm-list .pm-row { grid-template-columns: 1fr; }
  .pm-hero-main { min-height: 340px; }
  .pm-hero-body { padding: 20px; }
  .pm-article-grid, .pm-article-grid--full { grid-template-columns: 1fr; }
  .pm-share { position: static; flex-direction: row; order: 2; }
  .pm-content { font-size: 17px; }
  .pm-content .alignwide { margin-left: 0; margin-right: 0; }
  .pm-content blockquote { font-size: 21px; }
  .pm-author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pm-post-nav { grid-template-columns: 1fr; }
  .pm-footer-grid { grid-template-columns: 1fr; }
  .pm-ticker-label { font-size: 11px; padding: 5px 9px; }
}
@media (max-width: 782px) { .admin-bar .pm-navbar { top: 46px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .pm-topbar, .pm-navbar, .pm-ticker, .pm-sidebar, .pm-share, .pm-footer, .pm-related, .pm-comments, .pm-totop, .pm-progress { display: none !important; }
  .pm-article-grid { display: block; }
}
