:root {
  --atomy-hm-radius: 16px;
  --atomy-hm-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
}

/* Make common containers feel like the official tone: airy, clean, rounded. */
.wp-site-blocks {
  min-height: 100vh;
}

.atomy-hm-shell {
  padding-left: clamp(16px, 4vw, 28px);
  padding-right: clamp(16px, 4vw, 28px);
}

/* investory-style list structure: 2-col card grid (colors remain ATOMY palette) */
.wp-block-post-template.is-layout-grid {
  gap: 18px;
}
@media (max-width: 740px) {
  .wp-block-post-template.is-layout-grid {
    gap: 14px;
  }
}

.atomy-hm-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wp--preset--color--line);
}

.atomy-hm-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.atomy-hm-brandrow .wp-block-site-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.atomy-hm-nav {
  flex: 1 1 auto;
  min-width: 220px;
}

.atomy-hm-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.atomy-hm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.atomy-hm-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #005cff 0%, #0ea5e9 100%);
  box-shadow: 0 10px 24px rgba(0, 92, 255, 0.22);
}

.atomy-hm-brand__name {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--ink);
}

.atomy-hm-lang__list {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.atomy-hm-lang__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--line);
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
}

.atomy-hm-lang__link[aria-current="page"] {
  border-color: rgba(0, 92, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.12);
}

.atomy-hm-hero {
  margin-top: 28px;
  margin-bottom: 22px;
  border-radius: var(--atomy-hm-radius);
  background:
    radial-gradient(900px 280px at 20% -10%, rgba(0, 92, 255, 0.10), transparent 60%),
    radial-gradient(600px 240px at 90% 10%, rgba(14, 165, 233, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--atomy-hm-shadow);
  padding: clamp(18px, 4vw, 34px);
}

.atomy-hm-hero__title {
  margin: 0 0 8px 0;
}

.atomy-hm-hero__lead {
  margin: 0;
  color: var(--wp--preset--color--muted);
}

.atomy-hm-entry {
  border-radius: var(--atomy-hm-radius);
  border: 1px solid var(--wp--preset--color--line);
  background: var(--wp--preset--color--paper);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 16px;
  margin: 0;
}

.atomy-hm-entry .wp-block-post-featured-image img {
  border-radius: 14px;
}

.atomy-hm-entry .wp-block-post-featured-image {
  margin-bottom: 12px;
}

.atomy-hm-entry .wp-block-post-title {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.atomy-hm-entry .wp-block-post-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}
.atomy-hm-entry .wp-block-post-title a:hover {
  text-decoration: underline;
}

.atomy-hm-entry .wp-block-post-excerpt {
  color: var(--wp--preset--color--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 0;
}
.atomy-hm-entry .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.atomy-hm-entry .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

.atomy-hm-cat a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--wp--preset--color--brand-soft);
  color: var(--wp--preset--color--brand);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.atomy-hm-searchbtn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wp--preset--color--line);
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  border-radius: 999px;
  padding: 0;
  font-weight: 700;
  font-size: 13px;
}

.atomy-hm-searchbtn__ico {
  width: 16px;
  height: 16px;
  display: inline-block;
  border: 2px solid var(--wp--preset--color--muted);
  border-radius: 50%;
  position: relative;
}
.atomy-hm-searchbtn__ico::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: var(--wp--preset--color--muted);
  right: -6px;
  bottom: -4px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.atomy-hm-searchpanel {
  border-top: 1px solid var(--wp--preset--color--line);
  padding: 12px 0 16px 0;
}

.atomy-hm-searchpanel__inner form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.atomy-hm-searchpanel__inner input[type="search"],
.atomy-hm-searchpanel__inner input[type="text"] {
  flex: 1;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  padding: 10px 12px;
}

.atomy-hm-searchpanel__submit,
.atomy-hm-searchpanel__close {
  border: 1px solid var(--wp--preset--color--line);
  background: var(--wp--preset--color--paper);
  color: var(--wp--preset--color--ink);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
}

.atomy-hm-pager {
  margin-top: 18px;
}
.atomy-hm-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  font-weight: 700;
}
.atomy-hm-pager .page-numbers.current {
  background: var(--wp--preset--color--brand-soft);
  border-color: rgba(0, 92, 255, 0.35);
  color: var(--wp--preset--color--brand);
}

.atomy-hm-footer-top {
  gap: 16px;
  align-items: center;
}
.atomy-hm-footer-links a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  font-weight: 700;
}
.atomy-hm-footer-links a:hover {
  text-decoration: underline;
}

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


