/* amimi.xyz — visual system only (no SEO changes) */
:root {
  --am-ink: #1a2332;
  --am-ink-soft: #3a4556;
  --am-accent: #e07a2f;
  --am-accent-2: #f0a04b;
  --am-accent-soft: rgba(224, 122, 47, 0.12);
  --am-tg: #229ed9;
  --am-surface: #ffffff;
  --am-surface-2: #f6f3ee;
  --am-line: #e5ddd2;
  --am-muted: #6a6570;
  --am-radius: 14px;
  --am-radius-lg: 20px;
  --am-shadow: 0 10px 28px rgba(26, 35, 50, 0.08);
  --am-shadow-lg: 0 18px 40px rgba(26, 35, 50, 0.12);
  --am-grad: linear-gradient(135deg, #f0a04b, #e07a2f);
  --am-font-display: "Sora", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --am-font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--am-font-body) !important;
  color: var(--am-ink);
  background:
    radial-gradient(900px 480px at 8% -10%, rgba(224, 122, 47, 0.12), transparent 55%),
    radial-gradient(720px 420px at 96% 0%, rgba(34, 158, 217, 0.08), transparent 50%),
    linear-gradient(180deg, #f7f4ef 0%, #fbfaf8 45%, #f3efe8 100%) !important;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.section-title,
.highlighted-posts-title {
  font-family: var(--am-font-display) !important;
  letter-spacing: -0.02em;
  color: var(--am-ink);
}

a {
  color: var(--am-accent);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

a:hover,
a:focus {
  color: var(--am-ink);
}

#page,
.site {
  overflow-x: hidden;
}

.site-header > .wrapper:not(.amimi-header-bar) {
  display: none !important;
}

/* Header / brand */
#masthead,
.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(213, 229, 226, 0.9);
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.04);
}

.site-header .wrapper,
.site-header .amimi-header-bar {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 14px 20px;
  max-width: 1180px;
  float: none !important;
  width: auto !important;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 1 auto;
  float: none !important;
  padding: 0 !important;
}

.amimi-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  color: #fff !important;
  font-family: var(--am-font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(224, 122, 47, 0.28);
  animation: amimi-mark-in .7s ease both;
  overflow: hidden;
}

.amimi-mark--logo img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
}

.amimi-mark:hover,
.amimi-mark:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(224, 122, 47, 0.34);
}

#site-identity {
  min-width: 0;
}

.site-title {
  margin: 0 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  max-width: none;
}

.site-title a {
  color: var(--am-ink) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.site-title a:hover,
.site-title a:focus {
  color: var(--am-accent) !important;
}

.amimi-brand-name {
  font-family: var(--am-font-display);
  letter-spacing: -0.03em;
}

.amimi-brand-kicker {
  display: block;
  margin: 0 0 2px;
  font-family: var(--am-font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-accent);
}

.site-description {
  display: none !important;
}

/* Nav */
.main-navigation {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none;
  float: none !important;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  position: relative;
}

.main-navigation ul.nav-menu > li > a {
  padding: 9px 14px !important;
  border-radius: 999px;
  color: var(--am-ink-soft) !important;
  font-family: var(--am-font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}

@media screen and (max-width: 1023px) {
  .main-navigation ul {
    display: none;
  }
  .menu-toggle.active + .nav-menu,
  .main-navigation .menu-toggle.active ~ ul.nav-menu {
    display: flex !important;
  }
}

@media screen and (min-width: 1024px) {
  .main-navigation ul.nav-menu {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 5px;
    list-style: none;
    background: rgba(242, 248, 247, 0.92);
    border: 1px solid rgba(213, 229, 226, 0.95);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .main-navigation ul.nav-menu > li {
    margin: 0 !important;
    float: none !important;
  }
}

.main-navigation ul.nav-menu > li:hover > a,
.main-navigation ul.nav-menu > li.focus > a,
.main-navigation ul.nav-menu .current_page_item > a,
.main-navigation ul.nav-menu .current-menu-item > a,
.main-navigation ul.nav-menu .current_page_ancestor > a,
.main-navigation ul.nav-menu .current-menu-ancestor > a,
.logged-in-as a:hover,
.logged-in-as a:focus,
.site-title a:hover,
.site-title a:focus,
.post-navigation a:hover,
.posts-navigation a:hover,
.pagination .page-numbers,
.pagination .page-numbers.prev,
.pagination .page-numbers.next,
#secondary a:hover,
#secondary a:focus,
.page-header small,
.post-categories a,
.cat-links:before,
.entry-meta a:hover,
.entry-meta a:focus,
.comment-meta .url:hover,
.comment-meta .url:focus,
.comment-metadata a:hover,
.comment-metadata a:focus,
.entry-title a:hover,
.entry-title a:focus,
#colophon a:hover,
#colophon a:focus,
.blog-posts-wrapper .post-item .date a {
  color: var(--am-accent) !important;
}

@media screen and (min-width: 1024px) {
  .main-navigation ul.nav-menu .current_page_item > a,
  .main-navigation ul.nav-menu .current-menu-item > a,
  .main-navigation ul.nav-menu .current_page_ancestor > a,
  .main-navigation ul.nav-menu .current-menu-ancestor > a,
  .main-navigation ul.nav-menu > li:hover > a,
  .main-navigation ul.nav-menu > li.focus > a {
    color: var(--am-accent) !important;
    background: #fff;
    box-shadow: 0 4px 12px rgba(26, 35, 50, 0.08);
  }

  .main-navigation ul ul li:hover > a,
  .main-navigation ul ul li.focus > a {
    background-color: var(--am-accent) !important;
    color: #fff !important;
  }
}

/* TG CTA in nav */
.main-navigation ul.nav-menu > li.menu-item-21 > a,
.main-navigation ul.nav-menu > li > a[href*="t.me"] {
  background: var(--am-grad) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(224, 122, 47, 0.28);
  margin-left: 2px;
}

.main-navigation ul.nav-menu > li.menu-item-21 > a:hover,
.main-navigation ul.nav-menu > li > a[href*="t.me"]:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(224, 122, 47, 0.34);
}

@media screen and (min-width: 1024px) {
  .main-navigation ul.nav-menu .current-menu-item > a[href*="t.me"],
  .main-navigation ul.nav-menu > li.menu-item-21.current-menu-item > a {
    background: var(--am-grad) !important;
    color: #fff !important;
  }
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.menu-toggle,
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers:focus,
.wp-block-search__button,
.tags-links a,
.reply a:hover,
.reply a:focus,
.btn,
.wp-block-tag-cloud a,
#colophon .widget_search form.search-form button.search-submit,
.blog-posts-wrapper .post-item .cat-links a,
#section-highlighted-posts .cat-links a,
#section-popular-posts .cat-links a,
#loader svg {
  background-color: var(--am-accent) !important;
  border-color: var(--am-accent) !important;
  fill: var(--am-accent);
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.wp-block-search__button:hover,
.tags-links a,
.btn {
  border-color: var(--am-accent) !important;
}

#secondary ul li a:hover,
#secondary ul li a:focus {
  border-bottom-color: var(--am-accent) !important;
}

/* Intro strip */
.amimi-intro {
  max-width: 1180px;
  margin: 18px auto 6px;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
  animation: amimi-rise .8s ease both;
}

.amimi-intro__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 26px 28px;
  border-radius: var(--am-radius-lg);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(224, 122, 47, 0.14), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 243, 238, 0.94));
  border: 1px solid rgba(224, 122, 47, 0.14);
  box-shadow: var(--am-shadow);
}

.amimi-intro__copy {
  flex: 1 1 320px;
  min-width: 0;
}

.amimi-intro__eyebrow {
  margin: 0 0 6px;
  font-family: var(--am-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--am-accent);
}

.amimi-intro__title {
  margin: 0 0 8px;
  font-family: var(--am-font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--am-ink);
}

.amimi-intro__text {
  margin: 0;
  color: var(--am-muted);
  font-size: 15px;
  max-width: 42rem;
}

.amimi-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amimi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--am-font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.amimi-btn--primary {
  background: var(--am-grad);
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(224, 122, 47, 0.28);
}

.amimi-btn--primary:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

.amimi-btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--am-ink) !important;
  border: 1px solid var(--am-line);
}

.amimi-btn--ghost:hover {
  border-color: var(--am-accent);
  color: var(--am-accent) !important;
}

/* Content layout — full-bleed shell, centered column */
#content,
.site-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

.wrapper {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

#content > .wrapper,
#content .section-gap.clear {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#content .section-gap {
  padding: 12px 0 40px !important;
  display: block !important;
  width: 100%;
  box-sizing: border-box;
}

/* .clear::before 会变成 grid 子项，导致整排右偏 */
#section-popular-posts .col-3::before,
#section-popular-posts .col-3::after,
.blog-posts-wrapper .list-layout::before,
.blog-posts-wrapper .list-layout::after,
.blog-posts-wrapper .section-content::before,
.blog-posts-wrapper .section-content::after,
.blog-posts-wrapper .blog-archive-wrapper::before,
.blog-posts-wrapper .blog-archive-wrapper::after,
.amimi-highlight-grid::before,
.amimi-highlight-grid::after,
#content .section-gap.clear::before,
#content .section-gap.clear::after {
  content: none !important;
  display: none !important;
}

.no-sidebar #primary,
#primary {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: none;
}

#main.blog-posts-wrapper,
#main.site-main {
  width: 100%;
  margin: 0 auto;
}

/* Highlighted posts */
#section-highlighted-posts {
  margin: 8px auto 40px !important;
  padding: 0;
  width: 100%;
}

#section-highlighted-posts .amimi-highlight-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 !important;
  height: auto !important;
  width: 100%;
}

#section-highlighted-posts article,
#section-highlighted-posts .amimi-highlight-item {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
}

#section-highlighted-posts .highlighted-posts-image {
  border-radius: var(--am-radius);
  overflow: hidden;
  box-shadow: var(--am-shadow);
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

#section-highlighted-posts .highlighted-posts-image:before {
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.12) 0%, rgba(26, 35, 50, 0.78) 100%) !important;
}

#section-highlighted-posts .highlighted-posts-content {
  padding: 0 16px 16px !important;
}

#section-highlighted-posts .highlighted-posts-title {
  font-size: 16px !important;
  line-height: 1.35 !important;
  margin: 0 0 6px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#section-highlighted-posts .highlighted-posts-title a {
  color: #fff !important;
}

#section-highlighted-posts .highlighted-posts-title a:hover,
#section-highlighted-posts .highlighted-posts-title a:focus,
#section-highlighted-posts .entry-meta a:hover,
#section-highlighted-posts .entry-meta a:focus {
  color: #ffd9a8 !important;
}

#section-highlighted-posts .cat-links a {
  border-radius: 6px;
  background-color: var(--am-accent) !important;
}

#section-highlighted-posts .cat-links a:hover,
#section-highlighted-posts .cat-links a:focus,
#section-popular-posts .cat-links a:hover,
#section-popular-posts .cat-links a:focus {
  background-color: var(--am-ink) !important;
}

@media screen and (min-width: 640px) {
  #section-highlighted-posts .amimi-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #section-highlighted-posts article:first-child,
  #section-highlighted-posts .amimi-highlight-item:first-child {
    grid-column: 1 / -1;
  }

  #section-highlighted-posts article:first-child .highlighted-posts-image,
  #section-highlighted-posts .amimi-highlight-item:first-child .highlighted-posts-image {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }

  #section-highlighted-posts article:first-child .highlighted-posts-title,
  #section-highlighted-posts .amimi-highlight-item:first-child .highlighted-posts-title {
    font-size: 24px !important;
    -webkit-line-clamp: 2;
  }
}

@media screen and (min-width: 1024px) {
  #section-highlighted-posts .amimi-highlight-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  #section-highlighted-posts article:first-child,
  #section-highlighted-posts .amimi-highlight-item:first-child,
  #section-highlighted-posts article:nth-child(2),
  #section-highlighted-posts .amimi-highlight-item:nth-child(2) {
    grid-column: span 3;
    grid-row: auto;
  }

  #section-highlighted-posts article:nth-child(n + 3),
  #section-highlighted-posts .amimi-highlight-item:nth-child(n + 3) {
    grid-column: span 2;
  }

  #section-highlighted-posts article .highlighted-posts-image,
  #section-highlighted-posts .amimi-highlight-item .highlighted-posts-image {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }

  #section-highlighted-posts article:first-child .highlighted-posts-title,
  #section-highlighted-posts .amimi-highlight-item:first-child .highlighted-posts-title,
  #section-highlighted-posts article:nth-child(2) .highlighted-posts-title,
  #section-highlighted-posts .amimi-highlight-item:nth-child(2) .highlighted-posts-title {
    font-size: 20px !important;
    -webkit-line-clamp: 2;
  }

  #section-highlighted-posts article:nth-child(n + 3) .highlighted-posts-title,
  #section-highlighted-posts .amimi-highlight-item:nth-child(n + 3) .highlighted-posts-title {
    font-size: 15px !important;
  }
}

/* Section headers */
.section-header {
  margin: 0 0 20px !important;
  text-align: left !important;
}

.section-title {
  display: inline-block;
  border-bottom: 3px solid var(--am-accent) !important;
  color: var(--am-ink) !important;
  font-size: 15px !important;
  letter-spacing: 0.08em;
  padding-bottom: 8px !important;
  margin: 0 !important;
}

/* Popular posts */
#section-popular-posts {
  margin: 0 0 40px;
  width: 100%;
}

#section-popular-posts .col-3 {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 !important;
}

#section-popular-posts .col-3 article {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#section-popular-posts .col-3 article:hover {
  transform: translateY(-3px);
  box-shadow: var(--am-shadow-lg);
}

#section-popular-posts .featured-image {
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  aspect-ratio: 16 / 9;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

#section-popular-posts .entry-container {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#section-popular-posts .entry-title {
  font-size: 17px !important;
  margin: 0 0 8px !important;
}

#section-popular-posts .entry-content {
  flex: 1;
}

#section-popular-posts .entry-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

@media screen and (min-width: 767px) {
  #section-popular-posts .col-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Latest posts — neat horizontal cards (overwrite broken list/col float) */
.blog-posts-wrapper .section-content.list-layout,
.blog-posts-wrapper .list-layout.col-3,
.blog-posts-wrapper .blog-archive-wrapper,
.blog-posts-wrapper .list-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  margin: 0 0 28px !important;
  width: 100% !important;
  float: none !important;
}

.blog-posts-wrapper .list-layout article,
.blog-posts-wrapper .section-content.list-layout article,
.blog-posts-wrapper .list-layout.col-3 article {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.blog-posts-wrapper .list-layout .post-item,
.blog-posts-wrapper .list-layout .has-post-thumbnail .post-item,
.blog-posts-wrapper .post-item {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow);
  overflow: hidden;
  padding: 0 !important;
  height: auto !important;
  position: relative !important;
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-posts-wrapper .post-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--am-shadow-lg);
}

.blog-posts-wrapper .list-layout .has-post-thumbnail .post-item .featured-image,
.blog-posts-wrapper .list-layout .post-item .featured-image,
.blog-posts-wrapper .post-item .featured-image {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  aspect-ratio: 16 / 9;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.blog-posts-wrapper .list-layout .has-post-thumbnail .post-item .entry-container,
.blog-posts-wrapper .list-layout .post-item .entry-container,
.blog-posts-wrapper .post-item .entry-container {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  float: none !important;
  width: auto !important;
  padding: 22px 24px !important;
  text-align: left !important;
  min-width: 0;
}

.blog-posts-wrapper .list-layout .entry-title,
.blog-posts-wrapper .entry-title,
.entry-title {
  font-size: 20px !important;
  line-height: 1.35 !important;
  margin: 0 0 8px !important;
}

.blog-posts-wrapper .post-item .entry-content {
  margin-bottom: 10px !important;
}

.blog-posts-wrapper .post-item .entry-content p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.entry-content,
.entry-content p,
.post-excerpt,
.blog-posts-wrapper .entry-content {
  color: var(--am-muted);
  font-size: 15px;
  line-height: 1.75;
}

.entry-meta,
.entry-meta a,
.date a {
  color: var(--am-muted) !important;
  font-size: 13px;
}

@media screen and (min-width: 768px) {
  .blog-posts-wrapper .list-layout .post-item,
  .blog-posts-wrapper .list-layout .has-post-thumbnail .post-item {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .blog-posts-wrapper .list-layout .has-post-thumbnail .post-item .featured-image,
  .blog-posts-wrapper .list-layout .post-item .featured-image {
    width: 280px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    align-self: center;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .blog-posts-wrapper .list-layout .entry-title {
    font-size: 22px !important;
  }
}

/* Pagination */
.navigation.pagination,
.pagination {
  display: flex;
  justify-content: center;
  margin: 8px 0 24px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* Sidebar */
#secondary .widget,
.widget-area .widget,
.wp-block-group {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow);
  padding: 18px !important;
  margin-bottom: 18px;
}

#secondary .wp-block-heading,
.widget-title,
.wp-block-heading {
  font-family: var(--am-font-display) !important;
  font-size: 15px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--am-ink) !important;
  border-bottom: 2px solid var(--am-accent);
  padding-bottom: 8px;
  margin-bottom: 14px !important;
}

.wp-block-search__input,
input[type="search"],
input[type="text"],
textarea {
  border-radius: 12px !important;
  border-color: var(--am-line) !important;
  background: #fff !important;
}

.wp-block-search__button,
button.search-submit {
  border-radius: 12px !important;
  color: #fff !important;
}

/* Pagination */
.pagination .page-numbers {
  border-radius: 10px !important;
  min-width: 38px;
  text-align: center;
}

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

/* Footer */
#colophon,
.site-footer {
  margin-top: 48px;
  background:
    radial-gradient(720px 220px at 12% 0%, rgba(224, 122, 47, 0.22), transparent 60%),
    radial-gradient(640px 200px at 88% 100%, rgba(34, 158, 217, 0.12), transparent 55%),
    linear-gradient(180deg, #1a2332 0%, #121821 100%) !important;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 217, 168, 0.14) !important;
  position: relative;
  overflow: hidden;
}

#colophon::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 168, 0.45), transparent);
  pointer-events: none;
}

#colophon a,
.site-footer a,
.copy-right a,
.amimi-footer__link {
  color: #ffd9a8 !important;
  text-decoration: none !important;
}

#colophon a:hover,
.site-footer a:hover,
.amimi-footer__link:hover {
  color: #fff !important;
}

.site-info,
.amimi-footer {
  padding: 0 !important;
  text-align: left;
  font-size: 13px;
}

.amimi-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding-top: 36px !important;
  padding-bottom: 28px !important;
  position: relative;
  z-index: 1;
}

.amimi-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.amimi-footer__mark {
  flex: 0 0 auto;
  display: inline-flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.amimi-footer__mark img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.amimi-footer__mark:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(224, 122, 47, 0.28);
}

.amimi-footer__name {
  margin: 0 0 4px;
  font-family: var(--am-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.amimi-footer__tag {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.04em;
}

.amimi-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.amimi-footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0a04b, #e07a2f);
  color: #fff !important;
  font-family: var(--am-font-display);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(224, 122, 47, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.amimi-footer__tg:hover,
.amimi-footer__tg:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(224, 122, 47, 0.36);
}

.amimi-footer__tg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.amimi-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.amimi-footer__meta .copy-right {
  padding: 0 !important;
  text-align: left;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.amimi-footer__sep {
  opacity: 0.45;
}

@media screen and (min-width: 768px) {
  .amimi-footer__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px 28px;
    padding-top: 40px !important;
    padding-bottom: 32px !important;
  }

  .amimi-footer__brand {
    grid-column: 1;
  }

  .amimi-footer__actions {
    grid-column: 2;
    justify-content: flex-end;
  }

  .amimi-footer__meta {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}

/* Single post — full primary width, tidy reading layout */
.single #primary,
.page #primary {
  width: 100% !important;
  max-width: 100% !important;
}

.single #secondary,
.page #secondary {
  display: none !important;
}

.single .site-main > article,
.page .site-main > article {
  width: 100%;
  max-width: 100%;
}

.single .entry-header,
.page .entry-header {
  margin: 0 0 18px;
  max-width: 100%;
  padding: 4px 2px 0;
}

.single .entry-title {
  font-size: clamp(28px, 3.4vw, 40px) !important;
  line-height: 1.28 !important;
  letter-spacing: -0.025em;
  margin: 0 0 12px !important;
  max-width: 52rem;
}

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

.single .cat-links a {
  background: var(--am-accent) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  text-decoration: none !important;
}

.single .single-featured-image,
.single .featured-image,
.single .post-thumbnail,
.single .entry-header + .single-featured-image,
.single article > .single-featured-image {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 22px !important;
  border-radius: var(--am-radius-lg);
  overflow: hidden;
  box-shadow: var(--am-shadow);
}

.single .single-featured-image img,
.single .post-thumbnail img,
.single .featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--am-radius-lg);
}

.single .entry-content,
.single .single-entry-content {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--am-line);
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow);
  padding: 28px 40px 40px;
  max-width: 100%;
  width: 100%;
  margin: 0 0 28px;
  box-sizing: border-box;
}

.single .entry-content > p,
.single .single-entry-content > p {
  max-width: 48rem;
  font-size: 16.5px;
  line-height: 1.85;
  color: #334155;
}

/* In-article kit (.amimi-article) — amber brand, no inline CSS in posts */
.amimi-article {
  --art-accent: #e07a2f;
  --art-soft: #fff6ec;
  --art-ink: #1a2332;
  --art-muted: #6a6570;
  --art-rule: #e5ddd2;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--am-font-body);
  color: #1f2937;
  line-height: 1.85;
  font-size: clamp(16px, 1.05vw, 17.5px);
  letter-spacing: 0.01em;
}

.single .entry-content .amimi-article,
.single .single-entry-content .amimi-article {
  --art-accent: #e07a2f;
  --art-soft: #fff6ec;
  --art-ink: #1a2332;
  --art-muted: #6a6570;
  --art-rule: #e5ddd2;
  max-width: 100%;
  padding: 0;
}

@media (max-width: 720px) {
  .single .entry-content,
  .single .single-entry-content {
    padding: 18px 16px 24px;
    border-radius: 14px;
  }

  .amimi-article {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .amimi-article h2 {
    font-size: 1.22rem;
    margin: 26px 0 12px;
  }

  .amimi-article .lead {
    padding: 14px;
  }

  .amimi-article .sec-index {
    display: none;
  }
}

.amimi-article .art-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--art-accent);
  background: var(--art-soft);
  border: 1px solid rgba(224, 122, 47, 0.22);
  border-radius: 999px;
}

.amimi-article .lead {
  margin: 0 0 28px;
  padding: 18px 20px 18px 22px;
  border-left: 4px solid var(--art-accent);
  background: linear-gradient(135deg, #fff8f0 0%, #fff6ec 55%, #fbfaf8 100%);
  border-radius: 0 14px 14px 0;
  color: #334155;
  font-size: 1.03em;
  line-height: 1.8;
}

.amimi-article .lead strong {
  color: var(--art-ink);
  font-weight: 700;
}

.amimi-article .section {
  margin: 0 0 10px;
  padding: 0;
}

.amimi-article .section:first-of-type h2,
.amimi-article > .section:first-child h2 {
  margin-top: 8px;
}

.amimi-article h2 {
  margin: 36px 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--art-rule);
  font-family: var(--am-font-display) !important;
  font-size: clamp(1.26rem, 1.55vw, 1.48rem);
  line-height: 1.35;
  color: var(--art-ink) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.amimi-article h2 .sec-index {
  flex: 0 0 auto;
  min-width: 1.75em;
  font-size: 0.76em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--art-accent);
  border-radius: 8px;
  padding: 4px 8px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.amimi-article h3 {
  margin: 22px 0 10px;
  font-size: 1.06em;
  color: var(--art-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.amimi-article p {
  margin: 0 0 1.05em;
  max-width: 46rem;
}

.amimi-article ul,
.amimi-article ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
  max-width: 46rem;
}

.amimi-article li {
  margin: 0 0 0.55em;
  padding-left: 0.15em;
  line-height: 1.75;
}

.amimi-article li::marker {
  color: var(--art-accent);
  font-weight: 700;
}

.amimi-article ol {
  list-style: decimal;
}

.amimi-article ul:not(.checklist) {
  list-style: disc;
}

.amimi-article strong {
  color: var(--art-ink);
  font-weight: 700;
}

.amimi-article a {
  color: var(--art-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.amimi-article a:hover {
  color: var(--am-ink);
}

.amimi-article .tip {
  margin: 18px 0 22px;
  padding: 14px 16px 14px 18px;
  background: #f8fafc;
  border: 1px solid var(--art-rule);
  border-left: 4px solid var(--art-accent);
  border-radius: 0 12px 12px 0;
  color: #0f172a;
  font-size: 0.96em;
  line-height: 1.7;
  max-width: 46rem;
}

.amimi-article .checklist {
  margin: 16px 0 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  max-width: 46rem;
}

.amimi-article .checklist li {
  list-style: none !important;
  position: relative;
  margin: 0 0 10px;
  padding: 12px 14px 12px 42px;
  background: #fff;
  border: 1px solid var(--art-rule);
  border-radius: 12px;
  line-height: 1.7;
  box-shadow: 0 1px 0 rgba(26, 35, 50, 0.02);
}

.amimi-article .checklist li:last-child {
  margin-bottom: 0;
}

.amimi-article .checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 0;
  border-radius: 50%;
  background: var(--art-soft);
  box-shadow: inset 0 0 0 1.5px var(--art-accent);
}

.amimi-article .checklist li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--art-accent);
}

.amimi-article .faq-list {
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 46rem;
}

.amimi-article .faq-item {
  margin: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
  border: 1px solid var(--art-rule);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.03);
}

.amimi-article .faq-item .q {
  font-weight: 700;
  color: var(--art-ink);
  margin: 0 0 8px;
  font-size: 1em;
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.amimi-article .faq-item .q::before {
  content: "Q";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--art-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.amimi-article .faq-item .a {
  margin: 0;
  padding-left: 30px;
  color: #475569;
  font-size: 0.96em;
  line-height: 1.75;
}

.amimi-article .seo-tags {
  margin: 36px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--art-rule);
  color: var(--art-muted);
  font-size: 12.5px;
  line-height: 1.7;
  max-width: 46rem;
}

.amimi-article .seo-tags strong {
  color: var(--art-ink);
}

.amimi-article .section-body {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.amimi-article .section-body > p:first-child {
  margin-top: 0;
}

.amimi-article img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 14px 0 20px;
}

.amimi-article blockquote {
  margin: 18px 0 22px;
  padding: 14px 18px;
  border-left: 4px solid var(--art-accent);
  background: var(--art-soft);
  color: #334155;
  border-radius: 0 12px 12px 0;
  max-width: 46rem;
  line-height: 1.75;
}

.amimi-article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0 26px;
  font-size: 0.94em;
  overflow: hidden;
  border: 1px solid var(--art-rule);
  border-radius: 14px;
  background: #fff;
}

.amimi-article th,
.amimi-article td {
  border: 0;
  border-bottom: 1px solid var(--art-rule);
  border-right: 1px solid var(--art-rule);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.amimi-article th:last-child,
.amimi-article td:last-child {
  border-right: 0;
}

.amimi-article tr:last-child td {
  border-bottom: 0;
}

.amimi-article th {
  background: var(--art-soft);
  color: var(--art-ink);
  font-weight: 700;
}

.amimi-article tbody tr:nth-child(even) td {
  background: rgba(255, 246, 236, 0.35);
}

.amimi-article hr {
  border: 0;
  border-top: 1px solid var(--art-rule);
  margin: 28px 0;
}

.amimi-article .compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0 24px;
}

@media (min-width: 720px) {
  .amimi-article .compare-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.amimi-article .compare-card {
  margin: 0;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--art-rule);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(26, 35, 50, 0.04);
}

.amimi-article .compare-card h3 {
  margin: 0 0 12px;
  font-size: 1.02em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--art-rule);
}

.amimi-article .compare-card ul {
  margin: 0;
  padding-left: 1.15em;
  max-width: none;
}

.amimi-article .compare-card li {
  margin: 0 0 0.5em;
}

.single .entry-content .amimi-article ul,
.single .entry-content .amimi-article ol,
.single .single-entry-content .amimi-article ul,
.single .single-entry-content .amimi-article ol {
  margin-left: 0 !important;
  padding-left: 1.35em !important;
}

.single .entry-content .amimi-article .checklist,
.single .single-entry-content .amimi-article .checklist {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.amimi-post-cta {
  margin: 28px 18px 12px;
  padding: 22px 22px 20px;
  border-radius: var(--am-radius);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(224, 122, 47, 0.14), transparent 60%),
    linear-gradient(135deg, #fbfaf8, #f7f4ef);
  border: 1px solid var(--am-line);
}

.amimi-post-cta__kicker {
  margin: 0 0 6px;
  font-family: var(--am-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--am-accent);
}

.amimi-post-cta__title {
  margin: 0 0 6px;
  font-family: var(--am-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--am-ink);
}

.amimi-post-cta__text {
  margin: 0 0 14px;
  color: var(--am-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 36rem;
}

/* Mobile */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  background: var(--am-accent) !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(224, 122, 47, 0.25);
}

@media screen and (max-width: 1023px) {
  .menu-toggle {
    display: inline-flex !important;
  }
}

.menu-toggle .icon-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: #fff !important;
  border-radius: 2px;
}

@media screen and (max-width: 1023px) {
  .main-navigation .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: auto;
    z-index: 40;
    width: min(86vw, 300px);
    margin: 0;
    padding: 10px;
    list-style: none;
    flex-direction: column;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--am-line);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(26, 35, 50, 0.14);
  }

  .main-navigation .nav-menu > li {
    margin: 0 !important;
    width: 100%;
  }

  .main-navigation .nav-menu > li > a {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-size: 15px;
  }

  .main-navigation .nav-menu .current-menu-item > a,
  .main-navigation .nav-menu .current_page_item > a {
    background: var(--am-accent-soft);
    color: var(--am-accent) !important;
  }

  .main-navigation .nav-menu > li > a[href*="t.me"] {
    justify-content: center;
    margin-top: 4px;
  }
}

@media screen and (max-width: 767px) {
  .site-header .wrapper,
  .site-header .amimi-header-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 14px 10px;
  }

  .site-branding {
    grid-column: 1;
    flex: initial;
    min-width: 0;
  }

  .main-navigation {
    grid-column: 2;
    width: auto !important;
    flex: initial;
  }

  .amimi-mark,
  .amimi-mark--logo img {
    min-width: 44px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .site-title {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .amimi-intro {
    margin-top: 12px;
    padding: 0 14px;
  }

  .amimi-intro__panel {
    padding: 18px;
  }

  .amimi-intro__title {
    font-size: 22px;
  }

  #section-highlighted-posts .highlighted-posts-image {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .blog-posts-wrapper .list-layout .entry-title,
  .entry-title {
    font-size: 18px !important;
  }

  .single .entry-content {
    padding: 18px 16px 24px;
  }
}

@keyframes amimi-mark-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes amimi-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
