/*
Theme Name: 木安 muan
Author: 木安 muan
Description: 木安 muan 个人学习博客与代码笔记主题。
Version: 1.0.36
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: muan
*/

:root {
  color-scheme: light;
  --bg: #edf8ff;
  --paper: rgba(255, 255, 255, 0.78);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --ink: #102638;
  --muted: #5f7486;
  --line: rgba(28, 148, 196, 0.18);
  --accent: #0699c7;
  --accent-dark: #075985;
  --green: #2f7d73;
  --night: #123047;
  --cyan: #13b8d6;
  --cyan-soft: rgba(19, 184, 214, 0.12);
  --violet: #6d8dff;
  --magenta: #9a6cff;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(248, 253, 255, 0.96);
  --shadow: 0 28px 70px rgba(49, 115, 150, 0.14), 0 0 34px rgba(19, 184, 214, 0.12);
  --soft-shadow: 0 14px 34px rgba(49, 115, 150, 0.1), 0 0 22px rgba(19, 184, 214, 0.08);
  --container: min(1160px, calc(100% - 40px));
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(19, 184, 214, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(109, 141, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, #f7fcff 0%, var(--bg) 42%, #e4f4ff 100%);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
}

main {
  display: block;
}

::selection {
  color: #fff;
  background: var(--accent-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 239, 231, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 36px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--night);
  font-family: "Microsoft YaHei", "PingFang SC", Georgia, serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.logo-mark::before {
  content: "木";
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.site-header .nav-links a,
.menu a {
  padding: 8px 0;
}

.site-header .nav-links a:hover,
.menu a:hover,
.site-header .nav-links .current-menu-item > a {
  color: var(--accent-dark);
}

.menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section,
.content-shell {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 86px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 110px auto auto 6vw;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

@supports (text-wrap: balance) {
  h1,
  h2 {
    text-wrap: balance;
  }
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.3;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  padding: 8px 12px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.46);
  font-size: 14px;
  font-weight: 700;
}

.button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--night);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(31, 41, 51, 0.18);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select {
  border: 1px solid rgba(31, 41, 51, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
select {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  min-height: 140px;
  padding: 14px;
}

form p {
  margin-bottom: 16px;
}

form label {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
form textarea,
form select {
  width: 100%;
  margin-top: 6px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(180, 83, 9, 0.26);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
input[type="submit"]:focus-visible {
  outline: 3px solid rgba(180, 83, 9, 0.35);
  outline-offset: 3px;
}

.button.secondary {
  color: var(--night);
  background: transparent;
  border: 1px solid rgba(31, 41, 51, 0.2);
  box-shadow: none;
}

.profile-card,
.post-card,
.notice,
.gate-card,
.article-card,
.sidebar-card,
.wp-block-group,
.wp-block-quote,
.wp-block-code {
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 16px 44px rgba(58, 45, 31, 0.08);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  box-shadow: var(--shadow);
}

.profile-card::after {
  content: "";
  position: absolute;
  right: -62px;
  bottom: -76px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(180, 83, 9, 0.14);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  pointer-events: none;
}

.profile-mark {
  display: grid;
  width: 112px;
  height: 86px;
  margin-bottom: 68px;
  place-items: center;
  border-radius: 28px;
  color: #fff;
  background: var(--accent-dark);
  font-family: "Microsoft YaHei", "PingFang SC", Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.profile-mark::before {
  content: "笔记";
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-card p,
.post-card p,
.article-card p,
.notice p,
.sidebar-card,
.entry-content li,
.entry-content p {
  color: var(--muted);
}

.meta-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.meta-grid div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.meta-grid dt {
  color: var(--muted);
}

.meta-grid dd {
  margin: 0;
  font-weight: 800;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 0;
}

.status-strip div {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 12px 34px rgba(58, 45, 31, 0.07);
}

.status-strip strong {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--green);
}

.status-strip span {
  color: var(--muted);
  font-weight: 800;
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 34px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
}

.quick-search form,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.search-page-form {
  margin: 22px 0 28px;
  background: rgba(255, 250, 240, 0.78);
}

.quick-search input,
.search-page-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.quick-search button,
.search-page-form button {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 22px;
  white-space: nowrap;
  box-shadow: none;
}

.quick-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(180, 83, 9, 0.1);
  font-size: 14px;
  font-weight: 800;
}

.post-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card a,
.article-card a {
  display: flex;
  min-height: 260px;
  padding: 28px;
  flex-direction: column;
}

.post-card h3,
.article-card h2,
.topic-card h3,
.sidebar-card h2,
.notice h2,
.gate-card h2 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.025em;
}

.article-card p,
.post-card p {
  overflow-wrap: anywhere;
}

.post-card,
.article-card,
.topic-card,
.profile-card,
.notice,
.gate-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.post-card:hover,
.article-card:hover,
.topic-card:hover {
  border-color: rgba(180, 83, 9, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(58, 45, 31, 0.11);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(180, 83, 9, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.tag-public {
  color: var(--green);
  background: rgba(63, 107, 87, 0.12);
}

.tag-locked {
  color: #fff;
  background: var(--night);
}

.post-card time,
.article-meta,
.entry-meta {
  color: var(--muted);
  font-size: 14px;
}

.post-card time {
  margin-top: auto;
}

.post-card .article-meta {
  margin-top: auto;
  margin-bottom: 0;
}

.post-card .article-meta time {
  margin-top: 0;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

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

.reading-time::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 42px;
  align-items: start;
}

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-card {
  min-height: 210px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.7);
}

.code-lock {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(24, 32, 42, 0.94), rgba(124, 45, 18, 0.9)),
    radial-gradient(circle at top right, rgba(255, 250, 240, 0.24), transparent 16rem);
}

.code-lock p,
.code-lock span {
  color: rgba(255, 255, 255, 0.78);
}

.topic-card span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--accent);
  font-weight: 900;
}

.notice,
.gate-card {
  padding: 42px;
  box-shadow: var(--shadow);
}

.gate-card {
  margin: 28px 0;
  border-color: rgba(180, 83, 9, 0.28);
}

.gate-card-locked,
.gate-card-pending {
  position: relative;
  overflow: hidden;
}

.gate-card-locked::after,
.gate-card-pending::after {
  content: "木安 muan";
  position: absolute;
  right: 24px;
  bottom: 12px;
  color: rgba(180, 83, 9, 0.12);
  font: 900 72px Georgia, serif;
  pointer-events: none;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
  padding: 70px 0 96px;
}

.content-layout > section,
.entry-shell > article,
.entry-shell > section {
  min-width: 0;
}

.article-list {
  display: grid;
  gap: 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.article-meta .card-tags {
  margin-bottom: 0;
}

.article-meta span {
  color: var(--accent-dark);
  font-weight: 900;
}

.archive-hero {
  margin-bottom: 28px;
  padding: 38px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
}

.code-archive-hero {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(24, 32, 42, 0.95), rgba(124, 45, 18, 0.9)),
    radial-gradient(circle at top right, rgba(255, 250, 240, 0.18), transparent 18rem);
}

.code-archive-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.code-archive-hero .eyebrow {
  color: #fbbf24;
}

.code-archive-hero .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.article-card {
  overflow: hidden;
}

.article-card a {
  min-height: 0;
}

.sidebar-card {
  position: sticky;
  top: 96px;
  padding: 26px;
}

.sidebar-card a {
  color: var(--night);
  font-weight: 800;
}

.sidebar-card li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

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

.sidebar-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination {
  margin-top: 28px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination .page-numbers {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.78);
  text-align: center;
  font-weight: 800;
}

.pagination .page-numbers.current {
  color: #fff;
  background: var(--night);
}

.entry-shell {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 96px;
}

.entry-header {
  margin-bottom: 36px;
}

.entry-header h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.entry-content {
  padding: 44px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 34px;
  background: rgba(255, 250, 240, 0.84);
  box-shadow: var(--shadow);
}

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

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

.entry-content a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25em;
}

.entry-content li + li {
  margin-top: 8px;
}

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-table,
.entry-content .wp-block-embed {
  margin: 28px 0;
}

.entry-content img {
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.entry-content blockquote,
.wp-block-quote {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 5px solid var(--accent);
}

.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  padding: 12px 14px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  text-align: left;
}

.wp-block-group,
.wp-block-code {
  margin: 28px 0;
  padding: 24px;
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.wp-block-separator {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.alignwide,
.alignfull {
  width: 100%;
  max-width: 100%;
}

.entry-content h2 {
  margin-top: 34px;
  font-size: clamp(25px, 3vw, 34px);
}

.entry-content pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 18px;
  color: #f8fafc;
  background: #111827;
}

.entry-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(31, 41, 51, 0.08);
}

.entry-content pre code {
  padding: 0;
  background: transparent;
}

.muan-auth-page {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 54px 0 74px;
  background:
    radial-gradient(circle at 20% 16%, rgba(19, 184, 214, 0.18), transparent 24rem),
    radial-gradient(circle at 84% 14%, rgba(109, 141, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, #f7fcff 0%, var(--bg) 48%, #e4f4ff 100%);
}

.muan-auth-shell {
  width: min(980px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(440px, 0.88fr);
  gap: 24px;
  align-items: stretch;
}

.muan-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--night);
  font-weight: 900;
}

.muan-auth-aside {
  padding: 34px;
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(24, 32, 42, 0.96), rgba(124, 45, 18, 0.9)),
    radial-gradient(circle at top right, rgba(255, 250, 240, 0.18), transparent 16rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.muan-auth-aside .muan-auth-brand {
  color: #fff;
}

.muan-auth-aside .muan-auth-brand span {
  background: rgba(255, 255, 255, 0.14);
}

.muan-auth-photo {
  width: 100%;
  height: 220px;
  margin: 6px 0 18px;
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(24, 32, 42, 0.08), rgba(124, 45, 18, 0.28)),
    url('/wp-content/themes/muan/auth-code-photo.jpg') center/cover no-repeat;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.muan-auth-kicker {
  margin: 18px 0 10px;
  color: rgba(251, 191, 36, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.muan-auth-heading {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.muan-auth-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.muan-auth-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.muan-auth-list li {
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
}

.muan-auth-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--night);
  font-family: "Microsoft YaHei", "PingFang SC", Georgia, serif;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.muan-auth-card {
  padding: 28px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.muan-auth-card .muan-sb-title {
  margin-bottom: 20px;
  text-align: left;
}

.muan-auth-card .muan-sb-title h1 {
  margin-bottom: 8px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.muan-auth-card .muan-sb-title p {
  color: var(--muted);
  font-size: 15px;
}

.muan-auth-card .muan-sb-user {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.muan-auth-card .muan-sb-user + .muan-sb-user {
  margin-top: 0;
}

.muan-auth-method-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.muan-auth-method-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.muan-auth-method-tabs button.is-active {
  color: #fff;
  background: var(--night);
  box-shadow: 0 8px 18px rgba(58, 45, 31, 0.12);
}

.muan-auth-method-panel[hidden] {
  display: none;
}

.muan-auth-card .muan-sb-input,
.muan-auth-card .muan-sb-btn {
  min-height: 48px;
  border-radius: 12px;
}

.muan-auth-card .muan-sb-divider {
  margin: 22px 0;
}

.muan-auth-card .muan-sb-links,
.muan-auth-card .muan-sb-form-note {
  text-align: center;
}

.muan-sb-form-stack {
  width: 100%;
}

.muan-sb-title {
  margin-bottom: 22px;
  text-align: left;
}

.muan-sb-title h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.muan-sb-title p {
  margin: 0;
  color: var(--muted);
}

.muan-sb-user {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 34px rgba(58, 45, 31, 0.06);
}

.muan-sb-user + .muan-sb-user {
  margin-top: 14px;
}

.muan-sb-form-group {
  margin-bottom: 14px;
}

.muan-sb-label {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--night);
  font-size: 13px;
  font-weight: 900;
}

.muan-sb-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.muan-sb-password-wrap {
  position: relative;
}

.muan-sb-password-wrap .muan-sb-input {
  padding-right: 72px;
}

.muan-sb-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  padding: 0;
  color: var(--accent-dark);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.muan-sb-password-toggle:hover {
  color: var(--night);
}

.muan-sb-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(180, 83, 9, 0.16);
  outline: none;
}

.muan-sb-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: end;
}

.muan-sb-btn {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--night);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(31, 41, 51, 0.18);
}

.muan-sb-btn:hover {
  color: #fff;
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.muan-sb-btn-light {
  color: var(--night);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(31, 41, 51, 0.12);
  box-shadow: none;
  font-size: 13px;
}

.muan-sb-btn-light:hover {
  color: #fff;
  background: var(--night);
}

.muan-sb-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.muan-sb-check input {
  margin: 0;
}

.muan-sb-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.muan-sb-divider::before,
.muan-sb-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.muan-sb-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  text-align: left;
}

.muan-sb-links a {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
}

.muan-sb-links a,
.muan-sb-message a {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.muan-sb-form-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.muan-sb-message,
.muan-auth-alert {
  padding: 24px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--soft-shadow);
}

.muan-auth-alert {
  margin-bottom: 18px;
  border-color: rgba(153, 27, 27, 0.18);
  color: #7f1d1d;
  background: #fef2f2;
}

.muan-auth-alert-success {
  border-color: rgba(22, 101, 52, 0.18);
  color: #166534;
  background: #f0fdf4;
}

.muan-auth-alert strong {
  display: block;
  margin-bottom: 8px;
}

.muan-auth-alert ul {
  margin: 0;
  padding-left: 1.2em;
}

.muan-sms-status {
  display: block;
  min-height: 22px;
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.muan-sms-status.is-success {
  color: #166534;
}

.muan-sms-status.is-error {
  color: #991b1b;
}

.muan-hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  width: var(--container);
  margin: 0 auto;
  padding: 34px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 8px;
  margin-top: 8px !important;
}

.footer-links a {
  color: var(--night);
  font-weight: 800;
}

@media (max-width: 920px) {
  .hero,
  .quick-search,
  .post-grid,
  .split-section,
  .content-layout,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .sidebar-card {
    position: static;
  }

  .quick-links {
    grid-column: auto;
  }

  .content-layout {
    padding-top: 48px;
  }

  .muan-auth-shell {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-header .nav-links,
  .menu {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-header .nav-links a,
  .menu a {
    white-space: nowrap;
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    gap: 30px;
  }

  .profile-card,
  .archive-hero {
    padding: 28px;
  }

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

  .entry-content,
  .notice,
  .gate-card {
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }

  .muan-auth-page {
    padding: 42px 0 70px;
  }

  .muan-auth-aside {
    padding: 28px;
  }

  .muan-auth-photo {
    height: 180px;
  }
}

@media (max-width: 520px) {
  .nav,
  .section,
  .content-shell,
  .site-footer,
  .entry-shell {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 36px;
    letter-spacing: -0.045em;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .actions {
    flex-direction: column;
  }

  .post-card a,
  .article-card a,
  .topic-card,
  .profile-card,
  .archive-hero,
  .sidebar-card {
    padding: 22px;
    border-radius: 24px;
  }

  .muan-auth-shell {
    width: min(100% - 28px, 1080px);
  }

  .muan-auth-card {
    padding: 22px;
    border-radius: 20px;
  }

  .muan-auth-aside {
    border-radius: 20px;
  }

  .muan-auth-photo {
    height: 150px;
    border-radius: 18px;
  }

  .muan-sb-code-row {
    grid-template-columns: 1fr;
  }

  .post-card a,
  .article-card a {
    min-height: 0;
  }

  .card-tags {
    margin-bottom: 22px;
  }

  .quick-search form {
    flex-direction: row;
    border-radius: 999px;
  }

  .search-page-form {
    flex-direction: row;
    border-radius: 999px;
  }

  .quick-search button,
  .search-page-form button {
    width: auto;
  }

  .button {
    width: 100%;
  }

  .pagination .nav-links {
    justify-content: center;
  }
}

@media not all {
/* Disabled obsolete dark cyberpunk override */
body {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.26), transparent 25rem),
    radial-gradient(circle at 86% 12%, rgba(139, 92, 246, 0.24), transparent 28rem),
    radial-gradient(circle at 50% 105%, rgba(244, 114, 182, 0.14), transparent 34rem),
    linear-gradient(135deg, #030712 0%, #07111f 46%, #020617 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: 0.48;
  background:
    linear-gradient(rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 48%, rgba(139, 92, 246, 0.08) 49%, transparent 52%);
  background-size: 42px 42px, 42px 42px, 220px 220px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.28));
}

body::after {
  z-index: 0;
  opacity: 0.34;
  background-image:
    radial-gradient(circle, rgba(125, 211, 252, 0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(244, 114, 182, 0.48) 0 1px, transparent 1.3px);
  background-position: 0 0, 18px 26px;
  background-size: 92px 92px, 138px 138px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  color: #020617;
  background: #67e8f9;
}

.site-header {
  border-bottom: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(2, 6, 23, 0.76);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.13);
}

.logo,
.site-header .nav-links a,
.menu a {
  color: rgba(230, 251, 255, 0.86);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.16);
}

.logo-mark,
.muan-auth-aside .muan-auth-brand span,
.muan-auth-brand span {
  color: #07111f;
  background: linear-gradient(135deg, #67e8f9 0%, #a78bfa 100%);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.36), inset 0 0 12px rgba(255, 255, 255, 0.42);
}

.site-header .nav-links a:hover,
.menu a:hover,
.site-header .nav-links .current-menu-item > a,
.footer-links a:hover,
.sidebar-card a:hover {
  color: #67e8f9;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.56);
}

.footer-links a,
.sidebar-card a {
  color: rgba(230, 251, 255, 0.92);
}

.hero {
  isolation: isolate;
}

.hero::before {
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.18), inset 0 0 30px rgba(139, 92, 246, 0.12);
}

.hero::after {
  content: "";
  position: absolute;
  right: 4vw;
  top: 18%;
  z-index: -1;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 38% 62% 48% 52%;
  background:
    radial-gradient(circle at 40% 38%, rgba(34, 211, 238, 0.18), transparent 32%),
    conic-gradient(from 120deg, transparent, rgba(34, 211, 238, 0.18), transparent, rgba(139, 92, 246, 0.16), transparent);
  filter: blur(0.2px);
  opacity: 0.72;
}

.eyebrow,
.topic-card span,
.article-meta span,
.tag,
.quick-links a,
.entry-content a,
.muan-sb-links a,
.muan-sb-message a {
  color: #67e8f9;
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.34);
}

h1,
h2,
h3 {
  color: #f8feff;
  text-shadow: 0 0 22px rgba(34, 211, 238, 0.18);
}

.lead,
.profile-card p,
.post-card p,
.article-card p,
.notice p,
.sidebar-card,
.entry-content li,
.entry-content p,
.entry-meta,
.post-card time,
.article-meta,
.muan-sb-title p,
.muan-sb-check,
.muan-sb-divider,
.muan-sb-form-note,
.muan-sms-status,
.site-footer {
  color: rgba(180, 205, 220, 0.82);
}

.button,
.wp-block-button__link,
input[type="submit"],
button,
.muan-sb-btn {
  border: 1px solid rgba(103, 232, 249, 0.32);
  color: #04111f;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 44%, #a78bfa 100%);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.14), 0 16px 34px rgba(34, 211, 238, 0.2), inset 0 0 18px rgba(255, 255, 255, 0.22);
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover,
.muan-sb-btn:hover {
  color: #020617;
  background: linear-gradient(135deg, #a5f3fc 0%, #67e8f9 42%, #c4b5fd 100%);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.46), 0 18px 38px rgba(0, 0, 0, 0.28);
}

.button.secondary,
.muan-sb-btn-light,
.code-archive-hero .button.secondary {
  color: #dffbff;
  background: rgba(7, 16, 34, 0.64);
  border: 1px solid rgba(103, 232, 249, 0.34);
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.08);
}

.button.secondary:hover,
.muan-sb-btn-light:hover {
  color: #67e8f9;
  background: rgba(13, 26, 49, 0.9);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select,
.muan-sb-input {
  border: 1px solid rgba(103, 232, 249, 0.2);
  color: #e6fbff;
  background: rgba(3, 10, 24, 0.72);
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.06);
}

input::placeholder,
textarea::placeholder {
  color: rgba(180, 205, 220, 0.52);
}

form label,
.muan-sb-label {
  color: rgba(230, 251, 255, 0.92);
}

input:focus,
textarea:focus,
select:focus,
.muan-sb-input:focus {
  border-color: #67e8f9;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.18), inset 0 0 20px rgba(34, 211, 238, 0.08);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
input[type="submit"]:focus-visible {
  outline: 3px solid rgba(103, 232, 249, 0.58);
}

.profile-card,
.post-card,
.notice,
.gate-card,
.article-card,
.sidebar-card,
.wp-block-group,
.wp-block-quote,
.wp-block-code,
.quick-search,
.topic-card,
.archive-hero,
.entry-content,
.muan-auth-aside,
.muan-auth-card,
.muan-sb-user,
.muan-sb-message,
.muan-auth-alert,
.pagination .page-numbers {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(5, 13, 29, 0.88), rgba(8, 20, 42, 0.78)) padding-box,
    linear-gradient(135deg, rgba(103, 232, 249, 0.48), rgba(139, 92, 246, 0.26), rgba(244, 114, 182, 0.26)) border-box;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.profile-card::before,
.post-card::before,
.notice::before,
.gate-card::before,
.article-card::before,
.sidebar-card::before,
.quick-search::before,
.topic-card::before,
.archive-hero::before,
.entry-content::before,
.muan-auth-aside::before,
.muan-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(103, 232, 249, 0.08) 0 1px, transparent 1px 18px);
  opacity: 0.52;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.72), transparent 62%);
}

.profile-card > *,
.notice > *,
.gate-card > *,
.quick-search > *,
.topic-card > *,
.archive-hero > *,
.entry-content > *,
.muan-auth-aside > *,
.muan-auth-card > * {
  position: relative;
  z-index: 1;
}

.profile-card::after {
  right: -64px;
  bottom: -76px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 62%);
  filter: blur(2px);
}

.profile-mark,
.status-strip strong,
.tag-locked,
.pagination .page-numbers.current {
  color: #020617;
  background: linear-gradient(135deg, #67e8f9 0%, #a78bfa 100%);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.36);
}

.hero-badges span,
.tag,
.quick-links a {
  border: 1px solid rgba(103, 232, 249, 0.26);
  color: rgba(230, 251, 255, 0.86);
  background: rgba(34, 211, 238, 0.08);
}

.tag-public {
  color: #bef264;
  background: rgba(163, 230, 53, 0.1);
}

.post-card:hover,
.article-card:hover,
.topic-card:hover {
  border-color: rgba(103, 232, 249, 0.72);
  transform: translateY(-6px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52), 0 0 42px rgba(34, 211, 238, 0.24);
}

.quick-search form,
.search-page-form,
.muan-auth-method-tabs {
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(3, 10, 24, 0.62);
  box-shadow: inset 0 0 22px rgba(34, 211, 238, 0.06);
}

.quick-search input,
.search-page-form input {
  border: 0;
  color: #e6fbff;
  background: transparent;
  box-shadow: none;
}

.code-lock,
.code-archive-hero,
.muan-auth-aside {
  border-color: rgba(103, 232, 249, 0.28);
  color: #f8feff;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.22), transparent 16rem),
    linear-gradient(145deg, rgba(2, 6, 23, 0.96), rgba(17, 24, 39, 0.92) 52%, rgba(49, 46, 129, 0.7));
}

.code-lock p,
.code-lock span,
.code-archive-hero p,
.muan-auth-copy,
.muan-auth-list li {
  color: rgba(230, 251, 255, 0.8);
}

.code-archive-hero .eyebrow,
.muan-auth-kicker {
  color: #67e8f9;
}

.muan-auth-page {
  background:
    radial-gradient(circle at 18% 16%, rgba(34, 211, 238, 0.24), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(139, 92, 246, 0.24), transparent 24rem),
    linear-gradient(135deg, #030712 0%, #07111f 48%, #020617 100%);
}

.muan-auth-photo {
  border: 1px solid rgba(103, 232, 249, 0.26);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(34, 211, 238, 0.24)),
    url('/wp-content/themes/muan/auth-code-photo.jpg') center/cover no-repeat;
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.2), 0 22px 46px rgba(0, 0, 0, 0.34);
}

.muan-auth-list li {
  border-color: rgba(103, 232, 249, 0.18);
  background: rgba(34, 211, 238, 0.08);
}

.muan-auth-method-tabs button {
  color: rgba(180, 205, 220, 0.82);
}

.muan-auth-method-tabs button.is-active {
  color: #031321;
  background: linear-gradient(135deg, #67e8f9 0%, #a78bfa 100%);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.26);
}

.muan-sb-password-toggle {
  color: #67e8f9;
}

.muan-sb-password-toggle:hover {
  color: #a5f3fc;
}

.muan-sb-divider::before,
.muan-sb-divider::after {
  background: rgba(103, 232, 249, 0.2);
}

.muan-auth-alert {
  color: #fecaca;
  background:
    linear-gradient(135deg, rgba(69, 10, 10, 0.82), rgba(7, 16, 34, 0.82)) padding-box,
    linear-gradient(135deg, rgba(248, 113, 113, 0.48), rgba(103, 232, 249, 0.18)) border-box;
}

.muan-auth-alert-success {
  color: #dcfce7;
  background:
    linear-gradient(135deg, rgba(5, 46, 22, 0.82), rgba(7, 16, 34, 0.82)) padding-box,
    linear-gradient(135deg, rgba(74, 222, 128, 0.48), rgba(103, 232, 249, 0.18)) border-box;
}

.entry-content pre {
  border: 1px solid rgba(103, 232, 249, 0.22);
  color: #dffbff;
  background: #020617;
  box-shadow: inset 0 0 28px rgba(34, 211, 238, 0.08);
}

.entry-content code {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
}

.entry-content table,
.wp-block-table table {
  background: rgba(3, 10, 24, 0.64);
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td,
.meta-grid div,
.sidebar-card li,
.site-footer {
  border-color: rgba(103, 232, 249, 0.16);
}

.gate-card-locked::after,
.gate-card-pending::after {
  color: rgba(34, 211, 238, 0.12);
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.18);
}

.site-footer {
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.38));
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: muan-grid-drift 24s linear infinite;
  }

  body::after {
    animation: muan-particle-drift 18s linear infinite;
  }

  .profile-card,
  .muan-auth-aside,
  .muan-auth-card,
  .archive-hero {
    animation: muan-holo-float 7s ease-in-out infinite;
  }
}

@keyframes muan-grid-drift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px, 220px 220px; }
}

@keyframes muan-particle-drift {
  from { background-position: 0 0, 18px 26px; }
  to { background-position: 92px 92px, 156px 164px; }
}

@keyframes muan-holo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 760px) {
  body::before {
    background-size: 34px 34px, 34px 34px, 180px 180px;
  }

  .hero::after {
    width: 76vw;
    height: 76vw;
    right: -24vw;
    top: 8%;
  }
}

}

/* Light holographic technology correction */
:root {
  color-scheme: light;
  --bg: #edf8ff;
  --paper: rgba(255, 255, 255, 0.78);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --ink: #102638;
  --muted: #5f7486;
  --line: rgba(28, 148, 196, 0.18);
  --accent: #0699c7;
  --accent-dark: #075985;
  --green: #2f7d73;
  --night: #123047;
  --cyan: #13b8d6;
  --cyan-soft: rgba(19, 184, 214, 0.12);
  --violet: #6d8dff;
  --magenta: #9a6cff;
  --panel: rgba(255, 255, 255, 0.74);
  --panel-strong: rgba(248, 253, 255, 0.96);
  --shadow: 0 28px 70px rgba(49, 115, 150, 0.14), 0 0 34px rgba(19, 184, 214, 0.12);
  --soft-shadow: 0 14px 34px rgba(49, 115, 150, 0.1), 0 0 22px rgba(19, 184, 214, 0.08);
}

body {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(19, 184, 214, 0.22), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(109, 141, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 50% 108%, rgba(154, 108, 255, 0.12), transparent 34rem),
    linear-gradient(135deg, #f7fcff 0%, #edf8ff 46%, #e4f4ff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

body::before {
  opacity: 0.5;
  background:
    linear-gradient(rgba(6, 153, 199, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 153, 199, 0.1) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 48%, rgba(109, 141, 255, 0.12) 49%, transparent 52%);
  background-size: 44px 44px, 44px 44px, 220px 220px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.16));
}

body::after {
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(6, 153, 199, 0.52) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(109, 141, 255, 0.34) 0 1px, transparent 1.3px);
  background-position: 0 0, 18px 26px;
  background-size: 96px 96px, 140px 140px;
}

.site-header {
  border-bottom: 1px solid rgba(6, 153, 199, 0.2);
  background: rgba(247, 252, 255, 0.76);
  box-shadow: 0 18px 44px rgba(49, 115, 150, 0.1), 0 0 28px rgba(19, 184, 214, 0.1);
}

.logo,
.site-header .nav-links a,
.menu a,
.footer-links a,
.sidebar-card a {
  color: rgba(16, 38, 56, 0.9);
  text-shadow: none;
}

.logo-mark,
.muan-auth-aside .muan-auth-brand span,
.muan-auth-brand span,
.profile-mark,
.status-strip strong,
.tag-locked,
.pagination .page-numbers.current {
  color: #ffffff;
  background: linear-gradient(135deg, #0699c7 0%, #6d8dff 100%);
  box-shadow: 0 10px 28px rgba(6, 153, 199, 0.22), inset 0 0 16px rgba(255, 255, 255, 0.34);
}

.site-header .nav-links a:hover,
.menu a:hover,
.site-header .nav-links .current-menu-item > a,
.footer-links a:hover,
.sidebar-card a:hover,
.eyebrow,
.topic-card span,
.article-meta span,
.tag,
.quick-links a,
.entry-content a,
.muan-sb-links a,
.muan-sb-message a,
.code-archive-hero .eyebrow,
.muan-auth-kicker {
  color: #047da5;
  text-shadow: 0 0 16px rgba(19, 184, 214, 0.18);
}

h1,
h2,
h3 {
  color: #102638;
  text-shadow: 0 10px 32px rgba(49, 115, 150, 0.08);
}

.lead,
.profile-card p,
.post-card p,
.article-card p,
.notice p,
.sidebar-card,
.entry-content li,
.entry-content p,
.entry-meta,
.post-card time,
.article-meta,
.muan-sb-title p,
.muan-sb-check,
.muan-sb-divider,
.muan-sb-form-note,
.muan-sms-status,
.site-footer {
  color: rgba(68, 91, 108, 0.86);
}

.button,
.wp-block-button__link,
input[type="submit"],
button,
.muan-sb-btn {
  border: 1px solid rgba(6, 153, 199, 0.24);
  color: #ffffff;
  background: linear-gradient(135deg, #0699c7 0%, #20c4df 48%, #6d8dff 100%);
  box-shadow: 0 16px 34px rgba(6, 153, 199, 0.18), inset 0 0 16px rgba(255, 255, 255, 0.2);
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover,
.muan-sb-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #047da5 0%, #13b8d6 52%, #5878f5 100%);
  box-shadow: 0 0 30px rgba(19, 184, 214, 0.3), 0 18px 36px rgba(49, 115, 150, 0.16);
}

.button.secondary,
.muan-sb-btn-light,
.code-archive-hero .button.secondary {
  color: #075985;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(6, 153, 199, 0.22);
  box-shadow: inset 0 0 18px rgba(19, 184, 214, 0.08);
}

.button.secondary:hover,
.muan-sb-btn-light:hover {
  color: #047da5;
  background: rgba(255, 255, 255, 0.9);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea,
select,
.muan-sb-input {
  border: 1px solid rgba(6, 153, 199, 0.18);
  color: #102638;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 18px rgba(19, 184, 214, 0.05);
}

input::placeholder,
textarea::placeholder {
  color: rgba(95, 116, 134, 0.62);
}

form label,
.muan-sb-label {
  color: #173d56;
}

input:focus,
textarea:focus,
select:focus,
.muan-sb-input:focus {
  border-color: #13b8d6;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(19, 184, 214, 0.16), inset 0 0 18px rgba(19, 184, 214, 0.08);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
input[type="submit"]:focus-visible {
  outline: 3px solid rgba(19, 184, 214, 0.36);
}

.profile-card,
.post-card,
.notice,
.gate-card,
.article-card,
.sidebar-card,
.wp-block-group,
.wp-block-quote,
.wp-block-code,
.quick-search,
.topic-card,
.archive-hero,
.entry-content,
.muan-auth-aside,
.muan-auth-card,
.muan-sb-user,
.muan-sb-message,
.muan-auth-alert,
.pagination .page-numbers {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 249, 255, 0.74)) padding-box,
    linear-gradient(135deg, rgba(19, 184, 214, 0.34), rgba(109, 141, 255, 0.22), rgba(154, 108, 255, 0.18)) border-box;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.profile-card::before,
.post-card::before,
.notice::before,
.gate-card::before,
.article-card::before,
.sidebar-card::before,
.quick-search::before,
.topic-card::before,
.archive-hero::before,
.entry-content::before,
.muan-auth-aside::before,
.muan-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(19, 184, 214, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(6, 153, 199, 0.08) 0 1px, transparent 1px 20px);
  opacity: 0.42;
}

.profile-card > *,
.notice > *,
.gate-card > *,
.quick-search > *,
.topic-card > *,
.archive-hero > *,
.entry-content > *,
.muan-auth-aside > *,
.muan-auth-card > * {
  position: relative;
  z-index: 1;
}

.profile-card::after {
  background: radial-gradient(circle, rgba(19, 184, 214, 0.2), transparent 62%);
}

.hero::before {
  border-color: rgba(6, 153, 199, 0.24);
  box-shadow: 0 0 34px rgba(19, 184, 214, 0.12), inset 0 0 30px rgba(109, 141, 255, 0.08);
}

.hero::after {
  border-color: rgba(6, 153, 199, 0.14);
  background:
    radial-gradient(circle at 40% 38%, rgba(19, 184, 214, 0.14), transparent 32%),
    conic-gradient(from 120deg, transparent, rgba(19, 184, 214, 0.13), transparent, rgba(109, 141, 255, 0.11), transparent);
}

.hero-badges span,
.tag,
.quick-links a {
  border: 1px solid rgba(6, 153, 199, 0.18);
  color: #075985;
  background: rgba(255, 255, 255, 0.62);
}

.tag-public {
  color: #2f7d73;
  background: rgba(47, 125, 115, 0.08);
}

.post-card:hover,
.article-card:hover,
.topic-card:hover {
  border-color: rgba(19, 184, 214, 0.46);
  transform: translateY(-6px);
  box-shadow: 0 34px 88px rgba(49, 115, 150, 0.18), 0 0 36px rgba(19, 184, 214, 0.18);
}

.quick-search form,
.search-page-form,
.muan-auth-method-tabs {
  border: 1px solid rgba(6, 153, 199, 0.16);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 22px rgba(19, 184, 214, 0.06);
}

.quick-search input,
.search-page-form input {
  border: 0;
  color: #102638;
  background: transparent;
  box-shadow: none;
}

.code-lock,
.code-archive-hero,
.muan-auth-aside {
  border-color: rgba(6, 153, 199, 0.2);
  color: #102638;
  background:
    radial-gradient(circle at top right, rgba(19, 184, 214, 0.2), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(231, 247, 255, 0.82) 54%, rgba(217, 234, 255, 0.78));
}

.code-lock p,
.code-lock span,
.code-archive-hero p,
.muan-auth-copy,
.muan-auth-list li {
  color: rgba(68, 91, 108, 0.86);
}

.muan-auth-page {
  background:
    radial-gradient(circle at 18% 16%, rgba(19, 184, 214, 0.2), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(109, 141, 255, 0.18), transparent 24rem),
    linear-gradient(135deg, #f7fcff 0%, #edf8ff 48%, #e4f4ff 100%);
}

.muan-auth-heading {
  color: #102638;
}

.muan-auth-photo {
  border: 1px solid rgba(6, 153, 199, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(19, 184, 214, 0.16)),
    url('/wp-content/themes/muan/auth-code-photo.jpg') center/cover no-repeat;
  box-shadow: 0 0 32px rgba(19, 184, 214, 0.14), 0 22px 46px rgba(49, 115, 150, 0.16);
}

.muan-auth-list li {
  border-color: rgba(6, 153, 199, 0.14);
  background: rgba(255, 255, 255, 0.52);
}

.muan-auth-method-tabs button {
  color: rgba(95, 116, 134, 0.9);
}

.muan-auth-method-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #0699c7 0%, #6d8dff 100%);
  box-shadow: 0 10px 24px rgba(6, 153, 199, 0.16);
}

.muan-sb-password-toggle {
  color: #047da5;
}

.muan-sb-password-toggle:hover {
  color: #075985;
}

.muan-sb-divider::before,
.muan-sb-divider::after {
  background: rgba(6, 153, 199, 0.16);
}

.muan-auth-alert {
  color: #7f1d1d;
  background:
    linear-gradient(135deg, rgba(255, 247, 247, 0.92), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(135deg, rgba(248, 113, 113, 0.34), rgba(19, 184, 214, 0.14)) border-box;
}

.muan-auth-alert-success {
  color: #166534;
  background:
    linear-gradient(135deg, rgba(246, 255, 249, 0.92), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(135deg, rgba(74, 222, 128, 0.32), rgba(19, 184, 214, 0.14)) border-box;
}

.entry-content pre {
  border: 1px solid rgba(6, 153, 199, 0.18);
  color: #123047;
  background: rgba(246, 252, 255, 0.86);
  box-shadow: inset 0 0 26px rgba(19, 184, 214, 0.08);
}

.entry-content code {
  color: #075985;
  background: rgba(19, 184, 214, 0.1);
}

.entry-content table,
.wp-block-table table {
  background: rgba(255, 255, 255, 0.62);
}

.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td,
.meta-grid div,
.sidebar-card li,
.site-footer {
  border-color: rgba(6, 153, 199, 0.14);
}

.gate-card-locked::after,
.gate-card-pending::after {
  color: rgba(6, 153, 199, 0.12);
  text-shadow: 0 0 24px rgba(19, 184, 214, 0.14);
}

.site-footer {
  background: linear-gradient(180deg, transparent, rgba(237, 248, 255, 0.6));
}

.muan-auth-aside .muan-auth-kicker:first-child {
  margin-top: 0;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.post-nav a {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 22px;
  border: 1px solid rgba(6, 153, 199, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
}

.post-nav a:only-child {
  grid-column: 1 / -1;
}

.post-nav span {
  color: #047da5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.post-nav strong {
  color: #102638;
  font-size: 18px;
  line-height: 1.4;
}

.search-tips {
  color: rgba(68, 91, 108, 0.86);
}

@media (max-width: 760px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}
