/*
Theme Name: Geomiao
Theme URI: https://geomiao.com
Author: 金喵网
Description: 金喵网 WordPress 主题
Version: 1.0.0
Text Domain: geomiao
*/

/* Geomiao interaction states */
a {
  transition: color 160ms ease, opacity 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.group:hover .group-hover\:text-primary,
.hover\:text-primary:hover,
a:hover {
  color: #B7000C !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(183, 0, 12, 0.35);
  outline-offset: 2px;
}

.gm-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gm-nav-link {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.gm-nav-link:hover,
.gm-nav-link.is-active {
  color: #B7000C !important;
  font-weight: 800;
}

.gm-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gm-nav-link {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.gm-nav-link:hover,
.gm-nav-link.is-active {
  color: #B7000C !important;
  font-weight: 800;
}

.gm-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 90px;
}

.gm-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #B7000C;
}

.category .text-primary.text-sm.font-bold.tracking-\[0\.2em\],
.category h1,
.category h1 + p {
  display: none !important;
}

.gm-channel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.gm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #777;
  font-size: 14px;
}

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

.gm-breadcrumb a:hover {
  color: #B7000C;
}

.gm-article-breadcrumb {
  color: #5f5e5e;
}

.gm-article-breadcrumb a,
.gm-article-breadcrumb span {
  color: inherit;
}

.gm-article-breadcrumb .text-on-surface {
  color: #1a1c1c;
}

.gm-breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  color: #9ca3af !important;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.gm-channel-search {
  width: 450px;
  height: 52px;
  display: flex;
  overflow: hidden;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.gm-channel-search input[type="search"] {
  flex: 1;
  border: 0;
  padding: 0 20px;
  font-size: 14px;
  outline: none;
  background: transparent;
}

.gm-channel-search button {
  width: 58px;
  border: 0;
  background: #B7000C;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.category h2 {
  font-size: 20px;
  font-weight: 800;
}

@media (max-width: 768px) {
  .gm-channel-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gm-channel-search {
    width: 100%;
  }
}

.gm-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.gm-section-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.gm-section-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #B7000C;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.gm-all-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 0;
  margin-bottom: 28px;
}

.gm-all-title-row {
  display: flex;
  align-items: center;
  gap: 36px;
}

.gm-all-title-row h2 {
  margin: 0;
  padding-bottom: 18px;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.gm-sort-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 44px;
}

.gm-sort-tabs a {
  position: relative;
  height: 44px;
  display: inline-flex;
  align-items: center;
  color: #999;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.gm-sort-tabs a:hover,
.gm-sort-tabs a.is-active {
  color: #B7000C !important;
}

.gm-sort-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #B7000C;
}

.gm-post-count {
  color: #999;
  font-size: 14px;
  padding-bottom: 18px;
}

.gm-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.gm-section-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.gm-section-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #B7000C;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.gm-all-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  margin-bottom: 28px;
}

.gm-all-title-row {
  display: flex;
  align-items: center;
  gap: 34px;
}

.gm-all-title-row h2 {
  margin: 0;
  padding-bottom: 18px;
  font-size: 20px;
  font-weight: 800;
}

.gm-sort-tabs {
  display: flex;
  gap: 32px;
}

.gm-sort-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  color: #999;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.gm-sort-tabs a.is-active,
.gm-sort-tabs a:hover {
  color: #B7000C !important;
}

.gm-sort-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #B7000C;
}

.gm-post-count {
  color: #999;
  font-size: 14px;
  padding-bottom: 18px;
}

.gm-list-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gm-section-icon {
  position: relative;
  width: 22px;
  height: 22px;
  background: #B7000C;
  border-radius: 50%;
  color: transparent !important;
  flex: 0 0 22px;
}

.gm-section-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: #B7000C;
  clip-path: polygon(
    50% 0%,
    60% 18%,
    80% 10%,
    82% 32%,
    100% 50%,
    82% 68%,
    80% 90%,
    60% 82%,
    50% 100%,
    40% 82%,
    20% 90%,
    18% 68%,
    0% 50%,
    18% 32%,
    20% 10%,
    40% 18%
  );
}

.gm-section-icon::after {
  content: "✓";
  position: absolute;
  inset: 0;
  z-index: 1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.category article .gm-list-card-link::after {
  content: "阅读全文 →";
  position: absolute;
  top: 28px;
  right: 32px;
  color: #B7000C;
  font-size: 13px;
  font-weight: 700;
}

.category article {
  position: relative;
}

.category article:hover .gm-list-card-link::after {
  transform: translateX(2px);
}

.gm-section-icon {
  position: relative;
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px !important;
  background: transparent !important;
  color: transparent !important;
  border-radius: 0 !important;
}

.gm-section-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #B7000C;
  clip-path: polygon(
    50% 0%,
    58% 12%,
    70% 6%,
    74% 20%,
    88% 20%,
    88% 36%,
    100% 50%,
    88% 64%,
    88% 80%,
    74% 80%,
    70% 94%,
    58% 88%,
    50% 100%,
    42% 88%,
    30% 94%,
    26% 80%,
    12% 80%,
    12% 64%,
    0% 50%,
    12% 36%,
    12% 20%,
    26% 20%,
    30% 6%,
    42% 12%
  ) !important;
}

.gm-section-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 10px;
  height: 6px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
  z-index: 2;
}

.gm-section-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  display: inline-block !important;
  background: transparent !important;
  color: transparent !important;
  border-radius: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23B7000C' d='M12 2.2l2.08 2.15 2.92-.42.96 2.79 2.66 1.28-1.28 2.66.42 2.92-2.79.96-1.28 2.66-2.92-.42L12 21.8l-2.08-2.15-2.92.42-.96-2.79-2.66-1.28 1.28-2.66-.42-2.92 2.79-.96 1.28-2.66 2.92.42L12 2.2z'/%3E%3Cpath d='M7.8 12.1l2.55 2.55 5.85-5.9' fill='none' stroke='white' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
}

.gm-section-icon::before,
.gm-section-icon::after {
  content: none !important;
  display: none !important;
}

.gm-section-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #B7000C !important;
  background-image: none !important;
  border-radius: 7px !important;
  color: transparent !important;
  box-shadow: 0 6px 14px rgba(183, 0, 12, 0.18);
  transform: rotate(45deg);
}

.gm-section-icon::before,
.gm-section-icon::after {
  content: none !important;
  display: none !important;
}

.gm-section-icon {
  font-size: 0 !important;
}

.gm-section-icon span {
  display: none !important;
}

.gm-section-icon::marker {
  display: none;
}

.gm-section-icon + h2 {
  margin-left: 2px;
}

.gm-section-icon {
  position: relative !important;
}

.gm-section-icon::after {
  content: "" !important;
  display: block !important;
  width: 10px !important;
  height: 6px !important;
  border-left: 3px solid #fff !important;
  border-bottom: 3px solid #fff !important;
  transform: rotate(-90deg);
  position: absolute !important;
  left: 6px !important;
  top: 7px !important;
}

.gm-section-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  display: inline-block !important;
  position: relative !important;
  background: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='%23B7000C' points='12,1.6 14.1,5.2 18,3.6 18.8,7.7 22.8,8.8 20.1,12 22.8,15.2 18.8,16.3 18,20.4 14.1,18.8 12,22.4 9.9,18.8 6,20.4 5.2,16.3 1.2,15.2 3.9,12 1.2,8.8 5.2,7.7 6,3.6 9.9,5.2'/%3E%3Cpath d='M7.3 12.1l3.1 3.1 6.4-6.5' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
  border-radius: 0 !important;
  transform: none !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
}

.gm-section-icon::before,
.gm-section-icon::after {
  content: none !important;
  display: none !important;
}

/* Channel page: pixel-align section heading icon */
.category .gm-section-heading {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 32px !important;
}

.category .gm-section-heading h2 {
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  color: #111 !important;
}

.category .gm-section-icon {
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px !important;
  display: inline-block !important;
  background: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23B7000C' d='M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.82.34 3.68L1 12l2.44 2.78-.34 3.68 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12z'/%3E%3Cpath fill='white' d='M10.09 16.72l-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48-7.33 7.35z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
  border-radius: 0 !important;
  transform: none !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
}

.category .gm-section-icon::before,
.category .gm-section-icon::after {
  content: none !important;
  display: none !important;
}

/* Channel page: pixel-align all-content tabs */
.category .gm-all-content-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #eee !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

.category .gm-all-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 36px !important;
}

.category .gm-all-title-row h2 {
  margin: 0 !important;
  padding-bottom: 18px !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  color: #111 !important;
}

.category .gm-sort-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 32px !important;
  height: 44px !important;
}

.category .gm-sort-tabs a {
  position: relative !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #999 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.category .gm-sort-tabs a.is-active {
  color: #B7000C !important;
}

.category .gm-sort-tabs a.is-active::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 2px !important;
  background: #B7000C !important;
}

.category .gm-post-count {
  color: #999 !important;
  font-size: 14px !important;
  padding-bottom: 18px !important;
}

.category .gm-all-title-row h2 {
  transform: translateY(6px) !important;
}

.category .gm-all-title-row h2 {
  transform: translateY(9px) !important;
}

.category .gm-post-count {
  transform: translateY(5px) !important;
}

/* Restore footer height if it was compressed by mistake */
.category footer,
.single footer {
  min-height: unset !important;
  height: auto !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
  display: block !important;
  overflow: visible !important;
}

/* Content-to-footer gap: channel pages and article pages */
.category main,
.single main {
  padding-bottom: 50px !important;
  margin-bottom: 0 !important;
}

/* Avoid extra gap from the last block */
.category main > *:last-child,
.single main > *:last-child {
  margin-bottom: 0 !important;
}

.category main {
  padding-bottom: 0 !important;
}

.category main > .layout,
.category main > div,
.category .layout,
.category .flex-grow,
.category .space-y-8,
.category .space-y-\[45px\] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.category main::after,
.single main::after {
  content: "";
  display: block;
  height: 50px;
}

.single main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Category/article content to footer gap */
body.category main,
body.single main {
  padding-bottom: 50px !important;
}

body.category main::after,
body.single main::after {
  content: none !important;
  display: none !important;
}

body.category footer,
body.single footer {
  margin-top: 0 !important;
}

/* Category pagination */
.gm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 28px;
}

.gm-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #fff;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #eee;
}

.gm-pagination .page-numbers.current,
.gm-pagination .page-numbers:hover {
  background: #B7000C;
  color: #fff !important;
  border-color: #B7000C;
}

.category .gm-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  padding-top: 34px !important;
  margin: 0 !important;
}

.category .gm-pagination ul,
.category .gm-pagination li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.category .gm-pagination .page-numbers {
  min-width: 40px !important;
  height: 40px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #666 !important;
  border: 1px solid #eee !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.category .gm-pagination .page-numbers.current {
  background: #B7000C !important;
  color: #fff !important;
  border-color: #B7000C !important;
}

.category .gm-pagination a.page-numbers:hover {
  background: #fff !important;
  color: #B7000C !important;
  border-color: #B7000C !important;
}

.category .gm-pagination .prev,
.category .gm-pagination .next {
  min-width: 72px !important;
}

.category .gm-pagination {
  height: 100px !important;
  padding-top: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

body.category main > a.page-numbers,
body.category main > span.page-numbers,
body.category main > .page-numbers,
body.category section > a.page-numbers,
body.category section > span.page-numbers,
body.category section > .page-numbers {
  display: none !important;
}

body.category main > a.prev,
body.category main > a.next,
body.category section > a.prev,
body.category section > a.next {
  display: none !important;
}

body.category section.space-y-5 > .page-numbers,
body.category section.space-y-5 > a.page-numbers,
body.category section.space-y-5 > span.page-numbers,
body.category section.space-y-5 > a.prev,
body.category section.space-y-5 > a.next {
  display: none !important;
}

body.category section.space-y-5 > nav.gm-pagination,
body.category section.space-y-5 > .gm-pagination {
  display: flex !important;
}

body.category section > .page-numbers:not(.current),
body.category section > a.page-numbers,
body.category section > span.page-numbers,
body.category section > a.prev,
body.category section > a.next {
  display: none !important;
}

body.category section > nav.gm-pagination,
body.category nav.gm-pagination .page-numbers {
  display: inline-flex !important;
}

.gm-channel-card-meta,
.gm-channel-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  color: #9ca3af;
  font-size: 12px;
  line-height: 1;
}

.gm-channel-list-meta {
  margin-top: 16px;
}

.gm-channel-editor,
.gm-channel-meta-eye,
.gm-channel-meta-comment,
.gm-channel-meta-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.gm-channel-editor img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center;
  background: #fff3f3;
  border: 1px solid rgba(183, 0, 12, 0.12);
}

.gm-channel-meta-eye svg,
.gm-channel-meta-comment svg,
.gm-channel-meta-like svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.gm-article-content {
  color: #2f3131;
}

.gm-article-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.gm-article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 3rem 0 1.25rem;
  color: #1a1c1c;
}

.gm-article-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 2.25rem 0 1rem;
  color: #1a1c1c;
}

.gm-article-content ul,
.gm-article-content ol {
  margin: 0 0 1.5rem 1.5rem;
  line-height: 1.8;
}

.gm-article-content img {
  border-radius: 1.5rem;
  margin: 2rem 0;
}

.gm-article-content blockquote {
  border-left: 4px solid #b7000c;
  background: rgba(183, 0, 12, 0.05);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 1rem 1rem 0;
  font-weight: 500;
}

/* Article detail interaction alignment */
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.ghost-border {
  border: 1px solid rgba(233, 188, 182, 0.15);
}

.gm-article-shell {
  overflow: visible;
  align-items: flex-start;
}

.gm-article-main-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  column-gap: 45px;
  align-items: start;
}

.gm-article-content-area,
.gm-comments-section {
  grid-column: 1;
  min-width: 0;
}

.gm-mobile-article-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
}

body.single .gm-article-sticky {
  position: static !important;
  top: auto !important;
  align-self: flex-start;
  z-index: 10;
}

.gm-article-meta {
  column-gap: 24px;
  color: #5f5e5e;
}

.gm-article-author {
  color: #1a1c1c;
}

.gm-article-author-avatar {
  flex: 0 0 40px;
}

.gm-article-author-avatar img,
[data-auth-actions] img[alt="用户头像"],
.account-shell img[alt="用户头像"],
.account-shell #gm-avatar-grid img,
.gm-avatar-choice img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.account-shell #gm-avatar-grid .gm-avatar-choice,
.gm-member-center-root #gm-avatar-grid .gm-avatar-choice,
.gm-avatar-choice {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-shell #gm-avatar-grid .gm-avatar-choice img,
.gm-member-center-root #gm-avatar-grid .gm-avatar-choice img,
.gm-avatar-choice img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
}

.account-shell #gm-avatar-grid .gm-avatar-crop,
.gm-member-center-root #gm-avatar-grid .gm-avatar-crop,
.gm-avatar-crop {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff3f3;
}

.account-shell #gm-avatar-grid .gm-avatar-crop img,
.gm-member-center-root #gm-avatar-grid .gm-avatar-crop img,
.gm-avatar-crop img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: cover;
  object-position: center;
}


.gm-meta-text {
  color: #5f5e5e;
  line-height: 1;
  white-space: nowrap;
}

.gm-meta-separator {
  display: block;
  width: 1px;
  height: 16px;
  flex: 0 0 1px;
  background: rgba(233, 188, 182, 0.72);
}

.gm-meta-views {
  gap: 6px;
}

.gm-meta-eye {
  width: 17px;
  height: 17px;
  color: #5f5e5e;
  flex: 0 0 17px;
}

.gm-article-summary {
  position: relative;
  margin-top: 34px;
  padding: 34px 42px 34px 56px;
  background: rgba(183, 0, 12, 0.055) !important;
  border-radius: 0 16px 16px 0;
}

.gm-article-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #B7000C;
}

.gm-article-summary-text {
  margin: 0;
  color: #1a1c1c;
}

.gm-comments-section {
  background: #f3f3f3 !important;
  border-radius: 32px;
}

.gm-action-button {
  color: #5f5e5e;
}

.gm-action-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: currentColor;
}

.gm-action-button[aria-pressed="true"] {
  color: #B7000C;
}

.gm-action-button[aria-pressed="true"] .material-symbols-outlined {
  color: #B7000C;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.gm-action-button[aria-pressed="true"] .gm-action-icon-star {
  fill: currentColor;
}

.gm-action-button:active .material-symbols-outlined {
  transform: scale(1.25);
}

.gm-action-button:active .gm-action-icon {
  transform: scale(1.18);
}

.gm-submit-comment-button {
  min-width: 128px;
  min-height: 48px;
  background: #111827 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
}

.gm-submit-comment-button:hover {
  background: #B7000C !important;
}

.gm-submit-comment-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.gm-comment-item {
  scroll-margin-top: 140px;
}

.gm-related-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.gm-related-thumb {
  display: block;
  width: 72px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f3;
}

.gm-related-title {
  color: #1a1c1c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.gm-related-card:hover .gm-related-title {
  color: #B7000C;
}

@media (max-width: 768px) {
  body.single .gm-article-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 24px 16px 56px !important;
  }

  body.single .gm-article-shell > .gm-article-sticky:first-child {
    display: none !important;
  }

  body.single .gm-article-main-column {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.single .gm-article-content-area {
    width: 100%;
    min-width: 0;
  }

  body.single .gm-article-content-area > div:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
  }

  body.single .gm-article-content-area > div:first-child form {
    width: 100%;
  }

  body.single .gm-article-breadcrumb {
    flex-wrap: wrap;
    row-gap: 8px;
    font-size: 13px;
    line-height: 1.5;
  }

  body.single .gm-article-title {
    margin-bottom: 22px !important;
    color: #111827;
    font-size: 30px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }

  body.single .gm-article-meta {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-bottom: 26px !important;
  }

  body.single .gm-meta-separator {
    display: none;
  }

  body.single .gm-article-summary {
    margin-top: 24px;
    padding: 20px 18px 20px 26px;
    border-radius: 0 12px 12px 0;
  }

  body.single .gm-article-summary-text {
    font-size: 16px !important;
    line-height: 1.8 !important;
  }

  body.single .gm-article-content-area header {
    margin-bottom: 32px !important;
  }

  body.single .gm-article-content-area figure {
    margin-bottom: 32px !important;
    border-radius: 18px !important;
  }

  body.single .editorial-content {
    margin-bottom: 28px !important;
    font-size: 16px !important;
  }

  body.single .editorial-content p,
  body.single .editorial-content ul,
  body.single .editorial-content ol,
  body.single .editorial-content blockquote {
    font-size: 16px;
    line-height: 1.85;
  }

  body.single .editorial-content h2 {
    gap: 10px;
    font-size: 21px;
    line-height: 1.45;
    margin: 2.25rem 0 1rem;
  }

  body.single .editorial-content h2::before {
    height: 26px;
  }

  body.single .editorial-content h3 {
    font-size: 18px;
    margin: 1.75rem 0 0.8rem;
  }

  body.single .editorial-content img {
    border-radius: 14px;
    margin: 1.5rem 0;
  }

  body.single .editorial-content blockquote {
    padding: 1rem 1.1rem;
    border-radius: 0 12px 12px 0;
  }

  body.single .gm-mobile-article-actions {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0 0 34px;
  }

  body.single .gm-mobile-article-actions > * + * {
    margin-top: 0 !important;
  }

  body.single .gm-mobile-article-actions .gm-action-button {
    width: 100% !important;
    height: 58px !important;
    border-radius: 14px !important;
  }

  body.single .gm-mobile-action-spacer,
  body.single .gm-mobile-hide-action {
    display: none !important;
  }

  body.single .gm-comments-section {
    padding: 22px 16px !important;
    border-radius: 18px !important;
  }

  body.single .gm-comments-section h2 {
    margin-bottom: 22px !important;
    font-size: 18px !important;
  }

  body.single .gm-comments-section textarea {
    min-height: 112px;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  body.single .gm-comments-section .mb-12 > .flex {
    flex-direction: column;
    align-items: stretch !important;
    gap: 14px;
  }

  body.single .gm-submit-comment-button {
    width: 100%;
  }

  body.single .gm-comment-item {
    gap: 12px;
  }
}

.gm-comment-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center;
  background: #fff3f3;
  border: 1px solid rgba(183, 0, 12, 0.12);
}

.gm-reply-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  object-fit: cover;
  object-position: center;
  background: #fff3f3;
  border: 1px solid rgba(183, 0, 12, 0.12);
}

.gm-reply-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #B7000C;
  font-size: 12px;
  font-weight: 800;
}

.gm-signature-text {
  margin: 0 0 8px;
  color: #9a3412;
  font-size: 12px;
  line-height: 1.6;
}

.reply-comment-form button[type="submit"] {
  background: #111827 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
}

.reply-comment-form button[type="submit"]:hover {
  background: #B7000C !important;
}

.reply-comment-form textarea:focus,
#comment-textarea:focus {
  border-color: rgba(183, 0, 12, 0.35);
  box-shadow: 0 0 0 2px rgba(183, 0, 12, 0.12);
}

/* Article detail typography scale */
body.single {
  background: #f9f9f9;
}

.gm-article-content {
  font-size: 16px;
  color: #2f3131;
}

.gm-article-content p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 1.45rem;
}

.gm-article-content h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
  margin: 2.75rem 0 1.15rem;
  color: #1a1c1c;
}

.gm-article-content h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin: 2rem 0 0.9rem;
  color: #1a1c1c;
}

.gm-article-content blockquote {
  font-size: 16px;
  line-height: 1.8;
}

.editorial-content {
  color: #2f3131;
}

.editorial-content p {
  color: #2f3131;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.editorial-content h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #1a1c1c;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.45;
  margin: 3rem 0 1.5rem;
}

.editorial-content h2::before {
  content: "";
  width: 4px;
  height: 32px;
  flex: 0 0 4px;
  background: #B7000C;
}

.editorial-content h3 {
  color: #1a1c1c;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin: 2rem 0 1rem;
}

.editorial-content ul,
.editorial-content ol {
  margin: 0 0 1.5rem 1.5rem;
  color: #2f3131;
  font-size: 18px;
  line-height: 1.8;
}

.editorial-content li {
  margin-bottom: 0.5rem;
}

.editorial-content img {
  border-radius: 1.5rem;
  margin: 2rem 0;
}

.editorial-content blockquote {
  border-left: 4px solid #B7000C;
  background: rgba(183, 0, 12, 0.05);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 1rem 1rem 0;
  color: #1a1c1c;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

.gm-hover-zoom-media {
  overflow: hidden;
}

.gm-hover-zoom-image {
  display: block;
  transform: scale(1);
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.gm-hover-zoom-media:hover .gm-hover-zoom-image,
.gm-hover-zoom-media:focus-visible .gm-hover-zoom-image,
.gm-hover-zoom-media:focus-within .gm-hover-zoom-image {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .gm-hover-zoom-image {
    transition: none;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body.page-template-page-user-center {
  background: #f9f9f9;
}

html:not(.icons-ready) .material-symbols-outlined {
  visibility: hidden;
}

.account-nav[aria-current="page"] {
  background: #fff;
  color: #B7000C;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.account-nav[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: #B7000C;
  border-radius: 0 4px 4px 0;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .gm-nav {
    display: none;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  header > div {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  header [data-auth-actions] {
    gap: 14px !important;
  }

  .account-shell {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 24px !important;
  }

  .side-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .account-nav {
    justify-content: center;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .account-nav[aria-current="page"]::before {
    display: none;
  }

  .stack-mobile {
    flex-direction: column;
    align-items: flex-start !important;
  }
}
