/* Containers Hamlet Design Lab. Code licence: AGPL-3.0-or-later. */
.compare-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: 1rem 0 1.4rem; padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); }
.compare-controls label { font-weight: 700; font-size: .9rem; }
.compare-controls select { display: block; min-width: 15rem; min-height: 44px; padding: .45rem; margin-top: .2rem; border: 1px solid var(--border); border-radius: .35rem; background: var(--bg); color: var(--text); font: inherit; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.compare-panel { border: 1px solid var(--border); border-radius: .8rem; overflow: hidden; background: var(--surface); min-width: 0; }
.compare-panel > img { display: block; width: 100%; height: auto; background: var(--paper); border-bottom: 1px solid var(--border); }
.compare-panel-body { padding: 1rem; }
.compare-panel h2 { margin: .1rem 0 .4rem; }
.compare-panel h3 { margin: 1.3rem 0 .35rem; font-size: 1rem; }
.compare-panel h3:first-of-type { margin-top: 1rem; }
.compare-panel ul { padding-left: 1.2rem; }
.compare-panel li { margin-bottom: .3rem; }
.compare-facts { display: grid; gap: .4rem; margin: .7rem 0; }
.compare-facts div { border-top: 1px solid var(--border); padding-top: .35rem; }
.compare-facts dt { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.compare-facts dd { margin: .1rem 0 0; }
.compare-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.compare-links .action { min-height: 44px; }
.all-concepts { margin: 2rem 0; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface); padding: .2rem 1rem; }
.all-concepts summary { cursor: pointer; font-weight: 800; padding: .6rem 0; }
.all-concepts table { min-width: 62rem; }
.all-concepts caption { text-align: left; padding: .5rem 0; font-weight: 700; }
.all-concepts td, .all-concepts th { font-size: .85rem; }
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .compare-controls { display: block; }
  .compare-controls select { width: 100%; min-width: 0; }
  .compare-controls button { width: 100%; margin-top: .5rem; }
}
@media (prefers-color-scheme: dark) { .compare-panel > img { background: #121713; } }
@media (forced-colors: active) {
  .compare-panel, .compare-controls, .all-concepts { border: 1px solid CanvasText; }
  .compare-panel > img { forced-color-adjust: none; }
}
