/*
Theme Name: PineDrama Free
Theme URI: https://pinedramafree.com/
Author: PineDrama
Author URI: https://pinedramafree.com/
Description: A clean, editorial-style content theme for a short-drama episode guide site. Optimised for the drama post type, genre and trope taxonomies, with built-in SEO meta tags, canonical URLs and JSON-LD schema.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
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: pinedramafree
Tags: editorial, blog, custom-post-type, grid-layout, accessibility-ready
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  --pd-green: #14532D;
  --pd-green-dark: #0B3A1F;
  --pd-bg: #FAF9F5;
  --pd-ink: #1C1917;
  --pd-muted: #57534E;
  --pd-amber: #B45309;
  --pd-line: #E7E5E4;
  --pd-card: #FFFFFF;

  --pd-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pd-h1: clamp(1.75rem, 4.6vw, 2.441rem);
  --pd-h2: clamp(1.5rem, 3.6vw, 1.953rem);
  --pd-h3: 1.5625rem;
  --pd-h4: 1.25rem;

  --pd-radius: 10px;
  --pd-gap: 20px;
  --pd-wrap: 1200px;
  --pd-pad: 24px;
}

/* =========================================================
   2. Reset / base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  background: var(--pd-bg);
  color: var(--pd-ink);
  font-family: var(--pd-font);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pd-green);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--pd-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 700;
  color: var(--pd-ink);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--pd-h1); }
h2 { font-size: var(--pd-h2); }
h3 { font-size: var(--pd-h3); }
h4 { font-size: var(--pd-h4); }
h5 { font-size: 1.0625rem; }
h6 { font-size: 0.9375rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

hr {
  border: 0;
  border-top: 1px solid var(--pd-line);
  margin: 40px 0;
}

blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--pd-line);
  color: var(--pd-muted);
}

code, pre {
  font-family: SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}

pre {
  padding: 16px;
  background: #F5F5F4;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  overflow-x: auto;
}

/* =========================================================
   3. Layout helpers
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--pd-wrap);
  margin: 0 auto;
  padding-left: var(--pd-pad);
  padding-right: var(--pd-pad);
}

.site-main {
  display: block;
  padding-bottom: 64px;
}

.sec {
  margin: 56px 0;
}

.sec--tight {
  margin: 32px 0;
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pd-line);
}

.sec-head h2 {
  margin: 0;
}

.sec-head__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pd-green);
  white-space: nowrap;
}

.eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pd-amber);
}

.muted {
  color: var(--pd-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 16px;
  background: var(--pd-green);
  color: #fff;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   4. Header / nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.96);
  border-bottom: 1px solid var(--pd-line);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pd-ink);
}

.brand:hover {
  color: var(--pd-ink);
  text-decoration: none;
}

.brand img {
  width: auto;
  max-height: 36px;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: var(--pd-green);
  color: #fff;
}

.brand__name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pd-ink);
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pd-muted);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--pd-green);
  background: #F1F5F2;
  text-decoration: none;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid var(--pd-line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 10px 8px;
    border-bottom: 1px solid var(--pd-line);
    border-radius: 0;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }
}

/* =========================================================
   5. Buttons / chips
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--pd-green);
  border: 1px solid var(--pd-green);
  border-radius: 8px;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  color: #fff;
  background: var(--pd-green-dark);
  border-color: var(--pd-green-dark);
  text-decoration: none;
}

.btn--ghost {
  color: var(--pd-green);
  background: transparent;
  border-color: var(--pd-line);
}

.btn--ghost:hover,
.btn--ghost:focus {
  color: var(--pd-green);
  background: #F1F5F2;
  border-color: var(--pd-green);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.chips li {
  margin: 0;
}

.chip {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pd-muted);
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 999px;
  white-space: nowrap;
}

.chip:hover {
  color: var(--pd-green);
  border-color: var(--pd-green);
  text-decoration: none;
}

.chip--active {
  color: #fff;
  background: var(--pd-green);
  border-color: var(--pd-green);
}

.chip--active:hover {
  color: #fff;
}

.chip__count {
  color: inherit;
  opacity: 0.6;
}

/* =========================================================
   6. Hero
   ========================================================= */
.hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--pd-line);
}

.hero__inner {
  max-width: 780px;
}

.hero h1 {
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero__lede {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  color: var(--pd-muted);
}

.hero__note {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--pd-muted);
}

@media (max-width: 767px) {
  .hero {
    padding: 32px 0 28px;
  }
}

/* =========================================================
   7. Grid + cards
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--pd-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid > li {
  margin: 0;
  min-width: 0;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.card:focus-within {
  border-color: #D6D3D1;
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.07);
}

.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.card__link:hover {
  text-decoration: none;
  color: inherit;
}

.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(150deg, #14532D 0%, #1F6B3B 55%, #2F7A48 100%);
  overflow: hidden;
}

.poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.poster__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: rgba(28, 25, 23, 0.72);
  border-radius: 4px;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  min-width: 0;
}

.card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--pd-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pd-muted);
}

.card__meta span {
  white-space: nowrap;
}

.card__dot {
  opacity: 0.5;
}

.card__hook {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pd-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card__link {
    flex-direction: row;
    align-items: stretch;
  }

  .card__poster-wrap {
    flex: 0 0 104px;
    width: 104px;
  }

  .card__body {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Genre tiles */
.grid--genres {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

@media (max-width: 480px) {
  .grid--genres {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .grid--genres {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--genres {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.genre-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  padding: 16px;
  background: var(--pd-card);
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  color: var(--pd-ink);
}

.genre-tile:hover {
  color: var(--pd-green);
  border-color: var(--pd-green);
  text-decoration: none;
}

.genre-tile__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.genre-tile__count {
  font-size: 0.8125rem;
  color: var(--pd-muted);
}

/* Simple link list (guides) */
.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pd-line);
}

.link-list li {
  margin: 0;
  border-bottom: 1px solid var(--pd-line);
}

.link-list a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 20px;
  padding: 14px 2px;
  font-weight: 600;
  color: var(--pd-ink);
}

.link-list a:hover {
  color: var(--pd-green);
  text-decoration: none;
}

.link-list .muted {
  flex: 1 1 240px;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: right;
}

@media (max-width: 600px) {
  .link-list .muted {
    text-align: left;
  }
}

/* =========================================================
   8. Page / entry headers
   ========================================================= */
.page-head {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--pd-line);
}

.page-head h1 {
  margin: 0 0 10px;
}

.page-head__desc {
  max-width: 760px;
  margin: 0;
  color: var(--pd-muted);
}

.page-head__desc p:last-child {
  margin-bottom: 0;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--pd-muted);
}

.breadcrumbs {
  margin: 20px 0 0;
  font-size: 0.8125rem;
  color: var(--pd-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: #D6D3D1;
}

.entry-head {
  padding: 24px 0 8px;
}

.entry-head h1 {
  margin: 0 0 12px;
}

.chips--tax {
  margin: 18px 0 0;
}

.meta-row li + li::before {
  content: "\00b7";
  margin-right: 10px;
  color: #D6D3D1;
}

.ep-list li:target a {
  color: var(--pd-green);
  border-color: var(--pd-green);
  background: #F1F5F2;
}

/* =========================================================
   9. Single drama
   ========================================================= */
.drama-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--pd-line);
}

.drama-hero__poster {
  width: 100%;
}

.drama-hero__poster .poster {
  border-radius: var(--pd-radius);
  border: 1px solid var(--pd-line);
}

.drama-hero__body {
  min-width: 0;
}

.drama-hero__title {
  margin: 0 0 12px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--pd-muted);
}

.meta-row li {
  margin: 0;
}

.meta-row strong {
  color: var(--pd-ink);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 4px;
  background: #F1F5F2;
  color: var(--pd-green);
}

.badge--ongoing {
  background: #FEF3C7;
  color: #92400E;
}

.hook {
  margin: 0 0 20px;
  padding: 14px 16px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--pd-ink);
  background: #fff;
  border: 1px solid var(--pd-line);
  border-left: 3px solid var(--pd-amber);
  border-radius: 0 8px 8px 0;
}

.synopsis {
  color: var(--pd-ink);
}

.synopsis p {
  margin: 0 0 1em;
}

@media (max-width: 767px) {
  .drama-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }

  .drama-hero__poster {
    max-width: 190px;
  }
}

/* Episode guide */
.ep-section {
  margin: 48px 0;
}

.ep-group {
  margin-bottom: 28px;
}

.ep-group__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pd-muted);
  letter-spacing: 0.01em;
}

.ep-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ep-list li {
  margin: 0;
}

.ep-list a {
  display: block;
  padding: 6px 4px;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--pd-muted);
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-list a:hover {
  color: var(--pd-green);
  border-color: var(--pd-green);
  text-decoration: none;
}

/* FAQ */
.faq {
  margin: 48px 0;
}

.faq .faq__item {
  padding: 16px 0;
  border-top: 1px solid var(--pd-line);
}

.faq .faq__item:last-child {
  border-bottom: 1px solid var(--pd-line);
}

.faq__q {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.faq__a {
  margin: 0;
  color: var(--pd-muted);
}

/* =========================================================
   10. Content (pages, posts)
   ========================================================= */
.entry-content {
  max-width: 760px;
  font-size: 1.0625rem;
}

.entry-content h2 {
  margin-top: 1.6em;
}

.entry-content h3 {
  margin-top: 1.4em;
}

.entry-content p,
.entry-content li {
  line-height: 1.7;
}

.entry-content img {
  border-radius: 8px;
}

.wp-block-image {
  margin: 0 0 1.2em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
  padding: 8px 10px;
  border: 1px solid var(--pd-line);
  text-align: left;
}

.entry-content--wide {
  max-width: none;
}

.entry-media {
  margin: 0 0 24px;
}

.entry-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pd-radius);
}

/* Plain post list (blog index, search results) */
.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pd-line);
}

.post-list > li {
  margin: 0;
  padding: 18px 2px;
  border-bottom: 1px solid var(--pd-line);
}

.post-list h2 {
  margin: 0 0 6px;
  font-size: 1.125rem;
}

.post-list h2 a {
  color: var(--pd-ink);
}

.post-list h2 a:hover {
  color: var(--pd-green);
}

.post-list p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--pd-muted);
}

/* =========================================================
   11. Pagination
   ========================================================= */
.pagination {
  margin: 44px 0 0;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-block;
  min-width: 38px;
  padding: 7px 10px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--pd-muted);
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 6px;
}

.pagination .page-numbers:hover {
  color: var(--pd-green);
  border-color: var(--pd-green);
  text-decoration: none;
}

.pagination .current {
  color: #fff;
  background: var(--pd-green);
  border-color: var(--pd-green);
}

.pagination .dots {
  border-color: transparent;
  background: transparent;
}

/* =========================================================
   12. Search form
   ========================================================= */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
}

.search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--pd-ink);
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: 8px;
}

.search-form input[type="search"]:focus {
  outline: 2px solid var(--pd-green);
  outline-offset: 1px;
}

/* =========================================================
   13. Footer
   ========================================================= */
.site-footer {
  margin-top: 56px;
  padding: 40px 0 28px;
  background: #F5F4EF;
  border-top: 1px solid var(--pd-line);
  font-size: 0.875rem;
  color: var(--pd-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-col__title {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-ink);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin: 0 0 6px;
}

.footer-col a {
  color: var(--pd-muted);
}

.footer-col a:hover {
  color: var(--pd-green);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--pd-line);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0 0 6px;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* =========================================================
   14. 404 / empty states
   ========================================================= */
.notice {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  color: var(--pd-muted);
}

.empty {
  padding: 32px 0;
  color: var(--pd-muted);
}

/* =========================================================
   15. Small screens
   ========================================================= */
@media (max-width: 480px) {
  :root {
    --pd-gap: 14px;
  }

  .sec {
    margin: 40px 0;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }

  .search-form .btn {
    flex: 0 0 auto;
  }

  .meta-row {
    font-size: 0.8125rem;
  }

  .pagination .page-numbers {
    min-width: 34px;
    padding: 6px 8px;
  }
}

@media print {
  .site-header,
  .site-footer,
  .pagination,
  .btn-row {
    display: none;
  }
}
