/* New Macau tag display: article block, tag archive header, tag directory.
   Same palette and logo-style tiles as the AI Search page. */
.nmt {
	--nm-blue: #00709e;
	--nm-blue-dark: #005a80;
	--nm-pink: #f49db1;
	--nm-pink-soft: #fde4ea;
	--nm-tint: #e7f0f4;
	--nm-line: #c7dce7;
	--nm-ink: #1f2d36;
	--nm-muted: #5d6f7a;
	color: var(--nm-ink);
}
.nmt *, .nmt *::before, .nmt *::after { box-sizing: border-box; }
.nmt a { text-decoration: none; box-shadow: none; }

/* Blue grid with tiles, even 4px gaps */
.nmt-grid { display: inline-flex; flex-wrap: wrap; align-items: stretch; gap: 4px; padding: 4px; background: var(--nm-blue); max-width: 100%; }
.nmt-tiles { display: flex; flex-wrap: wrap; gap: 4px; }
.nmt-tile { display: grid; place-items: center; width: 34px; height: 34px; font-size: 19px; font-weight: 600; line-height: 1; background: #fff; color: var(--nm-blue); }
.nmt-word { display: flex; gap: 4px; }
.nmt-pink .nmt-tile { background: var(--nm-pink); color: #fff; }
.nmt-pink .nmt-word:not(:last-child) .nmt-tile { background: #fff; color: var(--nm-blue); }

/* End-of-article mark (logo grid), centered between the article body and the classification box */
.nmt-end { display: block; margin: 51px auto; text-align: center; line-height: 0; }
.nmt-end svg { display: inline-block; width: auto; height: 18px; }

/* GeneratePress article pages: the tag box in the same pink frame the Elementor templates draw */
.nmt-after-article { margin: 0 0 28px; padding: 18px 22px; border: 2px solid var(--nm-pink, #f49db1); }

/* a. Article page block */
.nmt-class { margin: 0; }
.nmt-class .nmt-row:first-child { border-top: 0; padding-top: 2px; }
.nmt-class .nmt-grid { padding: 3px; gap: 3px; }
.nmt .nmt-pinktile { display: flex; align-items: center; padding: 3px 12px; min-height: 26px; font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; background: var(--nm-pink); }
.nmt .nmt-pinktile:hover, .nmt .nmt-pinktile:focus-visible { color: var(--nm-blue); background: #fff; }
.nmt-row { display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 12px; align-items: baseline; padding: 9px 0 3px; border-top: 1px solid var(--nm-line); }
.nmt-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nm-blue); }
.nmt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nmt .nmt-chip { display: inline-block; padding: 3px 10px; font-size: 14px; line-height: 1.45; color: var(--nm-blue); background: #fff; border: 2px solid var(--nm-blue); }
.nmt .nmt-chip:hover, .nmt .nmt-chip:focus-visible { color: #fff; background: var(--nm-blue); }

/* b. Tag archive header */
.nmt-head { margin: 0 0 22px; }
.nmt-head-grid { align-items: stretch; }
.nmt .nmt-name { display: flex; align-items: center; margin: 0; padding: 4px 16px; min-height: 34px; font-size: clamp(20px, 3.4vw, 30px); font-weight: 700; line-height: 1.2; color: var(--nm-blue); background: #fff; }
.nmt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 10px 0 0; font-size: 14px; }
.nmt-count { font-weight: 600; color: var(--nm-muted); }
/* Tag intro: logo box (only when the tag has one) beside the intro text, full width */
.nmt-intro { display: flex; align-items: flex-start; gap: 24px; margin-top: 18px; }
.nmt-logo { flex: 0 0 220px; display: grid; place-items: center; padding: 14px; background: #fff; border: 1px solid var(--nm-line); }
.nmt-logo a { display: block; width: 100%; line-height: 0; } /* full width: the logo inside is sized as a share of it */
.nmt .nmt-logo img:not(.nm-logo-img) { display: block; width: auto; max-width: 100%; height: auto; max-height: 190px; }
.nmt .nmt-desc { flex: 1; min-width: 0; font-size: 15px; line-height: 1.7; color: var(--nm-ink); }
.nmt .nmt-desc p { margin: 0 0 12px; }
.nmt .nmt-desc p:last-child { margin-bottom: 0; }
.nmt .nmt-desc img { max-width: 100%; height: auto; }
.nmt-intro:not(.has-logo) .nmt-desc { padding-left: 14px; border-left: 4px solid var(--nm-pink); }

/* Tag archive page (PHP template): the site's white frame, Elementor's boxed width */
.nmt-archive { box-sizing: border-box; width: 100%; max-width: var(--nm-col, 1146px); margin: 0 auto var(--nm-gap, 22px); } /* the theme sets the column and gutter */
.nmt-frame { background: #fff; border: var(--nm-frame, 2.8px solid #06709c); padding: 26px 28px 34px; }
.nmt-archive .nmt-head { margin: 0; }
.nmt-posts { margin-top: 28px; border-top: 1px solid var(--nm-line); }
.nmt-post { display: grid; grid-template-columns: 325px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--nm-line); }
.nmt-post.no-thumb { grid-template-columns: 1fr; }
.nmt-post-thumb { display: block; line-height: 0; }
.nmt .nmt-post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.nmt-post-body { min-width: 0; }
.nmt .nmt-post-title { margin: 0 0 6px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.nmt .nmt-post-title a { color: var(--nm-ink); }
.nmt .nmt-post-title a:is(:hover, :focus-visible) { color: var(--nm-blue); text-decoration: underline; text-decoration-color: var(--nm-pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nmt-post-date { display: block; font-size: 13px; color: var(--nm-blue); }
.nmt-post-excerpt { margin: 10px 0 8px; font-size: 15px; line-height: 1.6; color: #55636b; }
.nmt .nmt-post-more { font-size: 13px; font-weight: 700; color: var(--nm-blue); border-bottom: 2px solid var(--nm-pink); }
.nmt .nmt-post-more:is(:hover, :focus-visible) { color: var(--nm-blue-dark); background: var(--nm-pink-soft); }
.nmt-empty { margin: 28px 0 0; color: var(--nm-muted); }
/* Hero: the newest article large at the top of Cover stories / Editorials / Press releases (page 1) */
.nmt-hero { margin-top: 28px; padding: 0 0 28px; border-bottom: 1px solid var(--nm-line); }
.nmt-hero-thumb { display: block; line-height: 0; }
.nmt .nmt-hero-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.nmt .nmt-hero-title { margin: 20px 0 8px; font-size: 32px; font-weight: 600; line-height: 1.25; }
.nmt .nmt-hero-title a { color: var(--nm-ink); }
.nmt .nmt-hero-title a:hover { color: var(--nm-blue); }
.nmt-hero-excerpt { margin: 12px 0 10px; font-size: 17px; line-height: 1.6; color: #55636b; }
.nmt-hero + .nmt-posts { margin-top: 0; border-top: 0; }
.nmt-pager { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 28px; }
.nmt .nmt-pager .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; box-sizing: border-box; font-size: 14px; font-weight: 700; color: var(--nm-blue); background: #fff; border: 2px solid var(--nm-blue); }
.nmt .nmt-pager a.page-numbers:hover { color: #fff; background: var(--nm-pink); border-color: var(--nm-pink); }
.nmt .nmt-pager .current { color: #fff; background: var(--nm-blue); }
.nmt .nmt-pager .dots { border-color: transparent; }

@media (max-width: 1160px) {
	.nmt-archive { width: auto; margin: 0 10px var(--nm-gap, 22px); }
}
@media (max-width: 767px) {
	.nmt-frame { padding: 18px 14px 24px; }
	.nmt-intro { flex-direction: column; }
	.nmt-logo { flex-basis: auto; width: 100%; max-width: 260px; box-sizing: border-box; }
	.nmt-post { grid-template-columns: 1fr; gap: 12px; }
	.nmt .nmt-post-title { font-size: 19px; }
	.nmt .nmt-hero-title { font-size: 24px; }
	.nmt-hero-excerpt { font-size: 15px; }
}
.nmt .nmt-other { color: var(--nm-blue); border-bottom: 2px solid var(--nm-pink); }
.nmt .nmt-other:hover { color: var(--nm-blue-dark); }
.nmt-other-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--nm-blue); padding: 2px 6px; margin-right: 4px; }

/* c. Directory */
.nmt-sec { margin: 0 0 30px; scroll-margin-top: 90px; }
.nmt .nmt-sec-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: inherit; }
.nmt-sec-h .nmt-tiles { padding: 4px; background: var(--nm-blue); }
.nmt-sec-h .nmt-tile { width: 28px; height: 28px; font-size: 17px; font-weight: 700; }
.nmt-sec-n { font-size: 13px; font-weight: 600; color: var(--nm-muted); }
.nmt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; }
.nmt .nmt-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 10px; font-size: 14px; line-height: 1.35; color: var(--nm-ink); background: #fff; border: 1px solid var(--nm-line); }
.nmt-card-n { flex-shrink: 0; min-width: 26px; padding: 1px 6px; font-size: 12px; font-weight: 700; text-align: center; color: var(--nm-blue); background: var(--nm-pink-soft); }

/* A–Z bar: equal square tiles sharing the full width, so no empty end. 26 divides only into rows of 26 or 13, so the
   bar's own width picks: one row of 26 while each tile stays >= 22px (bar >= 684px = 26*22 + 25*4 gaps + 8 padding),
   else two rows of 13. line-height 1 keeps the letter from stretching a small tile out of square; the letter is 17px,
   capped at 5.5% of the bar's width so it stays inside the smallest (two-row) tiles. */
:has(> .nmt-az) { container-type: inline-size; }
.nmt-az { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--nm-blue); }
@container (min-width: 684px) { .nmt-az { grid-template-columns: repeat(26, minmax(0, 1fr)); } }
.nmt .nmt-az a { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; min-height: 0; font-size: min(17px, 5.5cqw); font-weight: 700; line-height: 1; color: var(--nm-blue); background: #fff; }
.nmt-letter { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--nm-line); scroll-margin-top: 90px; }
.nmt-letter-k { display: grid; place-items: center; width: 34px; height: 34px; font-weight: 700; color: #fff; background: var(--nm-pink); }
.nmt-names { columns: 200px 4; column-gap: 18px; }
.nmt .nmt-name-link { display: block; break-inside: avoid; padding: 2px 0; font-size: 14px; line-height: 1.4; color: var(--nm-ink); }
.nmt .nmt-name-link:hover { color: var(--nm-blue); text-decoration: underline; }
.nmt-name-link small { margin-left: 6px; font-size: 12px; color: var(--nm-muted); }

@media (max-width: 600px) {
	.nmt-row { grid-template-columns: 1fr; gap: 4px; }
	.nmt-tile { width: 28px; height: 28px; font-size: 16px; }
	.nmt-names { columns: 2; }
}
