/*
Theme Name: Poradnik Domu Child
Theme URI: https://poradnikdomu.pl
Description: Child theme for GeneratePress — redesign for poradnikdomu.pl
Author: Piotr Szatkowski
Author URI: https://poradnikdomu.pl
Template: generatepress
Version: 1.0.0
Text Domain: poradnikdomu-child
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */

:root {
  --pd-cream: #FAF7F2;
  --pd-sand: #F0E9DD;
  --pd-beige: #E5DCC9;
  --pd-wood: #B4956F;
  --pd-sage: #5E7C5A;
  --pd-forest: #3D5239;
  --pd-stone: #6B655D;
  --pd-ink: #2C2A26;

  --pd-font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --pd-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --pd-radius-sm: 6px;
  --pd-radius-md: 10px;
  --pd-radius-lg: 16px;
  --pd-maxw: 1180px;
}

/* ==========================================================================
   0b. GeneratePress header overrides
   ========================================================================== */

.site-header {
  background-color: #fff;
  border-bottom: 1px solid var(--pd-beige);
}

.inside-header {
  max-width: var(--pd-maxw);
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img,
.custom-logo {
  max-height: 50px;
  width: auto;
}

.site-title {
  font-family: var(--pd-font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0;
}

.site-title a {
  color: var(--pd-forest);
  text-decoration: none;
}

.site-description {
  display: none;
}

.main-navigation {
  font-family: var(--pd-font-body);
}

.main-navigation .main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .main-nav ul li a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pd-ink);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--pd-radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
  display: block;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
  color: var(--pd-forest);
  background-color: var(--pd-sand);
}

.main-navigation .main-nav ul ul {
  background-color: #fff;
  border: 1px solid var(--pd-beige);
  border-radius: var(--pd-radius-sm);
  box-shadow: 0 4px 16px rgba(44, 42, 38, 0.08);
  padding: 0.5rem 0;
}

.main-navigation .main-nav ul ul li a {
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
}

.menu-toggle {
  font-family: var(--pd-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pd-ink);
  background: none;
  border: 1.5px solid var(--pd-beige);
  border-radius: var(--pd-radius-sm);
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--pd-sage);
  color: var(--pd-forest);
}

/* ==========================================================================
   0c. GeneratePress footer overrides
   ========================================================================== */

.site-footer {
  background-color: var(--pd-ink);
  color: rgba(255, 255, 255, 0.6);
}

.inside-site-info {
  max-width: var(--pd-maxw);
  margin-inline: auto;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
}

.inside-site-info a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.inside-site-info a:hover {
  color: #fff;
}

.site-info .copyright-bar {
  display: none;
}

/* ==========================================================================
   1. Base typography & reset
   ========================================================================== */

body {
  font-family: var(--pd-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pd-ink);
  background-color: var(--pd-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--pd-font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--pd-ink);
}

h1,
h2 {
  letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.3125rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* ==========================================================================
   2. Container
   ========================================================================== */

.pd-container {
  max-width: var(--pd-maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ==========================================================================
   3. Links
   ========================================================================== */

.entry-content a,
.pd-content a {
  color: var(--pd-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pd-beige);
  transition: text-decoration-color 0.2s ease;
}

.entry-content a:hover,
.pd-content a:hover {
  text-decoration-color: var(--pd-forest);
}

/* ==========================================================================
   4. Lists
   ========================================================================== */

.entry-content ul {
  list-style: none;
  padding-left: 1.25em;
}

.entry-content ul li {
  position: relative;
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: -1.25em;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--pd-wood);
}

.entry-content ol {
  padding-left: 1.25em;
}

/* ==========================================================================
   5. Blockquote
   ========================================================================== */

.entry-content blockquote {
  border-left: 3px solid var(--pd-sage);
  padding-inline: 1.5rem;
  margin-inline: 0;
  font-family: var(--pd-font-display);
  font-style: italic;
  color: var(--pd-stone);
}

/* ==========================================================================
   6. Images
   ========================================================================== */

.entry-content img {
  border-radius: var(--pd-radius-lg);
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   7. Tables
   ========================================================================== */

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--pd-beige);
}

.entry-content th {
  font-weight: 600;
  background-color: var(--pd-sand);
}

.entry-content tr:nth-child(even) td {
  background-color: var(--pd-sand);
}

/* ==========================================================================
   8. Buttons
   ========================================================================== */

.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--pd-radius-sm);
  font-family: var(--pd-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: none;
}

.pd-btn--primary {
  background-color: var(--pd-sage);
  color: #fff;
}

.pd-btn--primary:hover {
  background-color: var(--pd-forest);
  color: #fff;
}

.pd-btn--outline {
  background-color: transparent;
  color: var(--pd-forest);
  box-shadow: inset 0 0 0 1.5px var(--pd-beige);
}

.pd-btn--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--pd-forest);
}

/* ==========================================================================
   9. Front page — Hero
   ========================================================================== */

.pd-hero {
  background-color: var(--pd-cream);
  padding: 3rem 0;
}

.pd-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pd-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pd-wood);
}

.pd-hero__title {
  font-family: var(--pd-font-display);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--pd-ink);
  margin: 0.75rem 0 1rem;
}

.pd-hero__lead {
  font-size: 1.125rem;
  color: var(--pd-stone);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pd-hero__image img {
  width: 100%;
  border-radius: var(--pd-radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .pd-hero {
    padding: 4rem 0;
  }

  .pd-hero__inner {
    flex-direction: row;
    align-items: center;
  }

  .pd-hero__content {
    flex: 0 0 55%;
    padding-right: 3rem;
  }

  .pd-hero__image {
    flex: 0 0 45%;
  }

  .pd-hero__title {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   10. Front page — Categories grid
   ========================================================================== */

.pd-categories {
  padding: 3rem 0;
}

.pd-categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pd-cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: var(--pd-sand);
  border-radius: var(--pd-radius-md);
  text-decoration: none;
  color: var(--pd-ink);
  transition: box-shadow 0.2s ease;
}

.pd-cat-card:hover {
  box-shadow: 0 4px 20px rgba(44, 42, 38, 0.08);
}

.pd-cat-card__icon {
  width: 40px;
  height: 40px;
  color: var(--pd-sage);
}

.pd-cat-card__title {
  font-family: var(--pd-font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

.pd-cat-card__desc {
  font-size: 0.875rem;
  color: var(--pd-stone);
  margin: 0;
  line-height: 1.5;
}

.pd-cat-card__arrow {
  font-size: 1.25rem;
  color: var(--pd-wood);
  transition: transform 0.2s ease;
}

.pd-cat-card:hover .pd-cat-card__arrow {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .pd-categories {
    padding: 4rem 0;
  }

  .pd-categories__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   11. Section headings (reusable)
   ========================================================================== */

.pd-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pd-section-header__title {
  font-size: 1.625rem;
  margin: 0;
}

.pd-section-header__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pd-forest);
  text-decoration: none;
}

.pd-section-header__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 768px) {
  .pd-section-header__title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   12. Post cards grid
   ========================================================================== */

.pd-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pd-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }

  .pd-posts-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   13. Post card
   ========================================================================== */

.pd-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--pd-radius-md);
  overflow: hidden;
  background-color: #fff;
  transition: box-shadow 0.2s ease;
}

.pd-card:hover {
  box-shadow: 0 6px 24px rgba(44, 42, 38, 0.08);
}

.pd-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.pd-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pd-card:hover .pd-card__image {
  transform: scale(1.03);
}

.pd-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  flex: 1;
}

.pd-card__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pd-forest);
  text-decoration: none;
}

.pd-card__eyebrow:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pd-card__title {
  font-family: var(--pd-font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.pd-card__title a {
  color: var(--pd-ink);
  text-decoration: none;
}

.pd-card__title a:hover {
  color: var(--pd-forest);
}

.pd-card__excerpt {
  font-size: 0.875rem;
  color: var(--pd-stone);
  line-height: 1.6;
  margin: 0;
}

.pd-card__meta {
  font-size: 0.8125rem;
  color: var(--pd-stone);
  margin-top: auto;
  padding-top: 0.5rem;
}

.pd-card__meta span + span::before {
  content: '\00B7';
  margin: 0 0.4em;
}

/* ==========================================================================
   14. Front page — Latest posts
   ========================================================================== */

.pd-latest {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .pd-latest {
    padding: 4rem 0;
  }
}

/* ==========================================================================
   15. Front page — Category sections
   ========================================================================== */

.pd-category-section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .pd-category-section {
    padding: 4rem 0;
  }
}

/* ==========================================================================
   16. Front page — Author
   ========================================================================== */

.pd-author-banner {
  background-color: var(--pd-forest);
  color: #fff;
  padding: 3rem 0;
}

.pd-author-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.pd-author-banner__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.pd-author-banner__name {
  font-family: var(--pd-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: #fff;
}

.pd-author-banner__role {
  font-size: 0.875rem;
  color: var(--pd-beige);
  margin-bottom: 0.75rem;
}

.pd-author-banner__bio {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
}

@media (min-width: 768px) {
  .pd-author-banner__inner {
    flex-direction: row;
    text-align: left;
  }

  .pd-author-banner__avatar {
    width: 160px;
    height: 160px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   17. Newsletter CTA
   ========================================================================== */

.pd-newsletter {
  background-color: var(--pd-sand);
  padding: 3rem 0;
}

.pd-newsletter__inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.pd-newsletter__title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.pd-newsletter__desc {
  font-size: 1rem;
  color: var(--pd-stone);
  margin-bottom: 1.5rem;
}

.pd-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pd-newsletter__input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--pd-beige);
  border-radius: var(--pd-radius-sm);
  font-family: var(--pd-font-body);
  font-size: 1rem;
  background-color: #fff;
  color: var(--pd-ink);
  transition: border-color 0.2s ease;
}

.pd-newsletter__input:focus {
  outline: none;
  border-color: var(--pd-sage);
}

.pd-newsletter__input--error {
  border-color: #c0392b;
}

.pd-newsletter__consent {
  font-size: 0.8125rem;
  color: var(--pd-stone);
  text-align: left;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.pd-newsletter__consent input[type="checkbox"] {
  margin-top: 0.15em;
  accent-color: var(--pd-sage);
}

.pd-newsletter__error {
  font-size: 0.8125rem;
  color: #c0392b;
  text-align: left;
  display: none;
}

.pd-newsletter__error--visible {
  display: block;
}

.pd-newsletter--compact {
  padding: 2.5rem 0;
}

.pd-newsletter--compact .pd-newsletter__inner {
  max-width: 480px;
}

@media (min-width: 768px) {
  .pd-newsletter {
    padding: 4rem 0;
  }

  .pd-newsletter__form {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pd-newsletter__input {
    flex: 1;
    min-width: 0;
  }

  .pd-newsletter__consent {
    flex-basis: 100%;
  }
}

/* ==========================================================================
   18. Category page — Hero
   ========================================================================== */

.pd-cat-hero {
  background-color: var(--pd-sand);
  padding: 2.5rem 0;
}

.pd-cat-hero__title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.pd-cat-hero__desc {
  font-size: 1.0625rem;
  color: var(--pd-stone);
  line-height: 1.6;
  max-width: 640px;
}

@media (min-width: 768px) {
  .pd-cat-hero {
    padding: 3.5rem 0;
  }

  .pd-cat-hero__title {
    font-size: 2.75rem;
  }
}

/* ==========================================================================
   19. Category page — Posts area
   ========================================================================== */

.pd-cat-posts {
  padding: 2.5rem 0 3rem;
}

@media (min-width: 768px) {
  .pd-cat-posts {
    padding: 3rem 0 4rem;
  }
}

/* ==========================================================================
   20. Pagination
   ========================================================================== */

.pd-pagination,
.navigation.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pd-pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.pd-pagination .page-numbers,
.navigation.pagination .nav-links a,
.navigation.pagination .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 50%;
  background-color: var(--pd-cream);
  border: 1.5px solid var(--pd-beige);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pd-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pd-pagination .page-numbers:hover,
.navigation.pagination .nav-links a:hover {
  border-color: var(--pd-sage);
}

.pd-pagination .page-numbers.current,
.navigation.pagination .nav-links span.current {
  background-color: var(--pd-sage);
  border-color: var(--pd-sage);
  color: #fff;
}

.pd-pagination .page-numbers.dots,
.navigation.pagination .nav-links span.dots {
  border: none;
  background: none;
}

/* ==========================================================================
   21. Breadcrumbs
   ========================================================================== */

.pd-breadcrumbs {
  font-size: 0.8125rem;
  color: var(--pd-stone);
  padding: 1rem 0;
}

.pd-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pd-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pd-breadcrumbs__item + .pd-breadcrumbs__item::before {
  content: '\203A';
  color: var(--pd-beige);
  margin-right: 0.25rem;
}

.pd-breadcrumbs__link {
  color: var(--pd-stone);
  text-decoration: none;
}

.pd-breadcrumbs__link:hover {
  color: var(--pd-forest);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ==========================================================================
   22. Single — Header area
   ========================================================================== */

.pd-single-header {
  padding: 1rem 0 0;
}

.pd-single-header__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pd-forest);
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.pd-single-header__eyebrow:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pd-single-header__title {
  font-size: 2rem;
  margin: 0 0 1rem;
}

@media (min-width: 768px) {
  .pd-single-header__title {
    font-size: 2.75rem;
  }
}

/* ==========================================================================
   23. Single — Meta row
   ========================================================================== */

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--pd-stone);
  margin-bottom: 1.5rem;
}

.pd-meta__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.pd-meta__author {
  font-weight: 500;
  color: var(--pd-ink);
}

.pd-meta__sep::before {
  content: '\00B7';
}

/* ==========================================================================
   24. Single — Cover image
   ========================================================================== */

.pd-cover {
  margin-bottom: 2rem;
}

.pd-cover img {
  width: 100%;
  border-radius: var(--pd-radius-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ==========================================================================
   25. Single — Content layout (TOC + article)
   ========================================================================== */

.pd-single-body {
  position: relative;
}

@media (min-width: 768px) {
  .pd-single-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   26. Single — TOC
   ========================================================================== */

.pd-toc {
  display: none;
  margin-bottom: 2rem;
}

.pd-toc--has-items {
  display: block;
}

.pd-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--pd-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pd-ink);
  background-color: var(--pd-sand);
  border: none;
  border-radius: var(--pd-radius-sm);
  cursor: pointer;
}

.pd-toc__toggle-icon {
  transition: transform 0.2s ease;
}

.pd-toc__toggle[aria-expanded="true"] .pd-toc__toggle-icon {
  transform: rotate(180deg);
}

.pd-toc__list {
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0;
  background-color: var(--pd-sand);
  border-radius: 0 0 var(--pd-radius-sm) var(--pd-radius-sm);
}

.pd-toc__list--hidden {
  display: none;
}

.pd-toc__item {
  margin: 0;
}

.pd-toc__link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  color: var(--pd-stone);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.pd-toc__link:hover {
  color: var(--pd-forest);
}

.pd-toc__link--active {
  color: var(--pd-forest);
  border-left-color: var(--pd-sage);
  font-weight: 500;
}

.pd-toc__link--h3 {
  padding-left: 1.5rem;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .pd-toc__toggle {
    display: none;
  }

  .pd-toc__list {
    display: block;
    position: sticky;
    top: 100px;
    border-radius: var(--pd-radius-sm);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
}

/* ==========================================================================
   27. Single — Share bar
   ========================================================================== */

.pd-share {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pd-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  line-height: 0;
  border-radius: var(--pd-radius-sm);
  background-color: var(--pd-sand);
  color: var(--pd-stone);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: var(--pd-font-body);
}

.pd-share__btn:hover {
  background-color: var(--pd-sage);
  color: #fff;
}

.pd-share__btn svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
}

.pd-share__toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--pd-ink);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--pd-radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.pd-share__toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 768px) {
  .pd-share--sticky {
    position: fixed;
    left: calc((100vw - var(--pd-maxw)) / 2 - 60px);
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    z-index: 100;
  }
}

/* ==========================================================================
   28. Single — Author box
   ========================================================================== */

.pd-author-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background-color: var(--pd-sand);
  border-radius: var(--pd-radius-lg);
  margin: 2.5rem 0;
}

.pd-author-box__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.pd-author-box__name {
  font-family: var(--pd-font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

.pd-author-box__bio {
  font-size: 0.9375rem;
  color: var(--pd-stone);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .pd-author-box {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .pd-author-box__avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   29. Single — Related posts
   ========================================================================== */

.pd-related {
  padding: 2.5rem 0 0;
}

.pd-related__title {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

/* ==========================================================================
   30. Single — Prev/Next navigation
   ========================================================================== */

.pd-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--pd-beige);
  margin-top: 2.5rem;
}

.pd-post-nav__item {
  text-decoration: none;
  color: var(--pd-ink);
}

.pd-post-nav__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pd-stone);
  margin-bottom: 0.25rem;
}

.pd-post-nav__title {
  font-family: var(--pd-font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.pd-post-nav__item:hover .pd-post-nav__title {
  color: var(--pd-forest);
}

.pd-post-nav__item--next {
  text-align: right;
}

@media (min-width: 768px) {
  .pd-post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   31. Utility — Visually hidden
   ========================================================================== */

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