/* Layout blocks for mod pages built on the Hit Analyzer template. Colours come from hit-analyzer.css. */
.ma-page figure img, .ma-page .mini img { display: block; width: 100%; height: auto; }
.ma-page figcaption { color: var(--sub); font-size: .94rem; line-height: 1.5; }
.ma-page figcaption strong, .ma-page dt { color: var(--fg); }
.ma-page .showcase { align-self: center; }
.ma-page .showcase > img { background: var(--well); }
.ma-page #mini-content { justify-content: flex-start; gap: .55rem; margin-top: .6rem; }
.ma-page #mini-content > img { max-height: none; border-radius: 5px; border: 1px solid var(--edge); }
.ma-page .mini p { margin-top: 0; }

.ma-section { padding: clamp(1rem, 2vw, 1.8rem); margin: 1.2rem 0; }
.ma-section > p, .ma-section li, .ma-page dd { color: #c9d5df; }
.ma-section > p { max-width: 84ch; margin-top: .8rem; }
.ma-section > .ma-lede { margin-top: .6rem; }
.ma-section h3 { font-size: 1.08rem; }

/* Advantage cards */
.ma-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.1rem; }
.ma-cards > article { background: #1a2934; border: 1px solid var(--edge); border-radius: 8px; padding: 1rem 1.05rem; }
.ma-cards h3 { color: #ffd089; }
.ma-cards p { color: #c9d5df; margin-top: .4rem; font-size: .96rem; }

/* Text beside a picture */
.ma-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1rem, 2.2vw, 2.2rem); align-items: start; margin-top: 1rem; }
.ma-split.ma-narrow-shot { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ma-shot img { border: 1px solid var(--edge); border-radius: 6px; background: var(--well); }
.ma-shot figcaption { margin-top: .45rem; }
.ma-shot + .ma-shot { margin-top: 1rem; }

/* Definition rows: a term and its explanation */
.ma-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.6rem); margin-top: 1rem; }
.ma-list.ma-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ma-list > div { border-top: 1px solid var(--edge); padding-top: .75rem; }
.ma-page dt { font-weight: 700; font-size: 1.03rem; }
.ma-page dd { margin-top: .3rem; }
.ma-page kbd, .ma-page code {
  display: inline-block; padding: .02rem .38rem; background: var(--well);
  border: 1px solid var(--edge); border-radius: 4px;
  font: 650 .9em/1.45 "Segoe UI", Arial, sans-serif; color: var(--fg); overflow-wrap: anywhere;
}
.ma-steps, .ma-bullets { margin: .8rem 0 0; padding-left: 1.4rem; max-width: 88ch; line-height: 1.58; }
.ma-steps li + li, .ma-bullets li + li { margin-top: .5rem; }

/* Table of measurements; turns into cards on a phone */
.ma-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .95rem; }
.ma-table th, .ma-table td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-top: 1px solid var(--edge); }
.ma-table thead th { color: var(--sub); font-weight: 650; border-top: 0; font-size: .86rem; }
.ma-table tbody th { color: var(--fg); font-weight: 700; white-space: nowrap; }
.ma-table td { color: #c9d5df; }

.ma-faq details { border-top: 1px solid var(--edge); padding: .75rem 0; max-width: 88ch; }
.ma-faq details:first-of-type { margin-top: .9rem; }
.ma-faq summary { cursor: pointer; font-weight: 700; }
.ma-faq details p { color: #c9d5df; margin-top: .45rem; }

@media (max-width: 1000px) { .ma-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .ma-split, .ma-split.ma-narrow-shot { grid-template-columns: 1fr; }
  .ma-list, .ma-list.ma-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ma-cards { grid-template-columns: 1fr; }
  .ma-table thead { display: none; }
  .ma-table, .ma-table tbody, .ma-table tr, .ma-table th, .ma-table td { display: block; }
  .ma-table tr { border-top: 1px solid var(--edge); padding: .6rem 0; }
  .ma-table th, .ma-table tbody th, .ma-table td { border: 0; padding: .12rem 0; white-space: normal; }
  .ma-table td[data-label]::before { content: attr(data-label) ": "; color: var(--sub); }
}

/* Emphasis kit: tier labels, value chips like in the mods, callouts, table marks. */
.tier { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .16rem .55rem; border-radius: .4rem; margin-right: .5rem; vertical-align: .12em; }
.tier.free { background: #17402a; color: #7ee2a0; border: 1px solid #2f7a4d; }
.tier.pro { background: #4a3410; color: #ffc864; border: 1px solid #9a6c1c; }
.ma-list > .tier-row { border-left: 3px solid transparent; padding-left: .85rem; }
.ma-list > .tier-row.free { border-left-color: #3fae68; }
.ma-list > .tier-row.pro { border-left-color: #ffb23e; }
.ma-list > .tier-row.key { border-left-color: #5db1ff; }
.ma-callout { border-left: 4px solid #ffb23e; background: rgba(255,178,62,.1); padding: .85rem 1.05rem; border-radius: .5rem; font-size: 1.08rem; line-height: 1.5; color: #f2f6fa; }
.ma-callout strong { color: #ffc864; }
.chip { display: inline-block; padding: .04rem .48rem; border-radius: .4rem; font-weight: 800; white-space: nowrap; }
.chip.blue { background: #1d4a7a; color: #a9d6ff; }
.chip.orange { background: #6a3d12; color: #ffb86b; }
.chip.yellow { background: #5a5210; color: #f3e45c; }
.chip.green { background: #1c5a2c; color: #8ff0a4; }
.chip.red { background: #6a1f1c; color: #ff9c94; }
.ma-table .yes { color: #7ee2a0; font-weight: 800; }
.ma-table .no { color: #6f8191; }
.ma-table .opt { color: #ffc864; font-weight: 700; }
