/*
Theme Name: Daily Pet Routine Light
Theme URI: https://www.dailypetroutine.com/
Author: Daily Pet Routine
Author URI: https://www.dailypetroutine.com/
Description: A fast, mobile-first WordPress theme built for Daily Pet Routine with a 12-post homepage, category navigation, Pinterest tools, related posts, and a complete theme settings panel.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: dpr-light
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --dpr-accent: #3f8f22;
  --dpr-accent-dark: #266214;
  --dpr-accent-soft: #eef7e9;
  --dpr-orange: #f47b38;
  --dpr-ink: #162018;
  --dpr-muted: #647067;
  --dpr-border: #e7ece7;
  --dpr-bg: #ffffff;
  --dpr-soft-bg: #f8faf7;
  --dpr-radius: 18px;
  --dpr-shadow: 0 12px 36px rgba(28, 55, 31, .08);
  --dpr-max: 1180px;
  --dpr-body-size: 17px;
  --dpr-post-size: 20px;
  --dpr-logo-width: 250px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--dpr-ink);
  background: var(--dpr-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--dpr-body-size);
  line-height: 1.65;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dpr-accent-dark); text-decoration: none; }
a:hover { color: var(--dpr-accent); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dpr-container { width: min(calc(100% - 32px), var(--dpr-max)); margin-inline: auto; }
.dpr-section { padding: 54px 0; }
.dpr-section-title { margin: 0 0 24px; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.2; letter-spacing: -.03em; }
.dpr-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dpr-view-all { font-weight: 750; white-space: nowrap; }

/* Header */
.dpr-site-header { position: relative; z-index: 80; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--dpr-border); }
.dpr-site-header.is-sticky { position: sticky; top: 0; backdrop-filter: blur(10px); }
.admin-bar .dpr-site-header.is-sticky { top: 32px; }
.dpr-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dpr-brand { display: flex; align-items: center; min-width: 0; }
.dpr-brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.dpr-brand-image, .dpr-brand-image .custom-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.dpr-brand-image .custom-logo { width: min(var(--dpr-logo-width), 100%); max-width: 86px; max-height: 58px; object-fit: contain; object-position: left center; }
.dpr-built-in-logo { width: 48px; height: 48px; display: inline-grid; place-items: center; flex: 0 0 48px; color: var(--dpr-accent); }
.dpr-built-in-logo svg { width: 100%; height: 100%; fill: currentColor; }
.dpr-brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.dpr-brand-name { color: var(--dpr-ink); font-weight: 900; font-size: 1.35rem; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpr-tagline { color: var(--dpr-muted); font-size: .76rem; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpr-nav-wrap { display: flex; align-items: center; gap: 14px; }
.dpr-primary-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(14px,2vw,28px); padding: 0; margin: 0; }
.dpr-primary-nav a { color: var(--dpr-ink); font-weight: 700; font-size: .94rem; }
.dpr-primary-nav a:hover, .dpr-primary-nav .current-menu-item > a, .dpr-primary-nav .current-cat > a { color: var(--dpr-accent); }
.dpr-search-toggle, .dpr-menu-toggle { width: 42px; height: 42px; border: 1px solid var(--dpr-border); background: #fff; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; color: var(--dpr-ink); }
.dpr-menu-toggle { display: none; }
.dpr-header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 999px; color: #fff; background: var(--dpr-accent); font-weight: 800; }
.dpr-header-cta:hover { color: #fff; background: var(--dpr-accent-dark); }
.dpr-search-panel { display: none; border-top: 1px solid var(--dpr-border); background: #fff; padding: 16px 0; }
.dpr-search-panel.is-open { display: block; }
.dpr-search-form { display: flex; width: min(680px, 100%); margin-inline: auto; }
.dpr-search-form input { flex: 1; min-width: 0; min-height: 50px; border: 1px solid var(--dpr-border); border-radius: 14px 0 0 14px; padding: 0 16px; }
.dpr-search-form button { border: 0; border-radius: 0 14px 14px 0; padding: 0 22px; background: var(--dpr-accent); color: #fff; font-weight: 800; cursor: pointer; }

/* Hero */
.dpr-hero { background: linear-gradient(120deg, #fff 0%, #fbfdf8 56%, #edf6e7 100%); overflow: hidden; border-bottom: 1px solid var(--dpr-border); }
.dpr-hero-inner { min-height: 450px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 46px; padding-block: 48px; }
.dpr-eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--dpr-accent-soft); color: var(--dpr-accent-dark); font-size: .82rem; font-weight: 800; padding: 8px 13px; margin-bottom: 18px; }
.dpr-hero h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; letter-spacing: -.065em; max-width: 720px; }
.dpr-hero h1 strong { color: var(--dpr-accent); font-weight: inherit; }
.dpr-hero-copy { max-width: 650px; margin: 24px 0 0; color: #3e4a41; font-size: clamp(1rem, 1.5vw, 1.17rem); }
.dpr-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.dpr-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 800; border: 1px solid transparent; }
.dpr-button-primary { color: #fff; background: var(--dpr-accent); }
.dpr-button-primary:hover { color: #fff; background: var(--dpr-accent-dark); }
.dpr-button-secondary { color: var(--dpr-ink); background: #fff; border-color: #bfc9bf; }
.dpr-button-secondary:hover { color: var(--dpr-accent-dark); border-color: var(--dpr-accent); }
.dpr-hero-media { position: relative; min-height: 350px; display: grid; place-items: center; }
.dpr-hero-image { width: 100%; max-height: 430px; object-fit: cover; border-radius: 30px; box-shadow: var(--dpr-shadow); }
.dpr-hero-placeholder { width: min(420px, 92%); aspect-ratio: 4/3; border-radius: 34% 66% 55% 45% / 44% 42% 58% 56%; background: radial-gradient(circle at 32% 30%, #fff 0 10%, transparent 11%), linear-gradient(145deg, #e7f5df, #fcefe5); display: grid; place-items: center; font-size: 7rem; box-shadow: var(--dpr-shadow); }

/* Categories */
.dpr-category-section { padding: 34px 0 20px; }
.dpr-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 14px; }
.dpr-category-card { min-width: 0; border: 1px solid var(--dpr-border); border-radius: var(--dpr-radius); background: #fff; padding: 22px 12px 18px; text-align: center; box-shadow: 0 8px 24px rgba(28,55,31,.045); transition: transform .18s ease, box-shadow .18s ease; }
.dpr-category-card:hover { transform: translateY(-3px); box-shadow: var(--dpr-shadow); }
.dpr-category-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--dpr-accent-dark); background: var(--dpr-accent-soft); }
.dpr-category-icon svg { width: 29px; height: 29px; }
.dpr-category-card:nth-child(2) .dpr-category-icon { color: #d96724; background: #fff0e7; }
.dpr-category-card:nth-child(3) .dpr-category-icon { color: #7154b8; background: #f0ebff; }
.dpr-category-card:nth-child(4) .dpr-category-icon { color: #3179a8; background: #e8f5fc; }
.dpr-category-card:nth-child(5) .dpr-category-icon { color: #c75064; background: #ffedf0; }
.dpr-category-card:nth-child(6) .dpr-category-icon { color: #a47700; background: #fff7d9; }
.dpr-category-card h2 { margin: 0; font-size: .98rem; line-height: 1.25; }
.dpr-category-card p { margin: 7px 0 0; color: var(--dpr-muted); font-size: .8rem; line-height: 1.45; }

/* Post cards */
.dpr-posts-section { background: var(--dpr-soft-bg); border-top: 1px solid var(--dpr-border); border-bottom: 1px solid var(--dpr-border); }
.dpr-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.dpr-post-card { min-width: 0; overflow: hidden; border-radius: var(--dpr-radius); border: 1px solid var(--dpr-border); background: #fff; box-shadow: 0 10px 26px rgba(25,50,28,.055); }
.dpr-card-image-link { display: block; aspect-ratio: 16/10; overflow: hidden; background: #edf2ec; }
.dpr-card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.dpr-post-card:hover .dpr-card-image { transform: scale(1.035); }
.dpr-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #eef7e9, #fff3ea); font-size: 3.3rem; }
.dpr-card-body { padding: 19px 20px 21px; }
.dpr-card-category { display: inline-flex; font-size: .74rem; font-weight: 800; color: var(--dpr-accent-dark); background: var(--dpr-accent-soft); border-radius: 999px; padding: 5px 9px; margin-bottom: 10px; }
.dpr-card-title { margin: 0; font-size: 1.17rem; line-height: 1.34; letter-spacing: -.02em; }
.dpr-card-title a { color: var(--dpr-ink); }
.dpr-card-title a:hover { color: var(--dpr-accent); }
.dpr-card-excerpt { margin: 11px 0 0; color: var(--dpr-muted); font-size: .92rem; line-height: 1.55; }
.dpr-card-meta { margin-top: 14px; color: #788079; font-size: .78rem; }
.dpr-pagination { margin-top: 34px; }
.dpr-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dpr-pagination a, .dpr-pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--dpr-border); border-radius: 10px; background: #fff; }
.dpr-pagination .current { color: #fff; background: var(--dpr-accent); border-color: var(--dpr-accent); }

/* About strip */
.dpr-about-strip { padding: 30px 0 58px; }
.dpr-about-box { display: grid; grid-template-columns: .9fr 1.3fr auto; align-items: center; gap: 34px; padding: 28px 32px; border: 1px solid #e4ebdf; border-radius: var(--dpr-radius); background: linear-gradient(110deg, #f2f8ed, #fff); }
.dpr-about-box h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.25; }
.dpr-about-box p { margin: 0; color: #465048; }

/* Inner pages */
.dpr-page-header { padding: 54px 0 30px; background: linear-gradient(120deg, #f8fcf5, #fff); border-bottom: 1px solid var(--dpr-border); }
.dpr-page-header h1 { margin: 0; font-size: clamp(2.1rem,5vw,3.8rem); line-height: 1.05; letter-spacing: -.05em; }
.dpr-page-header p { color: var(--dpr-muted); margin: 14px 0 0; }
.dpr-content-area { padding: 48px 0 70px; }
.dpr-empty { border: 1px solid var(--dpr-border); border-radius: var(--dpr-radius); padding: 36px; background: var(--dpr-soft-bg); }

/* Single post */
.dpr-single-wrap { width: min(calc(100% - 32px), 920px); margin-inline: auto; padding: 48px 0 90px; }
.dpr-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--dpr-muted); font-size: .84rem; margin-bottom: 20px; }
.dpr-single-header { text-align: left; margin-bottom: 28px; }
.dpr-single-title { margin: 0; font-size: clamp(2.25rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.055em; }
.dpr-single-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; color: var(--dpr-muted); font-size: .9rem; }
.entry-content { color: #273129; font-size: var(--dpr-post-size); line-height: 1.82; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--dpr-ink); line-height: 1.2; letter-spacing: -.035em; scroll-margin-top: 100px; }
.entry-content h2 { font-size: clamp(1.75rem,4vw,2.65rem); margin: 1.7em 0 .55em; }
.entry-content h3 { font-size: clamp(1.4rem,3vw,2rem); margin: 1.55em 0 .5em; }
.entry-content h4 { font-size: 1.25rem; margin: 1.45em 0 .45em; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; margin-bottom: 1.4em; }
.entry-content li { margin: .45em 0; }
.entry-content blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 5px solid var(--dpr-accent); background: var(--dpr-accent-soft); border-radius: 0 14px 14px 0; }
.entry-content img { border-radius: 16px; }
.entry-content figure { max-width: 100%; margin: 1.8em auto; }
.entry-content figcaption { color: var(--dpr-muted); text-align: center; font-size: .78em; margin-top: 8px; }
.entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--dpr-border); text-align: left; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.dpr-pin-wrap { position: relative; display: block; max-width: 100%; }
.dpr-pin-button { position: absolute; z-index: 6; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; background: #bd081c; color: #fff !important; font-size: 14px; font-weight: 850; box-shadow: 0 7px 20px rgba(0,0,0,.2); opacity: .96; }
.dpr-pin-button:hover { color: #fff; transform: translateY(-1px); }

/* Related posts */
.dpr-related { margin: 38px 0; padding: 24px; border: 1px solid var(--dpr-border); border-radius: var(--dpr-radius); background: #fff; box-shadow: 0 8px 24px rgba(28,55,31,.045); }
.dpr-related h2 { margin: 0 0 18px; font-size: 1.35rem; }
.dpr-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.dpr-related-card { min-width: 0; }
.dpr-related-card img, .dpr-related-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: var(--dpr-accent-soft); }
.dpr-related-title { margin: 9px 0 0; font-size: .95rem; line-height: 1.35; }
.dpr-related-title a { color: var(--dpr-ink); }

/* Pinterest box */
.dpr-pinterest-section { width: 100%; margin: 34px auto 46px; padding: 24px 0 8px; text-align: center; clear: both; }
.dpr-pinterest-section > h2 { text-align: center; font-size: 1.55rem; margin: 0 0 16px; }
.dpr-pinterest-box { position: relative; overflow: hidden; width: min(100%, 390px); aspect-ratio: 9/16; margin-inline: auto; border-radius: 24px; background: linear-gradient(160deg, #345f29, #9bc77e); box-shadow: var(--dpr-shadow); isolation: isolate; }
.dpr-pinterest-box::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.05) 55%, rgba(0,0,0,.1)); }
.dpr-pinterest-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; border-radius: 0; }
.dpr-pinterest-content { position: absolute; inset: auto 24px 26px; color: #fff; text-align: center; }
.dpr-pinterest-content h3 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.6rem); margin: 0 0 18px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.dpr-pinterest-save { display: inline-flex; min-height: 46px; padding: 0 18px; align-items: center; justify-content: center; border-radius: 999px; background: #bd081c; color: #fff; font-weight: 850; }
.dpr-pinterest-save:hover { color: #fff; background: #9e0718; }

/* Author and post navigation */
.dpr-author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin: 36px 0; padding: 24px; border: 1px solid var(--dpr-border); border-radius: var(--dpr-radius); background: var(--dpr-soft-bg); }
.dpr-author-box img { border-radius: 50%; }
.dpr-author-box h2 { font-size: 1.15rem; margin: 0 0 5px; }
.dpr-author-box p { margin: 0; color: var(--dpr-muted); font-size: .92rem; }
.dpr-desktop-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 38px; }
.dpr-desktop-post-nav a { display: block; border: 1px solid var(--dpr-border); border-radius: 14px; padding: 16px; color: var(--dpr-ink); }
.dpr-desktop-post-nav a:last-child { text-align: right; }
.dpr-desktop-post-nav span { display: block; color: var(--dpr-muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

/* Clear fixed side navigation and touch swipe support */
.dpr-side-post-nav { position: fixed; z-index: 105; inset: 0; pointer-events: none; }
.dpr-side-post-link { position: fixed; top: 50%; transform: translateY(-50%); width: 58px; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; color: #fff; background: var(--dpr-accent); box-shadow: 0 12px 30px rgba(20,54,23,.24); pointer-events: auto; transition: transform .2s ease, background .2s ease; }
.dpr-side-post-link:hover { color: #fff; background: var(--dpr-accent-dark); }
.dpr-side-post-previous { left: 0; border-radius: 0 18px 18px 0; }
.dpr-side-post-next { right: 0; border-radius: 18px 0 0 18px; }
.dpr-side-post-previous:hover { transform: translateY(-50%) translateX(3px); }
.dpr-side-post-next:hover { transform: translateY(-50%) translateX(-3px); }
.dpr-side-arrow { font-size: 2rem; line-height: 1; font-weight: 500; }
.dpr-side-label { font-size: .69rem; line-height: 1; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; writing-mode: vertical-rl; }
.dpr-side-post-previous .dpr-side-label { transform: rotate(180deg); }

/* Footer */
.dpr-site-footer { border-top: 1px solid var(--dpr-border); background: #fbfcfa; }
.dpr-footer-main { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 38px; padding: 48px 0 34px; }
.dpr-footer-brand .dpr-brand-lockup { align-items: center; }
.dpr-footer-brand .dpr-brand-image .custom-logo { max-width: 72px; max-height: 52px; object-fit: contain; }
.dpr-footer-brand .dpr-built-in-logo { width: 44px; height: 44px; flex-basis: 44px; }
.dpr-footer-brand .dpr-brand-name { font-size: 1.15rem; }
.dpr-footer-brand p { color: var(--dpr-muted); font-size: .9rem; max-width: 320px; }
.dpr-footer-heading { margin: 0 0 13px; font-size: .95rem; }
.dpr-footer-links { list-style: none; margin: 0; padding: 0; }
.dpr-footer-links li { margin: 6px 0; }
.dpr-footer-links a { color: #39413b; font-size: .9rem; }
.dpr-socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.dpr-socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--dpr-accent-soft); color: var(--dpr-accent-dark); font-weight: 850; font-size: .75rem; }
.dpr-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid var(--dpr-border); color: var(--dpr-muted); font-size: .8rem; }
.dpr-footer-bottom-links { display: flex; flex-wrap: wrap; gap: 14px; }

/* Comments */
.comments-area { margin-top: 42px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 20px; margin: 16px 0; border: 1px solid var(--dpr-border); border-radius: 14px; }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; border: 1px solid var(--dpr-border); border-radius: 10px; padding: 12px; }
.comment-form .submit { border: 0; border-radius: 10px; background: var(--dpr-accent); color: #fff; padding: 12px 20px; font-weight: 800; }

/* Accessibility */
:focus-visible { outline: 3px solid color-mix(in srgb, var(--dpr-accent) 70%, white); outline-offset: 3px; }
.skip-link:focus { position: fixed; z-index: 9999; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; color: #fff; background: #000; }

@media (max-width: 1024px) {
  .dpr-header-cta { display: none; }
  .dpr-primary-nav ul { gap: 16px; }
  .dpr-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dpr-footer-main { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


@media (max-width: 1120px) {
  .dpr-side-post-link { width: 48px; min-height: 104px; }
  .dpr-side-label { font-size: .62rem; }
}

@media (max-width: 820px) {
  .admin-bar .dpr-site-header.is-sticky { top: 46px; }
  .dpr-header-inner { min-height: 68px; }
  .dpr-menu-toggle { display: inline-grid; }
  .dpr-primary-nav { position: absolute; display: none; top: 100%; left: 0; right: 0; padding: 12px 16px 20px; border-top: 1px solid var(--dpr-border); border-bottom: 1px solid var(--dpr-border); background: #fff; box-shadow: 0 16px 30px rgba(0,0,0,.08); }
  .dpr-primary-nav.is-open { display: block; }
  .dpr-primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .dpr-primary-nav li { border-bottom: 1px solid var(--dpr-border); }
  .dpr-primary-nav li:last-child { border-bottom: 0; }
  .dpr-primary-nav a { display: block; padding: 13px 4px; }
  .dpr-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 26px; padding-block: 38px 28px; }
  .dpr-hero-copy { margin-top: 18px; }
  .dpr-hero-media { min-height: 250px; }
  .dpr-hero-image { max-height: 360px; }
  .dpr-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dpr-about-box { grid-template-columns: 1fr; gap: 14px; }
  .dpr-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 600px) {
  :root { --dpr-body-size: 16px; --dpr-post-size: 19px; --dpr-logo-width: 190px; }
  .dpr-container, .dpr-single-wrap { width: min(calc(100% - 24px), var(--dpr-max)); }
  .dpr-brand-image .custom-logo { max-width: 66px; max-height: 46px; }
  .dpr-built-in-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .dpr-brand-name { font-size: 1.08rem; }
  .dpr-tagline { display: none; }
  .dpr-nav-wrap { gap: 7px; }
  .dpr-search-toggle, .dpr-menu-toggle { width: 40px; height: 40px; }
  .dpr-hero h1 { font-size: clamp(2.25rem, 13vw, 3.5rem); }
  .dpr-hero-actions { flex-direction: column; align-items: stretch; }
  .dpr-button { width: 100%; }
  .dpr-hero-media { min-height: 210px; }
  .dpr-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dpr-category-card { padding: 17px 8px 15px; }
  .dpr-category-icon { width: 50px; height: 50px; }
  .dpr-post-grid { grid-template-columns: 1fr; gap: 18px; }
  .dpr-card-image-link { aspect-ratio: 16/9; }
  .dpr-section { padding: 40px 0; }
  .dpr-section-head { align-items: center; }
  .dpr-about-box { padding: 24px 20px; }
  .dpr-footer-main { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
  .dpr-footer-bottom { flex-direction: column; }
  .dpr-single-wrap { padding-top: 34px; }
  .dpr-single-title { font-size: clamp(2rem,11vw,3.15rem); }
  .entry-content { line-height: 1.75; }
  .entry-content h2 { font-size: 1.7rem; }
  .entry-content h3 { font-size: 1.4rem; }
  .dpr-related { padding: 18px; margin-inline: -2px; }
  .dpr-related-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .dpr-related-title { font-size: .86rem; }
  .dpr-author-box { grid-template-columns: 52px 1fr; padding: 18px; }
  .dpr-desktop-post-nav { display: none; }
  .dpr-side-post-link { width: 58px; min-height: 76px; gap: 3px; padding: 8px 4px; }
  .dpr-side-label { display: block; writing-mode: horizontal-tb; transform: none !important; font-size: .55rem; letter-spacing: .025em; }
  .dpr-side-arrow { font-size: 1.9rem; }
  .dpr-side-post-previous { left: -3px; border-radius: 0 15px 15px 0; }
  .dpr-side-post-next { right: -3px; border-radius: 15px 0 0 15px; }
}

@media (max-width: 370px) {
  .dpr-category-grid { grid-template-columns: 1fr; }
  .dpr-related-grid { grid-template-columns: 1fr; }
}


/* Version 1.2: single-post sidebar, responsive charts, mobile bottom navigation and newsletter */
.dpr-single-wrap { width: min(calc(100% - 32px), var(--dpr-max)); }
.dpr-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 42px; align-items: start; }
.dpr-single-main { min-width: 0; }
.dpr-single-sidebar { min-width: 0; }
.dpr-sidebar-card { position: sticky; top: 102px; padding: 22px; border: 1px solid var(--dpr-border); border-radius: var(--dpr-radius); background: #fff; box-shadow: 0 10px 30px rgba(28,55,31,.06); }
.admin-bar .dpr-sidebar-card { top: 134px; }
.dpr-sidebar-title { margin: 0 0 17px; padding-bottom: 12px; border-bottom: 2px solid var(--dpr-accent-soft); font-size: 1.25rem; line-height: 1.2; }
.dpr-popular-posts { display: grid; gap: 16px; }
.dpr-popular-item { display: grid; grid-template-columns: 86px minmax(0,1fr); gap: 12px; align-items: center; }
.dpr-popular-thumb { width: 86px; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: var(--dpr-accent-soft); font-size: 1.5rem; }
.dpr-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dpr-popular-item h3 { margin: 0 0 5px; font-size: .91rem; line-height: 1.35; }
.dpr-popular-item h3 a { color: var(--dpr-ink); }
.dpr-popular-item time { color: var(--dpr-muted); font-size: .72rem; }
.dpr-table-scroll, .dpr-chart-scroll { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; margin: 1.7em 0; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
.dpr-table-scroll { border: 1px solid var(--dpr-border); border-radius: 14px; }
.entry-content .dpr-table-scroll table { display: table; width: max-content; min-width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.entry-content .dpr-table-scroll th, .entry-content .dpr-table-scroll td { white-space: normal; min-width: 120px; }
.entry-content canvas { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; }
.entry-content svg { display: block; max-width: 100% !important; height: auto !important; }
.entry-content iframe, .entry-content embed, .entry-content object { width: 100% !important; max-width: 100% !important; }
.entry-content .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content [style*="width"] { max-width: 100%; }
.dpr-chart-scroll > * { max-width: 100%; }
.dpr-newsletter-form { width: 100%; }
.dpr-newsletter-row { display: flex; width: 100%; }
.dpr-newsletter-row input { min-width: 0; flex: 1; min-height: 46px; padding: 0 13px; border: 1px solid var(--dpr-border); border-radius: 10px 0 0 10px; background: #fff; }
.dpr-newsletter-row button { flex: 0 0 auto; min-height: 46px; padding: 0 16px; border: 0; border-radius: 0 10px 10px 0; background: var(--dpr-accent); color: #fff; font-weight: 800; cursor: pointer; }
.dpr-newsletter-row button:hover { background: var(--dpr-accent-dark); }
.dpr-newsletter-row button:disabled { opacity: .65; cursor: wait; }
.dpr-newsletter-status { min-height: 1.4em; margin: 8px 0 0; color: var(--dpr-muted); font-size: .78rem; }
.dpr-newsletter-form.is-success .dpr-newsletter-status { color: var(--dpr-accent-dark); font-weight: 700; }
.dpr-newsletter-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.dpr-subscribe-popup { position: fixed; z-index: 9998; inset: 0; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.dpr-subscribe-popup.is-open { opacity: 1; visibility: visible; }
.dpr-popup-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(8,20,10,.66); cursor: pointer; }
.dpr-popup-dialog { position: relative; z-index: 1; width: min(100%, 510px); padding: 34px; border-radius: 24px; background: #fff; box-shadow: 0 25px 80px rgba(0,0,0,.28); text-align: center; transform: translateY(16px) scale(.98); transition: transform .2s ease; }
.dpr-subscribe-popup.is-open .dpr-popup-dialog { transform: none; }
.dpr-popup-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--dpr-soft-bg); color: var(--dpr-ink); font-size: 1.65rem; line-height: 1; cursor: pointer; }
.dpr-popup-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: var(--dpr-accent-soft); font-size: 1.8rem; }
.dpr-popup-dialog h2 { margin: 0; font-size: clamp(1.65rem,4vw,2.3rem); line-height: 1.12; }
.dpr-popup-dialog > p { margin: 12px auto 20px; max-width: 410px; color: var(--dpr-muted); }
.dpr-popup-dialog small { display: block; margin-top: 10px; color: var(--dpr-muted); }
.dpr-popup-open { overflow: hidden; }
@media (max-width: 1040px) { .dpr-single-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 28px; } }
@media (max-width: 900px) { .dpr-single-layout { grid-template-columns: 1fr; } .dpr-sidebar-card { position: static; } .dpr-popular-posts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 820px) {
  body.has-dpr-side-nav { padding-bottom: 76px; }
  .dpr-side-post-nav { inset: auto 0 0; height: 72px; background: linear-gradient(to top, rgba(255,255,255,.98), rgba(255,255,255,.9), transparent); }
  .dpr-side-post-link { top: auto; bottom: 10px; width: auto; max-width: calc(50% - 18px); min-height: 50px; padding: 0 16px; flex-direction: row; gap: 8px; border-radius: 999px; transform: none; }
  .dpr-side-post-link:hover { transform: translateY(-2px); }
  .dpr-side-post-previous { left: 10px; right: auto; border-radius: 999px; }
  .dpr-side-post-next { right: 10px; left: auto; border-radius: 999px; }
  .dpr-side-label, .dpr-side-post-previous .dpr-side-label { display: block; writing-mode: horizontal-tb; transform: none; font-size: .7rem; letter-spacing: .04em; }
  .dpr-side-arrow { font-size: 1.65rem; }
}
@media (max-width: 600px) {
  .dpr-single-wrap { width: min(calc(100% - 24px), var(--dpr-max)); }
  .dpr-popular-posts { grid-template-columns: 1fr; }
  .dpr-sidebar-card { padding: 18px; }
  .dpr-newsletter-row { flex-direction: column; gap: 8px; }
  .dpr-newsletter-row input, .dpr-newsletter-row button { width: 100%; border-radius: 10px; }
  .dpr-popup-dialog { padding: 30px 20px 24px; }
  .entry-content .dpr-table-scroll th, .entry-content .dpr-table-scroll td { min-width: 108px; padding: 10px 11px; font-size: .87em; }
  .dpr-side-post-link { max-width: calc(50% - 15px); min-height: 48px; padding-inline: 13px; }
}
