@charset "UTF-8";
/*
Theme Name: NovaPress
Theme URI:
Author: NovaPress
Author URI:
Description: A classic PHP WordPress theme for blogs and content sites, with a modern light UI, customizer-driven colour tokens, native thumbnail support and built-in embeds for Bilibili, Youku and iQiyi.
Version: 1.1.0
Update URI: https://novapress.local/theme/novapress
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nova-press
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, sticky-post, theme-options, threaded-comments, translation-ready
*/
/*--------------------------------------------------------------
0. Reset
--------------------------------------------------------------*/
@import url(assets/css/font-awesome.min.css);
html {
  -webkit-text-size-adjust: 100%;
}

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  word-wrap: break-word;
}

body {
  line-height: 1;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, main {
  display: block;
}

nav ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

ins {
  color: #333;
  text-decoration: none;
}

mark {
  background-color: #ff9;
  color: #333;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title], dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #eee;
  margin: 1em 0;
  padding: 0;
}

input, select {
  vertical-align: middle;
}

sup {
  top: -.5em;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.no-list-style {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure > img {
  display: block;
}

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

img[class*="align"],
img[class*="attachment-"] {
  height: auto;
}

embed,
iframe,
object {
  max-width: 100%;
  width: 100%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.5075em 0;
}

.wp-caption-text {
  text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
  margin-bottom: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.gallery-columns-5 .gallery-item {
  max-width: 20%;
}

.gallery-columns-6 .gallery-item {
  max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
  max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
  max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
  max-width: 11.11%;
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
1. Defaults
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
  color: #333;
  font-weight: bold;
}

strong,
b {
  font-weight: bold;
}

input,
textarea,
select {
  -webkit-appearance: none;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

select {
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 0 .75em;
  height: 2.507em;
  font-size: .97em;
  max-width: 100%;
  width: 100%;
  vertical-align: middle;
  background-color: #fff;
  color: #333;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: color .3s, border .3s, background .3s, opacity .3s;
  box-shadow: inset 0 -1.4em 1em 0 rgba(0, 0, 0, 0.02);
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("assets/img/arrow-down.png");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 10px 10px;
}

input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
  font-size: 15px;
  font-weight: normal;
  background-color: #fff;
  border: 1px solid #eaeaea;
  outline: none;
  color: #333;
}

input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
}

textarea {
  padding: 10px 15px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"] {
  height: 40px;
  line-height: 40px;
  padding: 0 10px;
}

button,
.btn,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  border: none;
  border-radius: 3px;
  color: var(--np-on-primary, #fff);
  padding: 0 15px;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  font-size: 14px;
  height: 40px;
  line-height: 40px;
  text-transform: uppercase;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-appearance: none;
  -webkit-backface-visibility: hidden;
}

button:hover,
.btn:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  text-decoration: none;
}

button:focus,
textarea:focus {
  outline: 0;
}

table {
  font-size: 14px;
  color: #333333;
  border-width: 1px;
  border-color: #e9e9e9;
  border-collapse: collapse;
  width: 100%;
}

table th {
  border-width: 1px;
  padding: 8px;
  border-style: solid;
  border-color: #e6e6e6;
  background-color: #f0f0f0;
}

table tr:hover td {
  background-color: #f9f9f9;
}

table td {
  border-width: 1px;
  padding: 8px;
  border-style: solid;
  border-color: #e6e6e6;
  background-color: #ffffff;
}

.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

.aligncenter {
  display: block;
  margin: 0 auto;
  text-align: center;
  clear: both;
}

.alignnone {
  display: block;
}

/* Clear Floats */
.clear:before,
.clear:after {
  content: "";
  display: table;
}

.clear:after {
  clear: both;
}

.clear {
  clear: both;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
}

.sticky,
.bypostauthor {
  background: inherit;
  color: inherit;
}

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
  --np-primary: #2563eb;
  --np-primary-dark: #1d4ed8;
  --np-accent: #0ea5a4;
  --np-heading: #16191d;
  --np-body: #41464e;
  --np-muted: #6b7280;
  --np-border: #e6e6e3;
  --np-line: var(--np-border);
  --np-border-strong: #d8d8d4;
  --np-surface: #ffffff;
  --np-surface-2: #fafaf8;
  --np-page: #f7f7f5;
  /* Derived contrast tokens. header.php computes these from the customizer
     hues; the values here are the azure defaults, so a plugin stripping the
     inline block still leaves an AA-compliant "default blue + white text".
     tertiary-text is a literal, NOT var(--np-tertiary): the raw amber fails
     AA on white (2.1477), only the derived shade passes. */
  --np-on-primary: #ffffff;
  --np-primary-text: var(--np-primary);
  --np-focus-ring: var(--np-primary);
  --np-tertiary-text: #9d6304;
  --np-radius: 6px;
  --np-radius-lg: 8px;
  --np-radius-pill: 999px;
  --np-shadow-sm: none;
  --np-shadow: none;
  --np-shadow-lg: none;
  --np-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  --np-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
}

body {
  background: var(--np-page);
  color: var(--np-body);
  font-family: var(--np-font);
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #333;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:visited {
  color: #333;
}

a:active, a:focus {
  outline: 0;
}

/* One width token for the header, content, friend links and footer. A fluid
   value removes the hard 960 / 1080 / 1180 jumps of the legacy breakpoints. */
.container {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  width: min(1180px, calc(100% - 32px));
}

/* =Genericons, thanks to FontSquirrel.com for conversion!
-------------------------------------------------------------- */
@font-face {
  font-family: 'Genericons';
  src: url("genericons/font/genericons-regular-webfont.eot");
  src: url("genericons/font/genericons-regular-webfont.eot?#iefix") format("embedded-opentype"), url("genericons/font/genericons-regular-webfont.woff") format("woff"), url("genericons/font/genericons-regular-webfont.ttf") format("truetype"), url("genericons/font/genericons-regular-webfont.svg#genericonsregular") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* Genericons */
.comments-title span:before,
.bypostauthor > article .fn:before,
.comment-edit-link:before,
.comment-reply-link:before,
.comment-reply-login:before,
.comment-reply-title small a:before,
.comment-list .children li:before,
.contributor-posts-link:before,
.menu-toggle:before,
.search-toggle:before,
.slider-direction-nav a:before,
.widget_happythemes_ephemera .widget-title:before {
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font: normal 16px/1 Genericons;
  text-decoration: inherit;
  vertical-align: text-bottom;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#masthead .container {
  position: relative;
}

.wp-custom-header {
  position: absolute;
  top: 0;
  height: 75px;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.wp-custom-header img {
  margin: 0 auto;
}

.site-header {
  background-color: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--np-border);
  width: 100%;
  height: 75px;
  line-height: 1;
  box-shadow: none;
}

.site-header .header-search-icon {
  right: 0;
  line-height: 74px;
  position: absolute;
}

.site-header .search-icon {
  display: block;
}

.site-header .search-icon:hover {
  cursor: pointer;
}

.site-header .search-icon .fa {
  color: #666;
  font-size: 16px;
  width: 20px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  vertical-align: middle;
}

.site-header .search-icon .fa-search.active {
  display: none;
}

.site-header .search-icon .fa-close {
  display: none;
}

.site-header .search-icon .fa-close.active {
  display: inline-block;
}

.top-bar {
  background-color: var(--np-ink, #101827);
  font-size: 13px;
}

.header-right {
  float: right;
  line-height: 34px;
}

.header-right li {
  display: inline-block;
  list-style: none;
  margin-left: 15px;
  line-height: 1;
}

.header-right li:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.header-right li a {
  color: #ddd;
}

.header-right li a:hover {
  color: #fff;
  text-decoration: none;
}

.header-right li.header-submit a {
  border-radius: 3px;
  display: inline-block;
  color: #fff;
  height: 24px;
  line-height: 24px;
  padding: 0 8px;
}

.header-right li.header-submit a:hover {
  color: #fff;
}

.search-input {
  background: #fff;
  border: 1px solid #ddd;
  outline: none;
  height: 38px;
  line-height: 38px;
  color: #333;
  text-indent: 5px;
}

.search-input:focus {
  background-color: #fff;
  border-color: #bfbfbf;
}

.search-submit {
  border-left: none;
  color: #fff;
  font-size: 16px;
  height: 38px;
  line-height: 1;
  outline: none;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
}

/* Header Search */
.header-search {
  display: none;
  background-color: #fff;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  line-height: 1;
  width: 300px;
  height: 60px;
  position: absolute;
  top: 75px;
  right: 0;
  z-index: 2;
  box-shadow: rgba(190, 190, 190, 0.7) 0px 1px 5px;
  -webkit-box-shadow: rgba(190, 190, 190, 0.7) 0px 1px 5px;
}

.header-search:before {
  content: ' ';
  display: block;
  position: absolute;
  width: 8px;
  height: 8px;
  right: 3px;
  top: -8px;
  transform: translate(-50%, 50%) rotate(45deg);
  background-color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.header-search:after {
  color: #999;
  font-family: 'Genericons';
  font-size: 24px;
  content: '\f400';
  position: absolute;
  top: 18px;
  left: 11px;
  z-index: 99;
}

.header-search form {
  z-index: 9;
  background: #fff;
  position: relative;
}

.header-search .search-input {
  border: none;
  color: #333;
  font-size: 16px;
  width: 236px;
  height: 60px;
  padding-left: 38px;
}

.header-search .search-submit {
  box-shadow: none;
  border-radius: 2px;
  color: #fff;
  font-size: 16px;
  height: 36px;
  position: absolute;
  top: 13px;
  right: 12px;
  padding: 0 12px;
}

/*--------------------------------------------------------------
2.1 Logo
--------------------------------------------------------------*/
.site-branding {
  float: left;
  position: relative;
  display: inline-block;
  text-align: left;
}

.site-branding #logo {
  float: left;
  height: 75px;
}

.site-branding .helper {
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.site-branding img {
  max-height: 60px;
  vertical-align: middle;
  width: auto;
}

.site-title {
  float: left;
  font-size: 32px;
  line-height: 75px;
}

.site-title a {
  display: block;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: none;
}

.site-desc {
  border-left: 1px solid #f0f0f0;
  float: left;
  color: #bbb;
  font-size: 13px;
  line-height: 1;
  margin-left: 15px;
  padding-left: 15px;
  position: relative;
  top: 23px;
}

.site-desc .line2 {
  margin-top: 3px;
}

.site-desc .no-line2 {
  line-height: 29px;
}

/*--------------------------------------------------------------
2.1 Navigation Menu
--------------------------------------------------------------*/
/* Essential Styles */
.sf-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-menu li {
  position: relative;
}

.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul {
  display: block;
}

.sf-menu ul {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  z-index: 99;
}

.sf-menu ul ul {
  top: 1px;
  left: 170px;
}

.sf-menu > li {
  float: left;
}

.sf-menu a {
  display: block;
  position: relative;
}

/* Theme Navigation Skin */
.sf-menu {
  float: left;
}

.sf-menu ul {
  background-color: #fff;
  width: 170px;
  box-shadow: rgba(190, 190, 190, 0.7) 0px 1px 5px;
  -webkit-box-shadow: rgba(190, 190, 190, 0.7) 0px 1px 5px;
}

.sf-menu ul:before {
  content: ' ';
  display: block;
  position: absolute;
  width: 8px;
  height: 8px;
  left: 30px;
  top: -8px;
  transform: translate(-50%, 50%) rotate(45deg);
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.sf-menu ul ul:before {
  content: none;
  display: none;
}

.sf-menu a {
  text-decoration: none;
  zoom: 1;
  /* IE7 */
}

.sf-menu li {
  white-space: nowrap;
  /* no need for Supersubs plugin */
  line-height: 75px;
}

.sf-menu li a {
  color: #666;
  font-size: 15px;
  padding: 0 15px;
}

.sf-menu li a:hover,
.sf-menu li.sfHover a,
.sf-menu li.current-menu-item a:hover {
  color: #333;
}

.sf-menu li.sfHover a.sf-with-ul:after,
.sf-menu li a:hover.sf-with-ul:after {
  transform: rotate(180deg);
}

.sf-menu li li {
  height: auto;
  line-height: 1.4;
}

.sf-menu li li:first-child {
  background-color: #fff;
  z-index: 9;
  padding-top: 5px;
}

.sf-menu li li:last-child {
  padding-bottom: 5px;
}

.sf-menu li li a {
  background: none !important;
  color: #333;
  font-size: 15px;
  padding: 7px 15px;
}

.sf-menu li li a:before {
  content: none;
}

.sf-menu li li a:hover {
  color: var(--np-on-primary, #fff) !important;
}

.sf-menu li li ul {
  margin-top: -1px;
}

.sf-menu li:hover li a,
.sf-menu li.sfHover li a {
  color: #222;
  display: block;
}

/*** arrows (for all except IE7) **/
.sf-arrows .sf-with-ul {
  padding-right: 24px;
}

/* styling for both css and generated arrows */
.sf-arrows .sf-with-ul:after {
  position: absolute;
  right: 7px;
  content: '\f431';
  font: normal 14px/1 'Genericons';
  display: inline-block;
  line-height: 76px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: 0.45s transform;
}

/* styling for right-facing arrows */
.sf-arrows ul .sf-with-ul:after {
  top: 13px;
  right: 7px;
  line-height: 1;
  content: '\f501';
  font: normal 9px/1 'Genericons';
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: none !important;
}

/* Top Menu */
#top-nav {
  margin-left: -15px;
}

#top-nav .sf-menu li {
  line-height: 34px;
}

#top-nav .sf-menu li a {
  color: #ddd;
  font-size: 13px;
}

#top-nav .sf-menu li a:hover {
  color: #fff;
}

#top-nav .sf-menu li li {
  line-height: 1.5;
}

#top-nav .sf-menu li li a {
  color: #333;
}

#top-nav .sf-arrows .sf-with-ul:after {
  line-height: 34px;
}

#top-nav .sf-arrows ul .sf-with-ul:after {
  top: 0;
}

/* Primary Menu */
#primary-menu {
  float: right;
}

.header-space {
  height: 75px;
  display: none;
}

/* Sticky header sits below the WordPress admin bar.
   WordPress renders #wpadminbar as position:fixed with z-index 99999, so the
   sticky header is offset by the bar height and kept in a lower layer. */
.main-nav-scrolled {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

/* E.41 - the sticky header never actually stuck.

   Measured, not inferred: `.site-header{position:relative}` later in the
   file (the rule that lifts the header search panel above the sidebar) is
   also (0,1,0) and prints AFTER this rule, so `position:relative` won the
   cascade and `position:fixed` here never took effect. The result was a
   header that scrolled out of the viewport while `.header-space` still
   reserved 75px, leaving a blank strip at the top of the page; and the
   `.main-nav-scrolled` shadow stayed painted on the header as it left.

   Fix: state the sticky position with a compound selector so it outranks the
   plain `.site-header` rule on specificity instead of relying on print
   order. `body .site-header.main-nav-scrolled` is (0,3,0) and keeps the
   search panel's own stacking context intact - the panel is pinned inside
   the header's z-index:120 stack, which a positioned header still creates.
   The shadow is handled by the batch D flattening rule further down. */
body .site-header.main-nav-scrolled {
  position: fixed;
}

body.admin-bar .main-nav-scrolled {
  top: 32px;
}

/* Keep the admin bar above every theme layer, including sticky elements. */
#wpadminbar {
  z-index: 100000 !important;
}

/*--------------------------------------------------------------
3. Homepage
--------------------------------------------------------------*/

.thumbnail-link,
.thumb-link {
  line-height: 0.5;
}

.entry-title a,
.entry-title a:visited {
  color: #333;
}

.entry-title a:hover {
  text-decoration: none;
}

/* Site Content */
.site-content {
  margin-top: 20px;
}

#primary {
  float: left;
  width: 800px;
}

.site-main {
  background-color: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  box-shadow: var(--np-shadow-sm);
  /* clip only the corner radius, keep horizontal scroll for wide blocks */
  overflow: clip;
}

/*--------------------------------------------------------------
3.2 Recent Content
--------------------------------------------------------------*/
.recent-heading {
  align-items: center;
  background-color: var(--np-surface);
  border-bottom: 1px solid var(--np-border);
  display: flex;
  height: 56px;
  justify-content: space-between;
  line-height: 56px;
  padding: 0 20px;
  position: relative;
}

.recent-heading h2.section-title {
  align-items: center;
  display: inline-flex;
  font-size: 17px;
  font-weight: 600;
  gap: 8px;
  letter-spacing: -0.01em;
}

.recent-heading h2.section-title:before {
  background-color: var(--np-primary);
  border-radius: 2px;
  content: "";
  display: inline-block;
  height: 16px;
  width: 3px;
}

.posts-nav-menu {
  float: right;
}

.posts-nav-menu ul li {
  float: left;
  font-size: 14px;
  list-style: none;
  line-height: 56px;
  margin-left: 20px;
  position: relative;
}

.posts-nav-menu ul li:first-child {
  margin-left: 0;
  padding-left: 0;
}

.posts-nav-menu ul li:first-child:before {
  content: none;
}

.posts-nav-menu ul li a {
  color: #888;
  display: inline-block;
  position: relative;
}

h2.section-title {
  display: inline-block;
  font-size: 16px;
}

.entry-meta a:hover,
.entry-like a:hover {
  text-decoration: none;
}

.post-link {
  display: block;
  position: relative;
}

.content-list {
  border-bottom: none;
  margin-bottom: -1px;
}

/* List row: thumbnail on the left, text column on the right. */
.content-list .hentry {
  align-items: start;
  border-bottom: 1px solid var(--np-border);
  display: grid;
  gap: 0 20px;
  grid-template-areas: "thumb body";
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 22px 20px;
  position: relative;
  transition: background-color .18s ease;
}

.content-list .hentry > .thumbnail-box,
.content-list .hentry > .thumbnail-link {
  grid-area: thumb;
}

.content-list .hentry > .entry-body {
  grid-area: body;
}

/* Rows without a thumbnail should not reserve the empty column. */
.content-list .hentry:not(:has(.thumbnail-box)):not(:has(.thumbnail-link)) {
  grid-template-areas: "body";
  grid-template-columns: minmax(0, 1fr);
}

.content-list .hentry:last-child {
  border-bottom: none;
}

.content-list .hentry:hover {
  background-color: var(--np-surface-2);
}

.content-list .thumbnail-box {
  align-self: start;
  border-radius: var(--np-radius);
  box-sizing: border-box;
  display: block;
  grid-area: thumb;
  justify-self: stretch;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.content-list .thumbnail-link {
  box-sizing: border-box;
  display: block;
  line-height: 0;
  position: relative;
  width: 100% !important;
}


/* Fixed aspect box keeps the badge pinned inside the image area.
   The ratio is applied on the <img> itself and the image is width-driven
   (width:100%, height:auto). Putting the ratio on the wrapper while the image
   used height:100% created a circular dependency: the browser resolved the
   height first and back-solved a 35px width. */
/* The thumbnail column is a fixed 240px track (110px on phones). Pin that width
   on the box itself so every descendant resolves from it. Without this the
   aspect box solved height first and back-solved a 35px width from 300:193,
   which is exactly the bug that made the images look tiny. */
.content-list .thumbnail-box {
  width: 240px;
}

.content-list .thumbnail-wrap {
  aspect-ratio: 300 / 193;
  display: block;
  line-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.content-list .thumbnail-wrap img {
  aspect-ratio: auto;
  display: block;
  height: 100%;
  inset: 0;
  max-width: none;
  object-fit: cover;
  position: absolute;
  transition: transform .35s ease;
  width: 100%;
}

@media (max-width: 767px) {
  .content-list .thumbnail-box {
    width: 110px;
  }
}

.content-list .hentry:hover .thumbnail-link img {
  transform: scale(1.03);
}

.content-list .thumbnail-placeholder {
  align-items: center;
  aspect-ratio: 300 / 193;
  background-color: var(--np-surface-2);
  color: var(--np-muted);
  display: flex;
  font-size: 24px;
  justify-content: center;
  width: 100%;
}

/* Category badge sits on the thumbnail so titles keep a clean left edge. */
.content-list .thumbnail-box .entry-category {
  bottom: 10px;
  float: none;
  left: 10px;
  line-height: 1;
  margin: 0;
  position: absolute;
  right: auto;
  top: auto;
  z-index: 3;
}

.content-list .entry-category a {
  backdrop-filter: blur(6px);
  background-color: rgba(15, 23, 42, 0.72);
  border-radius: var(--np-radius-pill, 999px);
  color: #fff !important;
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  padding: 5px 10px;
}

.content-list .entry-category a:after {
  content: none;
}

.content-list .entry-body {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content-list .entry-header {
  margin-bottom: 8px;
  order: 1;
}

/* Two line clamp that reserves both lines, so the meta row never shifts. */
.content-list .entry-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 0;
  min-height: calc(2 * 1.45em);
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-list .entry-title a,
.content-list .entry-title a:visited {
  color: var(--np-heading);
}

.content-list .entry-title a:hover {
  color: var(--np-primary);
  text-decoration: none;
}

/* Meta row lives at the bottom-right corner of the card: pushed down by an
   auto margin, clustered to the right edge, one nowrap line with tabular
   digits so 0 -> 999 never wraps or reshuffles the row. */
.content-list .entry-meta {
  align-items: center;
  color: var(--np-muted);
  display: flex;
  flex-wrap: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  gap: 4px 14px;
  justify-content: flex-end;
  line-height: 1.6;
  margin: auto 0 0;
  order: 4;
  padding-top: 12px;
  white-space: nowrap;
}

.content-list .entry-meta .entry-date,
.content-list .entry-meta .entry-views,
.content-list .entry-meta .entry-comment,
.content-list .entry-meta .entry-like {
  align-items: center;
  display: inline-flex;
  margin: 0;
}

/* One line-box for every item so the icons and the labels share a baseline.
   Without this the eye icon (which carries a translated/inline-block icon)
   sits lower than the date text and reads as "smaller / offset". */
.content-list .entry-meta > span,
.content-list .entry-meta .sl-wrapper,
.content-list .entry-meta .sl-button {
  align-items: center;
  display: inline-flex;
  line-height: 1;
  min-height: 18px;
}

.content-list .entry-meta > span > i,
.content-list .entry-meta .entry-comment i,
.content-list .entry-meta .sl-button i {
  line-height: 1;
  position: static;
  top: auto;
  vertical-align: middle;
}

.content-list .entry-meta .sl-wrapper {
  display: inline-flex;
}

.content-list .entry-meta a {
  color: var(--np-muted);
}

.content-list .entry-meta a:hover {
  color: var(--np-primary);
}

.content-list .entry-summary {
  color: var(--np-body);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--np-excerpt-lines, 2);
  font-size: 14px;
  line-height: 1.75;
  order: 3;
  overflow: hidden;
  padding-top: 0;
}

/* The clamp above caps the card at two lines; the excerpt itself is now long
   enough (see iux_excerpt_length) to always fill those two lines, so short
   single-line summaries no longer leave a hollow gap under the title. */
.content-list .entry-summary p {
  display: inline;
  margin: 0;
}

.content-list .entry-overview {
  display: block;
}

.content-list .gallery-list {
  margin: 12px 0 0;
  order: 2;
}

.content-list .gallery-list:after {
  clear: both;
  content: " ";
  display: block;
}

.content-list .gallery-list li {
  list-style: none;
  margin-bottom: 0 !important;
}

.content-list .gallery-list li img {
  width: 100%;
}

.content-list .gallery-list li:last-child {
  margin-right: 0;
}

@media (max-width: 767px) {
  .content-list .hentry {
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-areas:
      "thumb head"
      "sum   sum"
      "meta  meta";
    column-gap: 14px;
    row-gap: 8px;
    padding: 16px;
  }

  /* .hentry carries the legacy .clear class. Its clearfix pseudo-elements
     would become stray grid items once the row is a grid. */
  .content-list .hentry::before,
  .content-list .hentry::after,
  .content-list .hentry > .entry-body::before,
  .content-list .hentry > .entry-body::after {
    display: none !important;
  }

  /* Let the text children become grid items so the meta row and the excerpt
     can use the card's full width instead of the narrow right column. */
  .content-list .hentry > .entry-body {
    display: contents;
  }

  .content-list .hentry > .thumbnail-box {
    grid-area: thumb;
  }

  .content-list .hentry .entry-header {
    grid-area: head;
    margin-bottom: 0;
  }

  .content-list .hentry .entry-meta {
    grid-area: meta;
  }

  .content-list .hentry .entry-summary {
    grid-area: sum;
  }

  .content-list .hentry .gallery-list {
    grid-column: 1 / -1;
  }

  /* Posts without a thumbnail fall back to a single text column. */
  .content-list .hentry:not(:has(.thumbnail-box)):not(:has(.thumbnail-link)) {
    grid-template-areas:
      "head"
      "sum"
      "meta";
    grid-template-columns: minmax(0, 1fr);
  }

  .content-list .entry-title {
    -webkit-line-clamp: 2;
    font-size: 16px;
    min-height: 0;
  }

  .content-list .entry-meta {
    font-size: 12px;
    gap: 0;
  }

  .content-list .entry-summary {
    -webkit-line-clamp: var(--np-excerpt-lines, 2);
    font-size: 13px;
    line-height: 1.65;
    padding-top: 0;
  }
}

.content-ad {
  border-bottom: 1px solid #f0f0f0;
  line-height: 0.5;
  padding: 20px 20px 20px 20px;
}

.content-ad .widget-title {
  display: none !important;
}

.read-more a,
.read-more a:visited {
  font-size: 14px;
  text-transform: uppercase;
}

.read-more a:hover {
  text-decoration: none;
}

/* Round seven (item 15, E.27): #999 = grey 153 fails AA on all three light
   surfaces it lands on (white card 2.8490, surface-2 hover row 2.7262, page
   2.6561) at 13px. --np-muted (#6b7280) passes all three (4.8345 / 4.6260 /
   4.5070). This group and the `… a` group below MUST be changed together:
   both tie in specificity with the earlier .content-list rules, and this
   later group wins, so fixing only one side leaves the other at #999.
   Honest visual change: the meta row goes from barely-visible light grey to
   a readable mid grey (luminance ratio 0.5249). Accepted - 13px auxiliary
   text is supposed to be readable.
   Frozen guard: --np-page stays #f7f7f5 and --np-muted stays #6b7280. The
   page-surface margin is only 0.0070, so one step darker on page or one step
   lighter on muted breaks AA. */
#featured-grid .entry-meta,
.content-list .entry-meta,
.content-search .entry-meta,
.single #primary article.hentry .entry-meta {
  font-size: 13px;
  color: var(--np-muted);
}

#featured-grid .entry-meta em,
.content-list .entry-meta em,
.content-search .entry-meta em,
.single #primary article.hentry .entry-meta em {
  font-style: normal;
  margin-left: 1px;
}

/* Round seven (item 15, E.27): second half of the atomic pair above. The
   hover group below keeps #333 (12.6347 on white, already passing) and still
   reads as a distinct step from muted (2.6134 between them), so the hover
   feedback survives. The ≤767 `… > span a{color:inherit}` rule is untouched
   and now inherits muted from the parent, so phones follow automatically. */
#featured-grid .entry-meta a,
.content-list .entry-meta a,
.content-search .entry-meta a,
.single #primary article.hentry .entry-meta a {
  color: var(--np-muted);
}

#featured-grid .entry-meta a:hover,
.content-list .entry-meta a:hover,
.content-search .entry-meta a:hover,
.single #primary article.hentry .entry-meta a:hover {
  color: #333;
}

#featured-grid .entry-meta .entry-source,
#featured-grid .entry-meta .entry-date,
.content-list .entry-meta .entry-source,
.content-list .entry-meta .entry-date,
.content-search .entry-meta .entry-source,
.content-search .entry-meta .entry-date,
.single #primary article.hentry .entry-meta .entry-source,
.single #primary article.hentry .entry-meta .entry-date {
  margin-right: 14px;
}

#featured-grid .entry-meta .entry-author,
.content-list .entry-meta .entry-author,
.content-search .entry-meta .entry-author,
.single #primary article.hentry .entry-meta .entry-author {
  margin-right: 14px;
}

#featured-grid .entry-meta .entry-author .avatar,
.content-list .entry-meta .entry-author .avatar,
.content-search .entry-meta .entry-author .avatar,
.single #primary article.hentry .entry-meta .entry-author .avatar {
  width: 20px;
  border-radius: 50%;
  margin: -3px 4px 0 0;
  vertical-align: middle;
}

#featured-grid .entry-meta .entry-views,
.content-list .entry-meta .entry-views,
.content-search .entry-meta .entry-views,
.single #primary article.hentry .entry-meta .entry-views {
  margin-right: 14px;
}

#featured-grid .entry-meta .entry-comment i,
.content-list .entry-meta .entry-comment i,
.content-search .entry-meta .entry-comment i,
.single #primary article.hentry .entry-meta .entry-comment i {
  top: -1px;
  position: relative;
}

.error-404 {
  padding: 20px;
}

.not-found {
  padding: 20px 0;
}

/*--------------------------------------------------------------
3.3 Pagination
--------------------------------------------------------------*/
.scroller-status {
  font-size: 14px;
  text-align: center;
  position: relative;
  top: -2px;
}

.scroller-status img {
  width: 16px;
  margin: -2px 4px 0 0;
  vertical-align: middle;
}

.scroller-status .infinite-scroll-request {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  color: #999;
  display: none;
  padding: 9px 0;
}

.scroller-status .infinite-scroll-last,
.scroller-status .infinite-scroll-error {
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  color: #999;
  display: none;
  padding: 9px 0;
}

.pagination {
  background-color: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  box-shadow: var(--np-shadow-sm);
  margin-top: 18px;
  padding: 12px;
  position: relative;
  text-align: center;
  top: 0;
}

.pagination .page-numbers {
  background-color: var(--np-surface-2);
  border-radius: var(--np-radius);
  color: var(--np-body);
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  height: 34px;
  line-height: 34px;
  margin: 0 3px;
  min-width: 34px;
  padding: 0 10px;
  text-transform: none;
  transition: background-color .18s ease, color .18s ease;
}

.pagination .page-numbers:hover {
  background-color: #e2e8f2;
  color: var(--np-heading);
  text-decoration: none;
}

.pagination .page-numbers.dots:hover {
  background-color: transparent;
  color: var(--np-muted);
}

.pagination .page-numbers.current {
  background-color: var(--np-primary);
  color: var(--np-on-primary, #fff);
}

.pagination .prev,
.pagination .next {
  position: relative;
}

/*--------------------------------------------------------------
4. Single Post/Page
--------------------------------------------------------------*/
.page-title {
  font-size: 26px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page .site-main {
  padding: 25px;
}

.single-excerpt {
  background-color: #f9f9f9;
  border: 1px solid #efefef;
  border-radius: 3px;
  color: #999;
  margin: 0 0 20px 0;
  padding: 15px;
  font-size: 15px;
  position: relative;
}

.single .site-main {
  padding: 34px 36px 40px;
}

.single #primary .entry-header {
  border-bottom: 1px solid var(--np-border);
  margin-bottom: 26px;
  padding-bottom: 18px;
  text-align: center;
}

.single #primary .entry-title {
  color: var(--np-heading);
  letter-spacing: -0.02em;
}

.single #primary .entry-header .entry-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  height: auto;
  min-height: 30px;
}

.single #primary .entry-header .entry-meta:after {
  content: " ";
  clear: both;
  display: block;
}

.single #primary .entry-header .entry-meta .entry-author {
  margin-right: 0;
}

.single #primary .entry-header .entry-meta .custom-share {
  top: -1px;
}

/* Every meta item is one flex cell with identical inner alignment, so the
   author+avatar, date, views, comments and the category chip all share one
   optical baseline instead of sitting at five different heights. The legacy
   right-margins are dropped in favour of the flex gap. */
.single #primary .entry-header .entry-meta > span,
.single #primary article.hentry .entry-meta .entry-source,
.single #primary article.hentry .entry-meta .entry-date,
.single #primary article.hentry .entry-meta .entry-views,
.single #primary article.hentry .entry-meta .entry-comment,
.single #primary article.hentry .entry-meta .entry-author {
  align-items: center;
  display: inline-flex;
  margin-right: 0;
}

.single #primary .entry-header .entry-meta > span > i,
.single #primary .entry-header .entry-meta .entry-comment i,
.single #primary article.hentry .entry-meta .entry-comment i {
  position: static;
  top: auto;
}

.single #primary .bx-wrapper {
  visibility: hidden;
  margin-bottom: 25px;
}

.single #primary .bx-wrapper .bx-pager {
  top: 10px;
  bottom: auto;
}

.single .bx-wrapper,
.single .bxslider,
.single .thumbnail-link {
  height: 100%;
  overflow: hidden;
}

.single #primary .gallery-slider {
  display: none;
}

.single #primary .gallery-slider:after {
  clear: both;
  content: " ";
  display: block;
}

.single #primary .gallery-slider li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.single #primary .gallery-slider li img {
  width: 100%;
  margin-bottom: 0;
}

.single #primary .gallery-slider li:before {
  content: none;
}

.single #primary .gallery-slider li .image-desc {
  background-color: #333;
  background-color: rgba(50, 50, 50, 0.7);
  color: #fff;
  font-size: 14px;
  padding: 12px 2%;
  position: absolute;
  bottom: 0;
  width: 97%;
}

.error404 .site-main .entry-thumbnail,
.single .site-main .entry-thumbnail,
.page .site-main .entry-thumbnail {
  margin-bottom: 10px;
}

.error404 h1.entry-title,
.single h1.entry-title,
.page h1.entry-title {
  font-size: 1.6em;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 15px;
}

.error404 .entry-content label,
.error404 .page-content label {
  display: inline-block;
}

.breadcrumbs {
  background-color: #fbfbfb;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  padding: 0 20px;
  border-bottom: 1px solid #eaeaea;
}

.breadcrumbs h1 {
  font-size: 1.2em;
  line-height: 1;
}

.breadcrumbs h1 span.title {
  display: block;
  padding: 13px 0;
}

.breadcrumbs .taxonomy-description {
  color: #828a92;
  margin-bottom: 13px;
}

.breadcrumbs.is_zhuanti {
  background-color: #fff;
  padding: 20px 20px 10px 20px;
  position: relative;
}

.breadcrumbs.is_zhuanti .thumbnail {
  line-height: 0.5;
}

.breadcrumbs.is_zhuanti img {
  line-height: 0.5;
  width: 100%;
}

.breadcrumbs.is_zhuanti h1 {
  background-color: #ffbe02;
  color: #fff;
  display: none;
  font-size: 20px;
  padding: 0 20px;
  position: absolute;
  height: 40px;
  line-height: 40px;
  top: 20px;
  left: 20px;
}

.breadcrumbs.is_zhuanti h1 span.title {
  padding: 0;
}

.breadcrumbs.is_zhuanti .taxonomy-description {
  color: #999;
  margin-top: 15px;
}

.single-breadcrumbs {
  background-color: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  color: #999;
  font-size: 13px;
  margin-bottom: 20px;
  padding: 10px 0;
}

.single-breadcrumbs .fa {
  margin: 0 5px;
}

.single-breadcrumbs a {
  color: #999;
}

.single-breadcrumbs .single-posts-nav {
  float: right;
}

.single-credit {
  background-color: #f9f9f9;
  border-radius: 3px;
  margin: 30px 0;
  font-size: 13px;
  line-height: 1.5;
  padding: 10px;
  border: 1px solid #efefef;
  color: #999;
}

.single #primary .entry-category-single {
  margin-right: 15px;
}

.single #primary .entry-footer {
  text-align: center;
}

.single #primary .entry-footer .entry-like,
.single #primary .entry-footer .entry-sponsor {
  display: inline-block;
  font-size: 16px;
  margin: 0 2px;
}

.single #primary .entry-footer .entry-like em {
  font-style: normal;
}

.single #primary .entry-footer .entry-like a {
  border: 1px solid;
  border-radius: 5px;
  display: inline-block;
  padding: 7px 30px;
}

.single #primary .entry-footer .entry-like a.liked {
  background-color: var(--np-primary);
  border-color: var(--np-primary);
  color: var(--np-on-primary, #fff);
}

.single #primary .entry-footer .entry-like a:hover {
  color: var(--np-on-primary, #fff);
}

.single #primary .entry-footer .entry-sponsor span {
  border: 1px solid;
  border-radius: 5px;
  display: inline-block;
  padding: 7px 30px;
  cursor: pointer;
}

.single #primary .entry-footer .entry-sponsor span:hover {
  color: var(--np-on-primary, #fff);
}

.single #primary .entry-bottom {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 20px;
}

.single #primary .entry-bottom:after {
  content: none;
  display: none;
}

.single #primary .entry-bottom .entry-tags {
  flex: 1 1 240px;
  min-width: 0;
}

.single #primary .entry-bottom .custom-share {
  align-items: center;
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
  position: relative;
}

.custom-share:before {
  color: #999;
  content: "分享";
  display: inline-block;
  font-size: 13px;
  line-height: 32px;
  margin-right: 4px;
}

.custom-share .share-button {
  align-items: center;
  background-color: #f5f6f7;
  border: 1px solid #e8eaed;
  border-radius: 50%;
  box-sizing: border-box;
  color: #555;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  height: 32px;
  justify-content: center;
  margin: 0;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  width: 32px;
}

.custom-share .share-button .fa {
  font-size: 14px;
  line-height: 1;
}

.custom-share .copy-share-link {
  -webkit-appearance: none;
  appearance: none;
}

.custom-share .share-weibo:hover {
  background-color: #fff3e6;
  border-color: #ffd8b0;
  color: #e6162d;
}

.custom-share .share-qq:hover {
  background-color: #eaf6ff;
  border-color: #bfe3ff;
  color: #0d8ce0;
}

.custom-share .share-copy:hover {
  background-color: #e9f7fc;
  border-color: #b9e9f8;
  color: #119bc6;
}

.custom-share a:hover,
.custom-share button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Round seven (item 14 / E.26): the ring joins the site-wide focus language.
   #119bc6 was the only hard-coded non-primary ring on a light surface; it
   passed 1.4.11 on white (3.2170) but failed on --np-page (2.9991), so the
   pass depended on the share row staying inside the white card. The token
   removes that dependency. Specificity is unchanged (0,2,1), so it still
   beats the 10.2 base group and a:focus. Ring width/offset are untouched. */
.custom-share a:focus-visible,
.custom-share button:focus-visible {
  outline: 2px solid var(--np-focus-ring, var(--np-primary));
  outline-offset: 2px;
}

.custom-share .share-copy-status {
  color: #666;
  font-size: 12px;
  line-height: 32px;
  margin-left: 2px;
  min-width: 0;
}

.custom-share .share-copy-status.is-success {
  color: #1a9c5b;
}

.custom-share .share-copy-status.is-error {
  color: #d94b4b;
}

.custom-share .share-copy-status:empty {
  display: none;
}

@media (max-width: 600px) {
  .single #primary .entry-bottom {
    align-items: flex-start;
  }

  .single #primary .entry-bottom .custom-share {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

/* Author Box */
.author-box {
  background-color: #fbfbfb;
  border: 1px solid #efefef;
  border-radius: 3px;
  margin: 0 0 -26px 0;
  padding: 15px;
  position: relative;
  z-index: 2;
}

.author-box .avatar {
  border-radius: 50%;
  float: left;
  width: 64px;
  height: auto;
  line-height: 0.8;
  margin: 0 18px 0 0;
}

.author-box .author-meta .author-name {
  font-size: 1em;
  margin-bottom: 5px;
}

.author-box .author-meta .author-name a {
  color: #333;
}

.author-box .author-meta .author-desc {
  color: #666;
  display: table;
  font-size: 0.95em;
}

/* Related  Posts */
.related-content {
  border-top: 1px solid #eaeaea;
  margin: 20px 0 0 0;
  padding-top: 25px;
}

.related-content .section-title {
  font-weight: bold;
  margin-bottom: 15px;
}

.related-content ul li {
  color: #999;
  list-style: none;
  position: relative;
  padding-left: 14px;
}

.related-content ul li:before {
  border-radius: 50%;
  background-color: #ccc;
  content: " ";
  display: inline-block;
  width: 5px;
  height: 5px;
  position: absolute;
  left: 0;
  top: 10px;
}

/* Round seven (item 15, E.27): related-post meta, same #999 -> muted fix.
   Judgement domain: this meta row is display:none at ≤959 and ≤767, so it
   only renders at ≥960 - sample at 1440, record N/A (not FAIL) below that. */
.related-content ul li .entry-meta {
  color: var(--np-muted);
  position: absolute;
  right: 0;
  font-size: 13px;
  width: 150px;
  text-align: right;
}

.related-content ul li .entry-meta i {
  display: none;
}

.related-content ul li .entry-meta em {
  font-style: normal;
  margin-left: 2px;
}

.related-content ul li .entry-meta a {
  color: var(--np-muted);
}

.related-content ul li .entry-meta a:hover {
  color: #333;
}

.related-content ul li .entry-meta .entry-comment {
  margin-left: 7px;
  padding-left: 11px;
  position: relative;
}

.related-content ul li .entry-meta .entry-comment:before {
  background-color: #ccc;
  border-radius: 50%;
  content: " ";
  display: inline-block;
  width: 4px;
  height: 4px;
  position: absolute;
  left: 0;
  top: 6px;
}

.related-content .hentry {
  margin-bottom: 10px;
}

/* Entry Tags */
.entry-tags {
  float: left;
  color: #999;
}

.entry-tags span {
  font-size: 14px;
  margin-right: 10px;
}

.entry-tags .tag-links a {
  background-color: #f5f5f5;
  border-radius: 2px;
  display: inline-block;
  color: #999;
  font-size: 13px;
  height: 24px;
  line-height: 24px;
  margin: 0 2px 5px 0;
  padding: 0 8px;
  position: relative;
}

.entry-tags .tag-links a:hover {
  color: var(--np-on-primary, #fff);
  text-decoration: none;
}

/* Entry Content */
.entry-content {
  font-size: 1.1em;
  /* Begin WP 5.0+ Styles */
  /* End WP 5.0+ Styles */
}

.entry-content a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Content links hover to the single accent (the inline header.php rule
   repaints them with --np-secondary red); body prefix outranks it. */
body .entry-content a:hover {
  color: var(--np-primary);
}

.entry-content pre a,
.entry-content pre code {
  text-decoration: none;
}

.entry-content .wp-post-image {
  margin-bottom: 20px;
  width: 100%;
}

.entry-content img {
  margin-bottom: 20px;
  max-width: 100%;
}

.entry-content .wp-caption img {
  margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-weight: bold;
  margin-bottom: 25px;
  line-height: 1.35;
}

.entry-content h1 {
  font-size: 26px;
}

.entry-content h2 {
  font-size: 22px;
}

.entry-content h3 {
  font-size: 18px;
}

.entry-content h4 {
  font-size: 16px;
}

.entry-content h5, .entry-content h6 {
  font-size: 14px;
}

.entry-content p {
  line-height: 1.9;
  margin-bottom: 25px;
}

.entry-content * p,
.entry-content code p,
.entry-content blockquote p,
.entry-content form p,
.entry-content table p {
  text-indent: 0;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 25px 0;
}

.entry-content ul ul,
.entry-content ul ol,
.entry-content ol ul,
.entry-content ol ol {
  margin: 8px 0 0 10px;
}

.entry-content ul li {
  list-style: none;
  margin: 0 0 10px 0;
  padding-left: 15px;
  position: relative;
}

.entry-content ul li:hover:before {
  color: #333;
}

.entry-content ul li:before {
  border-radius: 50%;
  background-color: #ccc;
  content: " ";
  display: inline-block;
  width: 5px;
  height: 5px;
  position: absolute;
  left: 0;
  top: 10px;
}

.entry-content ul li ul li {
  list-style: none;
}

.entry-content ol li {
  list-style: inside decimal;
  margin: 0 0 10px 0;
}

.entry-content label {
  font-size: 1em;
  font-weight: bold;
}

.entry-content select {
  padding: 0 25px 0 10px;
}

.entry-content select:focus, .entry-content select:active {
  outline: none;
}

.entry-content dl {
  margin-bottom: 20px;
}

.entry-content fieldset {
  border: 1px solid #e9e9e9;
  margin: 0 2px 20px 2px;
  padding: 0.35em 0.625em 0.75em;
}

.entry-content input[type="radio"] {
  -webkit-appearance: radio;
}

.entry-content input[type="checkbox"] {
  -webkit-appearance: checkbox;
}

.entry-content ::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

.entry-content table {
  margin-bottom: 20px;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content input[type="search"],
.entry-content input[type="password"] {
  width: 300px;
}

.entry-content input[type="file"] {
  border: none;
}

.entry-content textarea {
  width: 100%;
  height: 250px;
}

.entry-content .wp-caption {
  background-color: #f7f7f7;
  padding: 0 0 1px 0;
}

.entry-content .wp-caption-text {
  font-size: 13px;
  font-style: italic;
  color: #999;
}

.entry-content .wp-block-gallery {
  margin: 0 0 9px 0;
}

.entry-content .wp-block-gallery li {
  padding: 0;
}

.entry-content .wp-block-gallery li:before {
  content: none;
}

.entry-content .wp-block-gallery li img {
  margin: 0;
}

.entry-content .wp-block-audio figcaption,
.entry-content .wp-block-video figcaption,
.entry-content .wp-block-image figcaption,
.entry-content .wp-block-gallery .blocks-gallery-image figcaption,
.entry-content .wp-block-gallery .blocks-gallery-item figcaption {
  box-sizing: border-box;
  line-height: 1.6;
  margin: 0;
  padding: 0.5rem;
  text-align: center;
}

.entry-content .wp-block-image figcaption {
  margin-top: -20px;
}

.entry-content iframe,
.entry-content .wp-block-audio,
.entry-content .wp-block-video {
  margin-bottom: 20px;
}

.entry-content .nova-video {
  margin-bottom: 24px;
  position: relative;
  width: 100%;
}

.entry-content .nova-video iframe {
  border: 0;
  display: block;
  height: 420px;
  max-width: 100%;
  width: 100%;
}

.entry-content .nova-video-youtu,
.entry-content .nova-video-iqiyi {
  height: 0;
  padding-bottom: 56.25%;
}

.entry-content .nova-video-youtu iframe,
.entry-content .nova-video-iqiyi iframe {
  bottom: 0;
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

@media (max-width: 600px) {
  .entry-content .nova-video iframe {
    height: 260px;
  }
}

.entry-content * p {
  text-indent: 0;
}

.entry-content .page-links {
  color: #999;
  text-align: center;
}

.entry-content .page-links .page-links-title {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  color: #999;
}

.entry-content .page-links span {
  border: 1px solid #efefef;
  background-color: #fff;
  display: inline-block;
  margin: 0 -3px;
  padding: 0 12px;
  height: 34px;
  line-height: 34px;
}

.entry-content .page-links a {
  text-decoration: none;
}

.entry-content .page-links a:last-child span {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

blockquote {
  background-color: var(--np-surface-2);
  border-left: 3px solid var(--np-border-strong);
  border-radius: 0 var(--np-radius) var(--np-radius) 0;
  color: var(--np-body);
  margin: 0 0 26px;
  padding: 18px 20px;
  position: relative;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  color: var(--np-muted);
  display: block;
  font-size: 14px;
  font-style: normal;
  margin-top: 8px;
}

/* Code blocks. Neutral geometry base; the colour follows the current
   code-style via the body class, so a bare <pre> (no window wrapper) still
   matches the np-code--light/--dark windows. The wrapper rules further down
   outrank these for wrapped code. */
.entry-content pre {
  border-radius: var(--np-radius);
  font-family: var(--np-mono);
  font-size: var(--np-code-font-size, 13px);
  line-height: 1.7;
  margin: 0 0 26px;
  overflow-x: auto;
  padding: 16px 18px;
  tab-size: 2;
}

body.np-code-light .entry-content pre {
  background-color: #f6f8fa;
  color: #24292f;
}

body.np-code-dark .entry-content pre {
  background-color: #101827;
  color: #e2e8f0;
}

.entry-content code {
  background-color: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: 5px;
  color: var(--np-body);
  font-family: var(--np-mono);
  font-size: .9em;
  padding: 1px 6px;
}

/* Reset inline-code chrome inside fenced code blocks (must follow the rule above). */
.entry-content pre code {
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: none;
  white-space: pre;
}

/* Tables */
.entry-content table {
  border: 1px solid var(--np-border);
  border-collapse: separate;
  border-radius: var(--np-radius);
  border-spacing: 0;
  margin-bottom: 26px;
  overflow: hidden;
  width: 100%;
}

.entry-content table th {
  background-color: var(--np-surface-2);
  border-bottom: 1px solid var(--np-border);
  color: var(--np-heading);
  font-weight: 600;
  text-align: left;
}

.entry-content table th,
.entry-content table td {
  border: 0;
  border-bottom: 1px solid var(--np-border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}

.entry-content table td {
  color: var(--np-body);
}

.entry-content table tr:last-child td {
  border-bottom: 0;
}

.entry-content table tr:hover td {
  background-color: var(--np-surface-2);
}

/* Inline images inside articles */
.entry-content figure {
  margin: 0 0 26px;
}

.entry-content figure img {
  border-radius: var(--np-radius);
}

.entry-content figcaption {
  color: var(--np-muted);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

/*--------------------------------------------------------------
5. Archive/Search Page
--------------------------------------------------------------*/
.search-no-results .page-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.no-results .entry-content p,
.not-found .entry-content p {
  text-indent: 0;
}

/*--------------------------------------------------------------
6. Comments
--------------------------------------------------------------*/
.comment-respond {
  border-top: 1px solid #f0f0f0;
  margin: 25px 0;
  padding: 25px 0 0 0;
}

.comments-title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 25px;
  padding-top: 25px;
}

.comments-title:before {
  top: 30px !important;
}

.comment-reply-title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.comment-list {
  list-style: none;
}

.comment-author {
  font-size: 14px;
}

.comment-meta {
  margin-bottom: 5px;
}

.comment-list .reply,
.comment-metadata {
  font-size: 13px;
}

.comment-author .fn {
  font-weight: normal;
}

.comment-author a {
  color: #2b2b2b;
}

.comment-list .trackback a,
.comment-list .pingback a,
.comment-metadata a,
.comment-list .reply a {
  color: #999;
}

.comment-list .trackback a:visited,
.comment-list .pingback a:visited,
.comment-metadata a:visited,
.comment-list .reply a:visited {
  color: #999;
}

.comment-list .trackback a:hover,
.comment-list .pingback a:hover,
.comment-metadata a:hover,
.comment-list .reply a:hover {
  color: #333;
}

.comment-author a:hover {
  color: #333;
}

.comment-list article,
.comment-list .pingback,
.comment-list .trackback {
  margin: 0 0 20px 0;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
  position: relative;
}

.comment-list > li:first-child > article,
.comment-list > .pingback:first-child,
.comment-list > .trackback:first-child {
  border-top: 0;
  padding-top: 0;
}

.comment-list > li:first-child > article .reply,
.comment-list > .pingback:first-child .reply,
.comment-list > .trackback:first-child .reply {
  top: 0;
}

.comment-author {
  position: relative;
}

.comment-author .avatar {
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: auto;
}

.says {
  display: none;
}

.comment-author,
.comment-awaiting-moderation,
.comment-content {
  padding-left: 50px;
}

.comment-list .reply {
  visibility: hidden;
  position: absolute;
  top: 20px;
  right: 0;
}

.comment-body:hover .reply {
  visibility: visible;
}

.comment-author {
  display: inline;
}

.comment-metadata {
  display: inline;
  margin-left: 7px;
}

.comment-edit-link {
  margin-left: 10px;
}

.comment-edit-link:hover {
  text-decoration: none;
}

#cancel-comment-reply-link:hover {
  text-decoration: none;
}

.comment-edit-link:before {
  content: "\f411";
}

.comment-reply-link:hover {
  text-decoration: none;
}

.comment-reply-link:before,
.comment-reply-login:before {
  content: '\f467';
  color: #aaa;
  margin-right: 2px;
}

.comment-content {
  font-size: 15px;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  word-wrap: break-word;
}

.comment-content ul,
.comment-content ol {
  margin: 0 0 24px 0;
}

.comment-content li > ul,
.comment-content li > ol {
  margin-bottom: 0;
}

.comment-content > :last-child {
  margin-bottom: 0;
}

.comment-list .children {
  list-style: none;
  background: #f7f7f7;
  padding: 20px;
  position: relative;
  margin: 0 0 -1px 0;
  z-index: 2;
}

.comment-list .children:before {
  color: #f7f7f7;
  top: -16px;
  left: 13px;
  font-family: "fontawesome";
  font-size: 20px;
  content: "\f0d8";
  position: absolute;
  width: 20px;
  text-align: center;
}

.comment-list .children li article {
  border-top-color: #eee;
}

.comment-list .children li:first-child article {
  border-top: none;
  padding-top: 0;
}

.comment-list .children li:first-child article .reply {
  top: 0;
}

.comment-list .children li:last-child article {
  margin-bottom: 0;
}

.comment-notes,
.comment-awaiting-moderation,
.logged-in-as,
.no-comments,
.form-allowed-tags,
.form-allowed-tags code {
  color: #999;
}

.comment-notes a,
.comment-awaiting-moderation a,
.logged-in-as a,
.no-comments a,
.form-allowed-tags a,
.form-allowed-tags code a {
  color: #999;
}

.comment-notes a:hover,
.comment-awaiting-moderation a:hover,
.logged-in-as a:hover,
.no-comments a:hover,
.form-allowed-tags a:hover,
.form-allowed-tags code a:hover {
  color: #333;
}

.comment-notes,
.comment-awaiting-moderation,
.logged-in-as {
  font-size: 14px;
  margin-bottom: 10px;
}

.no-comments {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 24px;
  text-transform: uppercase;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
  margin-bottom: 20px;
}

.comment-form textarea {
  width: 100%;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email {
  width: 32%;
  margin-right: 2%;
}

.comment-form .comment-form-url {
  width: 32%;
}

.comment-form .comment-form-author {
  float: left;
}

.comment-form .comment-form-email {
  float: left;
}

.comment-form .comment-form-url {
  float: right;
}

.comment-form:after {
  content: '';
  display: block;
  clear: both;
}

.comment-form .submit {
  font-size: 14px;
  padding: 0 18px;
}

.comment-form label {
  font-size: 14px;
}

.comment-form-cookies-consent {
  display: none;
  margin-bottom: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
}

.form-allowed-tags,
.form-allowed-tags code {
  font-size: 12px;
  line-height: 1.5;
}

.required {
  color: #c0392b;
}

.comment-reply-title small a {
  color: #2b2b2b;
  float: right;
  height: 24px;
  overflow: hidden;
  width: 24px;
}

.comment-reply-title small a:before {
  content: "\f405";
  font-size: 20px;
}

.comment-navigation {
  font-size: 13px;
}

.comment-navigation:after {
  clear: both;
  content: " ";
  display: block;
}

.comment-navigation .nav-next,
.comment-navigation .nav-previous {
  display: inline-block;
}

.comment-navigation .nav-previous {
  float: left;
}

.comment-navigation .nav-next {
  float: right;
}

#comment-nav-above {
  margin-bottom: 20px;
}

#comment-nav-below {
  margin-bottom: 0;
}

.must-log-in {
  background: #f7f7f7;
  height: 150px;
  line-height: 150px;
  text-align: center;
  font-size: 14px;
  color: #888;
  border-radius: 3px;
  margin-bottom: -27px;
  z-index: 2;
  position: relative;
}

.must-log-in a {
  color: var(--np-on-primary, #fff);
  display: inline-block;
  line-height: 30px;
  padding: 0 15px;
  margin: 0 -10px 0 10px;
  border-radius: var(--np-radius-lg);
  z-index: 2;
  position: relative;
}

.must-log-in a:hover {
  color: var(--np-on-primary, #fff);
}

/* The default state already paints a primary fill (header.php inline group),
   so removing the overlay bitmap left this hover with no feedback at all.
   Underline instead of a brightness filter: a filter would darken the fill
   and re-open the same AA dead zone the overlay used to cause, while an
   underline changes zero pixels of the background. Same language as the
   bottom-content CTA hover above. */
body .must-log-in a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/*--------------------------------------------------------------
7. Sidebar
--------------------------------------------------------------*/
.sidebar {
  float: right;
  width: 360px;
  transition: 0.3s all;
  /* Media Gallery */
  /* Posts with Thumbnail Widget */
  /* Ad Widget */
  /* Custom Text Widget */
}

.sidebar .sidebar__inner {
  position: relative;
  transform: translate(0, 0);
  transform: translate3d(0, 0, 0);
}

.sidebar .widget {
  background-color: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  box-shadow: var(--np-shadow-sm);
  margin-bottom: 18px;
  padding: 18px;
  line-height: 1.6;
}

.sidebar .widget:last-child {
  margin-bottom: 0;
}

.sidebar .widget .widget-title {
  align-items: center;
  background-color: transparent;
  border-bottom: 1px solid var(--np-border);
  border-radius: 0;
  color: var(--np-heading);
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  left: auto;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  padding: 0 0 12px;
  position: relative;
  top: auto;
  width: auto;
}

.sidebar .widget .widget-title:before {
  background-color: var(--np-primary);
  border-radius: 2px;
  content: "";
  display: inline-block;
  height: 14px;
  width: 3px;
}

.sidebar .widget p {
  margin-bottom: 15px;
}

.sidebar .widget ul > li {
  list-style: none;
  margin-bottom: 15px;
  position: relative;
}

.sidebar .widget ul > li a {
  color: #333;
}

.sidebar .widget ul li:last-child {
  margin-bottom: 0;
}

.sidebar .widget select {
  width: 100%;
  max-width: 100%;
}

.sidebar .widget_search #searchform {
  height: 38px;
  position: relative;
}

.sidebar .widget_search input[type='search'] {
  width: 100%;
  height: 38px;
  line-height: 38px;
  border: 1px solid #e9e9e9;
}

.sidebar .widget_search button.search-submit,
.sidebar .widget_search input[type='submit'] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  width: 64px;
  height: 38px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  position: absolute;
  top: 0;
  right: 0;
}

.sidebar .widget_media_gallery .bx-wrapper {
  visibility: hidden;
}

.sidebar .widget_media_gallery .bx-wrapper .bx-pager {
  right: 13px;
  bottom: 10px;
}

.sidebar .widget_media_gallery .gallery-slider {
  display: none;
}

.sidebar .widget_posts_thumbnail {
  padding-bottom: 0;
}

.sidebar .widget_posts_thumbnail ul {
  position: relative;
  left: -15px;
  margin-top: -15px;
  width: 358px;
}

.sidebar .widget_posts_thumbnail ul li {
  border-bottom: 1px solid #f3f3f3;
  margin: 0;
  padding: 15px 15px 14px 15px;
}

.sidebar .widget_posts_thumbnail ul li:after {
  content: "";
  display: block;
  clear: both;
}

.sidebar .widget_posts_thumbnail ul li:hover {
  background-color: #f9f9f9;
}

.sidebar .widget_posts_thumbnail ul li:last-child {
  border-bottom: none;
}

.sidebar .widget_posts_thumbnail .entry-thumbnail {
  float: left;
}

.sidebar .widget_posts_thumbnail .thumbnail-wrap {
  float: left;
  width: 100px;
  margin: 0 12px 0 0;
}

.sidebar .widget_posts_thumbnail .entry-wrap {
  color: #999;
  line-height: 1.3;
  display: table;
}

.sidebar .widget_posts_thumbnail .entry-wrap a {
  font-size: 14px;
}

.sidebar .widget_posts_thumbnail .thumbnail-wrap {
  line-height: 0.5;
}

.sidebar .widget_posts_thumbnail .entry-meta {
  font-size: 13px;
  margin-top: 4px;
}

.sidebar .widget_ad {
  border: none;
  background: none;
  padding: 0;
  position: relative;
  box-shadow: none;
}

.sidebar .widget_ad .adwidget {
  line-height: 0.8;
}

.sidebar .widget_ad .widget-title {
  border-bottom: none;
  color: #fff;
  display: none;
  font-size: 12px;
  font-weight: normal;
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 1px;
  top: auto;
  left: 0;
  z-index: 99;
  background: rgba(50, 50, 50, 0.3);
  padding: 2px 5px;
  border-top-right-radius: 10px;
  width: auto;
}

.sidebar .widget_ad .widget-title:before, .sidebar .widget_ad .widget-title:after {
  content: none;
}

.sidebar .widget_ad .widget-title span {
  background-color: transparent;
  padding: 0;
  position: static;
}

.sidebar .widget_custom_text .widget-link {
  display: block;
}

.sidebar .widget_custom_text .widget-link:hover .custom-text {
  color: #999;
}

.sidebar .widget_custom_text .widget-title {
  border: none;
  border-radius: 0;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  padding: 5px 15px;
  width: auto;
  margin: -1px 0 0 15px;
  z-index: 2;
}

.sidebar .widget_custom_text h4 {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 10px;
}

.sidebar .widget_custom_text .custom-text {
  color: #999;
  font-size: 14px;
  line-height: 1.7;
}

/* Tag Cloud Widget */
.widget_tag_cloud {
  padding-right: 0 !important;
  padding-bottom: 13px !important;
}

.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget_tag_cloud .tagcloud a {
  background-color: var(--np-surface-2, #f2f2ef);
  border-radius: var(--np-radius-xs, 4px);
  display: inline-block;
  color: var(--np-muted, #6b7280) !important;
  font-size: 12px !important;
  width: auto;
  height: 26px;
  line-height: 26px;
  margin: 0;
  padding: 0 12px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition: background-color .18s ease, color .18s ease;
}

.widget_tag_cloud .tagcloud a:hover {
  background-color: #fff !important;
  color: var(--np-primary-text, #2563eb) !important;
  text-decoration: none;
}

/* Recent Posts Widget */
.widget_recent_entries .post-date {
  font-size: 13px;
  color: #999;
  margin-left: 5px;
}

/*--------------------------------------------------------------
7. Footer
--------------------------------------------------------------*/
.footer-partners {
  background-color: #fff;
  margin-bottom: 20px;
  position: relative;
}

.footer-partners .widget-title {
  display: none;
}

.footer-partners .partner-title {
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  line-height: 1;
  margin-bottom: 10px;
  padding: 15px 20px 15px 34px;
  position: relative;
}

.footer-partners .partner-title:before {
  border-radius: 1px;
  content: " ";
  display: block;
  width: 4px;
  height: 15px;
  position: absolute;
  top: 15px;
  left: 20px;
}

.footer-partners .partner-title strong {
  font-weight: bold;
}

.footer-partners .partner-title .partner-desc {
  color: #aaa;
  font-size: 13px;
  margin-left: 10px;
}

.footer-partners .partner-title .partner-link {
  float: right;
  font-size: 13px;
}

.footer-partners .partner-title .partner-link a {
  color: #aaa;
}

.footer-partners .partner-title .partner-link a:hover {
  color: #333;
}

.footer-partners .partner-image {
  display: inline-block;
  width: 14.2857%;
  height: 75px;
  line-height: 75px;
  text-align: center;
}

.footer-partners .partner-image img {
  max-width: 100%;
  max-height: 75px;
  width: 70%;
  padding: 0 15%;
  height: auto;
  vertical-align: middle;
}

/* Bottom Right Buttons */
.bottom-right {
  display: none;
  width: 42px;
  position: fixed;
  right: 5px;
  bottom: 40px;
  /* Back to top button */
}

.bottom-right .bottom-icon {
  border: 1px solid #eaeaea;
  margin-bottom: -1px;
}

.bottom-right #back-top.bottom-icon {
  visibility: hidden;
}

.bottom-right .icon-contact a {
  border-top: none;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.bottom-right span.icon-link,
.bottom-right a {
  background-color: #fff;
  cursor: pointer;
  display: inline-block;
}

.bottom-right span.icon-link span,
.bottom-right a span {
  color: #999;
  display: inline-block;
  line-height: 38px;
  width: 40px;
  z-index: 25;
  background: #fff;
  font-size: 24px;
  text-align: center;
  -webkit-backface-visibility: hidden;
}

.bottom-right span.icon-link .icon,
.bottom-right a .icon {
  font-size: 16px;
  line-height: 38px;
}

.bottom-right span.icon-link .text,
.bottom-right a .text {
  background-color: #fff;
  display: none;
  width: 36px;
  height: 32px;
  line-height: 1;
  font-size: 13px;
  padding: 6px 2px 0 2px;
}

.bottom-right span.icon-link:hover,
.bottom-right a:hover {
  text-decoration: none;
}

.bottom-right span.icon-link:hover .icon,
.bottom-right a:hover .icon {
  display: none;
}

.bottom-right span.icon-link:hover .text,
.bottom-right a:hover .text {
  display: inline-block;
}

.site-footer {
  margin-top: 20px;
}

.footer-content {
  background-color: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  box-shadow: var(--np-shadow-sm);
  margin-bottom: 20px;
}

/* Bottom Content — a flat, full-bleed band. The legacy file had two
   conflicting h3 / button blocks fighting over font-size and radius; there is
   now exactly one rule per element. */
.bottom-content {
  background: #101827;
  border-radius: 0;
  color: #fff;
  margin-bottom: 0;
  padding: 46px 0;
  text-align: center;
}

.bottom-content h3 {
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0 0 24px;
}

.bottom-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.bottom-buttons a {
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 0;
  box-sizing: border-box;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  min-height: 44px;
  padding: 14px 24px;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.bottom-buttons a:first-child {
  background: #fff;
  border-color: #fff;
  color: #101827;
}

.bottom-buttons a:hover {
  background-color: rgba(255, 255, 255, .14);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.bottom-buttons a:first-child:hover {
  background: #e9eaec;
  border-color: #e9eaec;
  color: #101827;
}

.bottom-buttons a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Site Bottom */
#site-bottom {
  background-color: var(--np-surface);
  border-top: 1px solid var(--np-border);
  color: var(--np-muted);
  font-size: 13px;
  padding: 22px 20px;
  text-align: center;
}

#site-bottom .container {
  position: relative;
}

#site-bottom a {
  color: #999;
}

#site-bottom .footer-nav {
  margin: 0 0 10px 0;
}

#site-bottom .footer-nav li {
  display: inline-block;
  list-style: none;
  line-height: 1;
  margin: 0 16px 0 0;
}

#site-bottom .footer-nav li:last-child {
  border-right: none;
  padding-right: 0;
}

#site-bottom .footer-nav li a strong {
  display: none;
}

#site-bottom .footer-nav li li {
  display: none;
}

.friend {
  padding-bottom: 20px;
}

.friend .friend-title {
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  line-height: 1;
  margin-bottom: 10px;
  padding: 15px 20px 15px 34px;
  position: relative;
}

.friend .friend-title:before {
  border-radius: 1px;
  content: " ";
  display: block;
  width: 4px;
  height: 15px;
  position: absolute;
  top: 15px;
  left: 20px;
}

.friend .friend-title h3 {
  display: inline-block;
  font-weight: bold;
}

.friend .friend-desc {
  color: #aaa;
  font-size: 13px;
  margin-left: 10px;
}

.friend .friend-link {
  font-size: 13px;
  float: right;
}

.friend .friend-link a {
  color: #aaa;
}

.friend .friend-link a:hover {
  color: #333;
}

.friend-nav {
  padding: 0 5px 0 20px;
}

.friend-nav li {
  display: inline-block;
  list-style: none;
  line-height: 1;
  margin-right: 15px;
  font-size: 13px;
}

.friend-nav li a {
  color: #333;
}

.friend-nav li li {
  display: none;
}

/*--------------------------------------------------------------
9. Misc.
--------------------------------------------------------------*/
/* Ads */
.single-top-ad {
  line-height: 1;
  margin-bottom: 20px;
  text-align: center;
}

.single-top-ad .widget-title {
  display: none !important;
}

.single-top-ad img {
  line-height: 0.5;
}

.single-bottom-ad {
  line-height: 1;
  margin-top: 15px;
  text-align: center;
}

.single-bottom-ad .widget-title {
  display: none !important;
}

.single-bottom-ad img {
  line-height: 0.5;
}


.related-content .section-title,
.comment-reply-title,
.comments-title {
  padding-left: 12px;
  position: relative;
}

.related-content .section-title:before,
.comment-reply-title:before,
.comments-title:before {
  border-radius: 1px;
  content: " ";
  display: block;
  width: 4px;
  height: 14px;
  position: absolute;
  top: 5px;
  left: 0;
}

/* CSS3 Effects */
/* Responsive Menu */
.slicknav_menu,
#slick-mobile-menu {
  display: none;
}

#slick-mobile-menu {
  position: absolute;
  top: 0;
}

.full-width {
  float: none;
  width: 100% !important;
}

/* bxslider */
/** VARIABLES
===================================*/
/** RESET AND LAYOUT
===================================*/
.bx-wrapper {
  position: relative;
  padding: 0;
  *zoom: 1;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
}

.bx-wrapper img {
  max-width: 100%;
  display: block;
}

.bxslider {
  margin: 0;
  padding: 0;
}

ul.bxslider {
  list-style: none;
}

.bx-viewport {
  /*fix other elements on the page moving (on Chrome)*/
  -webkit-transform: translatez(0);
}

/** THEME
===================================*/
.bxslider {
  width: 100%;
  overflow: hidden;
}

.bxslider,
.bx-wrapper,
.bx-viewport,
.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
  margin: 0;
  padding: 0;
}

.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
  position: absolute;
  bottom: 0;
  right: 10px;
}

/* LOADER */
.bx-wrapper .bx-loading {
  min-height: 50px;
  background: url("assets/img/bx_loader.gif") center center no-repeat #ffffff;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2000;
}

/* PAGER */
.bx-wrapper .bx-pager {
  text-align: center;
  font-size: .85em;
  font-family: Arial;
  font-weight: bold;
  color: #666;
  height: 18px;
  line-height: 17px;
  position: absolute;
  right: 15px;
  bottom: 15px;
}

@-moz-document url-prefix() {
  .bx-wrapper .bx-pager {
    line-height: 16px;
  }
}

.bx-wrapper .bx-pager.bx-default-pager a {
  border: 1px solid #fff;
  background: transparent;
  text-indent: -9999px;
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 0 0 6px;
  outline: 0;
  border-radius: 50%;
  transition: all 0.2s;
}

/* Round seven (item 13): :focus removed from this group. A mouse click also
   sets :focus, which used to paint the same white fill as .active and made
   "focused" indistinguishable from "current slide". Keyboard focus is now
   carried by the :focus-visible ring in 10.19A; plain :focus has no fill. */
.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active {
  background-color: #fff;
}

.bx-wrapper .bx-pager-item,
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
  display: inline-block;
  vertical-align: middle;
  *zoom: 1;
  *display: inline;
}

.bx-wrapper .bx-pager-item {
  font-size: 0;
  line-height: 0;
}

/* DIRECTION CONTROLS (NEXT / PREV) */
.bx-wrapper .bx-prev {
  left: 0;
  background: rgba(0, 0, 0, 0.25) url("assets/img/arrow-left.png") no-repeat;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

.bx-wrapper .bx-next {
  right: 0;
  background: rgba(0, 0, 0, 0.25) url("assets/img/arrow-right.png") no-repeat;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.bx-wrapper:hover .bx-prev,
.bx-wrapper:hover .bx-next {
  visibility: visible;
}

.bx-wrapper .bx-prev,
.bx-wrapper .bx-next {
  background-size: 24px 24px;
  background-position: center center;
  visibility: hidden;
  opacity: 0.85;
}

.bx-wrapper .bx-prev:hover,
.bx-wrapper .bx-next:hover {
  opacity: 1;
}

.bx-wrapper .bx-controls-direction a {
  position: absolute;
  top: 50%;
  margin-top: -20px;
  outline: 0;
  width: 28px;
  height: 40px;
  text-indent: -9999px;
  z-index: 9;
}

.bx-wrapper .bx-controls-direction a.disabled {
  display: none;
}

.gradient {
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 60%;
  bottom: 0;
  left: 0;
  background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 3px;
}

.ribbon {
  position: absolute;
  left: -5px;
  top: -5px;
  z-index: 11;
  overflow: hidden;
  width: 75px;
  height: 75px;
  text-align: right;
  display: none;
}

.ribbon span {
  font-size: 12px;
  color: #FFF;
  text-transform: uppercase;
  text-align: center;
  line-height: 20px;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  width: 100px;
  display: block;
  background: #ffbe02;
  background: linear-gradient(#ffbe02 0%, #fbb034 100%);
  box-shadow: 0 3px 10px -5px black;
  position: absolute;
  top: 19px;
  left: -21px;
}

.ribbon span::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 100%;
  z-index: -1;
  border-left: 3px solid #fbb034;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #fbb034;
}

.ribbon span::after {
  content: "";
  position: absolute;
  right: 0px;
  top: 100%;
  z-index: -1;
  border-left: 3px solid transparent;
  border-right: 3px solid #fbb034;
  border-bottom: 3px solid transparent;
  border-top: 3px solid #fbb034;
}

#featured-slider {
  border-radius: var(--np-radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

#featured-slider.slider-with-grid {
  float: none;
  width: 100%;
}

#featured-slider .bxslider {
  line-height: 0.5;
}

#featured-slider .bxslider li {
  display: none;
}

#featured-slider .bxslider li:first-child {
  display: block;
}

#featured-slider .bx-wrapper,
#featured-slider .bxslider,
#featured-slider .thumbnail-link {
  border-radius: var(--np-radius-lg);
  height: 100%;
  overflow: hidden;
}

/* Round seven (item 4): `#featured-slider .entry-category` deleted. Neither
   content-featured.php nor content-featured2.php outputs an .entry-category
   inside the slider - the category chip lives in the list/grid templates
   only, so this absolute positioning never applied to anything. */

#featured-slider .featured-slide {
  position: relative;
}

/* No aspect-ratio here on purpose: the featured layout sets an explicit row
   height, and aspect-ratio would win over it and letterbox the image. */
#featured-slider .featured-slide img {
  display: block;
  height: auto;
  width: 100%;
}

#featured-slider .featured-slide .thumbnail-link {
  display: block;
}

#featured-slider .featured-slide .entry-header {
  background: linear-gradient(to top, rgba(8, 15, 26, .92), rgba(8, 15, 26, .55) 55%, rgba(8, 15, 26, 0));
  border-radius: 0 0 var(--np-radius-lg) var(--np-radius-lg);
  bottom: 0;
  box-sizing: border-box;
  display: block;
  left: 0;
  padding: 26px 0 12px;
  position: absolute;
  width: 100%;
  z-index: 99;
}

/* The legacy .gradient overlay duplicated the caption backdrop and made the
   text look printed twice. It is redundant with the header gradient now. */
.featured-grid-layout #featured-slider .gradient,
.featured-grid-layout #featured-grid .gradient {
  display: none;
}

#featured-slider .featured-slide .entry-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  padding: 0 70px 0 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#featured-slider .featured-slide .entry-title a {
  color: #fff;
  display: block;
}

#featured-slider .featured-slide .entry-title a:hover {
  text-decoration: none;
}

/* Round seven (item 4): the `#featured-slider .link-block` overlay rule was
   deleted here. No template, script or markup in this theme ever emits a
   .link-block element (only style.css and scss/style.scss mentioned it), so
   the rule matched nothing. It is also NOT the cause of the featured pager
   click problem - that is entry-header's z-index 99 inside the slide's
   z-index 50 stacking context (spec E.36, pending measurement). */

#featured-grid {
  float: none;
  margin-bottom: 0;
  position: relative;
  width: 100%;
}

#featured-grid ul li {
  list-style: none;
  margin-bottom: 10px;
  position: relative;
  line-height: 0.5;
}

#featured-grid ul li:last-child {
  margin-bottom: 0;
}

#featured-grid .thumbnail-link {
  line-height: 0.5;
  display: block;
}

#featured-grid .thumbnail-link img {
  aspect-ratio: 380 / 220;
  border-radius: var(--np-radius);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

#featured-grid .entry-header {
  background: linear-gradient(to top, rgba(8, 15, 26, .9), rgba(8, 15, 26, 0));
  border-radius: 0 0 var(--np-radius-lg) var(--np-radius-lg);
  bottom: 0;
  box-sizing: border-box;
  display: block;
  height: 44px;
  left: 0;
  padding: 0 10px;
  position: absolute;
  width: 100%;
  z-index: 9;
}

#featured-grid .entry-title {
  bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  left: 10px;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  position: absolute;
  right: 10px;
  white-space: nowrap;
}

/* The ellipsis must live on the anchor: the <h2> only clips, the <a> is what
   actually shortens the text. */
#featured-grid .entry-title a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


#featured-grid .entry-title a {
  color: #fff;
}

#featured-grid .entry-title a:hover {
  text-decoration: none;
}

.home-zhuanti-section {
  background-color: var(--np-surface);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  box-shadow: var(--np-shadow-sm);
  margin-bottom: 18px;
  overflow: hidden;
}

/* The section wraps the cards tightly: no stray margin from the grid's last
   row leaking into the card container. */
.home-zhuanti-section .home-zhuanti-list {
  margin: 0;
}

.zhuanti-heading {
  background-color: var(--np-surface);
  border-bottom: 1px solid var(--np-border);
  padding: 0 16px;
}

/* Keep the title, description and "more" link on one line. */
.zhuanti-heading .custom-wrap {
  align-items: center;
  display: flex;
  gap: 12px;
  height: 52px;
  line-height: 52px;
  min-width: 0;
}

.zhuanti-heading .custom-wrap .desc {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zhuanti-heading h2 {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 600;
  gap: 8px;
  letter-spacing: -0.01em;
  position: static;
  white-space: nowrap;
}

.zhuanti-heading h2:before {
  background-color: var(--np-primary);
  border-radius: 2px;
  content: "";
  display: inline-block;
  height: 16px;
  width: 3px;
}

.zhuanti-heading .desc {
  color: var(--np-muted);
  display: inline-block;
  font-size: 13px;
  margin-left: 10px;
}

.zhuanti-heading .section-more {
  margin-left: auto;
}

.zhuanti-heading .section-more a {
  color: var(--np-muted);
  font-size: 13px;
}

.zhuanti-heading .section-more a:hover {
  color: var(--np-primary);
}

/* Card = image only. The title is an overlay on the image instead of a block
   underneath, so no vertical padding is spent on an empty caption strip.
   Previously the card carried 14px/10px of padding plus a separate title line,
   which shrank the thumbnail and left large blank margins. */
.home-zhuanti-list .zhuanti-list-item {
  box-sizing: border-box;
  border-radius: var(--np-radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: center;
}

.home-zhuanti-list .thumbnail-link {
  align-self: flex-start;
  display: flex;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  width: 100%;
}

.home-zhuanti-list .thumbnail-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--np-radius-lg);
  overflow: hidden;
  width: 100%;
}

/* 16:9 keeps the card in step with the featured slider and post thumbnails.
   The ratio lives on the wrapper, and the image fills it: putting height:100%
   on the image let the card height win and produced a 1.64 ratio instead. */
.home-zhuanti-list .thumbnail-wrap img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  width: 100%;
}

.home-zhuanti-list .zhuanti-list-item:hover .thumbnail-wrap img {
  transform: scale(1.06);
}

/* Title sits on top of the image with a soft scrim for legibility. */
.home-zhuanti-list h3.zhuanti-title {
  background: linear-gradient(to top, rgba(8, 15, 26, .88), rgba(8, 15, 26, .4) 62%, rgba(8, 15, 26, 0));
  bottom: 0;
  box-sizing: border-box;
  font-size: 14px !important;
  font-weight: 600;
  left: 0;
  line-height: 1.35 !important;
  margin: 0;
  padding: 22px 10px 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  text-align: left;
}

.home-zhuanti-list h3.zhuanti-title a {
  color: #fff;
  display: block;
  overflow: hidden;
  pointer-events: auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-zhuanti-list .desc {
  color: #999;
  font-size: 14px;
  margin-left: 10px;
}

/* Slick Nav */
.slicknav_btn {
  position: relative;
  display: block;
  vertical-align: middle;
  float: right;
  cursor: pointer;
}

.slicknav_btn .slicknav_icon-bar + .slicknav_icon-bar {
  margin-top: 0.188em;
}

.slicknav_menu {
  *zoom: 1;
}

.slicknav_menu .slicknav_menutxt {
  display: block;
  line-height: 26px;
  float: right;
}

.slicknav_menu .slicknav_icon {
  display: none;
  float: left;
  width: 1.125em;
  height: 0.875em;
  margin: 0.188em 8px 0 0;
}

.slicknav_menu .slicknav_icon:before {
  background: transparent;
  width: 1.125em;
  height: 0.875em;
  display: block;
  content: "";
  position: absolute;
}

.slicknav_menu .slicknav_no-text {
  margin: 0;
}

.slicknav_menu .slicknav_icon-bar {
  display: block;
  width: 1.125em;
  height: 0.125em;
  -webkit-border-radius: 1px;
  -moz-border-radius: 1px;
  border-radius: 1px;
}

.slicknav_menu:before {
  content: " ";
  display: table;
}

.slicknav_menu:after {
  content: " ";
  display: table;
  clear: both;
}

.slicknav_nav {
  clear: both;
}

.slicknav_nav ul, .slicknav_nav li {
  display: block;
}

.slicknav_nav .slicknav_arrow {
  font-size: 0.8em;
  color: #333;
  margin: 0 20px 0 0.4em;
  float: right;
}

.slicknav_nav .slicknav_item {
  cursor: pointer;
}

.slicknav_nav .slicknav_item a {
  display: inline;
}

.slicknav_nav .slicknav_row, .slicknav_nav a {
  display: block;
}

.slicknav_nav .slicknav_parent-link a {
  display: inline;
}

.slicknav_brand {
  float: left;
}

.slicknav_menu {
  font-size: 16px;
  box-sizing: border-box;
}

.slicknav_menu * {
  box-sizing: border-box;
}

.slicknav_menu .slicknav_menutxt {
  color: #fff;
  font-size: 14px;
}

.slicknav_menu .slicknav_menutxt:hover {
  color: #fff;
}

.slicknav_menu .slicknav_icon-bar {
  background-color: #333;
}

.slicknav_btn {
  height: 26px;
  margin: 25px 70px 24px 0;
  text-decoration: none;
  background-color: #ffbe02;
  color: #fff;
  padding: 0 7px;
}

.slicknav_nav {
  background: #fff;
  border-top: 2px solid;
  margin: 0;
  padding: 0;
  font-size: 0.875em;
  list-style: none;
  overflow: hidden;
  position: relative;
  z-index: 999;
}

.slicknav_nav .sub-menu {
  text-indent: 20px;
}

.slicknav_nav .sub-menu .sub-menu {
  text-indent: 40px;
}

.slicknav_nav ul {
  list-style: none;
  overflow: hidden;
  padding: 0;
  margin: 0 0 0 0;
}

.slicknav_nav .slicknav_row {
  padding: 0;
  margin: 0;
}

.slicknav_nav a {
  padding: 0 0 0 20px;
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
  text-decoration: none;
  color: #333;
  height: 42px;
  line-height: 42px;
  font-size: 14px;
  text-align: left;
  text-transform: uppercase;
  -webkit-backface-visibility: hidden;
}

.slicknav_nav a:hover {
  background-color: #f6f6f6;
}

.slicknav_nav a .fa {
  padding-right: 3px;
}

.slicknav_nav .slicknav_txtnode {
  margin-left: 15px;
}

.slicknav_nav .slicknav_item a {
  padding: 0 0 0 20px;
  margin: 0;
  border-bottom: none;
}

.slicknav_nav .slicknav_parent-link a {
  padding: 0;
  margin: 0;
}

.slicknav_brand {
  color: #fff;
  font-size: 18px;
  line-height: 30px;
  padding: 7px 12px;
  height: 44px;
}

.slicknav_menu {
  display: block;
  text-align: center;
  width: 100%;
  line-height: 60px;
  transition: all .1s ease;
  -webkit-transition: all .1s ease;
  -o-transition: all .1s ease;
  -ms-transition: all .1s ease;
  -moz-transition: all .1s ease;
}

.slicknav_btn {
  display: inline-block;
}

#slick-mobile-menu {
  width: 100%;
}

/* Theme fonts and colors */
body,
input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
button,
.btn,
input[type="submit"],
input[type="reset"],
input[type="button"],
textarea,
table,
label,
.sidebar .widget_ad .widget-title,
.site-footer .widget_ad .widget-title {
  font-family: Arial,"PingFang SC","Microsoft YaHei","PingFang SC",sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Arial,"PingFang SC","Microsoft YaHei","PingFang SC",sans-serif;
}

/* Horizontal overflow guard.
   Phone layouts broke sideways whenever one descendant exceeded the viewport
   (the mobile-nav helper span, long URLs, wide tables). Clamping the page box
   keeps every section visually aligned to the screen edge. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Grid System */
.ht_grid_1_2 {
  float: left;
  width: 48.5%;
  margin-right: 3%;
}

.ht_grid_1_2:nth-of-type(2n) {
  margin-right: 0;
}

.ht_grid_1_2:nth-of-type(2n+1) {
  clear: left;
}

.ht_grid_1_2:nth-of-type(2n+0) {
  margin-right: 0;
  clear: right;
}

.ht_grid_1_3 {
  float: left;
  margin-right: 2%;
  width: 32%;
}

.ht_grid_1_3:nth-of-type(3n+0) {
  margin-right: 0;
  clear: right;
}

.ht_grid_1_3:nth-of-type(3n+1) {
  clear: left;
}

.ht_grid_1_4 {
  float: left;
  margin-right: 2%;
  width: 23.5%;
}

.ht_grid_1_4:nth-of-type(4n+0) {
  margin-right: 0;
  clear: right;
}

.ht_grid_1_4:nth-of-type(4n+1) {
  clear: left;
}

/* Category cards.
   The section used to spend padding twice (18px list padding + 18px gaps +
   14px/10px per card) which left the thumbnails small and the block airy.
   A tight grid with a single gap source gives the images noticeably more room. */
/* Symmetric padding: the list is the last block in the section, so any extra
   bottom padding shows up as a visible empty strip under the cards. */
.home-zhuanti-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px;
}

/* Grid children: the legacy float grid classes are neutralised here with
   !important because two older declarations (float + margin-right and the
   nth-of-type clears) still target the same markup and made the fourth card
   shift left. */
.home-zhuanti-list .ht_custom_grid_1_4,
.home-zhuanti-list .zhuanti-list-item {
  clear: none !important;
  float: none !important;
  grid-column: auto / span 1;
  margin: 0 !important;
  max-width: none;
  min-width: 0;
  width: auto !important;
}

/* The grid container must not inherit the old clearfix pseudo-elements: the
   list also carries a .clear class whose ::before/::after became extra grid
   items and pushed the fourth card onto a new row. */
.home-zhuanti-list:before,
.home-zhuanti-list:after {
  display: none !important;
}

@media (max-width: 959px) {
  /* Four categories stay on one row even on a phone: it reads as a category
     index, and two-by-two made each card far too dominant. */
  .home-zhuanti-list {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px;
  }
}

@media (max-width: 479px) {
  .home-zhuanti-list {
    gap: 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px;
  }

  /* Tiny tiles: the caption must shrink with them or it overflows. */
  .home-zhuanti-list h3.zhuanti-title {
    font-size: 11px !important;
    padding: 14px 5px 5px;
  }
}

.ht_fixed_grid_1_4 {
  float: left;
  margin-right: 2%;
  width: 23.5%;
}

.ht_fixed_grid_1_4:nth-of-type(4n+0) {
  margin-right: 0;
  clear: right;
}

.ht_fixed_grid_1_4:nth-of-type(4n+1) {
  clear: left;
}

/* Responsive Grid */
@media only screen and (max-width: 959px) {
  .ht_grid_1_4 {
    width: 49%;
    margin-bottom: 20px;
  }
  .ht_grid_1_4:nth-of-type(2n+0) {
    margin-right: 0;
    clear: right;
  }
  .ht_grid_1_4:nth-of-type(2n+1) {
    clear: left;
  }
}

@media only screen and (max-width: 600px) {
  .ht_grid_1_4 {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
  .ht_custom_grid_1_4 {
    width: 49%;
    margin-bottom: 15px;
  }
  .ht_custom_grid_1_4:nth-of-type(2n+0) {
    margin-right: 0;
    clear: right;
  }
  .ht_custom_grid_1_4:nth-of-type(2n+1) {
    clear: left;
  }
}

@media only screen and (max-width: 480px) {
  .ht_grid_1_3,
  .ht_grid_1_2 {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.ht_grid_1_2_custom {
  float: left;
  width: 49%;
  margin-right: 2%;
}

.ht_grid_1_2_custom:nth-of-type(2n) {
  margin-right: 0;
}

.ht_grid_1_2_custom:nth-of-type(2n+1) {
  clear: left;
}

.ht_grid_1_2_custom:nth-of-type(2n+0) {
  margin-right: 0;
  clear: right;
}

.ht_grid_1_2_custom img {
  width: 100%;
}

/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 100px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: black;
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  z-index: 1000;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  border-radius: 4px;
  border: 1px solid #888;
  font-size: 14px;
  width: 400px;
  padding: 25px 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s;
  /* A legacy paste accident appended " img" to animation-duration and turned
     the following img declarations into bogus "animation-duration-*" props.
     All of those were inert (invalid value / unknown properties), so the
     computed style was already animation-duration:0.4s with the base 400px /
     4px-radius / 1px-#888 modal. Removed the dead lines only; every effective
     value is unchanged, so the E.7 narrow-screen modal parity (290px at ≤479)
     is unaffected. The QR imgs are sized by .ht_grid_1_2_custom img{width:100%}. */
}

.modal-content h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 10px;
}

/* Add Animation */
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 8px;
  right: 10px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Tooltip */
.tooltip {
  display: inline-block;
  position: relative;
  text-align: left;
  line-height: 1.7;
}

.left-space {
  min-width: 210px;
  position: relative;
  position: absolute;
  top: 50%;
  right: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s;
}

.tooltip .left {
  min-width: 200px;
  margin-right: 11px;
  transform: translate(0, -50%);
  padding: 10px;
  color: #444444;
  background-color: #fff;
  font-weight: normal;
  font-size: 13px;
  border-radius: 4px;
  z-index: 99999999;
  box-sizing: border-box;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.tooltip .left h3 {
  color: #333;
  font-weight: normal;
}

.tooltip:hover .left-space {
  visibility: visible;
  opacity: 1;
}

.tooltip .left i {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -12px;
  width: 12px;
  height: 24px;
  overflow: hidden;
}

.tooltip .left i::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  background-color: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.contact-info h3 {
  font-size: 16px;
  text-align: center;
  margin-bottom: 1px;
}

.contact-info strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
  text-align: center;
}

.contact-info p {
  margin-bottom: 6px;
}

.contact-info img {
  vertical-align: middle;
}

.icon-weixin h3 {
  text-align: center;
}

/* Zhuanti */
.zhuanti-block {
  margin-bottom: 40px;
}

.zhuanti-block a {
  text-decoration: none;
}

.zhuanti-block .zhuanti-title {
  margin: 0 0 12px 0;
}

.zhuanti-block .zhuanti-title a {
  color: #333;
}

.zhuanti-block .zhuanti-desc {
  color: #999;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.zhuanti-block .thumbnail-link {
  display: block;
  margin-bottom: 18px;
}

.zhuanti-block img {
  margin: 0;
}

.zhuanti-block ul {
  margin-bottom: 0;
}

.zhuanti-block ul li {
  margin-bottom: 5px;
  padding-left: 14px;
  max-height: 27px;
  overflow: hidden;
}

.zhuanti-block ul li a {
  color: #333;
}

/* Mini Page */
.mini-page {
  background-color: #fff;
  border-radius: 4px;
  width: 540px;
  margin: 30px auto;
  padding: 20px 30px 30px 30px;
}

.mini-page h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.mini-page h4 a:hover {
  color: #00aeff;
}

.mini-page ul {
  margin-bottom: 20px;
}

.mini-page ul li {
  color: #999;
  list-style: none;
  max-height: 25px;
  margin-bottom: 5px;
  overflow: hidden;
  position: relative;
  padding-left: 14px;
  padding-right: 50px;
}

.mini-page ul li:before {
  border-radius: 50%;
  background-color: #ccc;
  content: " ";
  display: inline-block;
  width: 5px;
  height: 5px;
  position: absolute;
  left: 0;
  top: 10px;
}

.mini-page ul li:after {
  content: " ";
  clear: both;
  display: block;
}

.mini-page ul li a {
  color: #666;
}

.mini-page ul li a:hover {
  color: #00aeff;
}

.mini-page ul li em {
  color: #aaa;
  font-size: 13px;
  font-style: normal;
  position: absolute;
  top: 0;
  right: 0;
}

.mini-header {
  border-bottom: 1px solid #e9e9e9;
  margin-bottom: 20px;
  padding: 0 0 10px 0;
}

.mini-branding {
  text-align: center;
}

.mini-branding .site-title {
  float: none;
}

.mini-branding .site-title a {
  color: #00aeff;
}

.mini-branding img {
  width: auto;
  max-height: 60px;
}

.mini-branding h1 {
  font-size: 26px;
}

.mini-footer {
  border-top: 1px solid #e9e9e9;
  color: #999;
  font-size: 13px;
  padding-top: 15px;
  text-align: center;
}

.mini-footer a {
  color: #999;
}

.mini-footer a:hover {
  color: #333;
}

/* User Submitted Post */
.parsley-error {
  border: 1px solid #ff3333 !important;
}

div#user-submitted-posts ul.parsley-errors-list.filled {
  display: none !important;
}

#user-submitted-content {
  min-height: 400px;
}

/* Menu Colors */
.color1 .fa {
  color: #ff4c4c;
}

.color2 .fa {
  color: #00aeff;
}

.color3 .fa {
  color: #ffbe02;
}

.color4 .fa {
  color: #7ac143;
}

.color5 .fa {
  color: #fd5c63;
}

.color6 .fa {
  color: #cf8d2e;
}

.color7 .fa {
  color: #f47721;
}

.color8 .fa {
  color: #da1884;
}

.color9 .fa {
  color: #0077c8;
}

.color10 .fa {
  color: #ff4f81;
}

.color11 .fa {
  color: #8e43e7;
}

.color12 .fa {
  color: #b84592;
}

.color13 .fa {
  color: #ff4f81;
}

.color14 .fa {
  color: #db3552;
}

.color15 .fa {
  color: #a0ac48;
}

.color16 .fa {
  color: #f66733;
}

.color17 .fa {
  color: #cd595a;
}

.color18 .fa {
  color: #0085c3;
}

.color19 .fa {
  color: #14d4f4;
}

.color20 .fa {
  color: #7b868a;
}

/*--------------------------------------------------------------
# Overflow safety net
--------------------------------------------------------------
Long code lines, wide tables, unbroken URLs and oversized media used to
push the article container wider than the viewport. Every content block is
now constrained to the column and scrolls internally instead.
*/
.site-content,
.site-main,
.entry-content,
.entry-body,
.comment-content,
.page-content {
  min-width: 0;
  max-width: 100%;
}

.entry-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/* Code blocks: horizontal scroll stays inside the column. */
.entry-content pre {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.entry-content pre code {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: normal;
  white-space: pre;
  width: 100%;
  word-break: normal;
}

/* Respect the column width even when the shell command is very long. */
.entry-content pre,
.entry-content pre code {
  box-sizing: border-box;
}

/* Inline code must break instead of forcing a wide column. */
.entry-content :not(pre) > code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Fixed table layout keeps wide tables inside the column: cells wrap
   instead of forcing the article wider than the viewport. */
.entry-content table {
  max-width: 100%;
  table-layout: fixed;
  width: 100% !important;
}

.entry-content table th,
.entry-content table td {
  overflow-wrap: break-word;
  white-space: normal;
  word-break: break-word;
}

/* Media and embeds never exceed the reading column. */
.entry-content img,
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.entry-content svg,
.entry-content .wp-block-embed,
.entry-content .nova-video {
  height: auto;
  max-width: 100%;
}

.entry-content .nova-video iframe {
  max-width: 100%;
  width: 100%;
}

/* Long unbroken strings (URLs, hashes) wrap inside titles and meta too. */
.entry-title,
.entry-title a,
.entry-summary,
.entry-meta,
.widget,
.widget a,
.breadcrumbs,
.comment-author,
#site-bottom {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Long menu labels should not break the header layout. */
.sf-menu li a,
#top-menu li a {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Mobile: allow wide blocks to use the full width without clipping. */
@media (max-width: 767px) {
  .entry-content table th,
  .entry-content table td {
    min-width: 80px;
    padding: 9px 10px;
  }

  .entry-content pre {
    border-radius: var(--np-radius);
    font-size: max(12px, calc(var(--np-code-font-size, 13px) - 1px));
    padding: 14px;
  }
}

/*--------------------------------------------------------------
# Layout: content + sidebar
--------------------------------------------------------------
The original floats (800px + 360px) overflowed between 783px and 1179px
once the sidebar could no longer sit beside the content. Flex handles the
available width automatically, and only the gap needs tuning.
*/
@media (min-width: 960px) {
  .site-content.site_container {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: flex-start;
  }

  /* #content carries the legacy .clear class. Its clearfix pseudo-elements
     became extra flex items and inset the main column by 20px on each side,
     so the article + sidebar group never lined up with the header / friend
     links card. */
  .site-content.site_container::before,
  .site-content.site_container::after {
    display: none;
  }

  .site-content.site_container > #primary {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .site-content.site_container > #secondary,
  .site-content.site_container > .sidebar {
    float: none;
    flex: 0 0 320px;
    margin: 0;
    max-width: 320px;
    min-width: 0;
    width: 320px;
  }
}

/*--------------------------------------------------------------
# Featured area: slider + thumbnail grid
--------------------------------------------------------------
Previously the slider was a float sized by the image ratio while the grid
was an independent float sized by its own three rows, so the two columns
never ended at the same baseline. A CSS grid now owns the geometry:
- left column 3fr, right column 1fr, 12px gutter
- both columns share one row, so they are exactly the same height
- each grid thumbnail takes 1fr of that height and crops to fill
*/
.featured-grid-layout {
  /* Every image in this section is 16:9. For the two columns to end at the
     same baseline while both keep 16:9, the widths cannot simply be 3:1.

       left  : H = 9L/16
       right : H = 3 * (9R/16) + 2g      (three stacked tiles + two gaps)
       equal : 9L/16 = 27R/16 + 2g  =>  L = 3R + 32g/9
       total : L + R + g = W         =>  R = (W - 41g/9) / 4

     So the right column is solved from the container width and the gap.

     Round 7 generalises this to n tiles:
       right : H = n * (9R/16) + (n-1)g
       equal : 9L/16 = 9nR/16 + (n-1)g  =>  L = nR + 16(n-1)g/9
       total : L + R + g = W            =>  R = (W - g(16n-7)/9) / (n+1)
     n comes from --np-featured-grid-count (inline, featured-grid-num mod);
     n=3 reproduces the historic (W - 41g/9)/4 exactly. */
  --np-featured-gap: 10px;
  display: grid;
  gap: var(--np-featured-gap);
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, calc((100% - var(--np-featured-gap) * (16 * var(--np-featured-grid-count, 3) - 7) / 9) / (var(--np-featured-grid-count, 3) + 1)));
  margin-bottom: 16px;
  position: relative;
}

/* Solo slider mode (choice-1) reuses every slider part of this layout with a
   single full-width column; the ratio is driven by --np-featured-ratio
   (featured-solo-ratio mod, 16/9 default). */
.featured-grid-layout.featured-layout-solo {
  grid-template-columns: minmax(0, 1fr);
}

.featured-grid-layout.featured-layout-solo > #featured-slider {
  aspect-ratio: var(--np-featured-ratio, 16 / 9);
  height: auto; /* 释放桌面 height:100%，让比例从宽度推高度（v1.2 缺口 1） */
}

/* Slides without a featured image: neutral surface + centered picture icon,
   same fill/crop chain as a real thumbnail. */
.featured-grid-layout .bxslider > li .featured-placeholder {
  align-items: center;
  background-color: var(--np-surface-2);
  color: var(--np-muted);
  display: flex;
  font-size: 34px;
  height: 100%;
  justify-content: center;
  inset: 0;
  position: absolute;
  width: 100%;
}

/* Left slide: 16:9 box. */
.featured-grid-layout > #featured-slider {
  aspect-ratio: 16 / 9;
}

/* Right column: 3 stacked 16:9 tiles + gaps must equal the left height,
   so the column width is (leftHeight - 2*gap) / 3 / (9/16). */
.featured-grid-layout > #featured-grid {
  aspect-ratio: auto;
}

.featured-grid-layout > #featured-slider,
.featured-grid-layout > #featured-slider.slider-with-grid {
  align-self: stretch;
  float: none;
  height: 100%;
  margin-bottom: 0;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.featured-grid-layout > #featured-grid {
  align-self: stretch;
  float: none;
  height: 100%;
  margin-bottom: 0;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

/* Slider internals fill the row height; the image crops rather than scales. */
.featured-grid-layout .bx-wrapper,
.featured-grid-layout .bx-viewport,
.featured-grid-layout .bxslider,
.featured-grid-layout .bxslider > li,
.featured-grid-layout .bxslider > li > .thumbnail-link,
.featured-grid-layout .bxslider > li > .thumbnail-link .thumbnail-wrap {
  height: 100%;
  min-height: 0;
}

/* Absolute fill: bxSlider injects inline sizing on the viewport, so the image
   is pinned to the cell instead of relying on the ancestor height chain. */
.featured-grid-layout .bxslider > li {
  position: relative;
}

.featured-grid-layout .bxslider > li > .thumbnail-link {
  display: block;
  inset: 0;
  position: absolute;
}

.featured-grid-layout .bxslider > li > .thumbnail-link .thumbnail-wrap {
  border-radius: var(--np-radius-lg);
  bottom: 0;
  display: block;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

/* The thumbnail link is the element that must own the full cell height,
   otherwise the image stops at its intrinsic ratio and leaves a grey gap. */
.featured-grid-layout .bxslider > li > .thumbnail-link {
  height: 100%;
}

.featured-grid-layout #featured-slider .featured-slide .bxslider > li img,
.featured-grid-layout .bxslider > li img {
  display: block;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
  position: absolute;
  inset: 0;
  width: 100% !important;
}

/* Three thumbnails share the right column height equally. */
.featured-grid-layout #featured-grid,
.featured-grid-layout #featured-grid > ul,
.featured-grid-layout #featured-grid > .featured-grid-list {
  height: 100%;
}

/* The right column is stretched to the big slide's height and split into
   n equal rows (--np-featured-grid-count), so the bottom edges align at every
   width even if the solved column width is a fraction off. */
.featured-grid-layout #featured-grid > ul,
.featured-grid-layout #featured-grid > .featured-grid-list {
  display: grid;
  gap: var(--np-featured-gap);
  grid-template-rows: repeat(var(--np-featured-grid-count, 3), minmax(0, 1fr));
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Tiles fill their row instead of deriving a height from their own ratio. */
.featured-grid-layout #featured-grid ul li,
.featured-grid-layout #featured-grid .thumbnail-link,
.featured-grid-layout #featured-grid .thumbnail-wrap {
  aspect-ratio: auto;
  height: 100%;
  width: 100%;
}

/* margin is reset here: the grid gap already provides the spacing, otherwise
   the legacy 10px margin adds up to a double gap. */
.featured-grid-layout #featured-grid ul li {
  border-radius: var(--np-radius-lg);
  float: none;
  line-height: 0;
  margin: 0 !important;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.featured-grid-layout #featured-grid .thumbnail-link,
.featured-grid-layout #featured-grid .thumbnail-wrap {
  border-radius: var(--np-radius-lg);
  display: block;
  height: 100%;
  overflow: hidden;
  width: 100%;
}

.featured-grid-layout #featured-grid .thumbnail-wrap {
  position: relative;
}

/* Grid thumbnails fill whatever height the grid row gives them. */
.featured-grid-layout #featured-grid .thumbnail-link img,
.featured-grid-layout #featured-grid .featured-placeholder {
  border-radius: var(--np-radius-lg);
  display: block;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  width: 100%;
}

.featured-grid-layout #featured-grid .thumbnail-link {
  border-radius: var(--np-radius-lg);
  overflow: hidden;
}

/* Narrow screens: one big slide + a row of three thumbnails. The gap is owned
   solely by the grid, so the legacy responsive.css margins can never open a
   large empty band between the slide and the three tiles. */
@media (max-width: 959px) {
  .featured-grid-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-grid-layout > #featured-slider,
  .featured-grid-layout > #featured-slider.slider-with-grid,
  .featured-grid-layout > #featured-grid {
    margin: 0 !important;
  }

  /* The big slide is the only height anchor; percentage heights on the two
     columns are released so nothing can resolve against an indefinite size. */
  .featured-grid-layout > #featured-slider,
  .featured-grid-layout > #featured-slider.slider-with-grid {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  /* Solo keeps its customizer ratio on phones too (outranks the 16/9 above). */
  .featured-grid-layout.featured-layout-solo > #featured-slider {
    aspect-ratio: var(--np-featured-ratio, 16 / 9);
  }

  .featured-grid-layout > #featured-grid {
    height: auto;
  }

  .featured-grid-layout #featured-grid ul {
    grid-auto-rows: auto;
    grid-template-columns: repeat(min(var(--np-featured-grid-count, 3), 3), minmax(0, 1fr));
    grid-template-rows: none;
  }

  .featured-grid-layout #featured-grid ul li,
  .featured-grid-layout #featured-grid .thumbnail-link,
  .featured-grid-layout #featured-grid .thumbnail-wrap {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  /* Four corners of every small tile share the same radius, including the
     bottom pair where the caption overlay sits. */
  .featured-grid-layout #featured-grid ul li,
  .featured-grid-layout #featured-grid .thumbnail-link,
  .featured-grid-layout #featured-grid .thumbnail-wrap,
  .featured-grid-layout #featured-grid .entry-header {
    border-radius: var(--np-radius-lg);
  }

  /* Narrow tiles: keep a compact one-line caption and shrink the type a touch
     so the three tiles never look like a caption dump. */
  .featured-grid-layout #featured-grid .entry-header {
    height: 30px;
    min-height: 0;
    padding: 0 7px;
  }

  .featured-grid-layout #featured-grid .entry-title {
    bottom: 5px;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .featured-grid-layout #featured-grid .entry-title a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/*--------------------------------------------------------------
# Single post: category row, author meta and post navigation
--------------------------------------------------------------
These elements are driven by customizer switches (single-category-on,
single-author-avatar-on, single-nav-on). The markup existed but the styling
was either inline-only or missing entirely, so they are finished here using
the shared design tokens.
*/
/* Category chips live inside the meta flex row. Anywhere from one to four
   categories can be attached to a post and a name may run 3-6 characters, so
   the group is itself a wrapping flex track: chips keep their natural width,
   never shrink below their text, and drop to a second line when the row runs
   out of space (phones usually fit one, sometimes two). */
.single #primary .entry-category-single {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 0;
  max-width: 100%;
  vertical-align: middle;
}

.single #primary .entry-category-single a {
  background-color: var(--np-surface-2);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-pill, 999px);
  color: var(--np-body);
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 10px;
  text-decoration: none;
  text-overflow: ellipsis;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.single #primary .entry-category-single a:hover {
  background-color: var(--np-primary);
  border-color: var(--np-primary);
  color: var(--np-on-primary, #fff);
}

/* Small avatar inline with the author name. */
.single #primary .entry-author {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.single #primary .entry-author .author-avatar {
  display: inline-flex;
  line-height: 0;
}

.single #primary .entry-author .author-avatar img {
  border-radius: 50%;
  display: block;
  height: 22px;
  width: 22px;
}

/* Previous / next links. */
.post-navigation {
  border-top: 1px solid var(--np-border);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  padding-top: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}

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

.post-navigation .nav-label {
  color: var(--np-muted);
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.post-navigation a {
  color: var(--np-heading);
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-navigation a:hover {
  color: var(--np-primary);
}

.post-navigation .nav-previous a:before {
  content: "← ";
  color: var(--np-muted);
}

.post-navigation .nav-next a:after {
  content: " →";
  color: var(--np-muted);
}

@media (max-width: 767px) {
  /* The description stays visible and is clipped by the flex row, so its
     length adapts to the viewport instead of being switched off. */
  .zhuanti-heading .custom-wrap .desc {
    display: block;
  }

  .zhuanti-heading h2 {
    font-size: 16px;
  }

  .post-navigation {
    grid-template-columns: minmax(0, 1fr);
  }

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

/*==============================================================
  10. Editorial refresh + responsive fixes
  --------------------------------------------------------------
  This block is deliberately last in style.css. responsive.css is
  enqueued AFTER style.css, and header.php prints an inline <style>
  after wp_head(). Therefore every rule here that has to win across
  files uses a `body`-prefixed selector (plus !important when the
  legacy rule also used it). No content blocks are added or removed.
==============================================================*/
:root {
  --np-ink: #101827;
  --np-line: var(--np-border);
}

/* 10.1 Remove the decorative blue bars that prefixed every heading. */
body .recent-heading h2.section-title:before,
body .zhuanti-heading h2:before,
body .friend .friend-title:before,
body .footer-partners .partner-title:before,
body .sidebar .widget .widget-title:before,
body .related-content .section-title:before,
body .comment-reply-title:before,
body .comments-title:before {
  display: none;
}

body .friend .friend-title,
body .footer-partners .partner-title {
  padding-left: 20px;
}

body .recent-heading h2.section-title,
body .zhuanti-heading h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body .zhuanti-heading h2 {
  gap: 0;
}

/* 10.2 One hairline, no shadow, one radius source for every card. */
body .site-main,
body .home-zhuanti-section,
body .footer-content {
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius-lg);
  box-shadow: none;
  overflow: hidden;
}

body #site-bottom {
  background-color: var(--np-page);
  border-top: 0;
}

/* Focus is an outline, never a shadow: --np-shadow* is zeroed site-wide. */
body a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body select:focus-visible,
body textarea:focus-visible,
body [tabindex]:focus-visible {
  outline: 2px solid var(--np-primary);
  outline-offset: 2px;
}

body .bottom-content a:focus-visible {
  outline-color: #fff;
}

body .bottom-content a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* 10.3 Navigation is white with a hairline at every breakpoint, matching
   the desktop nav. The inline header.php rule and responsive.css both force
   a coloured bar / white text on small screens, hence the !important. */
@media (max-width: 959px) {
  body #primary-menu {
    background-color: var(--np-surface) !important;
    border-bottom: 1px solid var(--np-line);
    border-radius: 0 !important;
    margin-right: 0 !important;
    padding: 8px 0;
  }

  body .sf-menu li a,
  body .sf-menu li a:hover {
    color: var(--np-heading) !important;
  }

  body .sf-menu li a:hover {
    color: var(--np-primary-text, #2563eb) !important;
  }

  /* The sticky header is desktop-only. A stale .main-nav-scrolled class
     would otherwise pin the header below the viewport top on a phone and
     expose the scrolled page above it. */
  body .site-header,
  body .site-header.main-nav-scrolled {
    position: static !important;
    top: auto !important;
    box-shadow: none !important;
  }

  body .header-space {
    display: none !important;
    height: 0 !important;
  }
}

/* Current-item marker applies at every breakpoint; the mobile block above
   used to be its only home, leaving desktop without any indication. */
body .sf-menu li.current-menu-item > a,
body .sf-menu li.current_page_item > a {
  color: var(--np-heading) !important;
  text-decoration: underline;
  text-decoration-color: var(--np-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* 10.4 The article list and its "all content loaded" strip are one surface. */
body .content-list {
  margin-bottom: 0;
}

body .content-list .hentry:last-child {
  border-bottom: 0 !important;
}

body .scroller-status {
  font-size: 13px;
  margin: 0;
  position: static;
  text-align: center;
  top: auto;
}

body .scroller-status .infinite-scroll-request,
body .scroller-status .infinite-scroll-last,
body .scroller-status .infinite-scroll-error {
  background-color: transparent;
  border: 0;
  border-top: 1px solid var(--np-line);
  border-radius: 0;
  color: var(--np-muted);
  margin: 0;
  padding: 15px 0;
}

body .pagination {
  background-color: transparent;
  border: 0;
  border-top: 1px solid var(--np-line);
  border-radius: 0 !important;
  box-shadow: none;
  margin: 0;
  position: static;
  top: auto;
}

/* index / archive / category / search all render the strip as the last child
   of .site-main, so the card is the single source of truth for the radius. */
body .site-main.np-has-status {
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius-lg);
  overflow: hidden;
}

/* 10.5 Flat full-bleed CTA. Beats the gradient printed by header.php and the
   duplicate legacy button rules in responsive.css. */
body .bottom-content {
  background: var(--np-ink) !important;
  border-radius: 0 !important;
  margin-bottom: 0;
  padding: 46px 0;
}

body .bottom-content h3 {
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

body .bottom-content .bottom-buttons a {
  margin: 0 !important;
}

/* 10.6 Mobile list: the excerpt and all four meta labels stay visible. */
@media (max-width: 767px) {
  body .content-list .entry-meta {
    align-items: center;
    display: flex !important;
    flex-wrap: nowrap;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    gap: 4px 12px !important;
    justify-content: flex-end;
    line-height: 1.4;
    padding-top: 0;
    white-space: nowrap;
    width: 100%;
  }

  body .content-list .entry-meta > span {
    flex: 0 0 auto;
    margin: 0 !important;
    min-width: 0;
  }

  body .content-list .entry-meta > span a {
    color: inherit;
  }

  body .content-list .entry-summary {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--np-excerpt-lines, 2);
    display: -webkit-box !important;
    font-size: 13px;
    line-height: 1.65;
    margin-top: 0;
    overflow: hidden;
    padding-top: 0;
  }

  body .zhuanti-heading .custom-wrap .desc {
    display: block !important;
  }

  /* No nested card frames on a phone, only the section's own hairline. */
  body .zhuanti-heading,
  body .recent-heading,
  body .breadcrumbs.no_zhuanti {
    border: 0 !important;
    border-bottom: 1px solid var(--np-line) !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 389px) {
  body .content-list .entry-summary {
    -webkit-line-clamp: var(--np-excerpt-lines, 2);
    font-size: 12px;
  }

  body .content-list .entry-meta {
    font-size: 11px;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  body .content-list .entry-summary {
    -webkit-line-clamp: var(--np-excerpt-lines-tablet, 3);
    font-size: 14px;
  }
}

/* 10.7 Feature progression for older engines. */
@supports not (-webkit-line-clamp: 2) {
  body .content-list .entry-summary {
    display: block !important;
    max-height: calc(var(--np-excerpt-lines, 2) * 1.75em); /* 桌面行高 1.75 */
    overflow: hidden;
  }
  @media (max-width: 767px) {
    body .content-list .entry-summary {
      max-height: calc(var(--np-excerpt-lines, 2) * 1.65em); /* ≤767 行高 1.65 */
    }
  }
  @media (min-width: 430px) and (max-width: 767px) {
    body .content-list .entry-summary {
      max-height: calc(var(--np-excerpt-lines-tablet, 3) * 1.65em);
    }
  }
}

/* Without :has() the no-thumbnail variant simply keeps the thumbnail column
   empty; the text still lands in the single right-hand column. */
@supports not selector(:has(*)) {
  @media (max-width: 767px) {
    body .content-list .hentry {
      grid-template-areas: "thumb head" "meta meta" "sum sum";
      grid-template-columns: 110px minmax(0, 1fr);
    }
  }
}

@supports not (display: contents) {
  @media (max-width: 767px) {
    body .content-list .hentry {
      display: block;
    }

    body .content-list .hentry > .thumbnail-box {
      float: left;
      margin: 0 14px 8px 0;
      width: 110px;
    }

    body .content-list .hentry > .entry-body {
      display: block;
      overflow: hidden;
    }

    body .content-list .hentry::after {
      clear: both;
      content: "";
      display: block !important;
    }
  }
}

/* 10.8 Narrow featured grid: one row of three tiles, no reserved height.
   The >=960 rules in section 9 set height:100% + three explicit rows on
   #featured-grid > ul; those must not survive below 960px. A body-prefixed
   selector with !important is required here (a plain later rule loses). */
@media (max-width: 959px) {
  body .featured-grid-layout > #featured-grid,
  body .featured-grid-layout #featured-grid > ul,
  body .featured-grid-layout #featured-grid > .featured-grid-list {
    height: auto !important;
    min-height: 0 !important;
  }

  body .featured-grid-layout #featured-grid > ul,
  body .featured-grid-layout #featured-grid > .featured-grid-list {
    grid-auto-rows: auto;
    grid-template-columns: repeat(min(var(--np-featured-grid-count, 3), 3), minmax(0, 1fr));
    grid-template-rows: none !important;
  }
}

/* 10.9 .site-main already establishes a BFC via overflow:hidden, so the
   clearfix pseudo-elements are redundant and would otherwise be laid out
   after the status strip and disturb the card's bottom corners. */
body main.site-main.np-has-status.clear::before,
body main.site-main.np-has-status.clear::after {
  content: none;
  display: none;
}

/* 10.10 Round-two convergence pass. Grouped here because each rule must beat
   either an inline style written by JavaScript, an inline <style> printed by
   header.php after the stylesheets, or a later same-file rule. */

/* A. bxSlider's adaptiveHeight writes an inline height on .bx-viewport that
      is captured at load-time width and never refreshed on window resize,
      detaching the big slide from the three-tile column. #featured-slider
      owns the geometry via aspect-ratio at every breakpoint, so the chain is
      pinned to it instead of the stale measurement. */
body .featured-grid-layout .bx-wrapper,
body .featured-grid-layout .bx-wrapper > .bx-viewport {
  height: 100% !important;
}

/* B. Top bar (light variant): the legacy dark-slate bar was the largest
      off-spec surface. Page background, hairline, muted links, near-black
      submit chip. Scoped to body.np-topbar-light (top-bar-style option) so it
      only applies when the light style is chosen; the dark variant lives in
      10.15B. The two never compete because exactly one body class is emitted. */
body.np-topbar-light .top-bar {
  background-color: var(--np-page) !important;
  border-bottom: 1px solid var(--np-line);
}

body.np-topbar-light .top-bar #top-nav .sf-menu li a,
body.np-topbar-light .top-bar .header-right li a {
  color: var(--np-muted) !important;
  font-size: 12px;
}

body.np-topbar-light .top-bar #top-nav .sf-menu li a:hover,
body.np-topbar-light .top-bar .header-right li a:hover {
  color: var(--np-heading) !important;
}

body.np-topbar-light .top-bar .header-right li.header-submit a {
  background-color: var(--np-heading);
  border-radius: 0;
  color: #fff !important;
}

body.np-topbar-light .top-bar .header-right li.header-submit a:hover {
  background-color: #000;
  background-image: none;
}

/* C. Sidebar search button: neutral surface instead of the primary blue. */
body .sidebar .widget_search button.search-submit,
body .sidebar .widget_search input[type='submit'] {
  background-color: var(--np-surface-2) !important;
  border: 1px solid var(--np-line) !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  color: var(--np-heading) !important;
}

body .sidebar .widget_search button.search-submit:hover,
body .sidebar .widget_search input[type='submit']:hover {
  background-color: var(--np-heading) !important;
  border-color: var(--np-heading) !important;
  color: #fff !important;
}

/* D. Featured badge: the rotated orange ribbon with gradient, fold corners
      and shadow becomes a flat neutral corner tag. */
body .featured-grid-layout .ribbon {
  height: auto !important;
  left: 12px !important;
  overflow: visible !important;
  text-align: left !important;
  top: 12px !important;
  width: auto !important;
}

body .featured-grid-layout .ribbon span {
  background: rgba(16, 24, 39, .72) !important;
  border-radius: 0;
  box-shadow: none !important;
  color: #e8eaed !important;
  display: inline-block !important;
  font-size: 11px !important;
  letter-spacing: .04em;
  line-height: 1 !important;
  padding: 5px 8px !important;
  position: static !important;
  text-transform: none !important;
  transform: none !important;
  width: auto !important;
}

body .featured-grid-layout .ribbon span::before,
body .featured-grid-layout .ribbon span::after {
  display: none !important;
}

/* E. The "all loaded" strip keeps its text; the green tick image does not
      survive the neutral palette. */
body .scroller-status .infinite-scroll-last img {
  display: none;
}

/* F. If the InfiniteScroll boot script fails, the native pagination must not
      stack under the status strip inside the merged card. */
body .site-main.np-has-status .scroller-status ~ .navigation.pagination {
  display: none !important;
}

/* G. Category header image: the theme imposes no ratio (width:100% only), so
      a 3:2 upload ate most of the first screen. Locked to 3:1 on desktop and
      16:9 below 960px; crops instead of shrinking the list below the fold. */
body .breadcrumbs.is_zhuanti img {
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

@media (max-width: 959px) {
  body .breadcrumbs.is_zhuanti img {
    aspect-ratio: 16 / 9;
  }
}

body .breadcrumbs.is_zhuanti h1 {
  background: rgba(16, 24, 39, .72);
  border-radius: 0;
  color: #e8eaed;
}

/* H. CTA: one solid near-black button; the second action is a quiet text
      link, not a second bordered box. */
body .bottom-content .bottom-buttons a:not(:first-child) {
  background: transparent !important;
  border: 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  min-height: 0 !important;
  padding: 10px 6px !important;
}

body .bottom-content .bottom-buttons a:not(:first-child):hover {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* I. Comment submit: the last remaining large solid-blue block. Same neutral
      treatment as the sidebar search button; the reply form must not compete
      with the footer CTA. */
body .comment-form .submit,
body .comment-form input[type='submit'],
body #respond input[type='submit'] {
  background-color: var(--np-surface-2) !important;
  border: 1px solid var(--np-line) !important;
  border-radius: 0 !important;
  color: var(--np-heading) !important;
}

body .comment-form .submit:hover,
body .comment-form input[type='submit']:hover,
body #respond input[type='submit']:hover {
  background-color: var(--np-heading) !important;
  border-color: var(--np-heading) !important;
  color: #fff !important;
}

/* 10.11 Featured caption hardening. The caption (title over the bottom
   gradient) is original-theme markup and renders at desktop widths, but two
   failure modes were found:
   1. The legacy 480-767 rule caps .entry-header at height:36px while the
      base style is border-box with 26+12px padding, so the caption text
      resolved below the slider clip edge and only an empty gradient band
      stayed visible. Size the bar by content at every width instead.
   2. A stale inline height on a slide (bxSlider resize path) can make one
      li taller than the viewport; its bottom-anchored caption then falls
      outside the clip. Pin li to the same chain as 10.10 A. */
body .featured-grid-layout .bxslider > li {
  height: 100% !important;
}

body #featured-slider .featured-slide .entry-header,
body #featured-slider.slider-with-grid .featured-slide .entry-header {
  height: auto !important;
}

@media (max-width: 767px) {
  body #featured-slider .featured-slide .entry-header,
  body #featured-slider.slider-with-grid .featured-slide .entry-header {
    padding: 14px 0 8px !important;
  }

  body #featured-slider .featured-slide .entry-title,
  body #featured-slider.slider-with-grid .featured-slide .entry-title {
    line-height: 1.35 !important;
  }
}

/*--------------------------------------------------------------
# 10.12 Mobile navigation, code blocks, content rhythm, accent unity
--------------------------------------------------------------
Three leftovers from the round-two pass:
1. The phone menu was a bare white list with no active state, no rhythm and
   no touch affordance - it read as unstyled markup rather than a 2026 UI.
2. Fenced code had no affordance at all (no label, no copy button).
3. Accent colours were split: the search buttons and the footer CTA used
   near-black while links and the current nav item used the brand blue, so
   "the highlight colour" was ambiguous.

### 1. Phone / tablet navigation
-------------------------------------------------------------- */
@media (max-width: 959px) {
  /* The bar itself becomes a quiet card on the page background: hairline top
     and bottom, generous vertical padding so the grid never touches an edge. */
  body #primary-nav {
    background-color: transparent;
    border-top: 1px solid var(--np-line);
    margin: 0;
    padding: 14px 0 6px;
  }

  body #primary-nav #primary-menu {
    background-color: transparent !important;
    border-bottom: 0;
    border-radius: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0;
  }

  /* Each item is a pill sitting on its own touch target. Width comes from the
     column preference (4 per row by default) so labels wrap as whole units. */
  body #primary-nav #primary-menu > li {
    background-color: transparent;
    float: none;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
  }

  body #primary-nav #primary-menu > li > a {
    align-items: center;
    border-radius: var(--np-radius-sm, 6px);
    color: var(--np-body) !important;
    display: flex;
    font-size: 14px;
    font-weight: 500;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.2;
    min-height: 40px;
    padding: 10px 6px !important;
    text-align: center;
    transition: background-color .18s ease, color .18s ease;
  }

  body #primary-nav #primary-menu > li > a:hover,
  body #primary-nav #primary-menu > li > a:focus-visible {
    background-color: var(--np-surface-2);
    color: var(--np-heading) !important;
  }

  /* Active item: filled chip plus the brand underline. A full-width chip reads
     far better than a bare underline on a phone, and the underline keeps the
     desktop language. */
  body #primary-nav #primary-menu > li.current-menu-item > a,
  body #primary-nav #primary-menu > li.current_page_item > a,
  body #primary-nav #primary-menu > li.current-menu-ancestor > a {
    background-color: var(--np-surface-2);
    color: var(--np-heading) !important;
    font-weight: 600;
    text-decoration: none;
  }

  body #primary-nav #primary-menu > li.current-menu-item > a::after,
  body #primary-nav #primary-menu > li.current_page_item > a::after,
  body #primary-nav #primary-menu > li.current-menu-ancestor > a::after {
    background-color: var(--np-primary);
    border-radius: 1px;
    bottom: 6px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 18px;
  }
}

/* Sub-menus: an indented card, clearly nested under its parent. */
@media (max-width: 959px) {
  body #primary-nav #primary-menu .sub-menu {
    background-color: var(--np-surface-2);
    border-radius: var(--np-radius-sm, 6px);
    box-shadow: none;
    display: none;
    float: none;
    margin: 4px 0 8px;
    padding: 4px;
    position: static;
    width: 100%;
  }

  body #primary-nav #primary-menu .sub-menu a {
    border-radius: 4px;
    color: var(--np-muted) !important;
    display: block;
    font-size: 13px;
    min-height: 34px;
    padding: 8px 10px !important;
    text-align: left;
  }

  body #primary-nav #primary-menu .sub-menu a:hover {
    background-color: #fff;
    color: var(--np-heading) !important;
  }
}

/*--------------------------------------------------------------
### 2. Code blocks: MAC window chrome (round 7, spec A.1-A.3)
--------------------------------------------------------------
One window object, two materials. Geometry is identical in both styles;
the palette lives on the np-code--light / np-code--dark modifier classes as
scoped variables (never on :root, so no code colour leaks into the global
token set). The container clips the radius; every child is square. */
.np-code {
  border-radius: var(--np-radius);
  margin: 0 0 26px;
  overflow: hidden;
  position: relative;
}

.np-code-bar {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 8px 12px 8px 14px;
}

.np-code-dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.np-code-dots i { border-radius: 50%; display: block; height: 10px; width: 10px; }
.np-code-dots i:nth-child(1) { background: #fc625d; }
.np-code-dots i:nth-child(2) { background: #fdbc40; }
.np-code-dots i:nth-child(3) { background: #35cd4b; }

.np-code-lang {
  font-family: var(--np-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 40vw;
}

.np-code-copy {
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  /* The legacy button reset pins height/line-height to 40px; the copy chip
     is a 24px control (5+12+5+2 border), so both are released here. */
  height: auto;
  line-height: 1;
  margin-left: auto;
  padding: 5px 10px;
  text-transform: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.np-code-copy:focus-visible { outline: 2px solid var(--np-primary); outline-offset: 2px; }

.np-code > pre {
  border-radius: 0 !important;
  font-family: var(--np-mono);
  font-size: var(--np-code-font-size, 13px);
  line-height: 1.7;
  margin: 0 !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 16px 18px;
  tab-size: 2;
  scrollbar-width: thin;
}

.np-code > pre::-webkit-scrollbar { height: 8px; width: 8px; }
.np-code > pre::-webkit-scrollbar-track { background: transparent; }
.np-code > pre::-webkit-scrollbar-thumb { border-radius: 4px; }

@media (max-width: 767px) {
  .np-code-bar { padding: 7px 10px 7px 12px; }
  .np-code-copy { padding: 6px 12px; }
  .np-code > pre {
    font-size: max(12px, calc(var(--np-code-font-size, 13px) - 1px));
    padding: 14px;
  }
}

/* A.2 light: MAC window (default). */
.np-code--light {
  --np-code-bg: #f6f8fa;
  --np-code-bar-bg: #eff2f5;
  --np-code-line: #e4e7eb;
  --np-code-text: #24292f;
  border: 1px solid var(--np-line);
}

.np-code--light .np-code-bar {
  background: var(--np-code-bar-bg);
  border-bottom: 1px solid var(--np-code-line);
}

.np-code--light .np-code-lang { color: var(--np-muted); }

.np-code--light .np-code-copy {
  background: #fff;
  border: 1px solid #d9dee3;
  color: var(--np-body);
}

.np-code--light .np-code-copy:hover {
  background: #eef1f4;
  border-color: #c6ccd2;
  color: var(--np-heading);
}

.np-code--light .np-code-copy.is-done {
  background: rgba(26, 127, 55, .06);
  border-color: rgba(26, 127, 55, .4);
  color: #1a7f37;
}

.np-code--light .np-code-copy.is-fail {
  background: rgba(207, 34, 46, .05);
  border-color: rgba(207, 34, 46, .35);
  color: #cf222e;
}

.np-code--light > pre {
  background: var(--np-code-bg);
  color: var(--np-code-text);
  scrollbar-color: #d0d7de transparent;
}

.np-code--light > pre::-webkit-scrollbar-thumb { background: #d0d7de; }
.np-code--light > pre::-webkit-scrollbar-thumb:hover { background: #b7bfc9; }
.np-code--light ::selection { background: rgba(37, 99, 235, .16); }

/* A.3 dark: terminal. Same geometry, --np-ink family so the block reads as
   the site's own material, not a hole in the page. */
.np-code--dark {
  --np-code-bg: #101827;
  --np-code-bar-bg: #171f2e;
  --np-code-line: rgba(226, 232, 240, .10);
  --np-code-text: #e2e8f0;
  border: 0;
}

.np-code--dark .np-code-bar {
  background: var(--np-code-bar-bg);
  border-bottom: 1px solid var(--np-code-line);
}

.np-code--dark .np-code-lang { color: #8b95a7; }

.np-code--dark .np-code-copy {
  background: rgba(226, 232, 240, .06);
  border: 1px solid rgba(226, 232, 240, .16);
  color: #cbd5e1;
}

.np-code--dark .np-code-copy:hover { background: rgba(226, 232, 240, .14); color: #fff; }

.np-code--dark .np-code-copy.is-done {
  background: rgba(74, 222, 128, .08);
  border-color: rgba(74, 222, 128, .45);
  color: #4ade80;
}

.np-code--dark .np-code-copy.is-fail {
  background: rgba(248, 113, 113, .08);
  border-color: rgba(248, 113, 113, .45);
  color: #f87171;
}

.np-code--dark > pre {
  background: var(--np-code-bg);
  color: var(--np-code-text);
  scrollbar-color: #333d4f transparent;
}

.np-code--dark > pre::-webkit-scrollbar-thumb { background: #333d4f; }
.np-code--dark > pre::-webkit-scrollbar-thumb:hover { background: #43506a; }
.np-code--dark ::selection { background: rgba(37, 99, 235, .4); color: #fff; }

/*--------------------------------------------------------------
### 3. Article content rhythm
-------------------------------------------------------------- */
body .entry-content h2 {
  color: var(--np-heading);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.4;
  margin: 34px 0 14px;
  padding-top: 0;
}

body .entry-content h3 {
  color: var(--np-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.45;
  margin: 26px 0 10px;
}

body .entry-content h4 {
  color: var(--np-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 22px 0 8px;
}

/* The first heading after the intro paragraph should not push a hole under
   the excerpt. */
body .entry-content > h2:first-child,
body .entry-content > h3:first-child {
  margin-top: 0;
}

body .entry-content p {
  margin: 0 0 18px;
}

body .entry-content ul,
body .entry-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

body .entry-content ul li,
body .entry-content ol li {
  margin-bottom: 8px;
  padding-left: 2px;
}

body .entry-content ul li::marker,
body .entry-content ol li::marker {
  color: var(--np-muted);
}

body .entry-content ul li:last-child,
body .entry-content ol li:last-child {
  margin-bottom: 0;
}

/* Links inside prose: the underline is the affordance, the colour stays the
   body colour until hover so a paragraph of links does not turn into a
   rainbow. 10.12 keeps the brand blue on hover as the single accent. */
body .entry-content a {
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body .entry-content a:hover {
  color: var(--np-primary);
  text-decoration-color: var(--np-primary);
}

body .entry-content hr {
  background-color: var(--np-line);
  border: 0;
  height: 1px;
  margin: 30px 0;
}

body .entry-content img {
  border-radius: var(--np-radius);
  height: auto;
  max-width: 100%;
}

body .entry-content figure {
  margin: 0 0 22px;
}

body .entry-content figcaption {
  color: var(--np-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
  text-align: center;
}

/*--------------------------------------------------------------
### 4. Accent unity: one accent, one near-black
--------------------------------------------------------------
The brand blue is the only accent. Near-black is reserved for the footer CTA
slab (a full-bleed surface). Anything that used a solid near-black fill while
sitting inside the light page - the sidebar search button most visibly - is
re-coloured here so the page no longer reads as "sometimes black, sometimes
blue". */
body .sidebar .widget_search button.search-submit,
body .sidebar .widget_search input[type='submit'],
body .header-search .search-submit {
  background-color: var(--np-surface-2) !important;
  border: 1px solid var(--np-line) !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  color: var(--np-heading) !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

body .sidebar .widget_search button.search-submit:hover,
body .sidebar .widget_search input[type='submit']:hover,
body .header-search .search-submit:hover {
  background-color: var(--np-primary) !important;
  border-color: var(--np-primary) !important;
  color: var(--np-on-primary, #fff) !important;
}

/* Category / tag badges on thumbnails keep a dark scrim only because they sit
   on top of photography; that is a legibility device, not an accent.

   Round seven (items 6 + 7, E.15.2 / E.15.3 candidate A):
   - `color:#e8eaed` deleted from the rest block: the base chip rule carries
     `color:#fff !important`, which outranks any non-important declaration in
     every state, so this value never rendered.
   - The hover block now also covers :focus-visible, matching the single-post
     chip group's two-state form. Keyboard users previously got only the
     generic outline with no fill change, while the single-post chip filled.
   - `color:#fff` deleted from the interaction block for the same reason as
     above. The white text is carried solely by the base rule's !important;
     it is deliberately NOT repeated here. Do not add !important to this
     block - that would create a same-layer fight with the base rule.
   Rest computed values are unchanged; hover gains the token-driven
   foreground (E.37 part one below) and focus-visible gains a fill. */
body .content-list .entry-category a {
  background-color: rgba(16, 24, 39, .72);
}

body .content-list .entry-category a:hover,
body .content-list .entry-category a:focus-visible {
  background-color: var(--np-primary);
}

/* E.37 part one: the chip's interaction foreground is now state-scoped.
   The rest-state white stays on the base rule's `color:#fff !important`
   (1337) and is deliberately NOT tokenised: that text sits on a photo
   scrim, not on a primary fill, so it is outside the on-primary semantic
   domain. Quantified over all 256 grey photo levels: white passes every
   level (worst 7.0543 at grey 255, 8-bit compositing) while black - which
   --np-on-primary resolves to under ember - fails ALL 256 (worst 1.1126 at
   grey 0). Tokenising the rest line would create a new P0.

   Same importance layer, so specificity decides: (0,3,2) here beats the
   base rule's (0,2,1) on the second segment (3 > 2). This is the sanctioned
   exception to "no new !important" - it narrows an existing important to
   the correct state rather than adding a new layer fight. Do not extend it
   to the rest state. */
body .content-list .entry-category a:hover,
body .content-list .entry-category a:focus-visible {
  color: var(--np-on-primary, #fff) !important;
}

/*--------------------------------------------------------------
# 10.13 Phone meta row: chip-aware wrapping
--------------------------------------------------------------
On a phone the meta row holds author, date, views, comments and up to four
category chips in ~340px. Without a rule the chips either overflow or squeeze
the numbers. The row wraps by group: the inline stats stay on one line, and
the category chips drop to the next line as a whole group (one chip if it
fits alone, two if they are short). */
@media (max-width: 767px) {
  body.single #primary .entry-header .entry-meta {
    align-items: center;
    column-gap: 12px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  /* Stats never stretch: they keep their intrinsic width and share the row
     evenly, so a 3-digit view count cannot push the date off the line. */
  body.single #primary .entry-header .entry-meta > .entry-author,
  body.single #primary .entry-header .entry-meta > .entry-source,
  body.single #primary .entry-header .entry-meta > .entry-date,
  body.single #primary .entry-header .entry-meta > .entry-views,
  body.single #primary .entry-header .entry-meta > .entry-comment {
    flex: 0 0 auto;
  }

  /* The chip group keeps its natural width and simply wraps as a unit. It
     shares the last stats line when the row still has room (a single short
     category usually does), and moves down as a block when it does not. */
  body.single #primary .entry-header .entry-meta > .entry-category-single {
    flex: 0 1 auto;
    justify-content: flex-start;
    min-width: 0;
    max-width: 100%;
  }

  body.single #primary .entry-category-single a {
    font-size: 11px;
    padding: 3px 9px;
  }
}

/* Very narrow phones: the author name is the first thing to give way. */
@media (max-width: 389px) {
  body.single #primary .entry-header .entry-meta {
    column-gap: 10px;
    font-size: 12px;
  }

  body.single #primary .entry-header .entry-meta .entry-author .author-name-link {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/*--------------------------------------------------------------
# 10.14 Round-four corrections
-------------------------------------------------------------- */

/* A. Phone menu columns. 10.12 added a flex gap between items, which made a
   four-column row 8px too wide and dropped the grid to three per row (8 items
   became 3+3+2). Drop the gap and inset each link instead, so the column
   count chosen in the customizer is honoured exactly. */
@media (max-width: 959px) {
  body #primary-nav #primary-menu {
    gap: 0;
  }

  body #primary-nav #primary-menu > li > a {
    margin: 2px;
  }

  /* The active underline sits inside the inset link, so it needs the same
     offset as the link's own margin. */
  body #primary-nav #primary-menu > li.current-menu-item > a::after,
  body #primary-nav #primary-menu > li.current_page_item > a::after,
  body #primary-nav #primary-menu > li.current-menu-ancestor > a::after {
    bottom: 8px;
  }
}

/* B. Slide pager vs caption. On a phone the caption is a single line that can
   run under the pager dots, so the pager moves to the top-right corner where
   it never collides with the title or the gradient. */
@media (max-width: 767px) {
  body #featured-slider .bx-wrapper .bx-pager,
  body #featured-slider.slider-with-grid .bx-wrapper .bx-pager {
    bottom: auto !important;
    top: 10px;
    right: 10px;
  }

  /* Reserve a little less right padding now that nothing sits at that end. */
  body #featured-slider .featured-slide .entry-title,
  body #featured-slider.slider-with-grid .featured-slide .entry-title {
    padding-right: 16px !important;
  }
}

/*--------------------------------------------------------------
# 10.15 Round-five corrections
-------------------------------------------------------------- */

/* A. Ordered / unordered list markers.
   Two legacy bugs made lists look broken:
   - `.entry-content ol li` used `list-style: inside decimal`, which renders
     the number as inline text at the start of the line instead of a hanging
     marker, so multi-digit numbers pushed the text and looked misaligned.
   - `.entry-content ul li:before` painted a 5px dot at a hard `top: 10px`,
     a value tuned for one line of 16px text; on a wrapped or taller item the
     dot floated above the text baseline.
   Both are replaced by real hanging markers, which align themselves to the
   first line box automatically and never drift. */
body .entry-content ol {
  list-style: decimal outside;
  margin: 0 0 20px;
  padding-left: 1.6em;
}

body .entry-content ol > li {
  display: list-item;
  list-style: decimal outside;
  margin: 0 0 8px;
  padding-left: .2em;
}

body .entry-content ol > li::marker {
  color: var(--np-body);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

body .entry-content ul {
  list-style: disc outside;
  margin: 0 0 20px;
  padding-left: 1.4em;
}

body .entry-content ul > li {
  display: list-item !important;
  list-style: disc outside !important;
  margin: 0 0 8px;
  padding-left: .2em;
  position: static;
}

/* Kill the old absolutely positioned dot; the native marker replaces it. */
body .entry-content ul > li::before {
  content: none !important;
  display: none !important;
}

body .entry-content ul > li::marker {
  color: var(--np-muted);
}

/* Nested lists step in by one more level and tighten their own rhythm. */
body .entry-content ol ol,
body .entry-content ol ul,
body .entry-content ul ol,
body .entry-content ul ul {
  margin: 6px 0 6px;
  padding-left: 1.4em;
}

/* B. Top bar (dark variant, default): a near-black band restores the original
   hierarchy (utility chrome above, brand header below). Scoped to
   body.np-topbar-dark; the light variant in 10.10B only applies when the
   top-bar-style option selects light. */
body.np-topbar-dark .top-bar {
  background-color: var(--np-ink) !important;
  border-bottom: 0;
}

body.np-topbar-dark .top-bar #top-nav .sf-menu li a,
body.np-topbar-dark .top-bar .header-right li a {
  color: rgba(255, 255, 255, .74) !important;
  font-size: 12px;
}

body.np-topbar-dark .top-bar #top-nav .sf-menu li a:hover,
body.np-topbar-dark .top-bar .header-right li a:hover {
  color: #fff !important;
}

body.np-topbar-dark .top-bar .header-right li.header-submit a {
  background-color: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 0;
  color: #fff !important;
}

body.np-topbar-dark .top-bar .header-right li.header-submit a:hover {
  background-color: var(--np-primary);
  border-color: var(--np-primary);
}

/* E.37 part two: the submit button's hover/focus foreground is state-scoped.
   The rest line above keeps `color:#fff !important` verbatim - its background
   is rgba(255,255,255,.14) composited over ink = #313845, where white scores
   11.7832 and black only 1.7822 (8-bit). That is deep-surface white text, not
   the on-primary semantic, so tokenising the rest line would break it.

   Same importance layer as the rest rule, so specificity decides: (0,5,3)
   here beats (0,4,3) on the second segment (5 > 4). The sibling competitor
   `body.np-topbar-dark .top-bar .header-right li a:hover` is also (0,4,3)
   and also important - it ties with the rest rule and only loses on print
   order, but it loses to THIS block on specificity outright. Both were
   enumerated per-property before landing.

   White ring, not primary: plum/slate primary vs ink is only 2.5442/1.7158,
   so a primary ring would fail 1.4.11 on the outer side. White scores
   3.5595..10.3547 against every preset primary (inner side) and 17.7668
   against ink (outer side) - both sides pass.

   This is the sanctioned exception to "no new !important": it narrows an
   existing important to the correct states. Do not extend it to rest. */
body.np-topbar-dark .top-bar .header-right li.header-submit a:hover,
body.np-topbar-dark .top-bar .header-right li.header-submit a:focus-visible {
  background-color: var(--np-primary);
  border-color: var(--np-primary);
  color: var(--np-on-primary, #fff) !important;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* C. Phone menu is too tall and the two rows sit far apart. Tighten the band,
   reduce the row rhythm, and give it a surface so the block reads as a card
   instead of floating white text on white. */
@media (max-width: 959px) {
  body #primary-nav {
    background-color: var(--np-surface);
    border-top: 1px solid var(--np-line);
    border-bottom: 1px solid var(--np-line);
    padding: 6px 0;
  }

  body #primary-nav #primary-menu > li > a {
    font-size: 14px;
    line-height: 1.15;
    min-height: 34px;
    padding: 8px 4px !important;
  }

  body #primary-nav #primary-menu > li.current-menu-item > a::after,
  body #primary-nav #primary-menu > li.current_page_item > a::after,
  body #primary-nav #primary-menu > li.current-menu-ancestor > a::after {
    bottom: 5px;
    width: 16px;
  }
}

/* Very small phones: one step tighter again so three rows never dominate
   the first screen. */
@media (max-width: 479px) {
  body #primary-nav {
    padding: 4px 0;
  }

  body #primary-nav #primary-menu > li > a {
    font-size: 13px;
    min-height: 32px;
    padding: 7px 3px !important;
  }
}

/* D. Single post: title and meta share one left edge.
   The header was centre-aligned, which put the title in the middle while the
   breadcrumb, body copy and meta all started at the left margin.
   NOTE: `.single` lives on <body> itself, so the compound `body.single` is
   required - `body .single` would look for a descendant and never match. */
body.single #primary .entry-header {
  text-align: left;
}

body.single #primary .entry-title {
  text-align: left;
}

body.single #primary .entry-header .entry-meta {
  justify-content: flex-start;
  text-align: left;
}

/* Categories in the meta row follow the same left edge (no leading indent). */
body.single #primary .entry-header .entry-meta > .entry-category-single {
  margin-left: 0;
}

/* E. Header search panel: lift it above the sidebar widgets.
   `.header-search` used z-index 2 inside a static, z-index:auto header, so it
   could not paint over the later-in-DOM sidebar. The header becomes the
   stacking context and the panel is pinned to the top of that stack. */
.site-header {
  position: relative;
  z-index: 120;
}

.header-search {
  box-shadow: 0 10px 30px rgba(16, 24, 39, .12);
  z-index: 9999;
}

/* F. List meta row: even gaps and a level baseline.
   The legacy per-item `margin-right: 14px` stacked on top of the flex gap, so
   the rhythm ran 14 / 28 / 28 and the views item sat low. Gaps now come from
   the flex container only, and every item is a centred 18px line box. */
body .content-list .entry-meta {
  gap: 4px 16px;
}

body .content-list .entry-meta > * {
  margin-right: 0 !important;
}

body .content-list .entry-meta > span,
body .content-list .entry-meta > span > a,
body .content-list .entry-meta .sl-wrapper,
body .content-list .entry-meta .sl-button {
  align-items: center;
  display: inline-flex;
  line-height: 18px;
}

body .content-list .entry-meta > span > i,
body .content-list .entry-meta > span > a > i,
body .content-list .entry-meta .sl-button i {
  line-height: 1;
  position: static;
  top: auto;
  vertical-align: middle;
}

/*--------------------------------------------------------------
10.16 Round six: restore the original search-panel geometry and give
      every meta icon a uniform breathing gap from its label.
--------------------------------------------------------------*/

/* A. Search panel: keep the legacy 300x60 geometry exactly. The form must
   stay padding-free: the input is a full-height 236x60 field whose 38px
   left indent clears the Genericons magnifier, and the submit button is
   absolutely placed at top:13/right:12. Any form padding pushes the input
   out of the fixed 60px panel and shifts the button off its anchor. */
body .header-search .search-form,
body .header-search form {
  padding: 0;
}

body .header-search .search-input {
  border: none;
  box-sizing: border-box;
  height: 60px;
  padding-left: 38px;
  width: 236px;
}

body .header-search .search-submit {
  border: 1px solid var(--np-line) !important;
  border-radius: 2px !important;
  box-sizing: border-box;
  height: 36px;
  padding: 0 12px;
  position: absolute;
  right: 12px;
  top: 13px;
}

/* B. Meta icons: inline-flex containers drop the whitespace text node that
   used to separate icon and number, so the gap is now explicit and uniform
   (4px) on list cards, the single header and the featured grid alike. */
body .content-list .entry-meta > span > i,
body .content-list .entry-meta > span > a > i,
body .content-list .entry-meta .sl-button i,
body .content-list .entry-meta .sl-count,
body.single #primary .entry-header .entry-meta > span > i,
body.single #primary .entry-header .entry-meta > span > a > i,
body.single #primary .entry-header .entry-meta .sl-button i,
body.single #primary .entry-header .entry-meta .sl-count,
body #featured-grid .entry-meta > span > i,
body #featured-grid .entry-meta > span > a > i,
body #featured-grid .entry-meta .sl-button i,
body #featured-grid .entry-meta .sl-count {
  margin-right: 4px;
}

/* The like count keeps its legacy thumbs-up icon; centre it on the same
   18px line box as the eye / comment icons. */
body .content-list .entry-meta .sl-count,
body.single #primary .entry-header .entry-meta .sl-count,
body #featured-grid .entry-meta .sl-count {
  align-items: center;
  display: inline-flex;
  line-height: 18px;
}

/*--------------------------------------------------------------
10.17 Round seven: category capsule hover, secondary colour surface,
      featured pager/arrow contracts
--------------------------------------------------------------*/

/* A. Single-post category capsule. Default state stays the light chip
   (surface-2 fill, hairline border, body-colour text) from the §single block.
   Hover/focus-visible must be "primary fill + white text" under ANY theme
   colour. Two older rules used to win the cascade and repaint the text:
     .single #primary article.hentry .entry-meta a:hover   (1,4,2)  #333
     .entry-meta a:hover (header.php inline, printed later) (0,2,1)  primary
   This chain is (1,5,2) and the !important is the second belt: even if the
   inline rule keeps its own importance later, white text still wins. The
   generic header.php .entry-meta a:hover is intentionally left in place -
   author/comment links without a chip background should still turn blue. */
body.single #primary .entry-header .entry-meta .entry-category-single a {
  color: var(--np-body) !important;
}

body.single #primary .entry-header .entry-meta .entry-category-single a:hover,
body.single #primary .entry-header .entry-meta .entry-category-single a:focus-visible {
  background-color: var(--np-primary);
  border-color: var(--np-primary);
  color: var(--np-on-primary, #fff) !important;
}

/* B. (Round-seven A.4 revert) The list-thumbnail category badges keep the
   neutral dark scrim + near-white text owned by the 10.12 chip group; they
   are a legibility device on photography, not an accent surface. The
   earlier "force --np-secondary" rule was removed because it changed the
   default visual. --np-secondary still drives its real surfaces (see the
   secondary-color control description); no colour is applied here. */

/* C. Featured pager contract: when featured-pager-on is off there are no
   dots at the bottom-right, so the caption no longer needs to reserve 70px
   for them. Applies at every width (the ≤767 top-right migration in 10.14B
   only matters while the pager exists). bxSlider itself skips the pager
   markup when pager:false (jquery.bxslider.js:273); the display:none below
   is a defensive floor for pagerCustom / third-party markup only. */
body.np-featured-no-pager #featured-slider .bx-pager,
body.np-featured-no-pager #featured-slider.slider-with-grid .bx-pager {
  display: none !important;
}

body.np-featured-no-pager #featured-slider .featured-slide .entry-title,
body.np-featured-no-pager #featured-slider.slider-with-grid .featured-slide .entry-title {
  padding-right: 16px !important;
}

/* D. Featured arrows contract: bxSlider controls:false already skips the
   markup; this hides any leftover direction controls as a belt. */
body.np-featured-no-arrows #featured-slider .bx-controls-direction {
  display: none !important;
}

/*--------------------------------------------------------------
10.18 Round seven follow-up: narrow-viewport floor for the fixed layout.

responsive.css is only enqueued when site-layout = choice-1 (fluid). With
choice-2 (fixed) the base 800px #primary + 360px sidebar row used to survive
below 960px, and because html/body clip horizontal overflow the cut content
was permanently unreachable on phones (measured: 53% of the column clipped
at 390px). These floors mirror the four responsive.css groups that style.css
had no equivalent for, so narrow viewports stay usable under BOTH layouts.

Deliberately NOT migrated: the featured slider/grid geometry (the modern
grid in §9/10.10 already owns it) and any width for .flexible-menu — the
phone/tablet "choice-0" option works precisely by emitting no width rule,
letting items fall back to content width. Keep it that way.

Zero deletions: responsive.css keeps loading for choice-1; every rule here
is body-prefixed so it wins over the base rules regardless of sheet order,
and where responsive.css is present both sheets agree on the same values.
--------------------------------------------------------------*/
@media (max-width: 959px) {
  body #primary {
    float: none;
    width: 100%;
  }

  body .sidebar,
  body #secondary {
    display: none;
  }

  body .top-bar {
    display: none;
  }

  /* Round seven (item 4): `body .footer-columns{display:none}` deleted. The
     class exists in no template - it was migrated from responsive.css:209,
     which is itself dead. Kept harmlessly until this cleanup batch. */

  /* The legacy floats shrink-wrap the menu to content width (567px at 834),
     which silently defeats the tablet/phone column percentages below — they
     would resolve against the shrunk box instead of the viewport. Release
     the floats AND clear the branding float above, so the flex container
     spans the full row — the exact pair responsive.css applies for
     choice-1 (.sf-menu { clear: both; float: none }). */
  body #primary-nav .sf-menu,
  body #primary-menu {
    clear: both;
    float: none;
  }

  /* E.2 Header geometry (responsive.css 102-133 equivalent). The base
     .site-header is a fixed 75px band; below 960 it must collapse to the
     60px branding row so the search icon / panel anchor correctly. Values
     are identical to choice-1, so the two layouts render the same header.
     .header-right lives inside .top-bar (hidden above) — its responsive
     reposition is a dead rule and is deliberately not migrated. */
  body .site-header {
    height: auto;
    box-shadow: none;
  }

  body .site-branding {
    height: 60px;
  }

  body .site-branding #logo {
    height: 60px;
  }

  body .site-branding img {
    max-height: 54px;
  }

  body .site-title {
    line-height: 60px;
  }

  body .site-desc {
    font-size: 12px;
    top: 16px;
  }

  body .site-header .header-search-icon {
    top: -10px;
  }

  body .header-search {
    top: 60px;
  }

  /* bx direction arrows: touch has no hover, so the always-on arrows are a
     dead zone over the caption. responsive.css hides them ≤959 for choice-1;
     mirror it here. The 10.17D no-arrows contract is unaffected. */
  body .bx-controls-direction {
    display: none;
  }
}

/* Tablet portrait: fixed menu columns (responsive.css 263-286 equivalent). */
@media (min-width: 768px) and (max-width: 959px) {
  body #primary-nav.tablet_menu_col_1 ul li { width: 100%; }
  body #primary-nav.tablet_menu_col_2 ul li { width: 50%; }
  body #primary-nav.tablet_menu_col_3 ul li { width: 33.3333%; }
  body #primary-nav.tablet_menu_col_4 ul li { width: 25%; }
  body #primary-nav.tablet_menu_col_5 ul li { width: 20%; }
  body #primary-nav.tablet_menu_col_6 ul li { width: 16.6666%; }
  body #primary-nav.tablet_menu_col_7 ul li { width: 14.2857%; }
  body #primary-nav.tablet_menu_col_8 ul li { width: 12.5%; }

  /* Grid / popular / related meta rows do not fit a three-up tablet card.
     responsive.css 290-294 hides all three here; the ≤767 band below uses
     a DIFFERENT selector (.related-content ul li .entry-meta) and a
     different breakpoint, so both rules are needed and each owns its
     own range. */
  body #featured-grid .entry-meta,
  body .popular-content .entry-meta,
  body .related-content .entry-meta {
    display: none;
  }
}

/* Phones: fixed menu columns (responsive.css 299-322 equivalent). */
@media (max-width: 767px) {
  body #primary-nav.phone_menu_col_1 ul li { width: 100%; }
  body #primary-nav.phone_menu_col_2 ul li { width: 50%; }
  body #primary-nav.phone_menu_col_3 ul li { width: 33.3333%; }
  body #primary-nav.phone_menu_col_4 ul li { width: 25%; }
  body #primary-nav.phone_menu_col_5 ul li { width: 20%; }
  body #primary-nav.phone_menu_col_6 ul li { width: 16.6666%; }
  body #primary-nav.phone_menu_col_7 ul li { width: 14.2857%; }
  body #primary-nav.phone_menu_col_8 ul li { width: 12.5%; }
}

/*--------------------------------------------------------------
10.18 E.3 — phone content degradation (responsive.css 326-398 equivalent).

Migrated by EFFECTIVE value, not by literal rule: only the parts that
actually win the cascade under choice-1 are copied, so choice-2 renders
identically. Two literal responsive rules are deliberately NOT migrated:
  - .single #primary .entry-author{display:none} loses to style.css:1831
    (.single #primary article.hentry .entry-meta .entry-author, 1,4,2 →
    inline-flex), so the author chip stays visible on phones in choice-1;
    hiding it here would break parity.
  - .single #primary .entry-footer .entry-tags AND its .tag-links span
    child match nothing — content-single.php closes .entry-footer before
    .entry-bottom > .entry-tags opens, so both are dead selectors. The
    .entry-bottom flex row owns its own narrow behaviour.

Selector form is a hard constraint: .single / .page live ON <body>, so
every rule below that scopes to them uses the compound body.single /
body.page. The descendant form "body .single" never matches and fails
silently (stylesheet parses fine, computed styles never change).
The featured slider/grid geometry is owned by §9/10.10 and is not touched.
--------------------------------------------------------------*/
@media (max-width: 767px) {
  /* Corner ribbon, category scroll-bar and prev/next strip crowd a phone
     row. choice-1 hides all three ≤767 (the ribbon hide survives 10.10D,
     which only sets left/top/width/overflow, not display). */
  body .ribbon,
  body .posts-nav-menu,
  body .single-posts-nav {
    display: none !important;
  }

  /* Section headers tighten to a 10px gutter on phones. */
  body .breadcrumbs,
  body .recent-heading,
  body .zhuanti-heading {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Category chips on the 110px list thumbnail are too dense; choice-1
     drops them on phones. */
  body .content-list .entry-category {
    display: none;
  }

  /* Article footer: the right-hand like/sponsor group drops below the
     tags instead of floating beside them.
     NOTE: .single / .page are classes ON <body> itself — the compound
     form body.single is mandatory here. "body .single" (descendant) can
     never match and would silently do nothing. Same rule as 10.15D. */
  body.single #primary .entry-footer .entry-footer-right {
    float: none;
    margin-top: 10px;
  }

  /* Two-character first-line indent wastes phone line width. The inline
     header.php rule (.entry-content p{text-indent:2em}) is (0,1,1); this
     body-prefixed !important wins regardless of print order. */
  body .entry-content p {
    text-indent: 0 !important;
  }

  /* Share-label decoration and related-list meta are phone noise. */
  body .custom-share:before,
  body .related-content ul li .entry-meta {
    display: none;
  }
}

/* Landscape phones / small tablets: the article card steps down from the
   desktop 34/36/40px to 20px (responsive.css 418-419). Without this band
   choice-2 kept the desktop padding at 767px, which also widened the
   comment-form columns by ~10px vs choice-1. Compound body.single is
   required — .single is a class on <body>, not an ancestor of it. */
@media (min-width: 480px) and (max-width: 767px) {
  body.single .site-main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
10.18 E.2/E.3 — small-phone (≤479) type scale + secondary blocks.
responsive.css 424-621 equivalent, effective values only.
--------------------------------------------------------------*/
@media (max-width: 479px) {
  body .site-title {
    font-size: 24px;
  }

  /* Slide caption: 0.95em + 8px left gutter matches choice-1 exactly
     (14.25px at a 15px root). The 70px right reserve is already collapsed
     to 16px by 10.14B ≤767; keep that, only scale the type and left pad. */
  body #featured-slider .featured-slide .entry-title,
  body #featured-slider.slider-with-grid .featured-slide .entry-title {
    font-size: 0.95em;
    padding-left: 8px;
  }

  /* Hide secondary blocks on the smallest phones. */
  body .custom-share {
    display: none !important;
  }

  body .entry-source,
  body .footer-partners {
    display: none;
  }

  body .friend .friend-desc,
  body .author-box .avatar,
  body .related-content .entry-meta {
    display: none;
  }

  /* Comment form: three columns stack to full-width rows. */
  body .comment-form .comment-form-author,
  body .comment-form .comment-form-email,
  body .comment-form .comment-form-url {
    width: 100%;
    margin: 0 0 10px;
  }

  body #comments .comment-metadata,
  body .comment-respond .comment-metadata {
    display: none;
  }

  /* Article card padding narrows; titles step down one notch.
     Compound body.single / body.page — see the ≤767 note above. */
  body.single .site-main,
  body.page .site-main {
    padding: 10px;
  }

  body .page-title,
  body.single h1.entry-title,
  body.page h1.entry-title {
    font-size: 1.2em;
    margin-bottom: 10px;
  }

  /* Pagination touch row: hairline top only, 30px targets. Border colour
     uses the token, not the legacy #eaeaea. */
  body .pagination {
    border: none;
    border-top: 1px solid var(--np-line);
  }

  body .pagination .page-numbers {
    font-size: 13px;
    padding: 0 6px;
    height: 30px;
    line-height: 30px;
  }

  /* Footer link touch spacing. */
  body #site-bottom .footer-nav li {
    margin-right: 10px;
  }

  body .friend-nav li {
    margin-right: 10px;
  }
}

/*--------------------------------------------------------------
10.18 E.7 — whole-page parity remainder (fixed layout, ≤959).

E.1-E.3 were verified against a fixed probe list; a full sweep of every
rendered element × every computed property then found the declarations
below still missing under choice-2. Found by inverse difference: load the
page as real choice-2, append the real responsive.css last (exactly where
wp_enqueue_style prints it for choice-1) and diff. Whatever changes is a
rule choice-1 has and choice-2 lacks.

Two facts this sweep settled, both of which a fixed probe list hid:
  - .container resolves margin:auto to 0 when width fills the parent, so
    the 16px gutter must be re-declared explicitly below 960 — otherwise
    the computed margin differs between layouts even though the box is
    identical. Same value, both layouts, zero visual change.
  - Equal-specificity rules are decided by PRINT ORDER. responsive.css
    prints after style.css, so e.g. `.content-list .hentry{padding}`
    (0,2,0) wins there. Every migration here is body-prefixed to (0,2,1)
    so it wins on specificity instead of relying on sheet order.

Still deliberately NOT migrated (verified no-ops or owned elsewhere):
  - .header-right reposition: lives inside .top-bar, hidden ≤959.
  - .sf-menu ul{display:none!important} and .sf-arrows hiding: superfish
    only initialises ≥960, and 10.12 owns the narrow sub-menu cards.
  - .content-list .thumbnail-link width: base 1261 is width:100%!important.
  - .zhuanti-heading/.recent-heading/.breadcrumbs legacy borders: the 10.x
    hairline group already owns them.
  - .footer-columns: class absent from every template (dead selector).
    Round seven item 4 removed the migrated rule; it stays on this list as
    the record of why it was never a real migration target.
  - The 1080-1179 / 960-1079 desktop bands: that is precisely the fixed
    layout's ≥960 semantics, which must survive (see spec §E.0, plan B
    rejected). Parity is required ≤959 only.
--------------------------------------------------------------*/
@media (max-width: 959px) {
  /* Explicit gutter: margin:auto computes to 0 once the fluid width fills
     the row, so restate the 16px the container token already implies. */
  body .container {
    margin-left: auto;
    margin-right: auto;
  }

  /* choice-1 drops the page tint below 960 so the full-bleed card reads as
     one surface. Match it, using the frozen token rather than a literal. */
  body {
    background-color: var(--np-surface);
  }

  /* The desktop 75px menu row height leaks into the stacked mobile menu
     (8 × 75px line boxes). 1.5 is the responsive value. */
  body .sf-menu li {
    line-height: 1.5;
  }

  /* Menu wrapper: drop the desktop right-float box model entirely. The
     float itself is already released in E.1; this clears the leftover
     margin/padding and the clearfix that the grid layout does not need.
     Round seven (item 5): `border-radius:3px` deleted as inert. Two ≤959
     rules force `border-radius:0 !important` on this same element -
     `body #primary-menu` (1,0,1) and `body #primary-nav #primary-menu`
     (2,0,1) - so the computed radius was already 0 in both layout modes.
     The margin/padding here are live and stay. */
  body #primary-menu {
    margin: 0 !important;
    padding: 9px 0;
  }

  body #primary-menu:after {
    clear: both;
    content: " ";
    display: block;
  }

  /* Menu item icons are desktop-only decoration. */
  body #primary-menu .fa {
    display: none;
  }

  /* Content block spacing tightens one step on narrow screens. */
  body .site-content {
    margin-top: 10px;
    padding-bottom: 10px;
  }

  body .home-zhuanti-section {
    margin-bottom: 10px;
  }

  body .site-footer {
    margin-top: 0;
  }

  body .footer-content {
    margin-bottom: 10px;
  }

  /* The article breadcrumb strip becomes a bare inline row: its card
     chrome is redundant directly under the site header. */
  body .single-breadcrumbs {
    background-color: transparent;
    border: none;
    margin-bottom: 0;
  }

  /* Floating contact/WeChat/Weibo rail: two 42×40 tiles sat on top of the
     article body at the bottom-right on phones. Only #back-top stays. */
  body .icon-contact,
  body .icon-weixin,
  body .icon-weibo {
    display: none;
  }

  body .bottom-right {
    bottom: 5px;
  }

  body .bottom-right .bottom-icon {
    border: none;
    box-shadow: none;
  }

  /* Footer bottom bar centres once the columns collapse.
     Round seven (item 4): the companion `body #site-bottom .footer-left`
     rule was deleted - footer.php and every other template omit that class
     entirely, so the float release matched nothing. */
  body #site-bottom {
    text-align: center;
  }
}

/* Landscape phones: list rows use a wider thumb gutter and a smaller
   title/summary step than the ≤479 portrait rules below. */
@media (min-width: 480px) and (max-width: 767px) {
  body .content-list .thumbnail-link {
    margin-right: 15px;
  }

  body .content-list .entry-title {
    font-size: 1.1em;
    line-height: 1.4;
  }

  body .content-list .gallery-list {
    margin: 10px 0;
  }

  body .content-list .entry-summary {
    font-size: 13px;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  /* Category/topic banner: the 20px hero padding and the absolutely
     positioned title both tighten to 10px. */
  body .breadcrumbs.is_zhuanti {
    padding: 10px;
  }

  body .breadcrumbs.is_zhuanti h1 {
    top: 10px;
    left: 10px;
  }

  body .single-breadcrumbs {
    padding-bottom: 0;
  }

  /* List card: base padding is 22px 20px (desktop) — phones use 10px. */
  body .content-list .hentry {
    padding: 10px;
  }

  body .content-list .entry-header {
    margin-bottom: 5px;
  }

  body .content-ad {
    padding: 10px;
  }

  body .home-zhuanti-list {
    padding: 10px;
  }

  body .site-footer {
    margin: 0;
  }

  /* Tag row centres under the article instead of floating left. */
  body .entry-tags {
    float: none;
    text-align: center;
  }

  /* Partner / friend section headers align to the phone gutter. */
  body .footer-partners .partner-title,
  body .friend .friend-title {
    padding-right: 10px;
    padding-left: 20px;
  }

  body .footer-partners .partner-title:before,
  body .friend .friend-title:before {
    left: 10px;
  }

  body .friend-nav {
    padding: 0 0 0 10px;
  }

  /* Round seven (item 4): the 404 search-field width rule was deleted. It
     missed on two counts: 404.php:20 wraps the form in .entry-content (not
     .page-content), and searchform.php emits #searchform > input.search-input
     (neither .search-form nor .search-field exists). Removing it changes
     nothing: the 404 field was never 200px wide. Its width comes from the
     input's intrinsic size (the .search-input base rule sets no width; the
     236px rule is scoped to .header-search only). */
}

@media (max-width: 479px) {
  /* Topic banner collapses to a plain 30px title bar. */
  body .breadcrumbs.is_zhuanti {
    margin: 0;
    padding: 0;
  }

  body .breadcrumbs.is_zhuanti h1 {
    font-size: 1em;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    left: 0;
    top: 0;
  }

  /* Article breadcrumb becomes a compact tinted chip.
     Round seven (item 3): #f9f9f9 -> var(--np-surface-2). There is no frozen
     token equal to #f9f9f9, so this is a real (sub-perceptual) shift of
     rgb(249,249,249) -> rgb(250,250,248); surface-2 is the nearest existing
     light-tint token and is already the chip/card tint elsewhere (1241/1312).
     responsive.css:547 is changed to the same token in the same batch, so
     choice-1 and choice-2 stay identical - changing only one sheet would
     reintroduce a parity gap. */
  body .single-breadcrumbs {
    background-color: var(--np-surface-2);
    border-radius: 3px;
    padding: 8px 10px;
    margin: 10px 1.5% 0;
  }

  body.single #primary .entry-header {
    margin-bottom: 10px;
  }

  /* List rows go edge-to-edge; the card border supplies the separation. */
  body .content-list .hentry {
    padding: 12px 0 12px;
    margin-bottom: 0;
  }

  body .content-list .hentry:hover {
    background-color: transparent;
  }

  body .content-list .entry-title {
    font-size: 1em;
    font-weight: normal;
    line-height: 1.5;
    margin-bottom: 0;
  }

  body .content-list .thumbnail-link {
    margin: 0 10px 0 0;
  }

  body .content-list .hentry .thumbnail-link img {
    border-radius: 3px;
  }

  body .content-list .entry-header {
    margin-bottom: 0;
  }

  body .content-list .gallery-list {
    margin: 10px 0 5px 0;
  }

  body .content-ad {
    padding: 12px 0;
  }

  /* Topic grid loses its inner padding; thumbs get the phone radius. */
  body .home-zhuanti-list {
    padding: 10px 0 0 0;
  }

  body .home-zhuanti-list img {
    border-radius: 3px;
  }

  body #site-bottom {
    padding: 10px;
  }

  body .friend {
    padding-bottom: 0;
  }

  body .footer-content {
    padding: 0 0 10px 0;
  }

  /* Tag chips: hide the "标签:" wrapper span, shrink the links. */
  body .entry-tags span span {
    display: none;
  }

  body .entry-tags .tag-links a {
    font-size: 12px;
  }

  body .custom-share {
    float: none;
  }

  /* Round seven (item 1, E.8.1): the 290px rule was content-box, so the real
     outer box was 290 + 30 padding + 2 border = 322px and clipped 2px on a
     320px viewport. Three declarations together, never one alone:
       - border-box makes `width` mean the outer box;
       - width:322px is the measured current outer box, so every viewport
         >=338px stays pixel-identical (max-width does not engage);
       - max-width:calc(100vw - 16px) only engages below 338px (320 -> 304).
     Adding max-width alone is inert under content-box; switching to
     border-box while keeping width:290 would shift every phone by -32px. */
  body .modal-content {
    width: 322px;
    box-sizing: border-box;
    max-width: calc(100vw - 16px);
    padding-left: 15px;
    padding-right: 15px;
  }

  body .bottom-content {
    padding: 30px;
  }

  body .bottom-content h3 {
    font-size: 24px;
  }

  /* Round seven (item 5): `body .bottom-content .bottom-buttons a
     {margin:0 5px}` deleted as inert. The unconditional rule of the same
     selector and specificity (0,2,2) in 10.5 carries `margin:0 !important`,
     which outranks this non-important declaration at every breakpoint, so
     the computed margin was already 0 in both layout modes. */
}

/* NOTE: The ux-audit "completion batch" (np-e7-candidate.css) that was
   appended here was deduplicated — every one of its 44 rules is already
   present, with identical declarations and specificity, in the E.7
   whole-page-parity block above (verified programmatically: 44/44 covered,
   0 uncovered). Removing the duplicate is value-neutral and keeps a single
   source of truth for the fixed-layout narrow-screen parity rules. */

/*--------------------------------------------------------------
10.19 Round seven, batch B: slider control accessibility (items 13 + 14)

Scope: every bxSlider instance on the site, not just the home featured
slider. The selectors deliberately omit #featured-slider so the single-post
gallery (.single #primary .gallery-slider) and the sidebar gallery widget
(.sidebar .widget_media_gallery) get the same treatment - all three had the
same 8x8 dots, the same missing focus ring and the same invisible-on-keyboard
arrows.

Placement: this block sits after every legacy bx rule (3900-4080) and after
the 10.x modern sections, so the `background` shorthand at 4033/4040 and the
`background-size` / `background-position` pair at 4050 can never reset the
sub-properties written here. Do not move it earlier.

Cascade discipline: every rule below was verified per-property against ALL
competing declarations (including every pseudo-class branch), not just
against the base rule. Where the second specificity segment ties, the third
segment decides - that is why `body` and the `a` / `input` type selectors are
load-bearing, not decoration.
--------------------------------------------------------------*/

/* A. Pager dots: a 24x24 hit target with an 8x8 visual dot (item 13).

   The legacy anchor was 6x6 + 1px border = 8x8 with a 14px centre pitch,
   which fails WCAG 2.5.8 outright (the spacing exception does not apply).
   Growing the anchor with padding was rejected: backgrounds paint on the
   padding box, so the white dot would balloon to 22px. Instead the anchor
   becomes a transparent 24x24 border-box and the dot moves to ::before.

   (0,4,2) - four classes (.bx-wrapper .bx-pager .bx-default-pager
   .bx-pager-link) plus two types (body, a). .bx-pager-link is mandatory:
   without it the second segment is only 3 and the legacy
   a:hover / a.active fill group (0,4,1) wins, painting a 24x24 white
   square. With it the second segment ties at 4 and the third decides
   (2 > 1). .bx-pager-link is the real class emitted by
   jquery.bxslider.js:646, so the DOM always matches.

   Honest visual change: centre pitch 14px -> 24px, pager width 14n-6 -> 24n
   (n=3: 36px -> 72px). The dots read sparser; that is the unavoidable cost
   of a real 24x24 target and is accepted. */
body .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link {
  position: relative;
  box-sizing: border-box;      /* no * { border-box } anywhere in this theme */
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;     /* must beat the legacy background-color: #fff */
  text-indent: -9999px;        /* keep hiding the "1" / "2" link text */
  outline: 0;                  /* handed over to :focus-visible below */
}

/* The visual dot. (0,4,3). No legacy ::before rule exists on this element,
   so this is uncontested. The 1px ink border at alpha .55 is the lower bound
   for the two-sided 1.4.11 check: on a pure-white photo it composites to
   #7c8088, giving 3.9682 (float) / 3.9621 (8bit) against the white core AND
   against the photo. alpha .45 drops to 2.9284 and fails - do not lower it. */
body .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link::before {
  content: "";
  position: absolute;
  top: 8px;                    /* (24 - 8) / 2 */
  left: 8px;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(16, 24, 39, .55);
  border-radius: 50%;
  background: transparent;
  transition: background-color .2s ease;
}

/* Hover and current slide: solid white dot, same visual as before.
   (0,5,3), uncontested. */
body .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link:hover::before,
body .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link.active::before {
  background-color: #fff;
}

/* Keyboard focus: a white square ring, distinct from the round dot in both
   size and shape, so 2.4.7 is satisfied without borrowing the active fill.
   (0,5,2) beats the legacy outline:0 (0,3,1), a:focus (0,1,1) and the 10.2
   base ring (0,1,2).

   offset -8px = (24 - 8) / 2 puts the ring band at [8,10) and [14,16) inside
   the element, i.e. overlapping the dot's own 1px border at [8,9) / [15,16).
   That overlap is what makes the "ring vs dot border" side of the 1.4.11
   check real: white against the composited border is >= 3.9621 across all
   256 photo greys. The earlier ink ring at offset -2 left a 4px transparent
   gap, so both of its sides faced the photo and it failed 100 of 256 greys
   (worst 1.0006). Do not revert to #101827 / -2px, and do not swap in
   --np-primary: the six presets fail 236 of 256 greys with that ring.

   The ring coexists with the active fill - this rule only sets outline
   properties, the fill lives on ::before, so the property sets are disjoint.
   Focusing the current dot reads as one thickened white target. */
body .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -8px;
}

/* Container height follows the anchor. (0,2,1) beats .bx-wrapper .bx-pager
   (0,2,0) on the third segment, including the @-moz-document line-height:16
   branch, so no Firefox-specific rule is needed.

   ONLY height and line-height here. The container's positioning is owned by
   four other rules this selector cannot beat: .single #primary ... (1,3,0),
   .sidebar .widget_media_gallery ... (0,4,0), and the two <=767 featured
   rules (1,2,1) / (1,3,1). They write top / bottom / right, this writes
   height / line-height - the property sets are disjoint, which is the only
   reason there is no conflict. Adding any positioning declaration here
   would immediately lose to the #primary ID segment. */
body .bx-wrapper .bx-pager {
  height: 24px;
  line-height: 0;
}

/* Caption right reserve. The pager grew from 14n-6 to 24n wide and sits
   15px from the right edge, so the fixed 70px padding at 4225 is 25px short
   at the default n=3 and 241px short at n=12. --np-slide-count is emitted
   inline by both featured templates (same mechanism as the existing
   --np-featured-grid-count), defaulting to 3.

   (1,3,1) beats the base (1,2,0) and responsive.css's (1,2,0) / (1,3,0).
   The two existing 16px !important contracts - <=767 (pager migrates to the
   top-right) and np-featured-no-pager (no pager at all) - win on importance
   and need no change. That is exactly why this uses calc() instead of
   rewriting the 70px constant. */
body .featured-grid-layout #featured-slider .featured-slide .entry-title {
  padding-right: calc(24px * var(--np-slide-count, 3) + 23px);
}

/* Gallery pager overflow cap (E.35). The gallery shortcode has no clamp on
   the number of ids (inc/template-tags.php:310-335), unlike featured's
   max(1, min(12, ...)). At 24px pitch the pager needs 24n+13 px; the sidebar
   widget content box is only 320 - 36 padding - 2 border = 282px, so n=12
   already spills 19px into the padding and onto the border, and larger n
   keeps going. Hiding the 13th dot onward caps the spill without deleting
   any content: slides 13+ are still reachable by autoplay and swipe, they
   just lose their direct pager dot. Clamping the query was rejected (it
   deletes user content) and so was shrinking the dots (it re-breaks 2.5.8).

   (0,5,1) - four classes plus :nth-child() - beats the only display
   competitor, .bx-wrapper .bx-pager-item (0,2,0). Featured also matches this
   selector but n <= 12 there, so it never triggers. No JS or PHP change:
   removing DOM nodes would desync data-slide-index from clickPagerBind. */
body .bx-wrapper .bx-pager.bx-default-pager .bx-pager-item:nth-child(n+13) {
  display: none;
}

/* E.40.4 - the sidebar gallery needs 11 dots, not 12.

   The earlier "spills 19px sideways" reading was wrong: this pager is
   position:absolute with right:13px, left:auto and width:auto, so it is
   shrink-to-fit, not preferred-width. Measured and recomputed:
     content box = 320 - 2*18 padding - 2*1 border = 282
     available   = 282 - 13 right offset          = 269  (matches rect.w)
     preferred   = 12 * 24                        = 288
     used        = min(288, 269)                  = 269
     floor(269 / 24) = 11 dots per row  =>  12 dots wrap to a SECOND row,
   and batch B pinned the container to height:24px, so the second row
   overflowed vertically by 24px. The 19px did not disappear - it turned
   from horizontal spill into a vertical wrap.

   11 * 24 = 264 <= 269 fits on one row. 11 here vs 12 elsewhere is
   deliberate: the available widths genuinely differ (836/584 vs 269), and
   forcing one number would needlessly drop a dot from featured.

   (0,7,1) - six classes plus :nth-child() - and the selector domain does
   not overlap featured or the single-post gallery, so those keep 12. */
body .sidebar .widget_media_gallery .bx-wrapper .bx-pager.bx-default-pager .bx-pager-item:nth-child(n+12) {
  display: none;
}

/* B. Direction arrows: three defects, one block (item 14).

   A1 - the scrim was rgba(0,0,0,.25), compositing to #bfbfbf on a white
   photo, so the white glyph sat at 1.8340 against it (1.4.11 needs 3).
   Both the base colour and the alpha must change together: ink at .25 is
   worse (1.7242), and pure black at .55 would pass numerically but breaks
   the "no pure black surfaces" rule. rgba(16,24,39,.55) gives #7c8088 on
   white (3.9682) and #090d15 on black (19.4243), and matches the dot border
   alpha so the two controls speak one material language.

   background-color, NOT the background shorthand: 4033/4040 use the
   shorthand, which would wipe arrow-left.png / arrow-right.png if repeated
   here. (0,2,1) ties the legacy (0,2,0) on the second segment and wins on
   the third - dropping `body` would make this order-dependent. */
body .bx-wrapper .bx-prev,
body .bx-wrapper .bx-next {
  background-color: rgba(16, 24, 39, .55);
}

/* A3 - the arrows were visibility:hidden until .bx-wrapper:hover, but a
   visibility:hidden element is still focusable, so Tab landed on an
   invisible control: a focus black hole, worse than the pager's problem.
   opacity must go to 1 as well, otherwise the legacy 0.85 fades the scrim
   too and the A1 composite maths no longer describes what is painted.
   (0,3,1) ties .bx-wrapper:hover .bx-prev (0,3,0) and wins on the third
   segment; it also clears the (0,2,0) hidden/0.85 pair. Default state keeps
   its 0.85 restraint. */
body .bx-wrapper .bx-prev:focus-visible,
body .bx-wrapper .bx-next:focus-visible {
  visibility: visible;
  opacity: 1;
}

/* E.40.3 - the arrows must take part in hit testing even at rest.

   Root cause (measured, not inferred): `visibility:hidden` removes an
   element from hit testing while leaving it focusable. On a cold page -
   touch tap, a fast click with no hover lead-in, or a programmatic click -
   a click on the arrow fell through to the full-bleed .thumbnail-link
   underneath and navigated to the post permalink. Wrong navigation, P0.
   Once .bx-wrapper:hover had fired the arrows worked, which is why the
   defect never showed up in hover-first testing.

   opacity:0 is pixel-identical to visibility:hidden (fully invisible) but
   the element STAYS in hit testing, so the cold click lands on the arrow.
   z-index is deliberately untouched: the measured A/B showed z-index:51
   alone does not fix it, and visibility:visible alone at z-index:9 does.
   The blocker was never the paint order - .bx-viewport's translatez(0)
   creates a stacking context that contains the slides' z-index:50, and
   .bx-controls is a later sibling of the viewport, so the positioned
   arrows already paint above the slides.

   THREE BLOCKS, ONE ATOMIC CHANGE. The hover reset is not optional: the
   legacy `.bx-wrapper:hover .bx-prev` (0,3,0) only sets visibility, so
   without it the rest opacity:0 here would keep the arrows invisible
   forever.

   ORDERING CONSTRAINT: these blocks must stay AFTER the A3 focus block
   above. The self-hover block and A3 are both (0,3,1) and both set
   opacity, so print order decides. Both currently resolve to 1, but a
   future tweak would silently break if the order flipped.

   Numbers (8-bit compositing, all 256 photo grey levels): opacity 1 gives
   FAIL 0 / worst 3.9621; wrapper-hover 0.85 gives FAIL 0 / worst 3.0765.
   The margin at 0.85 is only 0.0765 - do NOT lower either the scrim alpha
   (.55) or this opacity. rest opacity:0 is not judged for contrast: an
   invisible element has no 1.4.11 requirement. */
body .bx-wrapper .bx-prev,
body .bx-wrapper .bx-next {
  visibility: visible;
  opacity: 0;
}

body .bx-wrapper:hover .bx-prev,
body .bx-wrapper:hover .bx-next {
  opacity: 0.85;
}

body .bx-wrapper .bx-prev:hover,
body .bx-wrapper .bx-next:hover {
  opacity: 1;
}

/* A2 - the focus ring. (0,3,2) beats the legacy outline:0 at 4067 (0,2,1).
   White, not ink: unlike the pager dot, this ring's inner neighbour is the
   scrim rather than the photo, so white passes on both photo extremes
   (3.9682 white / 19.4243 black) while ink would fail on black (1.14).
   Same reasoning, opposite answer - the judging surface differs.

   Out of scope below 960px: three separate belts already hide
   .bx-controls-direction there (style.css 10.18, responsive.css <=959 and
   <=479). The np-featured-no-arrows display:none !important contract wins on
   importance and is untouched. */
body .bx-wrapper .bx-controls-direction a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

/* C. Search field focus ring (E.17.6). input[type="search"]:focus at 344
   sets outline:none with (0,2,1), which really does suppress the 10.2 base
   ring; focus was signalled only by border-color:#bfbfbf, 1.87:1 on white.

   Both branches are (0,2,2): the `input` type selector is what lifts them
   above the legacy (0,2,1) on the third segment. Writing
   `body .search-input:focus-visible` alone would tie at (0,2,1) and win only
   on print order - the same fragility that produced the white-square bug.
   Branch one covers searchform.php's .search-input (header panel, 404 page,
   sidebar widget); branch two catches any type="search" field emitted by
   blocks or plugins under a different class name. */
body input.search-input:focus-visible,
body input[type="search"]:focus-visible {
  outline: 2px solid var(--np-primary);
  outline-offset: 1px;
}

/* Floor for the whole colour space: a very light custom primary (e.g.
   #facc15) sits at 1.531 on white and would fail 1.4.11. --np-focus-ring
   keeps primary while CR(primary, #eff2f5) >= 3 and falls back to the
   heading ink otherwise; #eff2f5 is the darkest of the four real ring
   surfaces, so guarding it guards all four. Selectors must stay verbatim
   identical to the block above or the two branches would cover different
   DOM. This is the token's first landing site - the site-wide base ring at
   10.2 is deliberately left alone this round. */
body input.search-input:focus-visible,
body input[type="search"]:focus-visible {
  outline-color: var(--np-focus-ring, var(--np-primary));
}

/* D. Code window, dark skin only (E.32). .np-code-copy:focus-visible is
   already tokenised, but --np-primary is judged against light surfaces and
   the dark bar is #171f2e: plum lands at 2.3644 and slate at 1.5945, and
   both also fail against the button's own rest/hover fills, so there is no
   passing side. White on #171f2e is 16.5110 regardless of primary, which
   makes the guarantee independent of the colour picker.

   (0,3,1) beats .np-code-copy:focus-visible (0,2,0) and the base group
   (0,1,2). The .np-code--dark qualifier keeps the light skin byte-identical.
   This follows the existing deep-surface language (.bottom-content and
   .bottom-buttons already use white rings); those two are correct as written
   and must not be "unified" to primary - plum/slate would fail there.

   Geometry: the ring extends 4px (2 offset + 2 width); the button is 24px
   tall centred in a 40px bar, leaving 8px above and below, and 12px to the
   right. At <=767 it is 26px in a 40px bar with 10px right padding. Neither
   breakpoint clips it against .np-code { overflow: hidden }. */
body .np-code--dark .np-code-copy:focus-visible {
  outline-color: #fff;
}

/* E.18.1 item 15 - skip link retone. The .screen-reader-text base is already
   in place (156 hidden state, 164 :focus visible state) and is used by seven
   PHP sites, so it is left byte-identical. Only the skip link itself is
   retoned: the WP default #f1f1f1 / #21759b plus a box-shadow does not match
   this round's language.

   (0,3,1) beats .screen-reader-text:focus (0,2,0). Geometry, clip:auto,
   z-index:100000 and left/top:5px are all inherited from 164 untouched.
   outline replaces box-shadow, matching "Focus is an outline, never a shadow"
   at 6056. White surface + heading ink is 17.6336 regardless of the colour
   picker; the ring itself is primary, as specified. */
body .skip-link.screen-reader-text:focus {
  background-color: var(--np-surface);
  color: var(--np-heading);
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius);
  box-shadow: none;
  font-weight: 600;
  outline: 2px solid var(--np-primary);
  outline-offset: 2px;
}

/* Logged-in only, but required: #wpadminbar is z-index:100000 !important
   (1086) and fixed at the viewport top for 32px, so the inherited top:5px
   would put the skip link underneath it. 32px bar + the same 5px gap.
   (0,4,1) beats the block above on the second segment. */
body.admin-bar .skip-link.screen-reader-text:focus {
  top: 37px;
}

/* E.18.1 item 15 - anchor scroll offset. The sticky header is 75px (604) and
   the admin bar adds 32px, so jumping to #content would land under them.

   The scroll container is html, not body: html,body only set overflow-x:clip
   (4765-4769) and never overflow-y, so the viewport scrolls on the root
   element. scroll-padding-top on body would have no effect. */
html {
  scroll-padding-top: 90px;                    /* 75px header + 15px breathing room */
}

/* Logged-in: the sticky header itself moves to top:32px (1081), so the
   occluded band is 32 + 75. :has() has precedent in this file. */
html:has(body.admin-bar) {
  scroll-padding-top: 122px;                   /* 90 + 32 */
}

/* Engines without :has() cannot tell the two states apart; take the larger
   value so the target is never covered. The extra 32px for guests only puts
   the target slightly further from the top, still on the first screen.
   Bracket form copied verbatim from the 6284 precedent - `@supports not
   (:has(*))` would be a feature query and does not test selector support. */
@supports not selector(:has(*)) {
  html {
    scroll-padding-top: 122px;
  }
}

/* E.15.5 item 8a - defensive ::before zeroing, <=959 only. Batch D (item 8b,
   the three desktop legacy shadows) is NOT part of this block and stays
   untouched pending approval.

   .sf-menu ul:before carries `box-shadow: 0 0 6px rgba(0,0,0,.2)` at 917
   (0,1,2). Below 960 it is currently unreachable behind two independent
   belts, either one sufficient on its own:
     1. choice-1 -> responsive.css:152 `.sf-menu ul{display:none!important}`
     2. choice-2 -> style.css:6640 `body #primary-nav #primary-menu .sub-menu`
        (2,1,1), two IDs, with display:none at 6644
   superfish is also only initialised at >=960 (jquery.custom.js:16).

   This rule removes the dependency on those belts: if either is ever relaxed
   (e.g. someone opens up 6644 to build a phone dropdown), the shadow would
   immediately become live and contradict the zero-shadow language.

   (0,1,3) beats 917 (0,1,2) on the third segment - `:before` is a
   pseudo-element and counts as a type, not as a class. No !important needed.
   The >=960 scope of 917 is deliberately left alive: F3/F4 of the acceptance
   contract still require the desktop shadow until batch D lands. */
@media (max-width: 959px) {
  body .sf-menu ul:before {
    box-shadow: none;
  }
}

/*--------------------------------------------------------------
10.19 Batch D - flatten the three legacy decorative shadows on desktop.

Approved by team-lead. The theme's design language is "hairlines, no
decorative shadows" (see the 10.x rounds): every surface separation is a
1px border, and the only shadows left in the whole sheet were these three
legacy declarations inherited from the original iux build.

  1. `.sf-menu ul` (900-905)            - dropdown panel shadow
  2. `.sf-menu ul:before` (907-917)     - dropdown arrow shadow
  3. `.main-nav-scrolled` (1073)        - sticky header shadow

Only #3 is live for a site without sub-menu items; #1 and #2 are
conditionally triggered (the current menu has no second-level entries, so
the panel never renders). Flattening all three keeps the rule set coherent
instead of leaving a latent contradiction in the sheet.

Separation is preserved without any shadow:
  - the dropdown panel keeps its own white background and gains a 1px
    hairline border, which reads as the same separation a shadow gave but
    without the grey blur;
  - the arrow (::before) loses its glow and keeps its white fill, so it
    still reads against the panel border;
  - the sticky header already carries `border-bottom:1px solid
    var(--np-border)` from the .site-header base (599-608), so removing
    the shadow does not flatten the header against the content - the
    hairline still marks the edge.

All three selectors are `body`-prefixed to (0,2,x) so they win on
specificity rather than on print order. No !important is added, and no
declaration is deleted - the legacy rules are left intact for reference
while these override them.
--------------------------------------------------------------*/
@media (min-width: 960px) {
  body .sf-menu ul {
    border: 1px solid var(--np-border);
    box-shadow: none;
    -webkit-box-shadow: none;
  }

  body .sf-menu ul:before {
    box-shadow: none;
    -webkit-box-shadow: none;
  }

  body .site-header.main-nav-scrolled {
    box-shadow: none;
    -webkit-box-shadow: none;
  }
}

/*--------------------------------------------------------------
# 10.17 Article content typography template (clear heading hierarchy)
--------------------------------------------------------------
A reusable, opinionated content style for long-form posts. Every rule is
body-prefixed (0,2,x) so it outranks both the base block (2421+) and the
10.12 rhythm block (6871+) without deleting either. All colours come from
design tokens, so the hierarchy follows the active Customizer palette.

Hierarchy at a glance:
  H2 - chapter  : primary left bar + bottom hairline
  H3 - section  : small primary square marker
  H4 - item     : primary-coloured, medium weight
  H5/H6 - minor : muted, small
--------------------------------------------------------------*/

/* H1 - post-level, only when used inside the body */
body .entry-content h1 {
  color: var(--np-heading);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 40px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--np-primary);
}

/* H2 - chapter title: primary vertical bar + soft bottom rule */
body .entry-content h2 {
  position: relative;
  color: var(--np-heading);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: 40px 0 16px;
  padding: 2px 0 10px 14px;
  border-bottom: 1px solid var(--np-border);
}

body .entry-content h2::before {
  background-color: var(--np-primary);
  border-radius: 2px;
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 12px;
  width: 4px;
}

/* H3 - section title: small primary square marker */
body .entry-content h3 {
  color: var(--np-heading);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin: 30px 0 12px;
  padding-left: 16px;
  position: relative;
}

body .entry-content h3::before {
  background-color: var(--np-primary);
  border-radius: 1px;
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  height: 8px;
  width: 8px;
}

/* H4 - item title: primary-coloured, no decoration */
body .entry-content h4 {
  color: var(--np-primary-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 24px 0 10px;
}

/* H5/H6 - minor headings: muted */
body .entry-content h5,
body .entry-content h6 {
  color: var(--np-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin: 20px 0 8px;
}

/* Keep the first heading tight against the intro */
body .entry-content > h1:first-child,
body .entry-content > h2:first-child,
body .entry-content > h3:first-child {
  margin-top: 0;
}

/* Blockquote - primary accent rail */
body .entry-content blockquote {
  background-color: var(--np-surface-2);
  border-left: 4px solid var(--np-primary);
  color: var(--np-body);
  margin: 24px 0;
  padding: 16px 20px;
}

body .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables - readable rows with a tinted header */
body .entry-content table {
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 0.96em;
  margin: 24px 0;
  width: 100%;
}

body .entry-content table th,
body .entry-content table td {
  border: 1px solid var(--np-border);
  padding: 10px 12px;
  text-align: left;
}

body .entry-content table th {
  background-color: var(--np-surface-2);
  color: var(--np-heading);
  font-weight: 600;
}

body .entry-content table tr:nth-child(even) td {
  background-color: var(--np-surface-2);
}

/* Horizontal rule - subtle */
body .entry-content hr {
  border: 0;
  border-top: 1px solid var(--np-border);
  margin: 36px 0;
}

/* Compact screens: trim the chapter bar and spacings */
@media (max-width: 767px) {
  body .entry-content h1 { font-size: 25px; }
  body .entry-content h2 { font-size: 20px; margin: 30px 0 12px; padding-left: 11px; }
  body .entry-content h2::before { width: 3px; top: 3px; bottom: 10px; }
  body .entry-content h3 { font-size: 17px; margin: 24px 0 10px; }
  body .entry-content h4 { font-size: 15px; }
  body .entry-content table th,
  body .entry-content table td { padding: 8px 9px; }
}

/*--------------------------------------------------------------
# 10.18 Live-site polish: widget overflow, related rows, search,
        archive layout stability, slider controls (server-first round)
--------------------------------------------------------------
All rules are body-prefixed or scoped to win on specificity without
!important where possible; nothing above is deleted. Triggered by user
screenshots 2026-11-16.
--------------------------------------------------------------*/

/* 1. Sidebar thumbnail widgets: the legacy fixed 358px width + -15px bleed
   overflowed whenever the sidebar was narrower. Make it fluid and let long
   titles wrap/clamp instead of pushing past the column. */
body .sidebar .widget_posts_thumbnail ul {
  left: 0;
  margin-top: -15px;
  width: auto;
  max-width: 100%;
}
body .sidebar .widget_posts_thumbnail ul li {
  box-sizing: border-box;
  overflow: hidden;
}
body .sidebar .widget_posts_thumbnail .entry-wrap {
  display: block;
  overflow: hidden;
  width: auto;
  max-width: 100%;
}
body .sidebar .widget_posts_thumbnail .entry-wrap a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}
body .sidebar .widget_posts_thumbnail .thumbnail-wrap {
  box-sizing: border-box;
  flex: 0 0 100px;
  max-width: 100px;
}
body .sidebar .widget_posts_thumbnail img {
  max-width: 100%;
  height: auto;
}
/* Generic fallback: any WP core widget text must wrap, never overflow. */
body .sidebar .widget {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
body .sidebar .widget ul,
body .sidebar .widget ol {
  max-width: 100%;
}

/* 2. Related posts: long titles overlapped the absolutely-positioned meta.
   Reserve room on the right and truncate the title to the remaining space. */
body .related-content ul li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-right: 0;
}
body .related-content ul li > a:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body .related-content ul li > a:first-child::before {
  position: static;
  float: left;
  margin: 8px 8px 0 0;
}
body .related-content ul li .entry-meta {
  position: static;
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  text-align: right;
}
@media (max-width: 767px) {
  body .related-content ul li {
    display: block;
  }
}

/* 3. Header search: make the focus ring and the submit button the same
   height so the panel reads as one symmetric bar. */
body .header-search form {
  display: flex;
  align-items: stretch;
  padding: 8px !important;
  height: 60px;
  box-sizing: border-box;
}
body .header-search .search-input {
  flex: 1 1 auto;
  width: auto;
  height: 44px;
  line-height: 44px;
  border: 1px solid var(--np-line);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding-left: 38px;
  box-sizing: border-box;
}
body .header-search .search-submit {
  position: static;
  flex: 0 0 auto;
  height: 44px;
  line-height: 42px;
  margin: 0;
  border: 1px solid var(--np-line) !important;
  border-radius: 0 4px 4px 0 !important;
  background: var(--np-primary);
  color: #fff;
  padding: 0 14px;
  box-sizing: border-box;
}
body .header-search .search-submit:hover {
  background: var(--np-primary-dark);
}
body .header-search:after {
  top: 22px;
}

/* 4. Archive/category header: the cover <img> has no intrinsic size, so the
   layout jumped from zero-height to full before the image loaded. Reserve a
   fixed ratio to keep the sidebar and content width stable on first paint. */
body .breadcrumbs.is_zhuanti .thumbnail {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 260;
  overflow: hidden;
  background: var(--np-surface-2);
}
body .breadcrumbs.is_zhuanti .thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. Slider pager dots and arrows: frosted dark scrim so they stay legible
   on both light and dark slides without blending into the artwork. */
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link::before {
  border-color: rgba(255, 255, 255, .85);
  background-color: rgba(16, 24, 39, .35);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link.active::before,
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link:hover::before {
  background-color: rgba(255, 255, 255, .92);
}
body #featured-slider .bx-wrapper .bx-prev,
body #featured-slider .bx-wrapper .bx-next {
  background-color: rgba(16, 24, 39, .5) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 4px;
}

/* 10.18b - safety gap so a wrapped title never kisses the meta column. */
body .related-content ul li > a:first-child {
  padding-right: 8px;
}
body .related-content ul li .entry-meta {
  margin-left: 12px;
}

/* 10.18c - hide WebKit's native search clear "x" so it does not collide with
   the theme's Genericons magnifier in the header panel. */
body .header-search input.search-input::-webkit-search-cancel-button,
body .header-search input.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
