@charset "UTF-8";
/*
Theme Name: Northline
Theme URI: https://northline-astro.netlify.app/blog/zh/
Author: Northline
Description: A clean two-column WordPress blog theme with blue accents, a featured-post carousel, compact article cards and a responsive sidebar.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northline
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* The main visual system lives in assets/css/global.css. */

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

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

.custom-logo-link img {
  width: auto;
  max-width: 180px;
  max-height: 42px;
  object-fit: contain;
}

.main-navigation .sub-menu {
  position: absolute;
  z-index: 120;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.12);
  list-style: none;
}

.main-navigation li {
  position: relative;
}

.main-navigation .sub-menu a {
  padding: 9px 12px;
}

.main-navigation .sub-menu a::after {
  display: none;
}

.search-popover .search-form {
  margin: 0;
}

.search-popover .search-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.sidebar .widget {
  padding: 20px;
  background: var(--nl-surface);
  border: 1px solid var(--nl-line);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(23, 32, 51, 0.025);
}

.sidebar .widget .widget-title {
  padding-left: 14px;
  margin-bottom: 18px;
}

.sidebar .widget ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar .widget li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--nl-line);
}

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

.sidebar .widget a:hover {
  color: var(--nl-blue);
}

.sidebar .widget_search,
.sidebar .northline-widget-search {
  display: none;
}

.home-sidebar > .tags-panel {
  order: 2;
}

.home-sidebar .northline-recent-comments {
  order: 3;
}

.sidebar .widget_recent_entries ul,
.sidebar .widget .wp-block-latest-posts {
  counter-reset: nl-recent;
}

.sidebar .widget_recent_entries ul > li,
.sidebar .widget .wp-block-latest-posts > li {
  position: relative;
  display: block;
  counter-increment: nl-recent;
  padding-left: 42px;
}

.sidebar .widget_recent_entries ul > li::before,
.sidebar .widget .wp-block-latest-posts > li::before {
  position: absolute;
  top: 9px;
  left: 0;
  display: grid;
  width: 28px;
  height: 23px;
  place-items: center;
  color: var(--nl-blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: var(--nl-blue-soft);
  border-radius: 7px;
  content: counter(nl-recent, decimal-leading-zero);
}

.code-block {
  position: relative;
  margin: 1.5em 0;
}

.code-block pre {
  margin: 0;
}

.code-copy {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  color: #dbe8f5;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.code-copy:hover,
.code-copy:focus-visible {
  color: #fff;
  background: rgba(22, 136, 248, 0.9);
  border-color: rgba(22, 136, 248, 0.9);
}

.code-copy.is-copied {
  color: #fff;
  background: #1688f8;
  border-color: #1688f8;
}

.code-copy.is-error {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

.sidebar .widget_categories li {
  position: relative;
  display: block;
  padding-right: 46px;
}

.sidebar .widget_categories li > .category-count {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.wp-block-categories__post-count {
  float: right;
  display: grid;
  min-width: 28px;
  height: 23px;
  padding: 0 7px;
  place-items: center;
  color: #8490a2;
  font-size: 11px;
  background: #f0f4f8;
  border-radius: 12px;
}

.single-featured {
  margin: 24px 30px 0;
  overflow: hidden;
  background: #dce9f5;
  border-radius: 8px;
}

.single-featured img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--nl-line);
  border-radius: 8px;
  line-height: 1.55;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
  color: var(--nl-blue-dark);
  border-color: #b9dbfb;
}

.entry-content .wp-block-image,
.entry-content .wp-block-gallery,
.entry-content .wp-block-embed,
.entry-content .wp-block-table {
  max-width: 100%;
  margin: 1.5em 0;
}

.entry-content .wp-block-image figcaption,
.entry-content .wp-caption-text {
  margin-top: 8px;
  color: var(--nl-muted);
  font-size: 12px;
  text-align: center;
}

.entry-content .alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.entry-content .alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.single-views {
  white-space: nowrap;
}

.entry-content .aligncenter {
  display: block;
  margin-inline: auto;
}

.entry-content .alignwide {
  width: min(100%, 920px);
  max-width: none;
  margin-inline: auto;
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  color: #fff;
  background: var(--nl-blue);
  border-radius: 5px;
  font-weight: 700;
}

.entry-content .wp-block-button__link:hover {
  color: #fff;
  background: var(--nl-blue-dark);
}

.entry-content .wp-block-quote {
  padding: 18px 20px;
  margin: 26px 0;
  background: #f7f9fc;
  border-left: 4px solid var(--nl-blue);
}

.entry-content .wp-block-separator {
  margin: 32px auto;
  border: 0;
  border-top: 1px solid var(--nl-line);
}

.comments-area .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comments-area .comment-form-cookies-consent input {
  width: auto;
  margin-top: 5px;
}

.comments-area .comment-form-cookies-consent label {
  margin: 0;
}

.comment-respond {
  margin-top: 26px;
}

.wp-link-pages {
  margin-top: 20px;
}

.wp-caption {
  max-width: 100%;
}

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

@media (max-width: 720px) {
  .single-featured {
    margin-inline: 0;
  }

  .sidebar .widget {
    padding: 18px;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin: 20px auto;
  }
}
