/*
Theme Name: AI Marketer HK
Theme URI: https://aimarketer.hk/
Author: AI Marketer HK
Description: A clean Traditional Chinese WordPress theme for AI marketing insights in Hong Kong.
Version: 1.0.17
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aimarketer-hk
*/

:root {
  --amk-ink: #101828;
  --amk-muted: #5d6678;
  --amk-line: #d8e2f2;
  --amk-paper: #f7faff;
  --amk-soft: #eaf2ff;
  --amk-accent: #1769ff;
  --amk-accent-dark: #0b2d72;
  --amk-highlight: #ffd43b;
  --amk-cyan: #20c7ff;
  --amk-white: #ffffff;
  --amk-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--amk-paper);
  color: var(--amk-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.site-header {
  background: rgba(247, 250, 255, 0.94);
  border-bottom: 1px solid var(--amk-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner,
.site-footer__inner,
.wrap {
  margin: 0 auto;
  max-width: var(--amk-max);
  padding: 0 24px;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 72px;
}

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

.brand__mark {
  align-items: center;
  background: #000000;
  border-radius: 8px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  color: var(--amk-white);
  display: inline-flex;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  letter-spacing: 0;
  width: 38px;
  overflow: hidden;
}

.brand__mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand__text {
  display: grid;
  gap: 0;
}

.brand__name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand__tagline {
  color: var(--amk-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

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

.primary-menu a {
  color: var(--amk-muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-menu a:hover {
  color: var(--amk-accent-dark);
}

.hero {
  background:
    linear-gradient(120deg, rgba(5, 18, 48, 0.98), rgba(13, 67, 160, 0.9)),
    url("assets/pattern.svg");
  color: var(--amk-white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  min-height: 560px;
  padding-bottom: 72px;
  padding-top: 82px;
}

.eyebrow {
  color: var(--amk-highlight);
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0;
  margin: 0 0 12px;
}

.hero h1,
.page-title {
  font-size: clamp(2.25rem, 6vw, 4.65rem);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  margin: 24px 0 0;
  max-width: 620px;
}

.hero__visual {
  align-self: center;
  background:
    linear-gradient(90deg, rgba(247, 250, 255, 0.86), rgba(247, 250, 255, 0.18) 42%, rgba(247, 250, 255, 0.04)),
    url("assets/hero-marketer-3x2.png") 62% center / cover;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  aspect-ratio: 3 / 2;
  display: flex;
  min-height: 330px;
  overflow: hidden;
  position: relative;
}

.hero__visual::after {
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.12), rgba(32, 199, 255, 0.2));
  content: "";
  inset: 0;
  position: absolute;
}

.hero__brand {
  color: rgba(16, 24, 40, 0.94);
  display: grid;
  gap: 2px;
  margin: 34px 38px;
  max-width: min(58%, 420px);
  position: relative;
  z-index: 1;
}

.hero__brand strong {
  font-size: clamp(1.7rem, 3.1vw, 3rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero__brand span {
  color: rgba(16, 24, 40, 0.82);
  font-size: clamp(0.88rem, 1.4vw, 1.28rem);
  font-weight: 550;
  line-height: 1.25;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.wp-block-button__link,
button.button {
  align-items: center;
  background: var(--amk-accent);
  border: 1px solid var(--amk-accent);
  border-radius: 6px;
  color: var(--amk-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.button--light {
  background: var(--amk-white);
  border-color: var(--amk-white);
  color: var(--amk-accent-dark);
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--amk-white);
}

.hero-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(3, 21, 58, 0.28);
  padding: 24px;
}

.hero-panel h2 {
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.hero-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.hero-panel li {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
  padding-top: 12px;
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: var(--amk-soft);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.12;
  margin: 0;
}

.section-heading p {
  color: var(--amk-muted);
  margin: 0;
  max-width: 460px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.feature {
  border-top: 3px solid var(--amk-accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0));
  padding: 18px 4px 0;
}

.feature h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.feature p {
  color: var(--amk-muted);
  margin: 0;
}

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

.post-card {
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  overflow: hidden;
}

.post-card__image {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.92), rgba(32, 199, 255, 0.72)),
    url("assets/pattern.svg");
  display: block;
  overflow: hidden;
}

.post-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.post-card__body {
  padding: 20px;
}

.post-card time,
.entry-meta {
  color: var(--amk-muted);
  font-size: 0.86rem;
}

.post-card h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  margin: 7px 0 12px;
}

.post-card p {
  color: var(--amk-muted);
  margin: 0 0 14px;
}

.post-grid--archive {
  gap: 18px;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 960px;
}

.post-grid--archive .post-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 168px;
}

.post-grid--archive .post-card__image {
  aspect-ratio: auto;
  height: 100%;
  min-height: 168px;
}

.post-grid--archive .post-card__image img {
  height: 100%;
  min-height: 168px;
}

.post-grid--archive .post-card__body {
  align-content: center;
  display: grid;
  padding: 22px 24px;
}

.post-grid--archive .post-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin-bottom: 10px;
}

.post-grid--archive .post-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.page-header {
  background: var(--amk-soft);
  padding: 64px 0;
}

.content-area {
  padding: 56px 0 76px;
}

.entry {
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  margin: 0 auto 28px;
  max-width: 820px;
  padding: 30px;
}

.entry h1,
.entry h2,
.entry h3 {
  line-height: 1.22;
}

.entry-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 8px 0 16px;
}

.entry-content {
  font-size: 1.06rem;
}

.entry-content p {
  margin: 0 0 1.2em;
}

.entry-content img {
  border-radius: 8px;
  margin: 20px 0;
}

.site-footer {
  background: var(--amk-ink);
  color: var(--amk-white);
  padding: 34px 0;
}

.site-footer__inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

@media (max-width: 820px) {
  .site-header__inner,
  .site-footer__inner,
  .section-heading,
  .hero__inner {
    align-items: start;
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-menu {
    gap: 12px;
  }

  .hero__inner {
    min-height: 0;
    padding-bottom: 52px;
    padding-top: 52px;
  }

  .hero__visual {
    background-position: 68% center;
    min-height: 260px;
  }

  .hero__brand {
    margin: 22px 24px;
    max-width: 66%;
  }

  .grid--3,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-grid--archive .post-card {
    grid-template-columns: 1fr;
  }

  .post-grid--archive .post-card__image {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .section {
    padding: 52px 0;
  }
}

/* v1.0.6 editorial refresh */
.skip-link {
  background: var(--amk-ink);
  color: var(--amk-white);
  font-weight: 800;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  text-decoration: none;
  top: -80px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.mobile-only {
  display: none;
}

.site-header {
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
}

.brand__mark {
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
}

.site-nav {
  min-width: 0;
}

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

.site-search {
  align-items: center;
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 999px;
  display: flex;
  gap: 6px;
  max-width: 250px;
  min-height: 42px;
  padding: 4px;
  width: 24vw;
}

.site-search input[type="search"] {
  background: transparent;
  border: 0;
  color: var(--amk-ink);
  flex: 1;
  font: inherit;
  font-size: 0.92rem;
  min-width: 0;
  outline: none;
  padding: 7px 6px 7px 12px;
}

.site-search input[type="search"]::placeholder {
  color: #7c8798;
}

.site-search button {
  background: var(--amk-accent-dark);
  border: 0;
  border-radius: 999px;
  color: var(--amk-white);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 32px;
  padding: 6px 12px;
}

.primary-menu a {
  border-radius: 999px;
  display: inline-flex;
  padding: 7px 10px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-menu li {
  position: relative;
}

.primary-menu .sub-menu {
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.12);
  display: grid;
  gap: 4px;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 230px;
  opacity: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
  z-index: 40;
}

.primary-menu .sub-menu a {
  border-radius: 6px;
  display: flex;
  font-size: 0.9rem;
  padding: 8px 10px;
  white-space: nowrap;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.primary-menu .menu-item-has-children > a::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  height: 6px;
  margin-left: 7px;
  margin-top: 5px;
  transform: rotate(45deg);
  width: 6px;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_ancestor > a {
  background: rgba(23, 105, 255, 0.09);
  color: var(--amk-accent-dark);
  transform: translateY(-1px);
}

.hero--cover {
  background: #071733;
  min-height: clamp(560px, 38vw, 860px);
  position: relative;
}

.hero--cover::after {
  background:
    linear-gradient(90deg, rgba(7, 18, 40, 0.9) 0%, rgba(7, 18, 40, 0.72) 34%, rgba(7, 18, 40, 0.28) 58%, rgba(7, 18, 40, 0.12) 100%),
    linear-gradient(180deg, rgba(7, 18, 40, 0.14), rgba(7, 18, 40, 0.38));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero__media {
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.hero--cover .hero__inner {
  align-items: center;
  display: flex;
  min-height: clamp(560px, 38vw, 860px);
  padding-bottom: 76px;
  padding-top: 76px;
  position: relative;
  z-index: 2;
}

.hero__copy {
  max-width: 650px;
}

.hero__copy .eyebrow {
  color: #ffdf6e;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.hero h1,
.page-title {
  font-size: 4rem;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero__copy p:not(.eyebrow) {
  font-size: 1.15rem;
  line-height: 1.9;
  max-width: 600px;
  text-wrap: pretty;
}

.button,
.wp-block-button__link,
button.button {
  box-shadow: 0 10px 24px rgba(23, 105, 255, 0.16);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button:hover,
.wp-block-button__link:hover,
button.button:hover {
  box-shadow: 0 14px 32px rgba(23, 105, 255, 0.22);
  transform: translateY(-1px);
}

.button--outline,
.post-list-actions a {
  background: var(--amk-white);
  border-color: rgba(23, 105, 255, 0.42);
  color: var(--amk-accent-dark);
}

.post-list-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.post-list-actions a {
  align-items: center;
  border: 1px solid rgba(23, 105, 255, 0.42);
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  min-width: 168px;
  padding: 10px 18px;
  text-decoration: none;
}

.post-list-actions a:hover {
  background: var(--amk-accent-dark);
  border-color: var(--amk-accent-dark);
  color: var(--amk-white);
}

.page-header {
  background:
    linear-gradient(135deg, rgba(234, 242, 255, 0.95), rgba(255, 255, 255, 0.7)),
    url("assets/pattern.svg");
  border-bottom: 1px solid var(--amk-line);
  padding: 70px 0 56px;
}

.page-intro {
  color: var(--amk-muted);
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 18px 0 0;
  max-width: 720px;
}

.section-kicker {
  color: var(--amk-highlight);
  font-size: 0.92rem;
  font-weight: 850;
  margin: 0 0 10px;
}

.resources-page .page-intro {
  max-width: 760px;
}

.content-area--resources {
  background:
    linear-gradient(180deg, rgba(234, 242, 255, 0.72), rgba(247, 250, 255, 0) 280px),
    var(--amk-paper);
  padding-top: 46px;
}

.resource-overview {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 42px;
}

.resource-card {
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.06);
  color: var(--amk-ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 172px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.resource-card:hover {
  border-color: rgba(23, 105, 255, 0.38);
  box-shadow: 0 24px 54px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.resource-card strong {
  font-size: 1.2rem;
  line-height: 1.35;
}

.resource-card span:not(.resource-card__label) {
  color: var(--amk-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.resource-card__label {
  color: var(--amk-accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.resource-section {
  border-top: 1px solid var(--amk-line);
  padding: 38px 0;
}

.resource-section__header {
  align-items: baseline;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.resource-section__header span {
  color: var(--amk-accent);
  font-size: 0.86rem;
  font-weight: 900;
}

.resource-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.25;
  margin: 0;
}

.resource-section h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 8px 0 10px;
}

.resource-section p {
  color: var(--amk-muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0 0 16px;
  max-width: 860px;
}

.resource-checklist {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.resource-checklist li {
  background: rgba(255, 255, 255, 0.78);
  border-left: 3px solid var(--amk-accent);
  border-radius: 6px;
  color: var(--amk-ink);
  font-weight: 700;
  padding: 12px 14px;
}

.resource-link-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 4px;
}

.resource-link-groups span {
  background: rgba(32, 199, 255, 0.1);
  border: 1px solid rgba(32, 199, 255, 0.24);
  border-radius: 999px;
  color: var(--amk-accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 12px;
}

.resource-note {
  color: #6e7788;
  font-size: 0.92rem;
  font-weight: 700;
}

.mini-tool-preview {
  align-items: center;
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 22px;
}

.mini-tool-preview p {
  margin-bottom: 0;
}

.resources-cta {
  align-items: center;
  border-top: 1px solid var(--amk-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 30px;
}

.resources-cta p {
  font-size: 1.1rem;
  font-weight: 850;
  margin: 0;
}

.resource-editor-content {
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  margin: 8px 0 30px;
  padding: 24px;
}

.amk-under-construction {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 30px 18px;
  text-align: center;
}

.amk-under-construction__icon {
  align-items: center;
  background: linear-gradient(135deg, rgba(23, 105, 255, 0.14), rgba(32, 199, 255, 0.16));
  border: 1px solid rgba(23, 105, 255, 0.28);
  border-radius: 8px;
  color: var(--amk-accent-dark);
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 950;
  height: 70px;
  justify-content: center;
  margin-bottom: 18px;
  width: 70px;
}

.amk-under-construction__kicker {
  color: var(--amk-accent);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.amk-under-construction h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.amk-under-construction p:not(.amk-under-construction__kicker) {
  color: var(--amk-muted);
  font-size: 1.06rem;
  line-height: 1.8;
  margin: 0 0 24px;
  max-width: 540px;
}

.amk-about-contact {
  background: linear-gradient(135deg, rgba(234, 242, 255, 0.82), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  margin-top: 28px;
  padding: 24px;
}

.amk-about-contact__label {
  color: var(--amk-accent);
  font-size: 0.82rem;
  font-weight: 900;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.amk-about-contact h2 {
  font-size: 1.45rem;
  line-height: 1.28;
  margin: 0 0 10px;
}

.amk-about-contact p:not(.amk-about-contact__label) {
  color: var(--amk-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0;
}

.amk-about-contact a {
  color: var(--amk-accent-dark);
  font-weight: 850;
}

.post-card {
  box-shadow: 0 18px 46px rgba(16, 24, 40, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.post-card:hover {
  border-color: rgba(23, 105, 255, 0.34);
  box-shadow: 0 24px 58px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.post-card__image {
  position: relative;
}

.post-card__image::after {
  background: linear-gradient(180deg, rgba(16, 24, 40, 0), rgba(16, 24, 40, 0.12));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.post-card__image img {
  transition: transform 260ms ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.035);
}

.post-card__meta {
  align-items: center;
  color: var(--amk-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 0.86rem;
}

.post-card h3 a,
.post-card__read {
  text-decoration: none;
}

.post-card h3 a:hover,
.post-card__read:hover {
  color: var(--amk-accent);
}

.post-card__tags,
.article-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-card__tags {
  margin: 0 0 16px;
}

.term-pill {
  align-items: center;
  background: rgba(32, 199, 255, 0.1);
  border: 1px solid rgba(32, 199, 255, 0.24);
  border-radius: 999px;
  color: var(--amk-accent-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  padding: 5px 9px;
  text-decoration: none;
}

.term-pill--strong {
  background: rgba(255, 212, 59, 0.18);
  border-color: rgba(255, 212, 59, 0.42);
  color: #624a00;
}

.post-card__read {
  color: var(--amk-accent-dark);
  font-weight: 800;
}

.post-card__read::after {
  content: " ->";
}

.post-grid--archive {
  max-width: 1020px;
}

.post-grid--archive .post-card {
  border-radius: 8px;
}

.post-grid--archive .post-card__body {
  gap: 4px;
}

.navigation.pagination {
  margin-top: 34px;
}

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

.page-numbers {
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 999px;
  color: var(--amk-accent-dark);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-width: 40px;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
}

.page-numbers.prev,
.page-numbers.next {
  padding-left: 16px;
  padding-right: 16px;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--amk-accent-dark);
  border-color: var(--amk-accent-dark);
  color: var(--amk-white);
}

.content-area--article {
  background:
    linear-gradient(180deg, rgba(234, 242, 255, 0.85), rgba(247, 250, 255, 0) 360px),
    var(--amk-paper);
  padding-top: 42px;
}

.article-shell {
  margin: 0 auto;
  max-width: 920px;
  padding: 0 24px 76px;
}

.article-hero {
  margin: 0 auto 28px;
  max-width: 840px;
}

.article-kicker {
  align-items: center;
  color: var(--amk-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.article-title {
  color: var(--amk-ink);
  font-size: 3.05rem;
  line-height: 1.16;
  margin: 0;
  text-wrap: pretty;
}

.article-excerpt {
  color: var(--amk-muted);
  font-size: 1.1rem;
  line-height: 1.9;
  margin: 18px 0 0;
}

.article-featured {
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(16, 24, 40, 0.1);
  margin: 0 auto 34px;
  max-width: 760px;
  overflow: hidden;
}

.article-featured img {
  width: 100%;
}

.article-content {
  background: var(--amk-white);
  border: 1px solid rgba(216, 226, 242, 0.9);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(16, 24, 40, 0.06);
  color: #172033;
  font-size: 1.08rem;
  line-height: 1.95;
  margin: 0 auto;
  max-width: 760px;
  padding: 38px 44px;
}

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

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

.article-content p {
  margin: 0 0 1.35em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--amk-ink);
  margin: 1.8em 0 0.65em;
}

.article-content h2 {
  border-left: 4px solid var(--amk-highlight);
  font-size: 1.58rem;
  line-height: 1.35;
  padding-left: 14px;
}

.article-content h3 {
  font-size: 1.28rem;
}

.article-content a {
  color: #0f58d6;
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.35em;
  padding-left: 1.35em;
}

.article-content li + li {
  margin-top: 0.45em;
}

.article-content blockquote {
  background: rgba(234, 242, 255, 0.72);
  border-left: 4px solid var(--amk-accent);
  margin: 1.6em 0;
  padding: 18px 20px;
}

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

.article-content img {
  border: 1px solid rgba(216, 226, 242, 0.9);
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.08);
}

.article-footer {
  margin: 28px auto 0;
  max-width: 760px;
}

.article-tags {
  margin-bottom: 18px;
}

.article-tags > span {
  color: var(--amk-muted);
  font-size: 0.86rem;
  font-weight: 800;
  margin-right: 2px;
}

.article-source {
  align-items: center;
  background: #111827;
  border-radius: 8px;
  color: var(--amk-white);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
  margin: 20px 0;
  padding: 18px 20px;
}

.article-source span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
}

.article-source a {
  color: var(--amk-white);
  font-weight: 850;
  text-decoration: none;
}

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

.article-nav a {
  background: var(--amk-white);
  border: 1px solid var(--amk-line);
  border-radius: 8px;
  color: var(--amk-ink);
  display: grid;
  gap: 4px;
  padding: 16px;
  text-decoration: none;
}

.article-nav a:hover {
  border-color: rgba(23, 105, 255, 0.34);
}

.article-nav span {
  color: var(--amk-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.article-nav strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.98rem;
  line-height: 1.45;
  overflow: hidden;
}

.article-cta {
  align-items: center;
  border-top: 1px solid var(--amk-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 24px;
}

.article-cta p {
  color: var(--amk-accent-dark);
  font-weight: 850;
  margin: 0;
}

@media (max-width: 980px) {
  .hero h1,
  .page-title {
    font-size: 3.25rem;
  }

  .article-title {
    font-size: 2.45rem;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    gap: 14px;
    min-height: 0;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .site-search {
    max-width: none;
    width: 100%;
  }

  .brand__tagline {
    font-size: 0.72rem;
  }

  .primary-menu {
    gap: 6px;
  }

  .primary-menu a {
    font-size: 0.88rem;
    padding: 6px 8px;
  }

  .primary-menu .menu-item-has-children {
    flex-basis: 100%;
  }

  .primary-menu .sub-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    min-width: 0;
    opacity: 1;
    padding: 0;
    position: static;
    transform: none;
    visibility: visible;
  }

  .primary-menu .sub-menu a {
    background: rgba(23, 105, 255, 0.07);
    font-size: 0.82rem;
    padding: 5px 8px;
    white-space: normal;
  }

  .hero--cover,
  .hero--cover .hero__inner {
    min-height: 560px;
  }

  .hero--cover::after {
    background:
      radial-gradient(ellipse 48% 48% at 88% 64%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.24) 34%, rgba(255, 255, 255, 0.07) 62%, rgba(255, 255, 255, 0) 80%),
      linear-gradient(180deg, rgba(7, 18, 40, 0.84) 0%, rgba(7, 18, 40, 0.5) 38%, rgba(7, 18, 40, 0) 100%),
      linear-gradient(90deg, rgba(7, 18, 40, 0.86) 0%, rgba(7, 18, 40, 0.52) 50%, rgba(7, 18, 40, 0) 100%);
  }

  .hero__media img {
    object-fit: cover;
    object-position: center center;
  }

  .hero--cover .hero__inner {
    align-items: start;
    padding-bottom: 36px;
    padding-top: 42px;
  }

  .hero__copy {
    max-width: 100%;
  }

  .mobile-only {
    display: block;
  }

  .hero h1,
  .page-title {
    font-size: 2.48rem;
  }

  .hero__copy p:not(.eyebrow),
  .page-intro {
    font-size: 1rem;
    line-height: 1.8;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 240px;
  }

  .button,
  .wp-block-button__link,
  button.button {
    width: 100%;
  }

  .page-header {
    padding: 34px 0 30px;
  }

  .resources-page .page-header {
    padding: 30px 0 28px;
  }

  .content-area {
    padding: 34px 0 62px;
  }

  .content-area--resources {
    padding-top: 28px;
  }

  .resource-overview {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }

  .resource-card {
    min-height: 0;
    padding: 18px;
  }

  .resource-section {
    padding: 28px 0;
  }

  .resource-section__header {
    align-items: flex-start;
    gap: 10px;
  }

  .resource-section h2 {
    font-size: 1.45rem;
  }

  .resource-checklist {
    grid-template-columns: 1fr;
  }

  .mini-tool-preview,
  .resources-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .post-list-actions {
    margin-top: 20px;
  }

  .post-list-actions a {
    width: min(100%, 260px);
  }

  .navigation.pagination {
    margin-top: 24px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .page-numbers {
    min-height: 42px;
    min-width: 42px;
    padding: 10px 13px;
  }

  .post-grid--archive .post-card__body {
    padding: 20px;
  }

  .article-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  .article-title {
    font-size: 2rem;
  }

  .article-content {
    font-size: 1.02rem;
    line-height: 1.88;
    padding: 26px 20px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-cta {
    align-items: stretch;
    display: grid;
  }

  .site-footer__inner {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hero h1,
  .page-title {
    font-size: 2.1rem;
  }

  .article-title {
    font-size: 1.72rem;
  }
}

/* v1.0.8 mobile Chrome hardening */
@media (max-width: 700px) {
  body.blog .page-header,
  body.archive .page-header,
  body.search .page-header {
    padding: 24px 0 22px;
  }

  body.blog .page-title,
  body.archive .page-title,
  body.search .page-title {
    font-size: 1.95rem;
    line-height: 1.16;
  }

  body.blog .page-intro,
  body.archive .page-intro,
  body.search .page-intro {
    font-size: 0.94rem;
    line-height: 1.65;
    margin-top: 10px;
  }

  body.blog .content-area,
  body.archive .content-area,
  body.search .content-area {
    padding-top: 26px;
  }

  body.page:not(.home) .page-header {
    padding: 20px 0 18px;
  }

  body.page:not(.home) .page-title {
    font-size: 1.9rem;
    line-height: 1.18;
  }

  body.page:not(.home) .content-area {
    padding: 24px 0 56px;
  }

  body.page:not(.home) .entry {
    margin-bottom: 0;
    padding: 24px 20px;
  }
}

@supports (height: 100svh) {
  @media (max-width: 700px) {
    .hero--cover,
    .hero--cover .hero__inner {
      min-height: min(620px, 78svh);
    }
  }
}
