/*
Theme Name: Hiqjj Diary
Theme URI: https://www.hiqjj.org/
Author: Codex
Description: A complete diary-style blog theme for Hiqjj, inspired by the original Psyduck notebook landing page.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: hiqjj-diary
*/

:root {
  --paper: #fff8dc;
  --paper-soft: #fffdf3;
  --ink: #25313b;
  --muted: #6c7884;
  --line: #dfe8ec;
  --duck: #ffd447;
  --duck-deep: #e8a900;
  --mint: #9be3c0;
  --coral: #ffb193;
  --lilac: #c9c0ff;
  --sky: #95d8ff;
  --rose: #ff8fa3;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #ffffff;
  --shadow: 0 18px 50px rgba(37, 49, 59, 0.12);
  --shadow-soft: 0 10px 26px rgba(37, 49, 59, 0.08);
  --radius: 8px;
  --wide: 1240px;
  --content: 760px;
  --font-body: Nunito, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "ZCOOL KuaiLe", "Microsoft YaHei", var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  background:
    radial-gradient(circle at 12% 14%, rgba(149, 216, 255, 0.28), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 143, 163, 0.2), transparent 24%),
    repeating-linear-gradient(var(--paper), var(--paper) 31px, var(--line) 31px, var(--line) 32px);
  min-height: 100vh;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: #0d6f88;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #b46900;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--duck);
  border: 2px solid var(--ink);
}

.skip-link:focus {
  left: 12px;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 243, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 49, 59, 0.1);
}

.header-inner,
.site-main,
.footer-inner {
  width: min(calc(100% - 32px), var(--wide));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: inline-grid;
  grid-template-columns: 48px auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--duck);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 rgba(232, 169, 0, 0.3);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
  text-shadow: 1px 1px 0 var(--duck);
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  justify-self: center;
}

.primary-nav ul,
.footer-links,
.post-meta,
.tag-list,
.category-pills,
.post-nav,
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  border-radius: var(--radius);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  background: var(--duck);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(37, 49, 59, 0.18);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.header-search {
  width: min(260px, 28vw);
}

.search-form {
  display: flex;
  align-items: stretch;
  min-height: 42px;
  background: #fff;
  border: 2px solid rgba(37, 49, 59, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.search-form input[type="search"] {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.search-form button {
  border: 0;
  padding: 0 13px;
  color: var(--ink);
  background: var(--duck);
  font-weight: 900;
}

.site-main {
  padding: 24px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  min-height: auto;
  margin-bottom: 18px;
  padding: 22px 0 18px;
  border-bottom: 1px solid rgba(37, 49, 59, 0.12);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 10px;
  color: #314244;
  background: rgba(155, 227, 192, 0.55);
  border: 1px solid rgba(37, 49, 59, 0.1);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.archive-header h1,
.single-title,
.page-title,
.not-found h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.04;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.8rem);
  text-shadow: 3px 3px 0 var(--duck);
}

.hero-lede {
  max-width: 660px;
  margin: 12px 0 0;
  color: #3e4a55;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button,
.wp-block-button__link,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--duck);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(37, 49, 59, 0.16);
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
}

.button:hover,
.wp-block-button__link:hover,
.comment-form input[type="submit"]:hover {
  transform: translateY(-1px);
  color: var(--ink);
}

.hero-panel {
  display: grid;
  justify-items: end;
  padding-bottom: 8px;
}

.thought-bubble {
  position: relative;
  width: 100%;
  padding: 13px 15px;
  color: #4b5963;
  background: #fff;
  border: 3px solid var(--duck);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(255, 212, 71, 0.2);
  font-size: 0.92rem;
  font-weight: 900;
}

.thought-bubble::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 3px solid var(--duck);
  border-top: 3px solid var(--duck);
  transform: rotate(45deg);
}

.duck-portrait {
  width: min(100%, 124px);
  filter: drop-shadow(0 18px 26px rgba(37, 49, 59, 0.18));
  animation: duck-breathe 4.2s ease-in-out infinite;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 0;
}

.pill,
.tag-list a,
.category-pills a,
.post-categories a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(37, 49, 59, 0.14);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.pill.trading,
.category-pills .cat-item:nth-child(3n + 1) a {
  background: var(--mint);
}

.pill.coding,
.category-pills .cat-item:nth-child(3n + 2) a {
  background: var(--coral);
}

.pill.gaming,
.category-pills .cat-item:nth-child(3n + 3) a {
  background: var(--lilac);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 12px 0 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-family: var(--font-display);
  text-shadow: 2px 2px 0 rgba(255, 212, 71, 0.85);
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.layout-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.post-card,
.sidebar-card,
.comment-body,
.author-box,
.not-found,
.page-panel,
.single-panel,
.archive-header {
  background: var(--panel);
  border: 1px solid rgba(37, 49, 59, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.post-card {
  display: flex;
  flex-direction: row;
  min-height: 100%;
  overflow: hidden;
}

.post-card.sticky {
  border-color: rgba(232, 169, 0, 0.55);
  box-shadow: var(--shadow);
}

.post-card-media {
  display: block;
  width: 210px;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 212, 71, 0.4), rgba(149, 216, 255, 0.38)),
    #fff;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 240ms ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.post-card h2,
.post-card h3 {
  margin: 8px 0 8px;
  font-size: clamp(1.24rem, 2vw, 1.65rem);
  line-height: 1.18;
}

.post-card h2 a,
.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover,
.post-card h3 a:hover {
  color: #0d6f88;
}

.post-excerpt {
  margin: 0 0 16px;
  color: #53606b;
}

.post-card .read-more {
  margin-top: auto;
  font-weight: 900;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.post-meta li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(37, 49, 59, 0.28);
}

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

.duck-rail,
.sidebar {
  position: sticky;
  top: 96px;
}

.duck-rail {
  display: grid;
  gap: 12px;
}

.duck-card {
  display: grid;
  place-items: center;
  min-height: 142px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 212, 71, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.duck-card:hover .duck-portrait,
.duck-card:focus-visible .duck-portrait {
  transform: translateY(-4px) rotate(-2deg);
}

.duck-thought {
  margin-top: 6px;
}

.duck-tags {
  justify-content: flex-start;
}

.blog-tools {
  display: grid;
  gap: 10px;
}

.tools-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  color: var(--ink);
  background: var(--duck);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(37, 49, 59, 0.16);
  font-weight: 900;
}

.tools-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.tools-toggle-icon::before,
.tools-toggle-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--ink);
}

.tools-toggle-icon::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.blog-tools.is-open .tools-toggle-icon::after {
  transform: rotate(0deg);
}

.tools-panel {
  display: grid;
  gap: 10px;
}

.tool-section {
  background: var(--panel);
  border: 1px solid rgba(37, 49, 59, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.tool-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 45px;
  padding: 12px 15px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  list-style: none;
}

.tool-section summary::-webkit-details-marker {
  display: none;
}

.tool-section summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
  background: rgba(255, 212, 71, 0.62);
  border-radius: 999px;
  font-family: var(--font-body);
}

.tool-section[open] summary {
  border-bottom: 1px solid rgba(37, 49, 59, 0.08);
}

.tool-section[open] summary::after {
  content: "-";
}

.tool-section-body {
  padding: 14px 15px 15px;
}

.tool-section .search-form {
  min-height: 40px;
  box-shadow: none;
}

.tool-section ul {
  margin: 0;
  padding-left: 18px;
}

.tool-section li + li {
  margin-top: 8px;
}

.tool-section .category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-left: 0;
}

.tool-section .sidebar-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.tool-section .sidebar-card + .sidebar-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(37, 49, 59, 0.1);
}

.tool-section .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}

.tool-section .wp-block-search__input {
  min-width: 0;
  width: 100%;
  padding: 9px 10px;
  border: 2px solid rgba(37, 49, 59, 0.14);
  border-radius: var(--radius);
}

.tool-section .wp-block-search__button {
  padding: 9px 12px;
  color: var(--ink);
  background: var(--duck);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 900;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-card + .sidebar-card {
  margin-top: 16px;
}

.sidebar-card h2,
.sidebar-card h3,
.widgettitle {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-family: var(--font-display);
}

.sidebar-card ul {
  margin: 0;
  padding-left: 18px;
}

.sidebar-card li + li {
  margin-top: 8px;
}

.archive-header {
  margin-bottom: 24px;
  padding: 26px;
}

.archive-header h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  text-shadow: 2px 2px 0 var(--duck);
}

.archive-description {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.single-panel,
.page-panel {
  width: min(100%, var(--content));
  margin: 0 auto;
  overflow: hidden;
}

.single-hero,
.page-hero {
  padding: 28px 28px 0;
}

.single-title,
.page-title {
  font-size: clamp(2rem, 5vw, 4.6rem);
  text-shadow: 2px 2px 0 var(--duck);
}

.featured-image {
  margin: 24px 0 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.featured-image img {
  display: block;
  width: 100%;
}

.entry-content {
  padding: 26px 28px 34px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.2;
  margin-top: 1.8em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.2em;
}

.entry-content blockquote {
  margin: 1.6em 0;
  padding: 18px 20px;
  background: rgba(155, 227, 192, 0.26);
  border-left: 5px solid var(--mint);
  border-radius: var(--radius);
}

.entry-content pre,
.entry-content code {
  font-family: "Fira Code", Consolas, "Liberation Mono", monospace;
}

.entry-content pre {
  overflow-x: auto;
  padding: 16px;
  background: #1f2933;
  color: #f6f7f8;
  border-radius: var(--radius);
}

.entry-footer {
  display: grid;
  gap: 16px;
  padding: 0 28px 28px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.post-nav a {
  display: block;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(37, 49, 59, 0.12);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
}

.post-nav .next {
  text-align: right;
}

.comments-area {
  width: min(100%, var(--content));
  margin: 26px auto 0;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-body {
  padding: 16px;
}

.comment-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.comment-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid rgba(37, 49, 59, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.comment-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 2px solid rgba(37, 49, 59, 0.14);
  border-radius: var(--radius);
}

.pagination,
.page-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}

.pagination .page-numbers,
.page-links a,
.page-links span {
  min-width: 40px;
  padding: 8px 11px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(37, 49, 59, 0.16);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
}

.pagination .current {
  background: var(--duck);
}

.not-found {
  width: min(100%, 760px);
  margin: 44px auto;
  padding: 34px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  text-shadow: 3px 3px 0 var(--duck);
}

.site-footer {
  padding: 34px 0;
  background: rgba(37, 49, 59, 0.94);
  color: #f7f4e8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
}

.footer-brand span,
.footer-copy {
  color: rgba(247, 244, 232, 0.72);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  font-weight: 900;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

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

@keyframes duck-breathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  body.admin-bar .site-header {
    top: 0;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-block;
  }

  .primary-nav,
  .header-search {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    width: 100%;
  }

  body.nav-open .primary-nav,
  body.nav-open .header-search {
    display: block;
  }

  .primary-nav ul {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-nav a {
    width: 100%;
  }

  .hero,
  .layout-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 14px;
    margin-bottom: 14px;
    padding-top: 18px;
  }

  .hero-panel {
    justify-items: start;
  }

  .hero-tags {
    justify-content: flex-start;
  }

  .duck-rail,
  .sidebar {
    position: static;
  }

  .duck-rail {
    order: 1;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 10px 12px;
  }

  .duck-card {
    min-height: 112px;
    padding: 10px;
  }

  .duck-portrait {
    width: 90px;
  }

  .duck-thought {
    margin-top: 0;
  }

  .duck-thought::after {
    top: 50%;
    left: -10px;
    border-top: 0;
    border-bottom: 3px solid var(--duck);
    transform: translateY(-50%) rotate(45deg);
  }

  .duck-tags {
    grid-column: 1 / -1;
  }

  .blog-tools {
    order: 2;
  }

  .feed-column {
    order: 3;
  }

  .tools-toggle {
    display: flex;
  }

  .tools-panel {
    display: none;
  }

  .blog-tools.is-open .tools-panel {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .header-inner,
  .site-main,
  .footer-inner {
    width: min(calc(100% - 22px), var(--wide));
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    flex-direction: column;
  }

  .post-card-media {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .hero-lede {
    margin-top: 10px;
  }

  .hero-actions {
    gap: 9px;
  }

  .single-hero,
  .page-hero,
  .entry-content,
  .entry-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .section-heading > p {
    display: none;
  }

  .duck-rail {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .duck-card {
    min-height: 92px;
  }

  .duck-portrait {
    width: 74px;
  }

  .duck-tags {
    gap: 7px;
  }

  .duck-tags .pill {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 0.76rem;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav .next {
    text-align: left;
  }
}
