/* Header gọn hơn, giữ bố cục logo giữa và thanh menu hiện có. */
.nq-polished-ui .header-main {
  height: 78px !important;
}

.nq-polished-ui #logo img {
  max-height: 58px !important;
}

.nq-polished-ui .header.show-on-scroll,
.nq-polished-ui .stuck .header-main {
  height: 60px !important;
}

.nq-polished-ui .stuck #logo img {
  max-height: 44px !important;
}

.nq-polished-ui .header-wrapper,
.nq-polished-ui .header-main,
.nq-polished-ui #logo img {
  transition: height .22s ease, max-height .22s ease, box-shadow .22s ease;
}

.nq-polished-ui .stuck .header-main {
  box-shadow: 0 5px 22px rgba(47, 37, 30, .09);
}

/* Menu rõ trạng thái hơn nhưng vẫn giữ phong cách tối giản hiện có. */
.nq-polished-ui .header-nav-main > li > a {
  position: relative;
  transition: color .2s ease;
}

.nq-polished-ui .header-nav-main > li > a::after {
  position: absolute;
  right: 50%;
  bottom: 5px;
  left: 50%;
  height: 2px;
  border-radius: 999px;
  background: #e58f58;
  content: '';
  transition: right .22s ease, left .22s ease;
}

.nq-polished-ui .header-nav-main > li:hover > a::after,
.nq-polished-ui .header-nav-main > li.active > a::after,
.nq-polished-ui .header-nav-main > li.current-menu-item > a::after,
.nq-polished-ui .header-nav-main > li > a:focus-visible::after {
  right: 18%;
  left: 18%;
}

.nq-polished-ui .header-nav-main > li > a:focus-visible,
.nq-polished-ui .header-search a:focus-visible,
.nq-polished-ui .social-icons a:focus-visible {
  outline: 2px solid #d58b5a;
  outline-offset: 3px;
}

.nq-polished-ui .header-social-icons .social-icons a {
  transition: transform .2s ease, box-shadow .2s ease;
}

.nq-polished-ui .header-social-icons .social-icons a:hover,
.nq-polished-ui .header-social-icons .social-icons a:focus-visible {
  box-shadow: 0 6px 16px rgba(52, 41, 34, .16);
  transform: translateY(-2px);
}

/* Trang chủ: banner và lời chào thành một hero 60/40 trên màn hình lớn. */
.nq-homepage.nq-polished-ui #content > .slider-wrapper,
.nq-homepage.nq-polished-ui .nq-home-hero__visual > .slider-wrapper {
  width: calc(100% - 30px);
  max-width: 900px;
  margin: 22px auto 42px !important;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(34, 28, 27, .14);
}

.nq-homepage.nq-polished-ui #content > .slider-wrapper img,
.nq-homepage.nq-polished-ui .nq-home-hero__visual > .slider-wrapper img {
  display: block;
}

.nq-homepage .nq-home-hero {
  display: grid;
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 28px auto 52px;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 34px;
  align-items: stretch;
}

.nq-homepage .nq-home-author-rail {
  display: flex;
  min-width: 0;
  padding: 20px 15px 15px;
  overflow: hidden;
  border: 1px solid rgba(96, 70, 53, .12);
  border-radius: 20px;
  background: linear-gradient(160deg, #fffdf9, #f5e8de);
  flex-direction: column;
  box-shadow: 0 14px 38px rgba(67, 50, 39, .1);
}

.nq-home-author-rail__header {
  padding: 2px 3px 15px;
  border-bottom: 1px solid rgba(96, 70, 53, .1);
}

.nq-home-author-rail__header span,
.nq-home-author-rail__header strong {
  display: block;
}

.nq-home-author-rail__header span {
  margin-bottom: 5px;
  color: #bd7044;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.nq-home-author-rail__header strong {
  color: #473a32;
  font-family: Lora, Georgia, serif;
  font-size: 18px;
  line-height: 1.3;
}

.nq-home-author-rail__list {
  display: grid;
  margin-top: 5px;
  gap: 5px;
}

.nq-home-author-rail__item {
  overflow: hidden;
  border-bottom: 1px solid rgba(96, 70, 53, .08);
}

.nq-home-author-rail__item:last-child {
  border-bottom: 0;
}

.nq-home-author-rail__toggle {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 13px 2px 12px;
  border: 0;
  background: transparent;
  color: #4b3d35;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.nq-home-author-rail__toggle:hover,
.nq-home-author-rail__toggle:focus-visible {
  color: #9f5838;
}

.nq-home-author-rail__toggle:focus-visible {
  border-radius: 10px;
  outline: 2px solid #c77a4c;
  outline-offset: 2px;
}

.nq-home-author-rail__avatar {
  width: 48px !important;
  height: 48px !important;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 24%;
  box-shadow: 0 6px 16px rgba(68, 45, 32, .16);
}

.nq-home-author-rail__toggle > span,
.nq-home-author-rail__toggle strong,
.nq-home-author-rail__toggle small {
  display: block;
  min-width: 0;
}

.nq-home-author-rail__toggle strong {
  overflow: hidden;
  color: #4a3b33;
  font-family: Lora, Georgia, serif;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nq-home-author-rail__toggle small {
  margin-top: 3px;
  color: #8b786d;
  font-size: 8px;
  line-height: 1.35;
}

.nq-home-author-rail__toggle i {
  display: grid;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1dfd2;
  color: #a45d3c;
  place-items: center;
  font-size: 11px;
  font-style: normal;
  transition: transform .2s ease;
}

.nq-home-author-rail__item.is-open .nq-home-author-rail__toggle i {
  transform: rotate(180deg);
}

.nq-home-author-rail__panel {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(123, 78, 51, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
}

.nq-home-author-rail__panel[hidden] {
  display: none;
}

.nq-home-author-rail__panel > span,
.nq-home-author-rail__panel > strong,
.nq-home-author-rail__panel > small {
  display: block;
}

.nq-home-author-rail__panel > span {
  margin-bottom: 5px;
  color: #bd7044;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nq-home-author-rail__panel > strong {
  margin-bottom: 6px;
  color: #493a32;
  font-family: Lora, Georgia, serif;
  font-size: 11px;
  line-height: 1.45;
}

.nq-home-author-rail__panel > small {
  margin-bottom: 9px;
  color: #8b776b;
  font-size: 8px;
}

.nq-home-author-rail__panel a,
.nq-home-author-rail__join {
  display: inline-flex;
  min-height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800;
}

.nq-home-author-rail__panel a {
  width: 100%;
  padding: 7px 10px;
  background: #a75c3e;
  color: #fff;
  gap: 5px;
}

.nq-home-author-rail__panel a:hover,
.nq-home-author-rail__panel a:focus-visible {
  background: #8f4933;
  color: #fff;
}

.nq-home-author-rail__join {
  width: 100%;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid rgba(174, 97, 58, .22);
  background: #fff7f0;
  color: #a55d3b;
}

.nq-home-author-rail__join:hover,
.nq-home-author-rail__join:focus-visible {
  background: #a75c3e;
  color: #fff;
}

.nq-homepage .nq-home-hero__visual {
  display: flex;
  min-width: 0;
  align-items: center;
}

.nq-homepage.nq-polished-ui .nq-home-hero__visual > .slider-wrapper {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(34, 28, 27, .16);
}

.nq-homepage .nq-home-hero__about {
  display: flex;
  min-width: 0;
  padding: 30px 32px;
  border: 1px solid rgba(102, 79, 61, .12);
  border-radius: 20px;
  background: linear-gradient(145deg, #fffdf9, #f8f1ea);
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 14px 38px rgba(67, 50, 39, .08);
}

.nq-homepage .nq-home-hero__about .nq-home-intro {
  width: 100%;
  margin: 0;
}

.nq-homepage .nq-home-hero__about .nq-home-intro > .col {
  padding: 0;
}

.nq-homepage .nq-home-hero__about .section-title-container {
  margin: 0 0 8px;
}

.nq-homepage .nq-home-hero__about .section-title {
  margin: 0;
  border: 0;
}

.nq-homepage .nq-home-hero__about .section-title b {
  display: none;
}

.nq-homepage .nq-home-hero__about .section-title-main {
  padding: 0;
  color: #3c332d;
  font-family: Lora, Georgia, serif;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.25;
  text-transform: none;
}

.nq-homepage .nq-home-hero__about .nq-home-intro p {
  margin: 0 0 18px;
  color: #b26c3d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nq-homepage .nq-home-hero__about > .box {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.nq-homepage .nq-home-hero__about .box-image {
  width: 116px !important;
  height: 116px;
  overflow: hidden;
  border-radius: 50% !important;
  box-shadow: 0 8px 24px rgba(54, 39, 29, .15);
}

.nq-homepage .nq-home-hero__about .box-image > div {
  height: 100%;
}

.nq-homepage .nq-home-hero__about .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}

.nq-homepage .nq-home-hero__about .box-text {
  padding: 0 !important;
  text-align: left;
}

.nq-homepage .nq-home-hero__about .box-text h4 {
  margin-bottom: 7px;
  color: #3d332d;
  font-family: Lora, Georgia, serif;
  font-size: 20px;
}

.nq-homepage .nq-home-hero__about .box-text p {
  margin-bottom: 0;
  color: #6b5c52;
  font-size: 13px;
  line-height: 1.65;
  text-align: left !important;
}

.nq-homepage .nq-home-hero__actions {
  display: flex;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.nq-homepage .nq-home-hero__button {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1.2;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nq-homepage .nq-home-hero__button--primary {
  background: #d67f4b;
  color: #fff;
  box-shadow: 0 8px 20px rgba(132, 76, 43, .2);
}

.nq-homepage .nq-home-hero__button--secondary {
  border-color: rgba(107, 79, 59, .18);
  background: rgba(255, 255, 255, .72);
  color: #5a493e;
}

.nq-homepage .nq-home-hero__button:hover,
.nq-homepage .nq-home-hero__button:focus-visible {
  color: #fff;
  box-shadow: 0 11px 24px rgba(95, 60, 39, .2);
  transform: translateY(-2px);
}

.nq-homepage .nq-home-hero__button--primary:hover,
.nq-homepage .nq-home-hero__button--primary:focus-visible,
.nq-homepage .nq-home-hero__button--secondary:hover,
.nq-homepage .nq-home-hero__button--secondary:focus-visible {
  border-color: #bb693d;
  background: #bb693d;
}

.nq-homepage .nq-home-hero__button:focus-visible {
  outline: 2px solid #c87543;
  outline-offset: 3px;
}

.nq-homepage .nq-home-source-hidden {
  display: none !important;
}

.nq-homepage .nq-home-card-row {
  margin-bottom: 28px;
}

.nq-homepage .nq-home-card-row--with-authors {
  align-items: stretch;
}

.nq-homepage .nq-home-card-row--with-authors > .col {
  display: flex;
}

.nq-homepage .nq-home-card-row--with-authors > .col > .col-inner {
  width: 100%;
}

.nq-homepage .nq-home-author-card .nq-home-author-rail {
  height: 100%;
  min-height: 330px;
  padding: 22px 18px 17px;
}

.nq-homepage .nq-home-author-card .nq-home-author-rail__header strong {
  font-size: 22px;
}

.nq-homepage .nq-home-author-card .nq-home-author-rail__toggle {
  grid-template-columns: 54px minmax(0, 1fr) 20px;
  gap: 11px;
}

.nq-homepage .nq-home-author-card .nq-home-author-rail__avatar {
  width: 54px !important;
  height: 54px !important;
}

.nq-homepage .nq-home-author-card .nq-home-author-rail__toggle strong {
  font-size: 14px;
}

.nq-homepage .nq-home-author-card .nq-home-author-rail__toggle small,
.nq-homepage .nq-home-author-card .nq-home-author-rail__panel > small,
.nq-homepage .nq-home-author-card .nq-home-author-rail__panel a,
.nq-homepage .nq-home-author-card .nq-home-author-rail__join {
  font-size: 10px;
}

.nq-homepage .nq-home-author-card .nq-home-author-rail__panel > strong {
  font-size: 13px;
}

.nq-homepage .nq-home-card-row > .col > .col-inner {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(67, 50, 39, .09);
}

.nq-homepage .nq-home-card-row > .nq-home-author-card > .col-inner {
  overflow: visible;
  box-shadow: none;
}

.nq-homepage .nq-home-card-row .box {
  transition: transform .25s ease, box-shadow .25s ease;
}

.nq-homepage .nq-home-card-row .box:hover,
.nq-homepage .nq-home-card-row .box:focus-within {
  transform: translateY(-4px);
}

.nq-homepage .nq-home-card-row .nq-home-library-card .banner {
  overflow: hidden;
  border-radius: 18px;
  transition: box-shadow .25s ease, transform .25s ease;
}

.nq-homepage .nq-home-card-row .nq-home-library-card:hover .banner,
.nq-homepage .nq-home-card-row .nq-home-library-card:focus-within .banner {
  box-shadow: 0 15px 34px rgba(67, 50, 39, .15);
  transform: translateY(-5px);
}

.nq-homepage .nq-home-library-card .text-box {
  width: calc(100% - 42px) !important;
  max-width: 390px;
}

.nq-homepage .nq-home-library-card .text-box-content {
  padding: 20px 22px !important;
  border: 1px solid rgba(96, 72, 55, .1);
  border-radius: 14px;
  background: rgba(255, 253, 249, .94) !important;
  text-align: left;
  box-shadow: 0 9px 24px rgba(48, 35, 28, .15);
  backdrop-filter: blur(6px);
}

.nq-homepage .nq-home-library-card .text-box-content h1,
.nq-homepage .nq-home-library-card .text-box-content h2,
.nq-homepage .nq-home-library-card .text-box-content h3,
.nq-homepage .nq-home-library-card .text-box-content h4 {
  margin: 5px 0 8px;
  color: #3c332d;
  font-family: Lora, Georgia, serif;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.22;
}

.nq-homepage .nq-home-card-eyebrow {
  display: inline-flex;
  color: #b86d43;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.nq-homepage .nq-home-card-description {
  margin: 0 0 12px !important;
  color: #6d5c51;
  font-size: 12px;
  line-height: 1.55;
}

.nq-homepage .nq-home-card-action {
  display: inline-flex;
  color: #a95f38;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.nq-homepage .nq-home-card-action::after {
  content: '→';
  font-size: 15px;
  transition: transform .2s ease;
}

.nq-homepage .nq-home-library-card:hover .nq-home-card-action::after,
.nq-homepage .nq-home-library-card:focus-within .nq-home-card-action::after {
  transform: translateX(4px);
}

.nq-homepage .nq-home-latest-row {
  padding-top: 10px;
}

.nq-homepage .nq-home-latest-main > .col-inner {
  position: relative;
}

.nq-homepage .nq-home-section-kicker,
.nq-homepage .nq-home-guide__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #bd7448;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nq-homepage .nq-home-latest-main .section-title-container {
  margin-bottom: 8px;
}

.nq-homepage .nq-home-section-description {
  max-width: 620px;
  margin: 0 0 22px;
  color: #75665d;
  font-size: 13px;
  line-height: 1.65;
}

.nq-homepage .nq-home-featured-update .box-blog-post {
  border-color: rgba(213, 125, 72, .24);
  background: linear-gradient(145deg, #fff, #fffaf6);
  box-shadow: 0 12px 32px rgba(96, 60, 40, .11);
}

.nq-homepage .nq-home-newest-badge {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f8e5d7;
  color: #a65e37;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.nq-homepage .nq-home-sidebar-source {
  display: none !important;
}

.nq-homepage .nq-home-guide-column > .col-inner {
  height: 100%;
}

.nq-homepage .nq-home-guide-stack {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.nq-homepage .nq-home-guide {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(93, 69, 52, .11);
  border-radius: 20px;
  background: linear-gradient(150deg, #fffdf9, #f7ede5);
  box-shadow: 0 13px 34px rgba(67, 50, 39, .08);
}

.nq-homepage .nq-home-guide::before {
  position: absolute;
  top: -58px;
  right: -58px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(213, 139, 91, .16);
  border-radius: 50%;
  content: '';
}

.nq-homepage .nq-home-guide h3 {
  margin: 0 0 9px;
  color: #3c332d;
  font-family: Lora, Georgia, serif;
  font-size: 25px;
  line-height: 1.3;
}

.nq-homepage .nq-home-guide__intro {
  margin: 0 0 20px;
  color: #746359;
  font-size: 13px;
  line-height: 1.65;
}

.nq-homepage .nq-home-guide__link {
  position: relative;
  display: flex;
  min-height: 70px;
  margin-top: 10px;
  padding: 14px 46px 14px 15px;
  border: 1px solid rgba(100, 73, 55, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
  color: #4b3f37;
  align-items: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nq-homepage .nq-home-guide__link strong,
.nq-homepage .nq-home-guide__link small {
  display: block;
}

.nq-homepage .nq-home-guide__link strong {
  margin-bottom: 3px;
  color: #44372f;
  font-family: Lora, Georgia, serif;
  font-size: 14px;
  line-height: 1.35;
}

.nq-homepage .nq-home-guide__link small {
  color: #837269;
  font-size: 10px;
  line-height: 1.45;
}

.nq-homepage .nq-home-guide__arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #bd7044;
  font-size: 19px;
  transform: translateY(-50%);
  transition: transform .2s ease;
}

.nq-homepage .nq-home-guide__link:hover,
.nq-homepage .nq-home-guide__link:focus-visible {
  border-color: rgba(193, 109, 61, .34);
  color: #4b3f37;
  box-shadow: 0 9px 22px rgba(83, 53, 36, .1);
  transform: translateY(-2px);
}

.nq-homepage .nq-home-guide__link:hover .nq-home-guide__arrow,
.nq-homepage .nq-home-guide__link:focus-visible .nq-home-guide__arrow {
  transform: translate(4px, -50%);
}

.nq-homepage .nq-home-guide__link:focus-visible {
  outline: 2px solid #c87543;
  outline-offset: 3px;
}

.nq-homepage .nq-collab-banner {
  position: relative;
  padding: 25px 24px 24px;
  overflow: hidden;
  border: 1px solid rgba(167, 91, 58, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 236, 211, .32) 0, rgba(255, 236, 211, 0) 36%),
    linear-gradient(145deg, #9e563a, #713c31);
  color: #fffaf5;
  box-shadow: 0 14px 34px rgba(79, 42, 31, .18);
}

.nq-homepage .nq-collab-banner::after {
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 125px;
  height: 125px;
  border: 1px solid rgba(255, 241, 224, .2);
  border-radius: 50%;
  content: '';
}

.nq-homepage .nq-collab-banner__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff7ee;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.25;
  text-transform: uppercase;
}

.nq-homepage .nq-collab-banner h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 9px;
  color: #fff;
  font-family: Lora, Georgia, serif;
  font-size: 22px;
  line-height: 1.28;
}

.nq-homepage .nq-collab-banner__intro,
.nq-homepage .nq-collab-banner__promise {
  position: relative;
  z-index: 1;
  color: rgba(255, 248, 240, .88);
  font-size: 12px;
  line-height: 1.65;
}

.nq-homepage .nq-collab-banner__intro {
  margin: 0 0 12px;
}

.nq-homepage .nq-collab-banner__promise {
  margin: 0 0 18px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 221, 187, .66);
  font-weight: 600;
}

.nq-homepage .nq-collab-banner__button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: #fff8f0;
  color: #7b4233;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(47, 25, 20, .18);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nq-homepage .nq-collab-banner__button::after {
  margin-left: 7px;
  content: '\2192';
  font-size: 15px;
}

.nq-homepage .nq-collab-banner__button:hover,
.nq-homepage .nq-collab-banner__button:focus-visible {
  background: #fff;
  color: #6b3529;
  box-shadow: 0 11px 24px rgba(47, 25, 20, .24);
  transform: translateY(-2px);
}

.nq-homepage .nq-collab-banner__button:focus-visible {
  outline: 2px solid #ffd5af;
  outline-offset: 3px;
}

.nq-homepage .section-title-main {
  font-family: Lora, Georgia, serif;
}

.nq-homepage .nq-home-view-all {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid #e6925d;
  border-radius: 999px;
  background: #fff8f2;
  color: #b96839;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 7px 20px rgba(95, 61, 40, .08);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nq-homepage .nq-home-view-all::after {
  content: '→';
  font-size: 16px;
  line-height: 1;
  transition: transform .2s ease;
}

.nq-homepage .nq-home-view-all:hover,
.nq-homepage .nq-home-view-all:focus-visible {
  border-color: #db8250;
  background: #db8250;
  color: #fff;
  box-shadow: 0 10px 24px rgba(131, 79, 48, .18);
  transform: translateY(-2px);
}

.nq-homepage .nq-home-view-all:hover::after,
.nq-homepage .nq-home-view-all:focus-visible::after {
  transform: translateX(3px);
}

.nq-homepage .nq-home-latest-extra[hidden] {
  display: none !important;
}

.nq-homepage .nq-home-latest-toggle {
  display: inline-flex;
  min-height: 42px;
  margin: 0 8px 0 0;
  padding: 10px 18px;
  border: 1px solid rgba(173, 101, 61, .24);
  border-radius: 999px;
  background: #fff;
  color: #9f5d3b;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .025em;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.nq-homepage .nq-home-latest-toggle:hover,
.nq-homepage .nq-home-latest-toggle:focus-visible {
  border-color: #c87543;
  background: #fff5ed;
  color: #8f4d30;
  transform: translateY(-2px);
}

.nq-homepage .nq-home-latest-toggle:focus-visible {
  outline: 2px solid #c87543;
  outline-offset: 3px;
}

.nq-homepage .nq-home-popular {
  padding: 25px 22px 19px;
  border: 1px solid rgba(93, 69, 52, .11);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(67, 50, 39, .07);
}

.nq-homepage .nq-home-popular[hidden] {
  display: none !important;
}

.nq-home-popular__header span {
  display: block;
  margin-bottom: 5px;
  color: #bd7448;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.nq-home-popular__header h3 {
  margin: 0 0 13px;
  color: #3c332d;
  font-family: Lora, Georgia, serif;
  font-size: 23px;
  line-height: 1.3;
}

.nq-home-popular__list {
  margin: 0;
  list-style: none;
}

.nq-home-popular__list li {
  display: grid;
  padding: 13px 0;
  border-top: 1px solid rgba(93, 69, 52, .09);
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
}

.nq-home-popular__rank {
  color: #d08a5b;
  font-family: Lora, Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.nq-home-popular__list a,
.nq-home-popular__list small,
.nq-home-popular__list strong,
.nq-home-popular__list a > span {
  display: block;
}

.nq-home-popular__list a {
  color: #493b33;
}

.nq-home-popular__list small {
  margin-bottom: 3px;
  color: #b26a42;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nq-home-popular__list strong {
  margin-bottom: 4px;
  color: #493b33;
  font-family: Lora, Georgia, serif;
  font-size: 13px;
  line-height: 1.42;
  transition: color .2s ease;
}

.nq-home-popular__list a > span {
  color: #8a776b;
  font-size: 9px;
}

.nq-home-popular__list a:hover strong,
.nq-home-popular__list a:focus-visible strong {
  color: #a85d39;
}

.nq-home-popular__list a:focus-visible {
  border-radius: 6px;
  outline: 2px solid #c87543;
  outline-offset: 3px;
}

/* Footer đồng bộ với bảng màu giấy ấm của hero và các thẻ bài viết. */
.nq-polished-ui #footer.nq-footer-enhanced .footer-section {
  padding-top: 40px !important;
  padding-bottom: 24px !important;
  background: #faf7f3;
}

.nq-polished-ui #footer.nq-footer-enhanced .footer-section .row.align-center .text p {
  position: relative;
  margin-bottom: 24px;
  color: #4f433b;
  font-family: Lora, Georgia, serif !important;
  font-size: clamp(17px, 1.7vw, 21px) !important;
  font-style: italic;
  line-height: 1.6;
}

.nq-polished-ui #footer.nq-footer-enhanced .footer-section .row.align-center .text p::after {
  display: block;
  width: 52px;
  height: 2px;
  margin: 17px auto 0;
  border-radius: 999px;
  background: #dfa170;
  content: '';
}

.nq-polished-ui #footer.nq-footer-enhanced .footer-section .row-slider {
  width: calc(100% - 20px);
  max-width: 1320px;
  margin-right: auto;
  margin-left: auto;
}

.nq-polished-ui #footer.nq-footer-enhanced .gallery-col {
  padding: 5px;
}

.nq-polished-ui #footer.nq-footer-enhanced .gallery-col .gallery-box,
.nq-polished-ui #footer.nq-footer-enhanced .gallery-col .box-image {
  overflow: hidden;
  border-radius: 12px;
}

.nq-polished-ui #footer.nq-footer-enhanced .gallery-col .gallery-box {
  box-shadow: 0 8px 22px rgba(58, 43, 33, .1);
  transition: box-shadow .25s ease, transform .25s ease;
}

.nq-polished-ui #footer.nq-footer-enhanced .gallery-col a:hover .gallery-box,
.nq-polished-ui #footer.nq-footer-enhanced .gallery-col a:focus-visible .gallery-box {
  box-shadow: 0 12px 28px rgba(58, 43, 33, .17);
  transform: translateY(-3px);
}

.nq-polished-ui #footer.nq-footer-enhanced .gallery-col a:focus-visible {
  border-radius: 12px;
  outline: 2px solid #d58b5a;
  outline-offset: 3px;
}

.nq-polished-ui #footer.nq-footer-enhanced .row.padding-bot {
  max-width: 1180px;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(88, 68, 54, .12);
  align-items: center;
}

.nq-polished-ui #footer.nq-footer-enhanced .text.mg0 {
  color: #77685e;
  font-size: 12px !important;
  line-height: 1.6;
}

.nq-polished-ui #footer.nq-footer-enhanced .text.mg0 a {
  color: #a7643d;
}

.nq-polished-ui #footer.nq-footer-enhanced .absolute-footer {
  padding-top: 13px;
  padding-bottom: 13px;
  background: #2e2926;
}

.nq-polished-ui #footer.nq-footer-enhanced .absolute-footer a {
  color: rgba(255, 255, 255, .78);
}

.nq-polished-ui #top-link {
  border-color: #cf8658;
  background: #fffdf9;
  color: #a9633d;
  box-shadow: 0 8px 24px rgba(49, 36, 28, .14);
}

.nq-polished-ui #top-link:hover,
.nq-polished-ui #top-link:focus-visible {
  border-color: #cf8658;
  background: #cf8658;
  color: #fff;
}

.nq-homepage.nq-motion-ready .nq-home-hero,
.nq-homepage.nq-motion-ready .nq-home-card-row,
.nq-homepage.nq-motion-ready .nq-home-latest-row {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}

.nq-homepage.nq-motion-ready .nq-home-hero.nq-is-visible,
.nq-homepage.nq-motion-ready .nq-home-card-row.nq-is-visible,
.nq-homepage.nq-motion-ready .nq-home-latest-row.nq-is-visible {
  opacity: 1;
  transform: none;
}

.nq-homepage.nq-polished-ui .post-item .box-blog-post {
  margin-bottom: 15px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(77, 61, 49, .1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(67, 50, 39, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nq-homepage.nq-polished-ui .post-item .box-blog-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(67, 50, 39, .11);
}

.nq-homepage.nq-polished-ui .post-item .box-image {
  overflow: hidden;
  border-radius: 11px;
}

.nq-homepage.nq-polished-ui .post-item .box-text {
  padding: 13px 18px;
}

.nq-homepage.nq-polished-ui .post-item .post-title {
  color: #3c332d;
  font-family: Lora, Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
}

/* Trang lưu trữ tác phẩm: tiêu đề thuần Việt, thẻ bài viết gọn và dễ quét. */
.nq-archive-page .archive-page-header {
  margin: 0;
  padding: 54px 20px 50px;
  background: linear-gradient(145deg, #fbf7f2, #f5ebe3);
  border-bottom: 1px solid rgba(104, 76, 58, .09);
}

.nq-archive-page .archive-page-header .row {
  max-width: 1180px;
}

.nq-archive-page .archive-page-header .page-title {
  margin: 0;
  color: #3d332d;
  font-family: Lora, Georgia, serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-transform: none;
}

.nq-archive-page .nq-archive-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #bd7448;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nq-archive-page .blog-wrapper {
  padding-top: 46px;
  padding-bottom: 52px;
}

.nq-archive-page #post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.nq-archive-page #post-list article {
  min-width: 0;
  margin: 0;
}

.nq-archive-page #post-list article .article-inner {
  display: flex;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(91, 68, 52, .11);
  border-radius: 18px;
  background: #fff;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(63, 46, 35, .07);
}

.nq-archive-page #post-list article .entry-header {
  display: flex;
  flex-direction: column;
}

.nq-archive-page #post-list article .entry-image {
  order: -1;
  margin: 0;
  overflow: hidden;
  background: #eee6df;
}

.nq-archive-page #post-list article .entry-image a,
.nq-archive-page #post-list article .entry-image img {
  display: block;
  width: 100%;
}

.nq-archive-page #post-list article .entry-image img {
  height: 220px;
  object-fit: cover;
  transition: transform .35s ease;
}

.nq-archive-page #post-list article:hover .entry-image img,
.nq-archive-page #post-list article:focus-within .entry-image img {
  transform: scale(1.025);
}

.nq-archive-page #post-list article .entry-header-text {
  padding: 22px 24px 12px;
}

.nq-archive-page #post-list article .entry-category {
  margin-bottom: 7px;
  color: #b66c40;
  letter-spacing: .09em;
}

.nq-archive-page #post-list article .entry-title {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0;
  overflow: hidden;
  color: #382f2a;
  font-family: Lora, Georgia, serif;
  font-size: 20px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nq-archive-page #post-list article .entry-divider {
  margin: 13px 0 11px;
  background: #dda171;
}

.nq-archive-page #post-list article .entry-meta {
  color: #8a7a70;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .055em;
}

.nq-archive-page #post-list article .entry-content {
  display: flex;
  margin: 0;
  padding: 0 24px 22px;
  flex: 1;
  flex-direction: column;
}

.nq-archive-page #post-list article .entry-summary {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.nq-archive-page #post-list article .entry-summary > p {
  display: -webkit-box;
  margin-bottom: 18px;
  overflow: hidden;
  color: #665950;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.nq-archive-page #post-list article .entry-summary .text-left {
  margin-top: auto;
}

.nq-archive-page #post-list article .more-link {
  display: inline-flex;
  min-height: 38px;
  margin: 0;
  padding: 8px 17px;
  border-color: #d88a57;
  border-radius: 999px;
  color: #a85f35;
  align-items: center;
  gap: 8px;
  letter-spacing: .02em;
  text-transform: none;
  box-shadow: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nq-archive-page #post-list article .more-link:hover,
.nq-archive-page #post-list article .more-link:focus-visible {
  border-color: #cf7c48;
  background: #cf7c48;
  color: #fff;
  transform: translateY(-2px);
}

.nq-archive-page #post-list article footer.entry-meta {
  margin-top: auto;
  padding: 14px 24px;
  border-top: 1px solid rgba(91, 68, 52, .09);
  background: #fcfaf8;
  color: #817268;
  text-transform: none;
}

.nq-archive-page #post-list article footer.entry-meta a {
  color: #aa633a;
}

.nq-archive-page .page-numbers {
  border-color: rgba(184, 112, 68, .35);
}

.nq-archive-page .page-numbers.current,
.nq-archive-page .page-numbers:hover {
  border-color: #cf8150;
  background: #cf8150;
  color: #fff;
}

/* Thanh bên trang Tác phẩm: tách rõ hồ sơ tác giả và danh sách bài mới. */
.nq-archive-page .post-sidebar #secondary > .widget {
  margin-bottom: 0;
}

.nq-archive-page .post-sidebar .widget.block_widget > .row > .col > .col-inner {
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(91, 68, 52, .1);
  border-radius: 18px;
  background: #fffdfb;
  box-shadow: 0 10px 28px rgba(63, 46, 35, .06);
}

.nq-archive-page .post-sidebar .section-title-container {
  margin-bottom: 18px;
}

.nq-archive-page .post-sidebar .section-title {
  margin: 0;
  border: 0;
}

.nq-archive-page .post-sidebar .section-title b {
  display: none;
}

.nq-archive-page .post-sidebar .section-title-main {
  padding: 0;
  color: #b66d41 !important;
  font-family: Lora, Georgia, serif;
  font-size: 19px;
  text-transform: none;
}

.nq-archive-page .post-sidebar .widget.block_widget > .row > .col:first-child .box-image {
  width: 112px !important;
  height: 112px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50% !important;
  box-shadow: 0 8px 22px rgba(58, 42, 32, .14);
}

.nq-archive-page .post-sidebar .widget.block_widget > .row > .col:first-child .box-image > div,
.nq-archive-page .post-sidebar .widget.block_widget > .row > .col:first-child .box-image img {
  width: 100%;
  height: 100%;
}

.nq-archive-page .post-sidebar .widget.block_widget > .row > .col:first-child .box-image img {
  object-fit: cover;
  object-position: 50% 24%;
}

.nq-archive-page .post-sidebar .widget.block_widget > .row > .col:first-child .box-text {
  padding-bottom: 0 !important;
}

.nq-archive-page .post-sidebar .post-item {
  padding-bottom: 0;
}

.nq-archive-page .post-sidebar .post-item .box-blog-post {
  min-height: 78px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91, 68, 52, .09);
  align-items: center;
}

.nq-archive-page .post-sidebar .post-item:last-child .box-blog-post {
  border-bottom: 0;
}

.nq-archive-page .post-sidebar .post-item .box-image {
  width: 72px !important;
  overflow: hidden;
  border-radius: 10px;
}

.nq-archive-page .post-sidebar .post-item .box-text {
  padding: 0 0 0 13px;
}

.nq-archive-page .post-sidebar .post-item .post-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #4a3d35;
  font-family: Lora, Georgia, serif;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nq-archive-page .post-sidebar .post-item .is-divider {
  display: none;
}

/* Trang giới thiệu tác giả: bỏ khối lặp và dùng toàn bộ chiều rộng cho hồ sơ. */
.nq-author-archive #content > .row > .large-9 {
  width: 100%;
  max-width: 100%;
  flex-basis: 100%;
}

.nq-author-archive .post-sidebar {
  display: none;
}

.nq-author-archive #post-list {
  grid-template-columns: 1fr;
}

.nq-author-archive #post-list article .article-inner {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr auto;
}

.nq-author-archive #post-list article .entry-header {
  display: contents;
}

.nq-author-archive #post-list article .entry-image {
  min-height: 430px;
  grid-column: 1;
  grid-row: 1 / span 3;
  order: 0;
}

.nq-author-archive #post-list article .entry-image img {
  height: 100%;
  min-height: 430px;
}

.nq-author-archive #post-list article .entry-header-text,
.nq-author-archive #post-list article .entry-content,
.nq-author-archive #post-list article footer.entry-meta {
  grid-column: 2;
}

.nq-author-archive #post-list article .entry-header-text {
  padding: 42px 42px 14px;
}

.nq-author-archive #post-list article .entry-title {
  min-height: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.nq-author-archive #post-list article .entry-content {
  padding: 0 42px 34px;
}

.nq-author-archive #post-list article .entry-summary > p {
  -webkit-line-clamp: 8;
}

.nq-author-archive #post-list article footer.entry-meta {
  padding-right: 42px;
  padding-left: 42px;
}

/* Bài giới thiệu đầy đủ: biến danh sách thông tin thành hồ sơ dễ đọc. */
.nq-reading-page.nq-author-profile .article-inner {
  max-width: 900px;
}

.nq-reading-page.nq-author-profile .entry-content.single-page {
  padding: 46px 54px;
  border: 1px solid rgba(91, 68, 52, .11);
  border-radius: 22px;
  background: linear-gradient(145deg, #fffefd, #fbf6f1);
  box-shadow: 0 14px 38px rgba(62, 45, 34, .07);
}

.nq-author-profile .entry-content.single-page > h1 {
  color: #42362f;
  font-family: Lora, Georgia, serif;
  font-size: 25px;
  line-height: 1.35;
}

.nq-author-profile .entry-content.single-page > h1:first-of-type {
  margin: 2px auto 30px;
  color: #9b5d39;
  font-size: clamp(22px, 3vw, 29px);
  font-style: italic;
  text-align: center;
}

.nq-author-profile .entry-content.single-page > h1:not(:first-of-type) {
  position: relative;
  margin-top: 34px;
  margin-bottom: 17px;
  padding-bottom: 10px;
}

.nq-author-profile .entry-content.single-page > h1:not(:first-of-type)::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: #dfa170;
  content: '';
}

.nq-author-profile .entry-content.single-page > ul {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.nq-author-profile .entry-content.single-page > ul > li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(111, 81, 60, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  color: #5d5047;
  line-height: 1.65;
}

.nq-author-profile .entry-content.single-page > p {
  color: #554941;
  line-height: 1.9;
}

/* Trang Contact: một khối liên hệ rõ ràng thay cho hai dòng rời rạc. */
.nq-contact-page #content {
  min-height: 610px;
  padding: 68px 20px 84px;
  background: linear-gradient(155deg, #fffdfb, #f7eee7);
}

.nq-contact-page #content > .row {
  max-width: 1040px;
}

.nq-contact-header {
  margin-bottom: 30px;
  text-align: center;
}

.nq-contact-header__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #bc7246;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nq-contact-header h1 {
  margin: 0;
  color: #3f342d;
  font-family: Lora, Georgia, serif;
  font-size: clamp(31px, 4vw, 45px);
  line-height: 1.2;
}

.nq-contact-card {
  display: grid !important;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(93, 68, 51, .11);
  border-radius: 22px;
  background: #fff;
  grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr);
  box-shadow: 0 18px 48px rgba(62, 45, 34, .1);
}

.nq-contact-card > .col-md-6 {
  width: auto !important;
  max-width: none;
  padding: 0;
  float: none;
}

.nq-contact-card__intro {
  display: flex;
  min-height: 290px;
  padding: 42px !important;
  background: linear-gradient(145deg, #3b332e, #211e1c);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.nq-contact-card__intro p {
  margin: 0;
}

.nq-contact-card__intro p::before {
  display: block;
  margin-bottom: 18px;
  color: #e5a778;
  content: '✦';
  font-size: 28px;
}

.nq-contact-card__intro b {
  color: #fff !important;
  font-family: Lora, Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.nq-contact-card__links {
  display: flex;
  padding: 38px !important;
  align-items: center;
}

.nq-contact-card__links ul {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.nq-contact-card__links li {
  position: relative;
  margin: 0;
  padding: 17px 18px 17px 60px;
  border: 1px solid rgba(101, 75, 57, .1);
  border-radius: 14px;
  background: #fcfaf8;
  color: #76685e;
  font-size: 13px;
  line-height: 1.55;
}

.nq-contact-card__links li::before {
  position: absolute;
  top: 50%;
  left: 17px;
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2dfd1;
  color: #a86139;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-50%);
}

.nq-contact-item--email::before {
  content: '✉';
}

.nq-contact-item--facebook::before {
  content: 'f';
}

.nq-contact-card__links a {
  color: #a55e36;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.nq-contact-card__links a:hover,
.nq-contact-card__links a:focus-visible {
  color: #d27c47;
}

/* Trang gửi truyện cộng tác: giới thiệu chương trình và biểu mẫu nhận bản thảo. */
.nq-collab-page #content {
  min-height: 720px;
  padding: 68px 20px 88px;
  background:
    radial-gradient(circle at 10% 5%, rgba(237, 193, 157, .2), transparent 28%),
    linear-gradient(155deg, #fffdfb, #f7eee7);
}

.nq-collab-page .page-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

.nq-collab-page .page-inner {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.nq-collab-page-shell {
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.nq-collab-page-intro,
.nq-collab-page-form-card {
  border: 1px solid rgba(96, 70, 53, .11);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(62, 45, 34, .1);
}

.nq-collab-page-intro {
  position: sticky;
  top: 92px;
  padding: 38px 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 232, 204, .16), transparent 34%),
    linear-gradient(145deg, #9e563a, #6d392f);
  color: #fff9f3;
}

.nq-collab-page-intro::after {
  position: absolute;
  right: -58px;
  bottom: -66px;
  width: 175px;
  height: 175px;
  border: 1px solid rgba(255, 243, 230, .16);
  border-radius: 50%;
  content: '';
}

.nq-collab-page-kicker {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  color: #c87548;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nq-collab-page-intro .nq-collab-page-kicker {
  color: #ffdbc0;
}

.nq-collab-page-intro h2,
.nq-collab-page-form-card > h2 {
  font-family: Lora, Georgia, serif;
  line-height: 1.25;
}

.nq-collab-page-intro h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(27px, 3vw, 37px);
}

.nq-collab-page-intro > p,
.nq-collab-page-intro li {
  position: relative;
  z-index: 1;
  color: rgba(255, 249, 243, .88);
  font-size: 13px;
  line-height: 1.75;
}

.nq-collab-page-intro > ul {
  position: relative;
  z-index: 1;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.nq-collab-page-intro li {
  position: relative;
  margin: 12px 0;
  padding-left: 29px;
}

.nq-collab-page-intro li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  color: #ffd7b8;
  content: '✓';
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.nq-collab-page-note {
  margin: 26px 0 0 !important;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.nq-collab-page-form-card {
  padding: 40px 42px 44px;
  background: rgba(255, 255, 255, .96);
}

.nq-collab-page-form-card > h2 {
  margin: 0 0 8px;
  color: #3f342d;
  font-size: clamp(28px, 3vw, 36px);
}

.nq-collab-page-form-card > p {
  margin: 0 0 28px;
  color: #76665c;
  font-size: 13px;
}

.nq-collab-page .nq-collab-form__section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(97, 70, 52, .11);
}

.nq-collab-page .nq-collab-form__section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.nq-collab-page .nq-collab-form__section h3 {
  margin: 0 0 20px;
  color: #564238;
  font-family: Lora, Georgia, serif;
  font-size: 19px;
  line-height: 1.35;
}

.nq-collab-page .nq-collab-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

.nq-collab-page .wpcf7-form label {
  display: block;
  margin-bottom: 17px;
  color: #51443c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.nq-collab-page .nq-required {
  color: #bd5f42;
}

.nq-collab-page .wpcf7-form-control-wrap {
  display: block;
  margin-top: 7px;
}

.nq-collab-page .wpcf7-form input[type='text'],
.nq-collab-page .wpcf7-form input[type='email'],
.nq-collab-page .wpcf7-form input[type='tel'],
.nq-collab-page .wpcf7-form input[type='url'],
.nq-collab-page .wpcf7-form select,
.nq-collab-page .wpcf7-form textarea {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(93, 68, 51, .16);
  border-radius: 11px;
  background: #fdfbf9;
  color: #463b34;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(52, 38, 30, .025);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nq-collab-page .wpcf7-form input[type='text'],
.nq-collab-page .wpcf7-form input[type='email'],
.nq-collab-page .wpcf7-form input[type='tel'],
.nq-collab-page .wpcf7-form input[type='url'],
.nq-collab-page .wpcf7-form select {
  height: 46px;
  padding: 0 13px;
}

.nq-collab-page .wpcf7-form textarea {
  min-height: 120px;
  padding: 12px 13px;
  line-height: 1.65;
  resize: vertical;
}

.nq-collab-page .wpcf7-form textarea[name='story-content'] {
  min-height: 210px;
}

.nq-collab-page .wpcf7-form input:focus,
.nq-collab-page .wpcf7-form select:focus,
.nq-collab-page .wpcf7-form textarea:focus {
  border-color: #c67a4d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(198, 122, 77, .12);
  outline: none;
}

.nq-collab-page .wpcf7-form input[type='file'] {
  width: 100%;
  padding: 11px;
  border: 1px dashed rgba(154, 88, 54, .34);
  border-radius: 11px;
  background: #fff8f2;
  color: #72584a;
  font-size: 12px;
}

.nq-collab-page .nq-collab-form__help {
  margin: -8px 0 18px;
  color: #8b786c;
  font-size: 11px;
  line-height: 1.6;
}

.nq-collab-page .wpcf7-acceptance label {
  display: flex;
  margin: 20px 0 0;
  padding: 15px 16px;
  border: 1px solid rgba(104, 77, 58, .11);
  border-radius: 12px;
  background: #fbf7f3;
  color: #65564c;
  align-items: flex-start;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.65;
}

.nq-collab-page .wpcf7-acceptance input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #b9653c;
}

.nq-collab-page .nq-collab-form__submit {
  margin-top: 26px;
}

.nq-collab-page .nq-collab-submit {
  width: 100%;
  min-height: 49px;
  margin: 0;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #c87346, #9c5338);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  box-shadow: 0 10px 24px rgba(123, 66, 46, .2);
  transition: box-shadow .2s ease, transform .2s ease;
}

.nq-collab-page .nq-collab-submit:hover,
.nq-collab-page .nq-collab-submit:focus-visible {
  color: #fff;
  box-shadow: 0 14px 30px rgba(123, 66, 46, .28);
  transform: translateY(-2px);
}

.nq-collab-page .nq-collab-submit:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

.nq-collab-page .wpcf7-not-valid-tip {
  margin-top: 5px;
  color: #ad3f35;
  font-size: 10px;
  font-weight: 600;
}

.nq-collab-page .wpcf7-response-output {
  margin: 22px 0 0 !important;
  padding: 13px 15px !important;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
}

/* Danh sách tác giả: avatar, tên và tác phẩm có lượt xem cao nhất. */
.nq-author-directory-page #content {
  min-height: 700px;
  padding: 66px 20px 86px;
  background:
    radial-gradient(circle at 88% 5%, rgba(235, 187, 148, .2), transparent 26%),
    linear-gradient(155deg, #fffdfb, #f7eee7);
}

.nq-author-directory-page .page-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

.nq-author-directory-page .page-inner {
  max-width: 1060px;
  margin-right: auto;
  margin-left: auto;
}

.nq-author-directory-hero {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.nq-author-directory-hero__eyebrow,
.nq-author-directory__eyebrow {
  display: block;
  color: #bd7044;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nq-author-directory-hero__eyebrow {
  margin-bottom: 10px;
}

.nq-author-directory-hero h1 {
  margin: 0 0 13px;
  color: #3f342d;
  font-family: Lora, Georgia, serif;
  font-size: clamp(33px, 4.5vw, 48px);
  line-height: 1.18;
}

.nq-author-directory-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: #75655b;
  font-size: 14px;
  line-height: 1.75;
}

.nq-author-directory {
  overflow: hidden;
  border: 1px solid rgba(96, 70, 53, .11);
  border-radius: 23px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(62, 45, 34, .1);
}

.nq-author-directory__summary {
  display: flex;
  min-height: 66px;
  padding: 17px 24px;
  border-bottom: 1px solid rgba(96, 70, 53, .1);
  background: #fbf7f3;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nq-author-directory__summary span {
  color: #614b3f;
  font-family: Lora, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.nq-author-directory__summary small {
  color: #8a786d;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}

.nq-author-directory__item {
  border-bottom: 1px solid rgba(96, 70, 53, .09);
}

.nq-author-directory__item:last-child {
  border-bottom: 0;
}

.nq-author-directory__toggle {
  display: flex;
  width: 100%;
  min-height: 112px;
  margin: 0;
  padding: 17px 24px;
  border: 0;
  background: #fff;
  color: #443830;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}

.nq-author-directory__toggle:hover,
.nq-author-directory__toggle:focus-visible,
.nq-author-directory__item.is-open .nq-author-directory__toggle {
  background: #fffbf7;
}

.nq-author-directory__toggle:focus-visible {
  outline: 2px solid #c7794c;
  outline-offset: -4px;
}

.nq-author-directory__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 17px;
}

.nq-author-directory__avatar {
  width: 76px !important;
  height: 76px !important;
  margin: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 24%;
  box-shadow: 0 8px 22px rgba(68, 45, 32, .16);
}

.nq-author-directory__copy {
  display: block;
  min-width: 0;
}

.nq-author-directory__copy small,
.nq-author-directory__copy strong,
.nq-author-directory__copy > span {
  display: block;
}

.nq-author-directory__copy small {
  margin-bottom: 4px;
  color: #bd7044;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nq-author-directory__copy strong {
  margin-bottom: 4px;
  overflow: hidden;
  color: #44372f;
  font-family: Lora, Georgia, serif;
  font-size: 21px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nq-author-directory__copy > span {
  color: #88766b;
  font-size: 11px;
}

.nq-author-directory__action {
  display: flex;
  color: #a9633e;
  align-items: center;
  gap: 10px;
}

.nq-author-directory__action small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.nq-author-directory__action > span {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5e6da;
  place-items: center;
  font-size: 18px;
  transition: transform .2s ease;
}

.nq-author-directory__item.is-open .nq-author-directory__action > span {
  transform: rotate(180deg);
}

.nq-author-directory__panel {
  display: grid;
  min-height: 126px;
  padding: 23px 24px 24px 117px;
  border-top: 1px solid rgba(96, 70, 53, .08);
  background: linear-gradient(145deg, #fffaf5, #f8eee6);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.nq-author-directory__panel[hidden] {
  display: none;
}

.nq-author-directory__eyebrow {
  margin-bottom: 6px;
}

.nq-author-directory__featured-copy h3 {
  margin: 0 0 7px;
  font-family: Lora, Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
}

.nq-author-directory__featured-copy h3 a {
  color: #493a32;
}

.nq-author-directory__featured-copy h3 a:hover,
.nq-author-directory__featured-copy h3 a:focus-visible {
  color: #b8663e;
}

.nq-author-directory__featured-copy p {
  margin: 0;
  color: #8a7468;
  font-size: 11px;
}

.nq-author-directory__featured-copy p span {
  color: #c47a4f;
}

.nq-author-directory__read,
.nq-author-directory-join__button {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.nq-author-directory__read {
  background: #a85c3e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(100, 54, 39, .18);
}

.nq-author-directory__read:hover,
.nq-author-directory__read:focus-visible {
  background: #914932;
  color: #fff;
  box-shadow: 0 11px 24px rgba(100, 54, 39, .24);
  transform: translateY(-2px);
}

.nq-author-directory-join {
  display: flex;
  margin-top: 24px;
  padding: 24px 26px;
  border: 1px solid rgba(96, 70, 53, .11);
  border-radius: 18px;
  background: #3e342f;
  color: #fff;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 13px 34px rgba(56, 41, 32, .12);
}

.nq-author-directory-join h2 {
  margin: 0 0 5px;
  color: #fff;
  font-family: Lora, Georgia, serif;
  font-size: 20px;
}

.nq-author-directory-join p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  line-height: 1.55;
}

.nq-author-directory-join__button {
  flex: 0 0 auto;
  background: #f5d9c5;
  color: #70402f;
}

.nq-author-directory-join__button:hover,
.nq-author-directory-join__button:focus-visible {
  background: #fff1e7;
  color: #603425;
  transform: translateY(-2px);
}

.nq-author-directory__empty {
  margin: 0;
  padding: 32px;
  border: 1px solid rgba(96, 70, 53, .11);
  border-radius: 18px;
  background: #fff;
  color: #75655b;
  text-align: center;
}

/* Thông tin đầu bài: gom lượt xem và thời gian đọc vào cùng một hàng. */
.nq-reading-page .page-title .entry-meta {
  letter-spacing: .06em;
}

.nq-reading-summary {
  display: flex;
  margin: 0 0 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nq-reading-summary .nq-post-views,
.nq-reading-time {
  min-height: 36px;
  margin: 0 !important;
  padding: 8px 13px;
  border: 1px solid rgba(113, 88, 69, .14);
  border-radius: 999px;
  background: #fbf8f4;
  color: #6e6056;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 5px 16px rgba(61, 45, 35, .05);
}

.nq-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nq-reading-time__icon {
  color: #bd7448;
  font-size: 17px;
  line-height: 1;
}

/* Trải nghiệm đọc truyện. */
.nq-story-chapter {
  --nq-reader-font-size: 18px;
}

.nq-reading-page .page-title {
  height: 240px !important;
  min-height: 240px !important;
}

.nq-reading-page .page-title-inner {
  height: 240px !important;
  min-height: 240px !important;
  padding-right: 24px;
  padding-left: 24px;
}

.nq-reading-page .page-title .entry-title {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.25;
  text-wrap: balance;
}

.nq-reading-page .article-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 790px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 22px;
  padding-left: 22px;
}

.nq-reading-page .entry-content.single-page {
  padding-top: 38px;
  color: #39332f;
  font-family: Lora, Georgia, 'Times New Roman', serif;
  font-size: var(--nq-reader-font-size, 18px);
  line-height: 1.88;
  letter-spacing: .003em;
}

.nq-reading-page .entry-content.single-page > p {
  margin-bottom: 1.35em;
}

.nq-reading-page .entry-content.single-page blockquote {
  margin: 1.8em 0;
  padding: .2em 0 .2em 1.25em;
  border-left: 3px solid #d3976d;
  color: #66584f;
  font-size: 1.04em;
}

.nq-reading-page .blog-share,
.nq-reading-page .entry-author,
.nq-reading-page .navigation-post {
  max-width: 790px;
  margin-right: auto;
  margin-left: auto;
}

.nq-story-chapter .navigation-post {
  display: none;
}

.nq-reading-progress {
  position: fixed;
  z-index: 100001;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
  background: rgba(163, 108, 69, .08);
}

.logged-in.admin-bar .nq-reading-progress {
  top: 32px;
}

.nq-reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #d49368, #f19a64);
  box-shadow: 0 0 8px rgba(220, 133, 80, .35);
  transition: width .08s linear;
}

.nq-chapter-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 8px;
  padding-top: 26px;
  border-top: 1px solid rgba(90, 72, 58, .14);
  font-family: Raleway, Arial, sans-serif;
}

.nq-chapter-navigation__link {
  display: flex;
  min-height: 112px;
  padding: 17px 18px;
  border: 1px solid rgba(109, 87, 69, .16);
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdf9, #f8f3ed);
  color: #4a3c33;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(74, 54, 39, .06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nq-chapter-navigation__link:hover,
.nq-chapter-navigation__link:focus-visible {
  border-color: #c7875c;
  color: #392f29;
  box-shadow: 0 12px 28px rgba(74, 54, 39, .11);
  transform: translateY(-2px);
  outline: none;
}

.nq-chapter-navigation__link--next {
  text-align: right;
}

.nq-chapter-navigation__direction {
  display: block;
  margin-bottom: 6px;
  color: #a36c45;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nq-chapter-navigation__link strong {
  display: -webkit-box;
  overflow: hidden;
  font-family: Lora, Georgia, serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Thanh tùy chỉnh dành riêng cho các chương truyện dài. */
.nq-reader-tools {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 78px;
  font-family: Raleway, Arial, sans-serif;
}

.nq-reader-tools button {
  font-family: inherit;
}

.nq-reader-tools__toggle {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(94, 69, 50, .18);
  border-radius: 50%;
  background: #fffdf9;
  color: #7c5236;
  font-family: Georgia, serif !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
  box-shadow: 0 8px 26px rgba(54, 39, 29, .16);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nq-reader-tools__toggle:hover,
.nq-reader-tools__toggle:focus-visible,
.nq-reader-tools.is-open .nq-reader-tools__toggle {
  background: #f8eee5;
  box-shadow: 0 10px 30px rgba(54, 39, 29, .22);
  transform: translateY(-2px);
  outline: none;
}

.nq-reader-tools__panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  box-sizing: border-box;
  width: min(310px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(91, 70, 54, .14);
  border-radius: 16px;
  background: rgba(255, 253, 249, .98);
  color: #41362f;
  box-shadow: 0 18px 52px rgba(45, 32, 24, .2);
  backdrop-filter: blur(14px);
}

.nq-reader-tools__panel[hidden] {
  display: none;
}

.nq-reader-tools__header,
.nq-reader-tools__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nq-reader-tools__header {
  margin-bottom: 17px;
  font-size: 16px;
}

.nq-reader-tools__close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3ebe4;
  color: #6d584a;
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.nq-reader-tools__row {
  gap: 14px;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 700;
}

.nq-reader-tools__font-controls {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(93, 70, 53, .17);
  border-radius: 10px;
  background: #fff;
  grid-template-columns: 42px 60px 42px;
}

.nq-reader-tools__font-controls button,
.nq-reader-tools__font-controls output {
  display: grid;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5a4538;
  font-size: 13px;
  place-items: center;
}

.nq-reader-tools__font-controls button {
  cursor: pointer;
}

.nq-reader-tools__font-controls button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.nq-reader-tools__font-controls button:first-child {
  border-right: 1px solid rgba(93, 70, 53, .12);
}

.nq-reader-tools__font-controls button:last-child {
  border-left: 1px solid rgba(93, 70, 53, .12);
}

.nq-reader-tools__font-controls button:hover,
.nq-reader-tools__font-controls button:focus-visible,
.nq-reader-tools__close:hover,
.nq-reader-tools__close:focus-visible {
  background: #f5ece4;
  outline: none;
}

.nq-reader-tools__themes {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nq-reader-tools__themes button {
  display: flex;
  min-height: 42px;
  padding: 8px 7px;
  border: 1px solid rgba(92, 69, 52, .13);
  border-radius: 10px;
  background: #fff;
  color: #5b493e;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nq-reader-tools__themes button[aria-pressed="true"] {
  border-color: #c98558;
  box-shadow: inset 0 0 0 1px #c98558;
}

.nq-reader-tools__swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(55, 43, 35, .2);
  border-radius: 50%;
}

.nq-reader-tools__swatch--light { background: #fff; }
.nq-reader-tools__swatch--sepia { background: #ead9bb; }
.nq-reader-tools__swatch--dark { background: #292724; }

.nq-reader-tools__reset {
  width: 100%;
  margin-top: 13px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #9a6746;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.nq-reader-tools__reset:hover,
.nq-reader-tools__reset:focus-visible {
  color: #71462d;
  text-decoration: underline;
  outline: none;
}

/* Ba màu nền đọc; giới hạn trong trang chương để không ảnh hưởng trang khác. */
.nq-story-chapter #main,
.nq-story-chapter .article-inner,
.nq-story-chapter .entry-content.single-page {
  transition: background-color .22s ease, color .22s ease;
}

.nq-story-chapter.nq-reader-theme-sepia #main {
  background: #f2e8d7;
}

.nq-story-chapter.nq-reader-theme-sepia .entry-content.single-page {
  color: #4b3d32;
}

.nq-story-chapter.nq-reader-theme-sepia .nq-chapter-navigation__link {
  border-color: rgba(99, 73, 48, .18);
  background: linear-gradient(145deg, #fbf2e2, #eadbc2);
}

.nq-story-chapter.nq-reader-theme-dark #main {
  background: #191817;
}

.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page {
  color: #e9e2da;
}

.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page > p,
.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page li,
.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page h1,
.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page h2,
.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page h3,
.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page h4,
.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page h5,
.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page h6 {
  color: inherit !important;
}

.nq-story-chapter.nq-reader-theme-dark .entry-content.single-page a:not(.nq-chapter-navigation__link) {
  color: #efb082;
}

.nq-story-chapter.nq-reader-theme-dark .nq-chapter-navigation {
  border-top-color: rgba(235, 221, 207, .18);
}

.nq-story-chapter.nq-reader-theme-dark .nq-chapter-navigation__link {
  border-color: rgba(238, 222, 208, .16);
  background: linear-gradient(145deg, #2c2926, #23211f);
  color: #eee5dd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.nq-story-chapter.nq-reader-theme-dark .nq-chapter-navigation__direction {
  color: #e0a277;
}

.nq-story-chapter.nq-reader-theme-dark #wpdcom {
  box-sizing: border-box;
  margin-top: 28px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 849px) {
	.nq-story-chapter {
		--nq-reader-font-size: 17px;
	}

  .nq-polished-ui .header-main,
  .nq-polished-ui .header.show-on-scroll,
  .nq-polished-ui .stuck .header-main {
    height: 64px !important;
  }

  .nq-polished-ui #logo {
    width: 190px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .nq-polished-ui #logo img,
  .nq-polished-ui .stuck #logo img {
    max-height: 48px !important;
  }

  .nq-polished-ui #footer.nq-footer-enhanced .row.padding-bot {
    text-align: center;
  }

  .nq-archive-page .archive-page-header {
    padding-top: 42px;
    padding-bottom: 40px;
  }

  .nq-archive-page .blog-wrapper {
    padding-top: 34px;
  }

  .nq-archive-page #post-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nq-archive-page .post-sidebar {
    padding-top: 28px;
  }

  .nq-archive-page .post-sidebar .is-sticky-column__inner {
    position: static !important;
    transform: none !important;
  }

  .nq-author-archive #post-list article .article-inner {
    display: flex;
  }

  .nq-author-archive #post-list article .entry-header {
    display: flex;
  }

  .nq-author-archive #post-list article .entry-image {
    min-height: 0;
    order: -1;
  }

  .nq-author-archive #post-list article .entry-image img {
    height: 280px;
    min-height: 0;
  }

  .nq-author-archive #post-list article .entry-header-text {
    padding: 28px 28px 13px;
  }

  .nq-author-archive #post-list article .entry-content {
    padding: 0 28px 26px;
  }

  .nq-author-archive #post-list article footer.entry-meta {
    padding-right: 28px;
    padding-left: 28px;
  }

  .nq-contact-page #content {
    min-height: 560px;
    padding-top: 54px;
    padding-bottom: 68px;
  }

  .nq-contact-card {
    grid-template-columns: 1fr;
  }

  .nq-contact-card__intro {
    min-height: 180px;
  }

  .nq-collab-page #content {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .nq-collab-page-shell {
    grid-template-columns: 1fr;
  }

  .nq-collab-page-intro {
    position: static;
  }

  .nq-author-directory-page #content {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .nq-homepage .nq-home-hero {
    width: calc(100% - 28px);
    margin: 18px auto 36px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nq-homepage .nq-home-author-rail {
    padding: 22px;
  }

  .nq-home-author-rail__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .nq-home-author-rail__item {
    border: 1px solid rgba(96, 70, 53, .09);
    border-radius: 13px;
  }

  .nq-home-author-rail__toggle {
    padding: 11px;
  }

  .nq-home-author-rail__panel {
    margin: 0 10px 10px;
  }

  .nq-home-author-rail__join {
    margin-top: 14px;
  }

  .nq-homepage .nq-home-hero__about {
    padding: 26px;
  }

  .nq-homepage .nq-home-hero__about > .box {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .nq-homepage .nq-home-hero__about .box-image {
    width: 96px !important;
    height: 96px;
  }

  .nq-homepage .nq-home-card-row .nq-home-library-card .banner {
    min-height: 320px;
  }

  .nq-homepage .nq-home-guide-stack {
    position: static;
    margin-top: 22px;
  }

  .nq-reading-page .page-title,
  .nq-reading-page .page-title-inner {
    height: 210px !important;
    min-height: 210px !important;
  }

  .nq-reading-page .page-title .entry-title {
    font-size: clamp(25px, 7vw, 34px);
  }

  .nq-reading-page .entry-content.single-page {
    padding-top: 30px;
    line-height: 1.82;
  }

  .logged-in.admin-bar .nq-reading-progress {
    top: 0;
  }
}

@media (min-width: 550px) and (max-width: 849px) {
  .nq-homepage .nq-home-card-row--with-authors > .col {
    flex-basis: 50%;
    max-width: 50%;
  }

  .nq-homepage .nq-home-author-card .nq-home-author-rail__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 549px) {
  .nq-homepage.nq-polished-ui #content > .slider-wrapper {
    width: calc(100% - 22px);
    margin-top: 12px !important;
    margin-bottom: 30px !important;
    border-radius: 13px;
  }

  .nq-homepage .nq-home-hero {
    width: calc(100% - 22px);
    margin-top: 12px;
    gap: 14px;
  }

  .nq-homepage .nq-home-author-rail {
    padding: 20px 17px;
  }

  .nq-home-author-rail__list {
    grid-template-columns: 1fr;
  }

  .nq-homepage.nq-polished-ui .nq-home-hero__visual > .slider-wrapper {
    border-radius: 13px;
  }

  .nq-homepage .nq-home-hero__about {
    padding: 22px 20px;
  }

  .nq-homepage .nq-home-hero__about > .box {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 15px;
  }

  .nq-homepage .nq-home-hero__about .box-image {
    width: 76px !important;
    height: 76px;
  }

  .nq-homepage .nq-home-hero__about .section-title-main {
    font-size: 22px;
  }

  .nq-homepage .nq-home-hero__actions {
    margin-top: 20px;
  }

  .nq-homepage .nq-home-hero__button {
    width: 100%;
  }

  .nq-homepage .nq-home-card-row .nq-home-library-card .banner {
    min-height: 300px;
  }

  .nq-homepage .nq-home-library-card .text-box {
    width: calc(100% - 30px) !important;
  }

  .nq-homepage .nq-home-library-card .text-box-content {
    padding: 17px 18px !important;
  }

  .nq-homepage .nq-home-latest-toggle,
  .nq-homepage .nq-home-view-all {
    width: 100%;
  }

  .nq-homepage .nq-home-latest-toggle {
    margin: 0 0 9px;
  }

  .nq-homepage .nq-home-guide {
    padding: 23px 20px;
  }

  .nq-homepage .nq-collab-banner {
    padding: 23px 20px;
  }

  .nq-homepage .nq-collab-banner__button {
    width: 100%;
  }

  .nq-collab-page #content {
    padding: 28px 12px 48px;
  }

  .nq-collab-page-intro,
  .nq-collab-page-form-card {
    border-radius: 18px;
  }

  .nq-collab-page-intro {
    padding: 29px 23px;
  }

  .nq-collab-page-form-card {
    padding: 29px 20px 32px;
  }

  .nq-collab-page .nq-collab-form__grid {
    grid-template-columns: 1fr;
  }

  .nq-author-directory-page #content {
    padding: 30px 12px 48px;
  }

  .nq-author-directory-hero {
    margin-bottom: 25px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .nq-author-directory {
    border-radius: 18px;
  }

  .nq-author-directory__summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .nq-author-directory__summary small {
    text-align: left;
  }

  .nq-author-directory__toggle {
    min-height: 98px;
    padding: 14px 16px;
  }

  .nq-author-directory__identity {
    gap: 13px;
  }

  .nq-author-directory__avatar {
    width: 66px !important;
    height: 66px !important;
  }

  .nq-author-directory__copy strong {
    max-width: 170px;
    font-size: 18px;
  }

  .nq-author-directory__action small {
    display: none;
  }

  .nq-author-directory__panel {
    padding: 21px 16px;
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .nq-author-directory__read {
    width: 100%;
  }

  .nq-author-directory-join {
    padding: 22px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nq-author-directory-join__button {
    width: 100%;
  }

  .nq-polished-ui #footer.nq-footer-enhanced .footer-section {
    padding-top: 32px !important;
  }

  .nq-polished-ui #footer.nq-footer-enhanced .footer-section .row.align-center .text p {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nq-archive-page .archive-page-header {
    padding: 34px 16px 32px;
  }

  .nq-archive-page .archive-page-header .page-title {
    font-size: 29px;
  }

  .nq-archive-page .blog-wrapper {
    padding-top: 26px;
    padding-bottom: 38px;
  }

  .nq-archive-page #post-list article .entry-image img {
    height: 190px;
  }

  .nq-archive-page #post-list article .entry-header-text {
    padding: 19px 19px 11px;
  }

  .nq-archive-page #post-list article .entry-content {
    padding-right: 19px;
    padding-bottom: 19px;
    padding-left: 19px;
  }

  .nq-archive-page #post-list article footer.entry-meta {
    padding-right: 19px;
    padding-left: 19px;
  }

  .nq-reading-summary {
    margin-bottom: 20px;
  }

  .nq-reading-page.nq-author-profile .entry-content.single-page {
    padding: 30px 22px;
    border-radius: 16px;
  }

  .nq-author-profile .entry-content.single-page > ul {
    grid-template-columns: 1fr;
  }

  .nq-contact-page #content {
    min-height: 500px;
    padding: 42px 14px 54px;
  }

  .nq-contact-header {
    margin-bottom: 24px;
  }

  .nq-contact-header h1 {
    font-size: 29px;
  }

  .nq-contact-card__intro {
    min-height: 155px;
    padding: 30px 22px !important;
  }

  .nq-contact-card__links {
    padding: 22px !important;
  }

  .nq-contact-card__links li {
    padding-right: 14px;
    padding-left: 56px;
  }

  .nq-reading-page .article-inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .nq-reading-page .page-title,
  .nq-reading-page .page-title-inner {
    height: 190px !important;
    min-height: 190px !important;
  }

  .nq-chapter-navigation {
    grid-template-columns: 1fr;
  }

  .nq-chapter-navigation__spacer {
    display: none;
  }

  .nq-chapter-navigation__link--next {
    text-align: left;
  }

  .nq-reader-tools {
    right: 14px;
    bottom: 18px;
  }

  .nq-reader-tools__toggle {
    width: 46px;
    height: 46px;
  }

  .nq-reader-tools__panel {
    right: -2px;
    bottom: 56px;
    width: min(310px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nq-polished-ui .header-wrapper,
  .nq-polished-ui .header-main,
  .nq-polished-ui #logo img,
  .home.nq-polished-ui .post-item .box-blog-post,
  .nq-polished-ui .header-nav-main > li > a,
  .nq-polished-ui .header-nav-main > li > a::after,
  .nq-polished-ui .header-social-icons .social-icons a,
  .nq-homepage .nq-home-view-all,
  .nq-homepage .nq-home-view-all::after,
  .nq-homepage .nq-home-latest-toggle,
  .nq-homepage .nq-home-hero__button,
  .nq-homepage .nq-home-card-row .nq-home-library-card .banner,
  .nq-homepage .nq-home-card-action::after,
  .nq-homepage .nq-home-guide__link,
  .nq-homepage .nq-home-guide__arrow,
  .nq-homepage .nq-collab-banner__button,
  .nq-home-author-rail__toggle i,
  .nq-home-author-rail__panel a,
  .nq-home-author-rail__join,
  .nq-author-directory__toggle,
  .nq-author-directory__action > span,
  .nq-author-directory__read,
  .nq-author-directory-join__button,
  .nq-polished-ui #footer.nq-footer-enhanced .gallery-col .gallery-box,
  .nq-archive-page #post-list article .entry-image img,
  .nq-archive-page #post-list article .more-link,
  .nq-homepage .nq-home-card-row .box,
  .nq-homepage.nq-motion-ready .nq-home-hero,
  .nq-homepage.nq-motion-ready .nq-home-card-row,
  .nq-homepage.nq-motion-ready .nq-home-latest-row,
  .nq-reading-progress__bar,
  .nq-chapter-navigation__link,
  .nq-reader-tools__toggle,
  .nq-story-chapter #main,
  .nq-story-chapter .article-inner,
  .nq-story-chapter .entry-content.single-page {
    transition: none;
  }
}
