/* MethodMath topic hubs, archives and search results (from the PediaMath theme). Loaded on archives only. */
.mm-hub-head { margin: 8px 0 28px; }
.mm-hub-head h1 { font-size: 34px; letter-spacing: -.025em; line-height: 1.12; margin: 0 0 10px; }
.mm-hub-desc { color: var(--ink2); max-width: 72ch; margin: 0 0 20px; font-size: 16.5px; }
.mm-hub-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; max-width: 760px; }
.mm-hub-stats div { padding: 11px 18px; border-left: 1px solid var(--line); }
.mm-hub-stats div:first-child { border-left: 0; }
.mm-hub-stats dt { font-size: 12.5px; color: var(--ink2); }
.mm-hub-stats dd { margin: 0; font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }

html.js .mm-filter[data-mm-filter-box][hidden] { display: block; } /* shown from the first paint: no layout shift when the script runs */
.mm-filter { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 10px 0 12px; margin: 0 0 8px; }
.mm-filter input { width: 100%; max-width: 520px; height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px 0 42px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg) no-repeat 15px 50% / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.8'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }
.mm-filter input:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.mm-filter-empty { color: var(--ink2); margin: 14px 0 0; }
.mm-ch[hidden], .mm-domain[hidden], .mm-filter[hidden] { display: none; }

.mm-track-title { font-size: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--acc-text); margin: 36px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
.mm-domain { margin: 26px 0 0; }
.mm-domain-title { font-size: 21px; letter-spacing: -.015em; line-height: 1.25; margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.mm-domain-title small { font-size: 13.5px; font-weight: 500; color: var(--ink2); letter-spacing: 0; white-space: nowrap; }
.mm-domain-note { color: var(--ink2); margin: -4px 0 12px; max-width: 72ch; }
.mm-chapters { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mm-ch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.mm-ch-main { display: grid; grid-template-columns: 30px 104px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 6px 10px 0; text-decoration: none; min-width: 0; border-radius: 10px; }
.mm-ch-main:hover { background: var(--chip); }
.mm-ch-main:hover .mm-ch-title { text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: .18em; }
.mm-ch-n { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink2); }
.mm-cover--row { border-radius: 7px; background-size: 10px 10px; }
.mm-cover--row .mm-cover-text { display: none; }
.mm-cover--row use { transform: translate(24px, 13px) scale(.85); }
.mm-ch-text { min-width: 0; display: grid; gap: 2px; }
.mm-ch-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.mm-ch-sub { color: var(--ink2); font-size: 14px; line-height: 1.35; }
.mm-ch-tag { display: inline-block; vertical-align: 1px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: var(--ink2); }
.mm-ch-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding-right: 4px; }
.mm-ch-ex { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--acc); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.mm-ch-ex::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.mm-ch-ex:hover { background: var(--acc); color: #fff; }
.mm-ch-ex:hover::before { background: #fff; }
.mm-ch-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.mm-ch-link:hover { border-color: var(--ink); background: var(--chip); }
.mm-ch-link--pdf::before { content: ""; width: 9px; height: 11px; border: 1.5px solid currentColor; border-radius: 1px 4px 1px 1px; }
.mm-ch-link--course::before { content: ""; width: 10px; height: 8px; border: 1.5px solid currentColor; border-top-width: 2.5px; border-radius: 1px; }

.mm-domain-title a { text-decoration: none; }
.mm-domain-title a:hover { text-decoration: underline; text-decoration-color: var(--acc); }
.mm-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mm-tile { display: grid; gap: 2px; padding: 16px 18px; min-height: 104px; align-content: end; text-decoration: none; border: 1px solid var(--line); border-radius: 14px; background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; transition: border-color .15s, transform .15s; }
.mm-tile:hover { border-color: var(--ink); transform: translateY(-1px); }
.mm-tile small { font-size: 12.5px; color: var(--ink2); }
.mm-tile b { font-size: 22px; letter-spacing: -.02em; }
.mm-tile span { font-size: 13.5px; color: var(--ink2); }
.mm-tile--alt { border-color: var(--acc); }
.mm-superieur { margin-top: 44px; }
.mm-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; }
.mm-section + .mm-section { margin-top: 40px; }

@media (max-width: 640px) {
	.mm-hub-head h1 { font-size: 27px; }
	.mm-hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mm-hub-stats div:nth-child(odd) { border-left: 0; }
	.mm-hub-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.mm-filter { top: 56px; }
	.mm-ch { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 10px; }
	.mm-ch-main { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px 0 8px; }
	.mm-ch-n { display: none; }
	.mm-cover--row use { transform: translate(14px, 8px) scale(.9); }
	.mm-ch-links { justify-content: flex-start; padding: 0 0 0 88px; }
	.mm-ch-title { font-size: 15.5px; }
	.mm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mm-tile { min-height: 92px; padding: 14px; }
	.mm-tile b { font-size: 19px; }
}

/* PDF library (pdf-library.php) */
.mm-library .mm-jump { margin: 18px 0 8px; }

/* MethodMath hubs: lead and figures beside the topic drawing, essentials below the cards. */
.mm-hub-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.mm-hub-art { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.mm-hub-art svg { display: block; width: 100%; height: 100%; }
.mm-hub-essentials .mm-hub-intro { max-width: 820px; }
.mm-hub-intro > section { border-top: 1px solid var(--line); padding-top: 4px; }
.mm-hub-intro > section > h2 { font-size: 20px; margin: 18px 0 8px; }
.mm-hub-intro > section:first-child { border-top: 0; }
@media (max-width: 860px) {
	.mm-hub-top { grid-template-columns: 1fr; gap: 18px; }
	.mm-hub-art { max-width: 480px; }
}
