/* Mega Mobiles Toolkit — screens not built with Elementor:
   the title band (Apple support style), news index/archives, single post,
   search, 404 and plain pages. */

/* ---------- title band ---------- */
.mm.mm-band { background: var(--mm-white); padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--mm-hair); }
.mm-band .mm-band__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--mm-grey); }
.mm-band .mm-band__crumbs li { display: inline-flex; align-items: center; }
.mm-band .mm-band__crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px 0 8px; border: solid #86868b; border-width: 1.2px 1.2px 0 0; transform: rotate(45deg); flex: none; }
.mm-band .mm-band__crumbs a { color: var(--mm-grey); text-decoration: none; }
.mm-band .mm-band__crumbs a:hover { color: var(--mm-ink); text-decoration: underline; }
.mm-band .mm-band__crumbs [aria-current] { color: var(--mm-ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-band .mm-band__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--mm-navy); }
.mm-band .mm-band__meta a { color: var(--mm-navy); text-decoration: none; }
.mm-band .mm-band__meta a:hover { text-decoration: underline; }
.mm-band .mm-band__meta time { color: var(--mm-grey); font-weight: 500; }
.mm-band .mm-band__title { margin: 0; max-width: 22ch; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.08; font-weight: 650; letter-spacing: -0.028em; color: var(--mm-ink); text-wrap: balance; }
.mm-band .mm-band__intro { margin-top: 12px; max-width: 60ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.38; color: var(--mm-grey); }

/* ---------- shared page body ---------- */
.mm.mm-tlist, .mm.mm-tpage, .mm.mm-tsingle, .mm.mm-t404 { background: var(--mm-white); padding: clamp(44px, 6vw, 80px) 0 clamp(72px, 9vw, 110px); }
.mm.mm-tlist { background: var(--mm-mist); }
.mm .mm-tempty { padding: 32px; border-radius: var(--mm-r-lg); background: var(--mm-white); max-width: 640px; color: var(--mm-grey); }
.mm .mm-tempty p + p { margin-top: 12px; }
.mm .mm-tsection { margin: 0 0 20px; font-size: 24px; font-weight: 650; letter-spacing: -0.022em; }
.mm .mm-tsection:not(:first-child) { margin-top: 48px; }

/* cards: white, image on top */
.mm .mm-tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mm .mm-tgrid--models { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mm .mm-tcard { min-width: 0; }
.mm .mm-tcard__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--mm-r-md); background: var(--mm-white); color: var(--mm-ink); text-decoration: none; box-shadow: 2px 4px 12px rgba(0, 0, 0, .06); transition: transform .3s, box-shadow .3s; }
.mm .mm-tcard__link:hover { transform: scale(1.012); box-shadow: 2px 8px 24px rgba(0, 0, 0, .1); color: var(--mm-ink); }
.mm .mm-tcard__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mm-mist); }
.mm .mm-tcard__img img { width: 100%; height: 100%; object-fit: cover; }
.mm .mm-tcard__img--model { aspect-ratio: 1; padding: 22px; background: var(--mm-white); }
.mm .mm-tcard__img--model img { object-fit: contain; }
.mm .mm-tcard__none { display: grid; place-items: center; width: 100%; height: 100%; color: #b0b0b5; }
.mm .mm-tcard__icon { width: 30%; height: auto; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.mm .mm-tcard__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 24px; }
.mm .mm-tcard--model .mm-tcard__body { padding-top: 4px; }
.mm .mm-tcard time { font-size: 13px; color: var(--mm-grey); }
.mm .mm-tcard__title { margin: 0; font-size: 21px; line-height: 1.19; font-weight: 650; letter-spacing: -0.02em; text-wrap: pretty; }
.mm .mm-tcard--model .mm-tcard__title { font-size: 17px; letter-spacing: -0.016em; }
.mm .mm-tcard__ex { font-size: 15px; line-height: 1.45; color: var(--mm-grey); }
.mm .mm-tcard__price { font-size: 15px; color: var(--mm-grey); }

/* pagination */
.mm .mm-tpager { margin-top: 48px; }
.mm .mm-tpager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mm .mm-tpager a, .mm .mm-tpager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--mm-white); color: var(--mm-ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.mm .mm-tpager a:hover { background: var(--mm-hair); color: var(--mm-ink); }
.mm .mm-tpager .current { background: var(--mm-ink); color: #fff; }
.mm .mm-tpager .dots { background: none; }

/* search */
.mm .mm-tsearch { display: flex; gap: 10px; width: 100%; max-width: 620px; margin: 0; }
.mm .mm-tsearch__field { position: relative; flex: 1; min-width: 0; }
.mm .mm-tsearch__ico { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--mm-grey); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.mm .mm-tsearch input[type="search"] { width: 100%; min-height: 48px; padding: 10px 18px 10px 44px; border: 0; border-radius: var(--mm-r-sm); background: var(--mm-mist); box-shadow: none; font-family: var(--mm-font); font-size: 17px; color: var(--mm-ink); -webkit-appearance: none; appearance: none; }
.mm.mm-tlist .mm-tsearch input[type="search"] { background: var(--mm-white); }
.mm .mm-tsearch input[type="search"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(45, 61, 142, .25); }
.mm .mm-tsearch .pill { flex: none; border: 0 !important; box-shadow: none !important; text-transform: none !important; }
.mm .mm-tsearch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-bottom: 36px; }
.mm .mm-tresults { margin: 0; padding: 0; list-style: none; border-radius: var(--mm-r-lg); background: var(--mm-white); overflow: hidden; }
.mm .mm-tresults li + li { border-top: 1px solid var(--mm-hair); }
.mm .mm-tresults a { display: grid; gap: 4px; padding: 22px 28px; color: var(--mm-ink); text-decoration: none; }
.mm .mm-tresults a:hover { background: #fbfbfd; color: var(--mm-ink); }
.mm .mm-tresults__type { font-size: 13px; font-weight: 600; color: var(--mm-navy); }
.mm .mm-tresults__title { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.mm .mm-tresults a:hover .mm-tresults__title { text-decoration: underline; text-underline-offset: 4px; }
.mm .mm-tresults__ex { font-size: 15px; color: var(--mm-grey); max-width: 70ch; }

/* 404 */
.mm.mm-t404 .wrap { display: grid; justify-items: center; text-align: center; }
.mm .mm-t404__h { margin: 56px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -0.022em; }
.mm .mm-t404__devices { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.mm .mm-t404__devices a { display: grid; justify-items: center; gap: 10px; width: 108px; padding: 14px 4px; border-radius: var(--mm-r-md); color: var(--mm-ink); text-decoration: none; font-size: 14px; transition: background-color .2s; }
.mm .mm-t404__devices a:hover { background: var(--mm-mist); color: var(--mm-ink); }
.mm .mm-t404__icon { width: 48px; height: 48px; fill: none; stroke: var(--mm-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mm .mm-t404__home { margin-top: 36px; }

/* reading text (plain pages, posts): Apple support article */
.mm .mm-tprose { max-width: 68ch; color: var(--mm-ink); font-size: 17px; line-height: 1.6; }
.mm .mm-tprose > * + * { margin-top: 1em; }
.mm .mm-tprose :where(h2, h3, h4) { color: var(--mm-ink); font-weight: 650; letter-spacing: -0.022em; line-height: 1.17; margin-top: 1.8em; margin-bottom: .1em; }
.mm .mm-tprose > :first-child { margin-top: 0; }
.mm .mm-tprose h2 { font-size: clamp(26px, 2.6vw, 32px); }
.mm .mm-tprose h3 { font-size: clamp(21px, 2vw, 24px); }
.mm .mm-tprose h4 { font-size: 19px; }
.mm .mm-tprose :where(p, li) { margin: 0; }
.mm .mm-tprose :where(p + p, p + ul, ul + p, p + ol, ol + p) { margin-top: 1em; }
.mm .mm-tprose :where(ul, ol) { padding-left: 1.3em; list-style: revert; }
.mm .mm-tprose li + li { margin-top: .4em; }
.mm .mm-tprose li::marker { color: var(--mm-grey); }
.mm .mm-tprose a { color: var(--mm-navy); text-decoration: none; }
.mm .mm-tprose a:hover { text-decoration: underline; }
.mm .mm-tprose strong, .mm .mm-tprose b { font-weight: 600; }
.mm .mm-tprose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: var(--mm-r-md); background: var(--mm-mist); font-size: 19px; line-height: 1.45; font-weight: 500; }
.mm .mm-tprose blockquote p { margin: 0; }
.mm .mm-tprose blockquote cite { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; font-style: normal; color: var(--mm-grey); }
.mm .mm-tprose img { border-radius: var(--mm-r-md); height: auto; }
.mm .mm-tprose figure { margin: 1.6em 0; }
.mm .mm-tprose figcaption { margin-top: 8px; font-size: 14px; color: var(--mm-grey); }
.mm .mm-tprose hr { border: 0; height: 1px; background: var(--mm-hair); margin: 2em 0; }
.mm .mm-tprose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.mm .mm-tprose :is(th, td) { text-align: left; padding: 12px; border: 0; border-bottom: 1px solid var(--mm-hair); background: none; }
.mm .mm-tprose th { font-weight: 600; }
/* text whose body is an old Elementor text widget: drop its own boxes */
.mm .mm-tprose .elementor, .mm .mm-tprose .e-con, .mm .mm-tprose .e-con-inner, .mm .mm-tprose .elementor-widget { padding: 0 !important; margin: 0; max-width: none; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; }
.mm .mm-tprose .elementor-widget-text-editor { color: inherit; font-family: var(--mm-font); font-size: inherit; line-height: inherit; }

/* plain pages with plugin screens */
.mm.mm-tpage--app { background: var(--mm-white); }
.mm .mm-tpage--app .mm-tpage__content, .mm.mm-tpage--app .mm-tpage__content { max-width: none; }

/* single post */
.mm .mm-tsingle__in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; }
.mm .mm-tsingle__media { width: 100%; max-width: 1040px; margin: 0 0 clamp(36px, 5vw, 56px); aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--mm-r-lg); background: var(--mm-mist); }
.mm .mm-tsingle__media img { width: 100%; height: 100%; object-fit: cover; }
.mm .mm-tsingle__foot { width: 100%; max-width: 68ch; margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--mm-hair); display: grid; gap: 28px; }
.mm .mm-tsingle__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mm .mm-tsingle__tags a { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--mm-mist); font-size: 14px; color: var(--mm-ink); text-decoration: none; }
.mm .mm-tshare { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.mm .mm-tshare__k { font-size: 14px; font-weight: 600; color: var(--mm-grey); }
.mm .mm-tshare ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.mm .mm-tshare a { font-size: 15px; color: var(--mm-navy); text-decoration: none; }
.mm .mm-tshare a:hover { text-decoration: underline; }
.mm .mm-tsingle__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mm .mm-tsingle__nav a { display: grid; gap: 4px; padding: 18px 22px; border-radius: var(--mm-r-md); background: var(--mm-mist); color: var(--mm-ink); text-decoration: none; }
.mm .mm-tsingle__nav a:hover { background: var(--mm-hair); color: var(--mm-ink); }
.mm .mm-tsingle__nav span { font-size: 13px; color: var(--mm-grey); }
.mm .mm-tsingle__nav b { font-size: 17px; font-weight: 600; }
.mm .mm-tsingle__next { grid-column: 2; text-align: right; }
.mm .mm-tsingle__comments { width: 100%; max-width: 68ch; margin-top: 48px; }
.mm .mm-trelated { margin-top: clamp(72px, 9vw, 110px); padding: clamp(60px, 7vw, 90px) 0 0; background: var(--mm-mist); }
.mm.mm-tsingle:has(.mm-trelated) { padding-bottom: 0; }
.mm .mm-trelated .mm-tgrid { padding-bottom: clamp(72px, 9vw, 110px); }

/* ---------- responsive ---------- */
@media (max-width: 1068px) {
	.mm .mm-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm .mm-tgrid--models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 833px) {
	.mm.mm-band { padding: 28px 0 24px; }
	.mm-band .mm-band__crumbs ol { margin-bottom: 14px; font-size: 12.5px; }
	.mm-band .mm-band__crumbs [aria-current] { max-width: 22ch; }
	.mm-band .mm-band__title { font-size: clamp(30px, 8.6vw, 40px); }
	.mm-band .mm-band__intro { font-size: 17px; }
	.mm.mm-tlist, .mm.mm-tpage, .mm.mm-t404 { padding: 36px 0 64px; }
	.mm.mm-tsingle { padding-top: 28px; }
	.mm .mm-tgrid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.mm .mm-tgrid--models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.mm .mm-tcard__img--model { padding: 14px; }
	.mm .mm-tcard--model .mm-tcard__body { padding: 2px 14px 16px; }
	.mm .mm-tcard--model .mm-tcard__title { font-size: 15px; }
	.mm .mm-tcard__price { font-size: 13px; }
	.mm .mm-tprose { font-size: 16px; }
	.mm .mm-tresults a { padding: 18px 20px; }
	.mm .mm-tresults__title { font-size: 18px; }
	.mm .mm-tsearch .pill { padding-inline: 16px; }
	.mm .mm-tsingle__media { aspect-ratio: 4 / 3; border-radius: var(--mm-r-md); }
	.mm .mm-tsingle__nav { grid-template-columns: minmax(0, 1fr); }
	.mm .mm-tsingle__next { grid-column: auto; text-align: left; }
	.mm .mm-t404__h { margin-top: 40px; }
	.mm .mm-t404__devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: 100%; }
	.mm .mm-t404__devices a { width: auto; padding: 12px 2px; font-size: 13px; }
	.mm .mm-t404__icon { width: 40px; height: 40px; }
}
