/**
 * Theme Name: 錢意識 Money Awareness
 * Theme URI: https://awakemoneylab.com/
 * Author: Money Awareness
 * Description: 為「錢意識」打造的可維護繁體中文財經內容主題。支援分類文章、書架、精選推薦、麵包屑、聯盟揭露與 SEO／AI 搜尋基礎設定。
 * Version: 1.1.0
 * Requires at least: 6.0
 * Requires PHP: 7.4
 * Text Domain: money-awareness
 * License: GPL-2.0-or-later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 */

:root {
  --ma-ink: #172b42;
  --ma-muted: #5f6f82;
  --ma-blue: #2877bc;
  --ma-blue-dark: #18588f;
  --ma-blue-pale: #e6f3ff;
  --ma-mist: #f5f8fb;
  --ma-paper: #ffffff;
  --ma-line: #dce6ef;
  --ma-radius: 18px;
  --ma-shadow: 0 14px 35px rgba(27, 83, 127, 0.10);
  --ma-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --ma-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ma-paper);
  color: var(--ma-ink);
  font-family: var(--ma-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

iframe { max-width: 100%; }

a { color: var(--ma-blue); text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
a:hover { color: var(--ma-blue-dark); }

button,
input,
textarea,
select { font: inherit; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: 1rem;
  width: auto;
  z-index: 9999;
  border-radius: .5rem;
  background: var(--ma-ink);
  color: #fff;
}

.ma-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ma-narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }

.ma-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 230, 239, .88);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}

.ma-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

.ma-brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--ma-ink);
  font-weight: 700;
  text-decoration: none;
}

.ma-brand:hover { color: var(--ma-blue-dark); }

.ma-brand-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
}

.ma-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.ma-brand-copy { display: grid; gap: 0; }
.ma-brand-name { font-size: 1.04rem; letter-spacing: -.02em; }
.ma-brand-tagline { color: var(--ma-muted); font-size: .72rem; font-weight: 500; line-height: 1.3; }
.ma-brand--logo .custom-logo-link { display: block; }
.ma-brand--logo .custom-logo { width: auto; max-height: 40px; }

.ma-primary-nav .menu,
.ma-footer-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ma-primary-nav a,
.ma-footer-nav a {
  color: var(--ma-muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.ma-primary-nav a:hover,
.ma-primary-nav .current-menu-item > a,
.ma-footer-nav a:hover { color: var(--ma-blue); }

.ma-header-actions { display: flex; align-items: center; gap: .75rem; }

.ma-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid var(--ma-blue);
  border-radius: 999px;
  background: var(--ma-blue);
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.2;
  padding: .65rem 1.15rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.ma-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  border-color: var(--ma-blue-dark);
  background: var(--ma-blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

.ma-button--ghost {
  border-color: var(--ma-line);
  background: #fff;
  color: var(--ma-ink);
}
.ma-button--ghost:hover { border-color: var(--ma-blue); background: var(--ma-blue-pale); color: var(--ma-blue-dark); }
.ma-button--small { min-height: 36px; font-size: .8rem; padding: .5rem .9rem; }

.ma-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ma-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ma-ink);
  cursor: pointer;
}

.ma-mobile-menu { display: none; border-top: 1px solid var(--ma-line); background: #fff; }
.ma-mobile-menu.is-open { display: block; }
.ma-mobile-menu .menu { display: grid; gap: 0; margin: 0; padding: .7rem 20px 1rem; list-style: none; }
.ma-mobile-menu a { display: block; padding: .65rem 0; color: var(--ma-ink); font-weight: 700; text-decoration: none; }

.ma-hero { overflow: hidden; padding: clamp(3.4rem, 7vw, 6.2rem) 0 clamp(3rem, 6vw, 5.2rem); }
.ma-hero-grid { display: grid; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1.05fr .95fr; }
.ma-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 1.15rem;
  color: var(--ma-blue);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ma-hero h1,
.ma-section-title,
.ma-entry-title,
.ma-archive-title,
.ma-single-title,
.ma-page-title {
  margin: 0;
  color: var(--ma-ink);
  font-family: var(--ma-display);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.17;
}

.ma-hero h1 { max-width: 13ch; font-size: clamp(2.65rem, 5.6vw, 5.05rem); }
.ma-hero h1 em,
.ma-section-title em { font-style: italic; font-weight: 500; }
.ma-hero h1 mark { padding: 0 .08em; background: linear-gradient(transparent 62%, #c7e6ff 62%); color: inherit; }
.ma-hero-description { max-width: 34rem; margin: 1.5rem 0 0; color: var(--ma-muted); font-size: 1.05rem; }
.ma-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.ma-hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 2.25rem 0 0; padding-top: 1.35rem; border-top: 1px solid var(--ma-line); }
.ma-stat { display: grid; gap: .1rem; }
.ma-stat strong { font-family: var(--ma-display); font-size: 1.45rem; font-weight: 600; }
.ma-stat span { color: var(--ma-muted); font-size: .75rem; font-weight: 700; }

.ma-hero-media { position: relative; min-height: 385px; }
.ma-hero-photo,
.ma-hero-placeholder {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 385px;
  border-radius: var(--ma-radius);
  box-shadow: var(--ma-shadow);
  object-fit: cover;
}
.ma-hero-placeholder {
  display: grid;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.9) 0 2%, transparent 2.4%),
    radial-gradient(circle at 82% 76%, rgba(255,255,255,.7) 0 3%, transparent 3.5%),
    linear-gradient(135deg, #d8efff, #8dc7ee 52%, #357db5);
}
.ma-hero-placeholder::after {
  width: 70%;
  height: 56%;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 18px 30px rgba(19,65,99,.16);
  content: "錢意識\A Finance made clear";
  color: var(--ma-ink);
  font-family: var(--ma-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.45;
  padding: 2rem;
  text-align: center;
  white-space: pre-line;
}
.ma-hero-media::before {
  position: absolute;
  top: -18px;
  left: -18px;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--ma-radius);
  background: var(--ma-blue-pale);
  content: "";
}
.ma-hero-note {
  position: absolute;
  bottom: -24px;
  left: 28px;
  z-index: 3;
  max-width: 235px;
  border: 1px solid var(--ma-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(27, 83, 127, .14);
  padding: .9rem 1rem;
}
.ma-hero-note small { color: var(--ma-blue); font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.ma-hero-note strong { display: block; margin-top: .2rem; font-family: var(--ma-display); font-size: 1rem; font-weight: 600; line-height: 1.4; }

.ma-ticker { overflow: hidden; border-block: 1px solid rgba(40, 119, 188, .18); background: var(--ma-blue); color: #fff; }
.ma-ticker-track { display: flex; width: max-content; align-items: center; gap: 1.4rem; padding: .65rem 0; animation: ma-ticker 33s linear infinite; }
.ma-ticker-item { display: inline-flex; align-items: center; gap: 1.4rem; color: #fff; font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ma-ticker a.ma-ticker-item:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.ma-ticker a.ma-ticker-item:focus-visible { border-radius: 4px; outline: 2px solid #fff; outline-offset: 3px; }
.ma-ticker-item::after { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.65); content: ""; }
@keyframes ma-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ma-ticker-track { animation: none; } }

.ma-section { padding: clamp(3.6rem, 7vw, 6.2rem) 0; }
.ma-section--mist { border-block: 1px solid var(--ma-line); background: var(--ma-mist); }
.ma-section-head { display: flex; align-items: end; gap: 1rem; justify-content: space-between; margin-bottom: 2.3rem; }
.ma-section-title { font-size: clamp(2.05rem, 4vw, 3.3rem); }
.ma-section-description { max-width: 680px; margin: .85rem 0 0; color: var(--ma-muted); }
.ma-section-link { display: inline-flex; align-items: center; gap: .4rem; flex: 0 0 auto; font-size: .88rem; font-weight: 800; text-decoration: none; }

.ma-post-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ma-post-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--ma-line); border-radius: 15px; background: #fff; box-shadow: 0 1px 0 rgba(24, 88, 143, .02); transition: box-shadow .25s ease, transform .25s ease; }
.ma-post-card:hover { box-shadow: var(--ma-shadow); transform: translateY(-4px); }
.ma-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #edf5fa, #cfdfeb); }
.ma-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ma-post-card:hover .ma-card-media img { transform: scale(1.045); }
.ma-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #dceefa 0%, #f7fbff 58%, #a8cce8 100%); }
.ma-card-badge { position: absolute; top: .9rem; left: .9rem; border-radius: 999px; background: rgba(255,255,255,.93); color: var(--ma-ink); font-size: .67rem; font-weight: 800; letter-spacing: .04em; padding: .3rem .55rem; }
.ma-card-body { display: flex; min-height: 220px; flex: 1; flex-direction: column; padding: 1.25rem; }
.ma-card-meta { display: flex; flex-wrap: wrap; gap: .48rem; color: var(--ma-muted); font-size: .72rem; font-weight: 700; }
.ma-card-meta span + span::before { margin-right: .48rem; color: #a9b8c5; content: "•"; }
.ma-entry-title { margin-top: .75rem; font-size: 1.13rem; line-height: 1.38; }
.ma-entry-title a { color: inherit; text-decoration: none; }
.ma-entry-title a:hover { color: var(--ma-blue); }
.ma-card-excerpt { display: -webkit-box; margin: .62rem 0 0; overflow: hidden; color: var(--ma-muted); font-size: .84rem; line-height: 1.68; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.ma-card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: 1rem; font-size: .82rem; font-weight: 800; text-decoration: none; }
.ma-card-link::after { content: "→"; transition: transform .2s ease; }
.ma-card-link:hover::after { transform: translateX(3px); }

.ma-book-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ma-book-card { display: grid; min-width: 0; grid-template-columns: 112px 1fr; gap: 1.15rem; border: 1px solid var(--ma-line); border-radius: 15px; background: #fff; padding: 1.1rem; transition: box-shadow .25s ease, transform .25s ease; }
.ma-book-card:hover { box-shadow: var(--ma-shadow); transform: translateY(-3px); }
.ma-book-cover { position: relative; display: block; align-self: start; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 9px; background: #e2edf5; box-shadow: 7px 8px 0 var(--ma-blue-pale); }
.ma-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.ma-book-content { display: flex; min-width: 0; flex-direction: column; }
.ma-book-card .ma-entry-title { margin-top: .45rem; font-size: 1.08rem; }

.ma-picks-list { overflow: hidden; border: 1px solid var(--ma-line); border-radius: var(--ma-radius); background: #fff; }
.ma-pick-row { display: grid; align-items: center; gap: 1rem; grid-template-columns: minmax(0, 1fr) auto auto; padding: 1.25rem 1.45rem; }
.ma-pick-row + .ma-pick-row { border-top: 1px solid var(--ma-line); }
.ma-pick-title { margin: 0; font-family: var(--ma-display); font-size: 1.1rem; font-weight: 600; line-height: 1.35; }
.ma-pick-description { margin: .25rem 0 0; color: var(--ma-muted); font-size: .84rem; }
.ma-pick-price { color: var(--ma-ink); font-family: var(--ma-display); font-weight: 600; white-space: nowrap; }
.ma-affiliate-disclosure { margin: 1rem 0 0; color: var(--ma-muted); font-size: .77rem; line-height: 1.65; }
.ma-affiliate-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }

.ma-newsletter-panel { position: relative; overflow: hidden; border-radius: 22px; background: var(--ma-blue); color: #fff; padding: clamp(2.4rem, 6vw, 4.5rem) 1.5rem; text-align: center; }
.ma-newsletter-panel::before,
.ma-newsletter-panel::after { position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); content: ""; }
.ma-newsletter-panel::before { top: -120px; right: -90px; width: 310px; height: 310px; }
.ma-newsletter-panel::after { bottom: -155px; left: -80px; width: 330px; height: 330px; }
.ma-newsletter-content { position: relative; z-index: 1; margin: 0 auto; max-width: 670px; }
.ma-newsletter-panel h2 { margin: 0; color: #fff; font-family: var(--ma-display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.24; }
.ma-newsletter-panel p { margin: .9rem auto 0; max-width: 560px; color: rgba(255,255,255,.84); }
.ma-newsletter-form { margin: 1.6rem auto 0; max-width: 560px; }
.ma-newsletter-form form { display: flex; gap: .7rem; justify-content: center; }
.ma-newsletter-form input[type="email"] { min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; padding: .7rem 1rem; }
.ma-newsletter-form input::placeholder { color: rgba(255,255,255,.7); }
.ma-newsletter-form input[type="submit"], .ma-newsletter-form button { border-color: #fff; background: #fff; color: var(--ma-blue); }
.ma-newsletter-form input[type="submit"]:hover, .ma-newsletter-form button:hover { background: #e8f5ff; color: var(--ma-blue-dark); }
.ma-newsletter-setup-note { margin-top: 1.35rem !important; font-size: .83rem; }
.ma-newsletter-setup-note a { color: #fff; font-weight: 800; }

.ma-breadcrumb { margin: 0 0 1.2rem; color: var(--ma-muted); font-size: .78rem; }
.ma-breadcrumb ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.ma-breadcrumb li { display: inline-flex; align-items: center; gap: .45rem; }
.ma-breadcrumb li + li::before { color: #9aabba; content: "/"; }
.ma-breadcrumb a { color: var(--ma-muted); text-decoration: none; }
.ma-breadcrumb a:hover { color: var(--ma-blue); }

.ma-archive-header { border-bottom: 1px solid var(--ma-line); background: var(--ma-mist); padding: 3.5rem 0; }
.ma-archive-title, .ma-page-title { font-size: clamp(2.2rem, 4.5vw, 4rem); }
.ma-archive-description { max-width: 680px; margin: .9rem 0 0; color: var(--ma-muted); }
.ma-content-area { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.ma-content-grid { display: grid; align-items: start; gap: clamp(2.2rem, 5vw, 4.6rem); grid-template-columns: minmax(0, 1fr) 290px; }
.ma-article { min-width: 0; }
.ma-single-header { margin-bottom: 1.7rem; }
.ma-single-title { font-size: clamp(2.3rem, 4.6vw, 4.3rem); }
.ma-single-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; color: var(--ma-muted); font-size: .82rem; font-weight: 700; }
.ma-single-meta span + span::before { margin-right: .55rem; color: #a8b6c2; content: "•"; }
.ma-category-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.ma-category-links a { border-radius: 999px; background: var(--ma-blue-pale); color: var(--ma-blue-dark); font-size: .73rem; font-weight: 800; padding: .28rem .55rem; text-decoration: none; }
.ma-featured-image { overflow: hidden; margin: 0 0 2rem; border-radius: var(--ma-radius); background: var(--ma-mist); }
.ma-featured-image img { width: 100%; }
.ma-investment-note { margin: 0 0 1.7rem; border-left: 4px solid var(--ma-blue); border-radius: 0 12px 12px 0; background: var(--ma-blue-pale); color: #35536c; font-size: .88rem; padding: .9rem 1rem; }
.ma-entry-content { color: #2b4056; }
.ma-entry-content > *:first-child { margin-top: 0; }
.ma-entry-content h2, .ma-entry-content h3, .ma-entry-content h4 { color: var(--ma-ink); font-family: var(--ma-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.35; }
.ma-entry-content h2 { margin: 2.7rem 0 1rem; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.ma-entry-content h3 { margin: 2rem 0 .8rem; font-size: 1.45rem; }
.ma-entry-content p, .ma-entry-content ul, .ma-entry-content ol { margin: 0 0 1.25rem; }
.ma-entry-content ul, .ma-entry-content ol { padding-left: 1.35rem; }
.ma-entry-content li + li { margin-top: .35rem; }
.ma-entry-content blockquote { margin: 1.8rem 0; border-left: 4px solid var(--ma-blue); background: var(--ma-mist); color: var(--ma-ink); font-family: var(--ma-display); font-size: 1.14rem; padding: 1rem 1.2rem; }
.ma-entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.7rem 0; }
.ma-entry-content th, .ma-entry-content td { min-width: 120px; border: 1px solid var(--ma-line); padding: .68rem .8rem; text-align: left; }
.ma-entry-content th { background: var(--ma-mist); color: var(--ma-ink); }
.ma-entry-content .alignwide { margin-left: auto; margin-right: auto; max-width: 1100px; }
.ma-entry-content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.ma-source-box { margin-top: 2.1rem; border: 1px solid var(--ma-line); border-radius: 14px; background: var(--ma-mist); padding: 1.15rem 1.25rem; }
.ma-source-box h2 { margin: 0 0 .55rem; font-family: var(--ma-display); font-size: 1.35rem; }
.ma-source-box ul { margin: 0; padding-left: 1.2rem; }
.ma-source-box li + li { margin-top: .35rem; }
.ma-post-nav { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 3rem; border-top: 1px solid var(--ma-line); padding-top: 1.5rem; }
.ma-post-nav a { display: grid; gap: .2rem; min-width: 0; border: 1px solid var(--ma-line); border-radius: 12px; color: var(--ma-ink); padding: .9rem 1rem; text-decoration: none; }
.ma-post-nav a:hover { border-color: var(--ma-blue); background: var(--ma-blue-pale); }
.ma-post-nav small { color: var(--ma-muted); font-size: .72rem; font-weight: 800; }
.ma-post-nav span { display: -webkit-box; overflow: hidden; font-family: var(--ma-display); font-weight: 600; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.ma-sidebar { display: grid; gap: 1.2rem; }
.ma-widget { overflow: hidden; border: 1px solid var(--ma-line); border-radius: 14px; background: #fff; padding: 1.1rem; }
.ma-widget-title { margin: 0 0 .8rem; color: var(--ma-ink); font-family: var(--ma-display); font-size: 1.2rem; font-weight: 600; }
.ma-widget ul { margin: 0; padding-left: 1.1rem; }
.ma-widget li + li { margin-top: .45rem; }
.ma-widget img { border-radius: 10px; }
.ma-sidebar-note { border-color: #b8d9ef; background: var(--ma-blue-pale); color: #35536c; font-size: .84rem; }
.ma-sidebar-note p { margin: .45rem 0 0; }
.ma-search-form { display: flex; gap: .5rem; }
.ma-search-form input[type="search"] { width: 100%; min-width: 0; border: 1px solid var(--ma-line); border-radius: 9px; color: var(--ma-ink); padding: .55rem .65rem; }

.ma-page-content { padding: clamp(3.2rem, 7vw, 5.8rem) 0; }
.ma-page-content .ma-entry-content { margin-top: 1.6rem; }
.ma-empty { border: 1px dashed #b9cbd9; border-radius: 14px; background: var(--ma-mist); color: var(--ma-muted); padding: 1.3rem; text-align: center; }
.ma-pagination { display: flex; justify-content: center; margin-top: 2.3rem; }
.ma-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .35rem; }
.ma-pagination a, .ma-pagination span { min-width: 37px; border: 1px solid var(--ma-line); border-radius: 9px; color: var(--ma-ink); padding: .35rem .6rem; text-align: center; text-decoration: none; }
.ma-pagination .current { border-color: var(--ma-blue); background: var(--ma-blue); color: #fff; }

.ma-site-footer { margin-top: 0; border-top: 1px solid var(--ma-line); background: var(--ma-mist); }
.ma-footer-main { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) auto; padding: 3rem 0 2.4rem; }
.ma-footer-brand { max-width: 500px; }
.ma-footer-description { margin: .9rem 0 0; color: var(--ma-muted); font-size: .86rem; }
.ma-footer-nav .menu { justify-content: flex-end; }
.ma-footer-widgets { padding-bottom: 2rem; }
.ma-footer-bottom { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; justify-content: space-between; border-top: 1px solid var(--ma-line); color: var(--ma-muted); font-size: .74rem; padding: 1.2rem 0; }
.ma-footer-bottom p { margin: 0; }

.wp-block-image figcaption, .wp-caption-text { color: var(--ma-muted); font-size: .8rem; text-align: center; }
.wp-block-quote { border-left-color: var(--ma-blue); }
.wp-block-pullquote { border-block-color: var(--ma-line); }

@media (max-width: 920px) {
  .ma-primary-nav { display: none; }
  .ma-menu-toggle { display: inline-grid; place-items: center; }
  .ma-hero-grid { grid-template-columns: 1fr; }
  .ma-hero h1 { max-width: 16ch; }
  .ma-hero-media { width: min(100%, 640px); margin: 1rem auto 0; }
  .ma-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ma-content-grid { grid-template-columns: minmax(0, 1fr); }
  .ma-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ma-wrap, .ma-narrow { width: min(100% - 28px, 1180px); }
  .ma-brand-tagline { display: none; }
  .ma-header-inner { min-height: 62px; gap: .55rem; }
  .ma-header-actions .ma-button { display: none; }
  .ma-hero { padding-top: 2.7rem; }
  .ma-hero-media, .ma-hero-photo, .ma-hero-placeholder { min-height: 295px; }
  .ma-hero-note { left: 16px; bottom: -18px; }
  .ma-hero-stats { gap: 1.25rem; }
  .ma-section-head { align-items: start; flex-direction: column; margin-bottom: 1.65rem; }
  .ma-post-grid, .ma-book-grid { grid-template-columns: 1fr; }
  .ma-book-card { grid-template-columns: 93px 1fr; }
  .ma-pick-row { align-items: start; grid-template-columns: 1fr auto; padding: 1.1rem; }
  .ma-pick-row .ma-button { grid-column: 1 / -1; justify-self: start; }
  .ma-newsletter-form form { align-items: stretch; flex-direction: column; }
  .ma-single-title { font-size: 2.25rem; }
  .ma-post-nav { grid-template-columns: 1fr; }
  .ma-sidebar { grid-template-columns: 1fr; }
  .ma-footer-main { grid-template-columns: 1fr; }
  .ma-footer-nav .menu { justify-content: flex-start; }
}
