/* Light Star — material pages (page-material.php, assets/js/materials.js). */
.mt-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ls-dark); color: #fff; padding: calc(var(--ls-header-h, 100px) + 54px) 0 70px; }
.mt-hero__mosaic { position: absolute; inset: -8px; z-index: -2; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); grid-auto-rows: 120px; gap: 4px; opacity: .55; filter: saturate(1.05); }
.mt-hero__mosaic span { background-size: cover; background-position: center; display: block; }
.mt-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 21, 39, .96) 0%, rgba(10, 21, 39, .86) 45%, rgba(10, 21, 39, .55) 100%), linear-gradient(0deg, var(--ls-dark), transparent 40%); }
html[dir="rtl"] .mt-hero::after { background: linear-gradient(270deg, rgba(10, 21, 39, .96) 0%, rgba(10, 21, 39, .86) 45%, rgba(10, 21, 39, .55) 100%), linear-gradient(0deg, var(--ls-dark), transparent 40%); }
.mt-hero .crumbs { margin-bottom: 22px; }
.mt-hero .crumbs a, .mt-hero .crumbs span { color: rgba(255, 255, 255, .7); }
.mt-hero__title { color: #fff; font: 400 clamp(38px, 6vw, 76px)/1.05 var(--ls-font-display); margin: 12px 0 10px; }
.mt-hero__tag { font-size: clamp(18px, 2vw, 24px); color: var(--ls-accent); margin: 0 0 14px; font-weight: 600; }
.mt-hero__lead { max-width: 60ch; color: rgba(255, 255, 255, .82); line-height: 1.8; margin: 0 0 24px; }
.mt-hero__stats { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0 0 28px; }
.mt-hero__stats li { min-width: 120px; padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mt-hero__stats b { display: block; font: 400 34px/1 var(--ls-font-display); }
.mt-hero__stats span { font-size: 13px; color: rgba(255, 255, 255, .72); }
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

.mt-sub { font-size: 14px; letter-spacing: .02em; color: var(--ls-text); margin: 26px 0 10px; }
.mt-layers figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--ls-surface); box-shadow: 0 24px 50px -32px rgba(10, 21, 39, .45); }
.mt-layers img { width: 100%; height: auto; display: block; }
.mt-layers__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.mt-layers__list li { display: flex; gap: 12px; align-items: center; line-height: 1.5; }
.mt-layers__list i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ls-ink); color: #fff; font: 700 12px/1 var(--ls-font-body); font-style: normal; }

.mt-spec__grid { display: grid; gap: 36px; align-items: start; }
.mt-table { width: 100%; border-collapse: collapse; margin-top: 18px; background: var(--ls-surface); border-radius: 14px; overflow: hidden; }
.mt-table th, .mt-table td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--ls-line); vertical-align: top; line-height: 1.6; }
.mt-table tr:last-child th, .mt-table tr:last-child td { border-bottom: 0; }
.mt-table th { width: 38%; font-weight: 600; color: var(--ls-ink); background: rgba(10, 21, 39, .03); }
.mt-note { font-size: 13.5px; color: var(--ls-text); margin: 14px 0 0; }
.mt-cards { display: grid; gap: 14px; }
.mt-card { background: var(--ls-surface); border-radius: 16px; padding: 22px 24px; box-shadow: 0 1px 0 var(--ls-line), 0 18px 40px -30px rgba(10, 21, 39, .35); }
.mt-card h3 { font: 400 22px/1.2 var(--ls-font-display); margin: 0 0 8px; color: var(--ls-ink); }
.mt-card p { margin: 0; color: var(--ls-text); line-height: 1.8; }
.mt-card--wide { margin-top: 24px; display: grid; gap: 10px; }
.mt-card--wide .km__proof { margin-top: 8px; }

.mt-colors { background: var(--ls-bg); }
.mt-filters { display: grid; gap: 12px; margin: 26px 0 8px; }
.mt-filters__row { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-filters button { min-height: 40px; padding: 0 16px; border: 1px solid var(--ls-line); border-radius: 99px; background: #fff; color: var(--ls-ink); font: 500 14px/1 var(--ls-font-display); cursor: pointer; transition: .2s; }
.mt-filters button small { opacity: .55; margin-inline-start: 4px; }
.mt-filters button:hover { border-color: var(--ls-ink); }
.mt-filters button.is-on { background: var(--ls-ink); border-color: var(--ls-ink); color: #fff; }
.mt-search input { width: min(100%, 360px); height: 44px; border-radius: 12px; border: 1px solid var(--ls-line); background: #fff; padding: 0 16px; font: 15px var(--ls-font-body); }
.mt-search input:focus-visible { outline: 2px solid var(--ls-accent); outline-offset: 1px; }
.mt-count { margin: 0; font-size: 14px; color: var(--ls-text); }
.mt-brand { margin-top: 34px; }
.mt-brand[hidden] { display: none; }
.mt-brand__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--ls-line); }
.mt-brand__head h3 { font: 400 26px/1.1 var(--ls-font-display); margin: 0; color: var(--ls-ink); }
.mt-brand__head span { color: var(--ls-text); font-size: 14px; }
.mt-sw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px 12px; }
.mt-sw li[hidden] { display: none; }
.mt-sw__b { display: grid; gap: 7px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; font: 600 12.5px/1.2 var(--ls-font-body); color: var(--ls-ink); }
.mt-sw__b img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 8px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); transition: transform .3s var(--ls-ease, ease), filter .3s; }
.mt-sw__b:hover img, .mt-sw__b:focus-visible img { transform: translateY(-3px) scale(1.03); filter: drop-shadow(0 10px 14px rgba(10, 21, 39, .3)); }
.mt-sw__b:focus-visible { outline: 2px solid var(--ls-accent); outline-offset: 3px; border-radius: 8px; }
.mt-soon { margin: 28px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(237, 41, 38, .08); color: var(--ls-ink); }
.mt-colors__ask { margin: 34px 0 0; }

.mt-others__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mt-others__list a { display: grid; gap: 6px; text-decoration: none; color: var(--ls-ink); background: var(--ls-surface); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 var(--ls-line); transition: transform .25s, box-shadow .25s; }
.mt-others__list a:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -24px rgba(10, 21, 39, .5); }
.mt-others__list img { width: 100%; height: auto; display: block; }
.mt-others__list b { padding: 6px 16px 0; font: 400 19px/1.2 var(--ls-font-display); }
.mt-others__list span { padding: 0 16px 16px; font-size: 13.5px; color: var(--ls-text); }

.mt-faq__in { max-width: 860px; }
.mt-q { border-bottom: 1px solid var(--ls-line); padding: 4px 0; }
.mt-q summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ls-ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.mt-q summary::-webkit-details-marker { display: none; }
.mt-q summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--ls-accent); }
.mt-q[open] summary::after { content: "−"; }
.mt-q p { margin: 0 0 18px; color: var(--ls-text); line-height: 1.8; }

.mt-dlg { border: 0; padding: 0; width: min(94vw, 980px); max-height: 92vh; border-radius: 20px; overflow-x: hidden; overflow-y: auto; background: #fff; color: var(--ls-ink); }
.mt-dlg[open] { display: grid; }
.mt-dlg::backdrop { background: rgba(10, 21, 39, .72); }
.mt-dlg__img { background: #e3e6eb; display: grid; place-items: center; }
.mt-dlg__img img { width: 100%; height: auto; max-height: 50vh; object-fit: contain; display: block; }
.mt-dlg__info { padding: 22px 26px 26px; }
.mt-dlg__info small { color: var(--ls-accent); font-weight: 700; }
.mt-dlg__info h3 { font: 700 clamp(26px, 3vw, 38px)/1.1 "Cal Sans", sans-serif; margin: 6px 0; text-align: start; }
.mt-dlg__info p { margin: 0 0 16px; color: var(--ls-text); min-height: 1.4em; }
.mt-dlg__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.mt-dlg__x, .mt-dlg__nav { position: absolute; z-index: 2; border: 0; border-radius: 50%; width: 42px; height: 42px; background: rgba(10, 21, 39, .75); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.mt-dlg__x { top: 12px; inset-inline-start: 12px; }
.mt-dlg__nav { top: 36%; }
.mt-dlg__nav--p { inset-inline-end: 12px; }
.mt-dlg__nav--n { inset-inline-start: 12px; }
@media (min-width: 860px) {
	.mt-dlg[open] { grid-template-columns: 1.2fr 1fr; }
	.mt-dlg__img img { max-height: 86vh; }
	.mt-dlg__info { align-self: center; }
	.mt-dlg__nav { top: 45%; }
	.mt-spec__grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
}
@media (max-width: 599px) {
	.mt-hero { padding-top: calc(var(--ls-header-h, 80px) + 30px); }
	.mt-hero__mosaic { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); grid-auto-rows: 84px; }
	.mt-sw { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 10px; }
}

/* ---- round 2: hero stack, section nav, facts, feature cards, sticky filters, closing band ---- */
.mt-hero__in { display: grid; gap: 34px; align-items: center; }
.mt-hero__text { min-width: 0; }
.mt-stack { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; order: 2; }
.mt-stack__c { position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden; background: #e3e6eb; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65); transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .6s, filter .6s; transform-origin: 50% 100%; }
.mt-stack__c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-stack__c figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(0deg, rgba(10, 21, 39, .85), transparent); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mt-stack__c b { font: 700 18px/1 var(--ls-font-body); }
.mt-stack__c span { font-size: 12.5px; opacity: .8; }
.mt-stack__c[data-pos="0"] { z-index: 5; transform: rotate(0) translate(0, 0) scale(1); }
.mt-stack__c[data-pos="1"] { z-index: 4; transform: rotate(-7deg) translate(-9%, -3%) scale(.95); filter: brightness(.82); }
.mt-stack__c[data-pos="2"] { z-index: 3; transform: rotate(7deg) translate(9%, -5%) scale(.9); filter: brightness(.7); }
.mt-stack__c[data-pos="3"] { z-index: 2; transform: rotate(-13deg) translate(-16%, -8%) scale(.84); filter: brightness(.55); opacity: .85; }
.mt-stack__c[data-pos="4"] { z-index: 1; transform: rotate(13deg) translate(16%, -10%) scale(.78); filter: brightness(.45); opacity: .7; }
.mt-stack__c:not([data-pos="0"]) figcaption { opacity: 0; }
@media (min-width: 900px) { .mt-hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } .mt-stack { order: 0; width: min(100%, 400px); margin-inline: 0 auto; } }

.mt-nav { position: sticky; top: 0; z-index: 30; background: rgba(245, 246, 248, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ls-line); transition: top .35s; }
body:has(.site-header:not(.is-hidden)) .mt-nav { top: 84px; }
.mt-nav__in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.mt-nav__in::-webkit-scrollbar { display: none; }
.mt-nav a { flex: none; padding: 8px 16px; border-radius: 99px; text-decoration: none; color: var(--ls-text); font-weight: 600; font-size: 14.5px; transition: .2s; }
.mt-nav a small { opacity: .6; margin-inline-start: 4px; }
.mt-nav a:hover { color: var(--ls-ink); }
.mt-nav a.is-on { background: var(--ls-ink); color: #fff; }

.mt-facts { background: var(--ls-surface); border-bottom: 1px solid var(--ls-line); }
.mt-facts__list { list-style: none; margin: 0 auto; padding-block: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mt-facts__list li { display: grid; gap: 4px; padding: 12px 16px; border-radius: 14px; background: var(--ls-bg); border: 1px solid var(--ls-line); }
.mt-facts__list span { font-size: 12.5px; color: var(--ls-text); }
.mt-facts__list b { font: 400 clamp(17px, 2.2vw, 22px)/1.3 var(--ls-font-display); color: var(--ls-ink); }
.mt-facts__n { background: var(--ls-ink) !important; border-color: var(--ls-ink) !important; }
.mt-facts__n span { color: rgba(255, 255, 255, .7); }
.mt-facts__n b { color: #fff; font-size: 32px; }
@media (min-width: 860px) { .mt-facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.mt-intro .split__copy > p { font-size: 17px; line-height: 1.95; }
.mt-intro .split__copy > p:first-of-type { font-size: 19px; color: var(--ls-ink); }
.mt-layers figure { background: radial-gradient(70% 70% at 50% 35%, #fff, #e3e6eb); padding: 10px; }
.mt-layers__list li { padding: 10px 14px; border-radius: 12px; background: var(--ls-surface); box-shadow: 0 1px 0 var(--ls-line); transition: transform .2s; }
.mt-layers__list li:hover { transform: translateX(-4px); }
html[dir="ltr"] .mt-layers__list li:hover { transform: translateX(4px); }
.mt-layers__list i { background: var(--ls-accent); }

.mt-adv { background: var(--ls-bg); }
.mt-feat { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mt-feat li { position: relative; padding: 24px 22px 22px; border-radius: 18px; background: var(--ls-surface); box-shadow: 0 1px 0 var(--ls-line), 0 22px 40px -32px rgba(10, 21, 39, .4); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.mt-feat li:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--ls-line), 0 30px 50px -30px rgba(10, 21, 39, .5); }
.mt-feat i { position: absolute; inset-inline-end: 14px; top: 6px; font: 400 54px/1 var(--ls-font-display); font-style: normal; color: transparent; -webkit-text-stroke: 1.2px rgba(10, 21, 39, .12); }
.mt-feat span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(237, 41, 38, .12); color: var(--ls-accent); margin-bottom: 14px; }
.mt-feat p b { display: block; font-size: 1.05em; color: var(--ls-ink); margin-bottom: 4px; }
.mt-feat p small { display: block; font-weight: 400; font-size: .92em; color: var(--ls-muted, #5b6677); line-height: 1.75; }
.mt-feat p { margin: 0; font-weight: 600; color: var(--ls-ink); line-height: 1.7; position: relative; }

.mt-spec { background: var(--ls-surface); }
.mt-table { background: var(--ls-bg); }

.mt-filters { position: static; z-index: 12; padding: 12px 14px; margin-inline: -14px; border-radius: 16px; background: rgba(245, 246, 248, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px -18px rgba(10, 21, 39, .5); }
@media (min-width: 900px) { .mt-filters { position: sticky; top: 8px; } body:has(.site-header:not(.is-hidden)) .mt-filters { top: 142px; } }
.mt-brand__ask { margin-inline-start: auto; font-weight: 700; }
.mt-sw { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px 14px; }
.mt-sw__b { position: relative; }
.mt-sw__b img { border-radius: 10px; box-shadow: 0 10px 20px -14px rgba(10, 21, 39, .55); }
.mt-sw__b::after { content: ""; position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(10, 21, 39, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M15 15l5 5M10.5 17a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13zM10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 15px no-repeat; opacity: 0; transform: scale(.7); transition: .25s; }
.mt-sw__b:hover::after, .mt-sw__b:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 599px) { .mt-sw { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } .mt-filters { margin-inline: -8px; padding-inline: 8px; } }

.mt-end { background: radial-gradient(60% 70% at 85% 0%, rgba(237, 41, 38, .22), transparent 70%), var(--ls-dark); }
.mt-end__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mt-end__list a, .mt-end__list button { display: grid; gap: 10px; width: 100%; height: 100%; padding: 26px 24px; text-align: start; text-decoration: none; cursor: pointer; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .16); background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); color: #fff; font: inherit; transition: transform .3s, border-color .3s, background .3s; }
.mt-end__list a:hover, .mt-end__list button:hover { transform: translateY(-4px); border-color: var(--ls-accent); background: linear-gradient(160deg, rgba(237, 41, 38, .22), rgba(255, 255, 255, .03)); }
.mt-end__list svg { color: var(--ls-accent); }
.mt-end__list b { font: 400 24px/1.2 var(--ls-font-display); }
.mt-end__list span { color: rgba(255, 255, 255, .75); line-height: 1.7; }

/* EOS test reports (Good Wood core) */
.mt-certs { background: var(--ls-surface); }
.mt-certs__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mt-certs__list a { display: grid; gap: 8px; text-align: center; text-decoration: none; color: var(--ls-ink); font-weight: 600; font-size: 14px; }
.mt-certs__list img { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 14px 26px -18px rgba(10, 21, 39, .55); transition: transform .3s; }
.mt-certs__list a:hover img { transform: translateY(-4px); }
