/*
Theme Name: Meey News
Theme URI: https://meeyland.com/
Author: Meey News
Description: Vietnamese property news theme based on the supplied Stitch design.
Version: 1.0.8
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: meey-news
*/

:root {
  --mn-ink: #0B132B;
  --mn-muted: #64748B;
  --mn-line: #e2e8f0;
  --mn-canvas: #F4F7FC;
  --mn-purple: #0066FF;
  --mn-pink: #00E5FF;
  --mn-soft: #eff6ff;
  --mn-shadow: 0 16px 44px rgba(11, 19, 43, 0.07);
  --mn-radius: 18px;
  --mn-font: "Inter", "Plus Jakarta Sans", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--mn-ink);
  background: var(--mn-canvas);
  font-family: var(--mn-font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body, button, input {
  font-family: var(--mn-font);
}

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

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

a:hover {
  color: var(--mn-purple);
}

button, input {
  font: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid rgba(0, 102, 255, 0.4);
  outline-offset: 3px;
}

.mn-skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--mn-shadow);
  transition: transform .2s ease;
}

.mn-skip-link:focus {
  transform: translateY(0);
}

.mn-shell {
  width: min(100% - 48px, 1248px);
  margin-inline: auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.mn-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mn-header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 26px;
}

.mn-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: var(--mn-ink);
}

.mn-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #963ef4, #e73da5);
  box-shadow: 0 6px 15px rgba(166, 61, 222, 0.24);
  flex-shrink: 0;
}

.mn-brand-mark svg {
  width: 23px;
  height: 23px;
}

.mn-brand-copy {
  display: grid;
  line-height: 1.15;
}

.mn-brand-copy strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.mn-brand-copy small {
  margin-top: 4px;
  color: var(--mn-muted);
  font-size: 10px;
  font-weight: 500;
}

.mn-brand-badge {
  align-self: start;
  margin: 2px 0 0 -5px;
  padding: 2px 7px;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(90deg, #9140e8, #ed43a6);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.mn-primary-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.mn-primary-nav ul {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mn-primary-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 10px;
  color: #526075;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.mn-primary-nav a:hover,
.mn-primary-nav .current-menu-item > a,
.mn-primary-nav .current_page_item > a {
  color: var(--mn-purple);
  background: var(--mn-soft);
}

.mn-search {
  display: flex;
  width: min(285px, 23vw);
  min-width: 190px;
  height: 40px;
  flex: 0 1 285px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #e8edf4;
  border-radius: 99px;
  color: #91a0b5;
  background: #f5f7fa;
  transition: border-color .2s, box-shadow .2s;
}

.mn-search:focus-within {
  border-color: #bb91ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
  background: #fff;
}

.mn-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.mn-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--mn-ink);
  background: transparent;
  font-size: 12px;
}

.mn-search input::placeholder {
  color: #7c8799;
}

.mn-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mn-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mn-ink);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.mn-menu-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ==========================================================================
   Main & Shared Components
   ========================================================================== */
.mn-main {
  min-height: 55vh;
  padding-block: 40px 68px;
}

.mn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  color: #8535df;
  background: #f3e9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mn-eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a345f2, #ec4899);
  content: "";
  flex-shrink: 0;
}

.mn-page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--mn-line);
}

.mn-page-intro h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.mn-page-intro h1::before,
.mn-section-heading h1::before,
.mn-section-heading h2::before {
  width: 8px;
  height: 22px;
  flex: 0 0 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ec4899 0%, #a345f2 100%);
  content: "";
}

.mn-page-intro p {
  max-width: 700px;
  margin: 0;
  color: var(--mn-muted);
  font-size: 15px;
}

.mn-updated {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--mn-line);
  border-radius: 10px;
  color: #718096;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
}

.mn-updated svg {
  width: 15px;
  height: 15px;
  color: #a541ed;
}

.mn-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 32px;
  padding: 0;
  list-style: none;
}

.mn-category-pills a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid #e7eaf0;
  border-radius: 9px;
  color: #526075;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: color .2s, border-color .2s, background .2s;
}

.mn-category-pills a:hover,
.mn-category-pills a[aria-current="page"] {
  border-color: #f3c6df;
  color: var(--mn-purple);
  background: #fff5fa;
}

/* Featured item on Home */
.mn-featured {
  display: grid;
  min-height: 370px;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
  border: 1px solid #e1e8f0;
  border-radius: var(--mn-radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.mn-featured-media {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  background: #0f172a;
}

.mn-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  transition: transform .4s ease;
}

.mn-featured-media:hover img {
  transform: scale(1.03);
}

.mn-featured-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 99px;
  color: #fff;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
}

.mn-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.mn-featured-copy h2 {
  margin: 14px 0 10px;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.mn-featured-copy h2 a:hover {
  color: var(--mn-purple);
}

.mn-featured-excerpt {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.mn-featured-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--mn-line);
}

/* Post Cards Grid */
.mn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #8290a4;
  font-size: 11px;
  font-weight: 600;
}

.mn-meta-dot {
  color: #cbd5e1;
}

.mn-author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mn-author-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--mn-purple);
  background: #f4ecff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.mn-author span {
  display: grid;
  line-height: 1.2;
  font-size: 10px;
  color: #7a889b;
}

.mn-author strong {
  font-size: 13px;
  color: var(--mn-ink);
}

.mn-section {
  margin-top: 36px;
}

.mn-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.mn-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.mn-section-heading h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.mn-section-heading > span {
  color: var(--mn-muted);
  font-size: 12px;
  font-weight: 600;
}

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

.mn-post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mn-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
  transition: transform .25s ease, box-shadow .25s ease;
}

.mn-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.mn-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eef2f6;
}

.mn-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.mn-post-card:hover .mn-card-media img {
  transform: scale(1.05);
}

.mn-card-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.mn-card-body h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.mn-card-body h3 a:hover {
  color: var(--mn-purple);
}

.mn-card-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.mn-card-footer {
  display: flex;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
  color: #8391a3;
  font-size: 11px;
}

/* Pagination */
.mn-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--mn-line);
  color: #758397;
  font-size: 12px;
}

.mn-pagination-links {
  display: inline-flex;
  gap: 6px;
}

.mn-pagination-links .page-numbers {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--mn-line);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mn-pagination-links a.page-numbers:hover {
  border-color: #cbb4f7;
  color: var(--mn-purple);
}

.mn-pagination-links .page-numbers.current {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(120deg, #963ded, #e63da6);
}

.mn-empty {
  padding: 36px;
  border: 1px dashed #d9d2e7;
  border-radius: 16px;
  color: #68778c;
  background: #fff;
  text-align: center;
}

/* ==========================================================================
   Single Article Layout & Professional Styling
   ========================================================================== */
.mn-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.mn-article {
  min-width: 0;
  width: 100%;
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid var(--mn-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.mn-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: #8b96a8;
  font-size: 12px;
  line-height: 1.5;
}

.mn-breadcrumbs a {
  color: inherit;
  transition: color .15s;
}

.mn-breadcrumbs a:hover {
  color: var(--mn-purple);
}

.mn-breadcrumbs span[aria-hidden="true"] {
  color: #cbd5e1;
  font-size: 11px;
}

.mn-breadcrumbs span[aria-current="page"] {
  color: #4b5563;
  font-weight: 500;
  word-break: break-word;
}

.mn-single-layout .mn-eyebrow {
  margin-bottom: 6px;
}

.mn-article-title {
  margin: 14px 0 16px;
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.24;
  color: var(--mn-ink);
  word-break: break-word;
  overflow-wrap: break-word;
}

.mn-article-deck {
  margin: 0 0 24px;
  color: #55657a;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.7;
  word-break: break-word;
}

.mn-article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--mn-line);
  border-bottom: 1px solid var(--mn-line);
}

.mn-article-byline .mn-author {
  gap: 11px;
}

.mn-article-byline .mn-author-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.mn-article-byline .mn-author span {
  font-size: 11px;
}

.mn-article-byline .mn-author strong {
  font-size: 14px;
}

.mn-article-byline .mn-meta {
  font-size: 12px;
  color: #79879b;
}

.mn-article-featured-image {
  margin: 24px 0 30px;
  overflow: hidden;
  border-radius: 16px;
  background: #eef1f6;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mn-article-featured-image img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.mn-article-featured-image figcaption {
  padding: 9px 14px;
  color: #7a8698;
  font-size: 12px;
  text-align: center;
  background: #fafbfc;
  border-top: 1px solid #f0f3f7;
  line-height: 1.5;
}

/* Post Typography & Entry Content */
.mn-entry-content {
  overflow-wrap: break-word;
  word-break: break-word;
  color: #2e3a4e;
  font-size: clamp(15.5px, 1.2vw, 17px);
  line-height: 1.88;
  letter-spacing: -0.01em;
}

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

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

.mn-entry-content h2,
.mn-entry-content h3,
.mn-entry-content h4 {
  color: var(--mn-ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.32;
}

.mn-entry-content h2 {
  font-size: clamp(21px, 2.6vw, 28px);
  margin: 1.8em 0 0.55em;
}

.mn-entry-content h3 {
  font-size: clamp(18px, 2.1vw, 22px);
  margin: 1.5em 0 0.5em;
}

.mn-entry-content h4 {
  font-size: clamp(16px, 1.7vw, 19px);
  margin: 1.3em 0 0.45em;
}

.mn-entry-content a {
  color: #7728d1;
  text-decoration: underline;
  text-decoration-color: #d8bdf9;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .15s;
}

.mn-entry-content a:hover {
  color: #5512a8;
  text-decoration-color: #5512a8;
}

.mn-entry-content ul,
.mn-entry-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

.mn-entry-content li {
  margin-bottom: 0.45em;
}

.mn-entry-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--mn-purple);
  border-radius: 0 12px 12px 0;
  color: #523e6b;
  background: #f8f3ff;
  font-size: clamp(15.5px, 1.5vw, 18px);
  font-style: italic;
  line-height: 1.75;
}

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

.mn-entry-content figure {
  margin: 26px 0;
  max-width: 100% !important;
}

.mn-entry-content figure img,
.mn-entry-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  display: block;
}

.mn-entry-content figcaption {
  margin-top: 8px;
  color: #7c8798;
  font-size: 12px;
  text-align: center;
}

.mn-entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 24px 0;
}

.mn-entry-content td,
.mn-entry-content th {
  padding: 10px 14px;
  border: 1px solid var(--mn-line);
  font-size: 14px;
}

.mn-entry-content th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--mn-ink);
}

.mn-entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
  background: #171d2b;
  color: #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  margin: 24px 0;
}

.mn-entry-content code {
  font-size: 0.9em;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
  color: #7c3aed;
}

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

.mn-entry-content iframe,
.mn-entry-content video,
.mn-entry-content embed {
  max-width: 100% !important;
  border-radius: 12px;
}

/* Post tags */
.mn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--mn-line);
}

.mn-tags a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  color: #694590;
  background: #f4edfb;
  font-size: 12px;
  font-weight: 700;
  transition: all .15s;
}

.mn-tags a:hover {
  background: #ebd8fc;
  color: #532580;
}

/* Sidebar on Single */
.mn-article-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mn-aside-card {
  padding: 22px;
  border: 1px solid var(--mn-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
}

.mn-aside-card h2 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f6;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--mn-ink);
}

.mn-aside-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mn-aside-list li + li {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid #f1f4f8;
}

.mn-aside-list a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--mn-ink);
  transition: color .15s;
}

.mn-aside-list a:hover {
  color: var(--mn-purple);
}

.mn-aside-list time {
  display: block;
  margin-top: 5px;
  color: #8490a2;
  font-size: 11px;
}

/* Archive / Search */
.mn-archive-layout {
  margin-top: 3px;
}

.mn-search-results-title {
  margin: 12px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.045em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mn-site-footer {
  padding: 48px 0 0;
  border-top: 1px solid #e1e7ef;
  background: #f8fafc;
}

.mn-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.15fr 1fr;
  gap: 38px;
  padding-bottom: 36px;
}

.mn-footer-brand {
  margin-bottom: 14px;
}

.mn-footer-about p {
  margin: 0 0 13px;
  color: #738197;
  font-size: 12px;
  line-height: 1.8;
}

.mn-footer-contact {
  color: #738197;
  font-size: 12px;
  line-height: 1.8;
}

.mn-footer-column h2 {
  margin: 3px 0 14px;
  color: #344157;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mn-footer-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mn-footer-column li a {
  color: #738197;
  font-size: 12px;
  transition: color .15s;
}

.mn-footer-column li a:hover {
  color: var(--mn-purple);
}

.mn-newsletter p {
  margin: 0 0 12px;
  color: #738197;
  font-size: 12px;
  line-height: 1.7;
}

.mn-newsletter form {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid #e3e8f0;
  border-radius: 99px;
  background: #fff;
}

.mn-newsletter input {
  width: 100%;
  min-width: 0;
  padding: 7px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.mn-newsletter button {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 0;
  border-radius: 99px;
  color: #fff;
  background: linear-gradient(100deg, #903be9, #e842a2);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .15s;
}

.mn-newsletter button:hover {
  opacity: 0.92;
}

.mn-newsletter-note {
  margin-top: 9px !important;
  font-size: 10px !important;
}

.mn-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border-top: 1px solid #e4e9f0;
  color: #8390a3;
  font-size: 11px;
}

.mn-footer-bottom p {
  margin: 0;
}

.mn-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.mn-footer-links a:hover {
  color: var(--mn-purple);
}

.mn-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* 1. Laptops and Small Desktops (max-width: 1080px) */
@media (max-width: 1080px) {
  .mn-shell {
    width: min(100% - 40px, 1248px);
  }

  .mn-header-inner {
    gap: 16px;
  }

  .mn-primary-nav a {
    padding-inline: 9px;
    font-size: 12px;
  }

  .mn-search {
    width: 210px;
    min-width: 170px;
  }

  .mn-single-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .mn-post-grid {
    gap: 18px;
  }

  .mn-footer-grid {
    gap: 28px;
  }
}

/* 2. Tablets and Medium Devices (max-width: 860px) */
@media (max-width: 860px) {
  .mn-shell {
    width: min(100% - 36px, 780px);
  }

  .mn-header-inner {
    position: relative;
    min-height: 68px;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 10px;
  }

  .mn-brand {
    margin-right: auto;
  }

  .mn-menu-toggle {
    display: inline-flex;
  }

  .mn-search {
    order: 3;
    width: 100%;
    min-width: 0;
    flex: 1 0 100%;
    height: 40px;
    margin-top: 2px;
  }

  .mn-primary-nav {
    display: none;
    order: 4;
    width: 100%;
    flex: 1 0 100%;
    margin-top: 6px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--mn-line);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }

  .mn-menu-open .mn-primary-nav {
    display: block;
    animation: mnFadeDown .2s ease;
  }

  .mn-primary-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .mn-primary-nav a {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
  }

  .mn-main {
    padding-block: 30px 52px;
  }

  .mn-page-intro {
    align-items: flex-start;
  }

  .mn-updated {
    max-width: 165px;
    white-space: normal;
  }

  .mn-featured {
    grid-template-columns: 1fr;
  }

  .mn-featured-media,
  .mn-featured-media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .mn-featured-copy {
    padding: 24px;
  }

  .mn-featured h2 {
    font-size: 26px;
  }

  .mn-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* Single Layout on Tablet */
  .mn-single-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .mn-article {
    padding: clamp(24px, 4vw, 36px);
  }

  .mn-article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 8px;
  }

  .mn-aside-card {
    margin-bottom: 0;
  }

  .mn-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
}

/* 3. Small Mobile Devices (max-width: 600px) */
@media (max-width: 600px) {
  .mn-shell {
    width: min(100% - 24px, 500px);
  }

  .mn-brand-mark {
    width: 38px;
    height: 38px;
  }

  .mn-brand-mark svg {
    width: 20px;
    height: 20px;
  }

  .mn-brand-copy strong {
    font-size: 17px;
  }

  .mn-brand-copy small {
    font-size: 9px;
  }

  .mn-brand-badge {
    font-size: 8px;
    padding: 2px 6px;
  }

  .mn-main {
    padding-block: 22px 42px;
  }

  .mn-page-intro {
    display: block;
    padding-bottom: 18px;
  }

  .mn-page-intro h1 {
    margin-top: 10px;
    font-size: 27px;
  }

  .mn-page-intro p {
    font-size: 13.5px;
  }

  .mn-updated {
    margin-top: 12px;
  }

  .mn-category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 16px -12px 20px;
    padding: 0 12px 6px;
    scrollbar-width: none;
  }

  .mn-category-pills::-webkit-scrollbar {
    display: none;
  }

  .mn-category-pills li {
    flex: 0 0 auto;
  }

  .mn-category-pills a {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 11.5px;
  }

  .mn-featured {
    border-radius: 14px;
  }

  .mn-featured-copy {
    padding: 18px 16px;
  }

  .mn-featured h2 {
    margin-top: 10px;
    font-size: 21px;
  }

  .mn-featured-excerpt {
    font-size: 13px;
  }

  .mn-featured-footer {
    margin-top: 16px;
    padding-top: 14px;
  }

  .mn-section {
    margin-top: 24px;
  }

  .mn-section-heading h2 {
    font-size: 18px;
  }

  .mn-post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mn-card-body {
    padding: 14px 16px 16px;
  }

  .mn-card-body h3 {
    font-size: 16px;
  }

  .mn-pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mn-pagination-links {
    max-width: 100%;
    overflow-x: auto;
  }

  /* Single Article on Mobile */
  .mn-article {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .mn-breadcrumbs {
    font-size: 11px;
    margin-bottom: 14px;
    gap: 5px;
  }

  .mn-article-title {
    font-size: clamp(22px, 6.8vw, 30px);
    margin: 10px 0 12px;
    line-height: 1.28;
  }

  .mn-article-deck {
    font-size: 15px;
    line-height: 1.62;
    margin-bottom: 18px;
  }

  .mn-article-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .mn-article-byline .mn-author-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .mn-article-byline .mn-meta {
    font-size: 11px;
    gap: 6px;
  }

  .mn-article-featured-image {
    margin: 18px 0 22px;
    border-radius: 12px;
  }

  .mn-article-featured-image img {
    max-height: 270px;
  }

  .mn-article-featured-image figcaption {
    font-size: 11px;
    padding: 7px 10px;
  }

  .mn-entry-content {
    font-size: 15.5px;
    line-height: 1.8;
  }

  .mn-entry-content h2 {
    font-size: 21px;
    margin-top: 1.4em;
  }

  .mn-entry-content h3 {
    font-size: 18px;
    margin-top: 1.3em;
  }

  .mn-entry-content h4 {
    font-size: 16px;
  }

  .mn-entry-content blockquote {
    padding: 14px 16px;
    margin: 20px 0;
    font-size: 15px;
  }

  .mn-entry-content pre {
    padding: 12px 14px;
    font-size: 12px;
    border-radius: 10px;
  }

  .mn-tags {
    margin-top: 24px;
    padding-top: 18px;
    gap: 6px;
  }

  .mn-tags a {
    padding: 5px 12px;
    font-size: 11px;
  }

  .mn-article-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
  }

  .mn-aside-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .mn-aside-card h2 {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .mn-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .mn-footer-bottom {
    padding-block: 16px;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .mn-footer-links {
    justify-content: center;
    gap: 14px;
  }
}

/* 4. Extra-Small Mobile (max-width: 380px) */
@media (max-width: 380px) {
  .mn-shell {
    width: min(100% - 16px, 100%);
  }

  .mn-article {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .mn-article-title {
    font-size: 20px;
  }

  .mn-article-deck {
    font-size: 14px;
  }

  .mn-entry-content {
    font-size: 15px;
  }

  .mn-entry-content h2 {
    font-size: 19px;
  }

  .mn-aside-card {
    padding: 15px 12px;
  }
}

@keyframes mnFadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
