/* atomistic-materials: independent landscape page layout. */
/* Five type roles and three text colors, scoped to this route and its shell. */
body:has(.track-atomistic-materials){
 --am-type-title:46px;--am-type-heading:30px;--am-type-subheading:24px;
 --am-type-body:15px;--am-type-caption:13px;
 --ink:#1f1f1f;--body:#1f1f1f;--muted:#5f6368;--link:#376daa;
 --track-accent:var(--link);
 color:var(--ink);
}
.track-atomistic-materials{color:var(--ink)}
.track-atomistic-materials .track-path{display:flex;gap:12px;flex-wrap:wrap;font-size:var(--am-type-body);color:var(--muted);margin-bottom:42px}
.track-atomistic-materials .track-domain{font-size:var(--am-type-body);color:var(--muted)}
.content-page .track-atomistic-materials h1{font-size:var(--am-type-title);font-weight:600;line-height:1.1;letter-spacing:normal;margin:16px 0 18px}
.track-atomistic-materials .track-deck{font-size:var(--am-type-body);line-height:1.6;color:var(--body);max-width:58ch}
.track-atomistic-materials .track-links{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:22px;font-size:var(--am-type-body)}
.track-atomistic-materials .track-links a{color:var(--link)}
.track-atomistic-materials .method-citation{font-size:var(--am-type-body);font-weight:400;margin-left:4px;vertical-align:super;line-height:0}
.track-atomistic-materials .method-citation a{color:var(--link);text-decoration:none}
.track-atomistic-materials .method-references{border-top:1px solid var(--line);padding-top:26px;margin-top:36px;font-size:var(--am-type-body);line-height:1.7;color:var(--body)}
.content-page .track-atomistic-materials .method-references h2{font-size:var(--am-type-body);font-weight:500;letter-spacing:normal;margin:0 0 14px}
.track-atomistic-materials .method-references ol{list-style:none;margin:0;padding:0}
.track-atomistic-materials .am-results-note{font-size:var(--am-type-body);line-height:1.6;color:var(--muted);margin:14px 0 0;max-width:90ch}
.track-atomistic-materials #results thead th span{display:block;font-size:var(--am-type-body);font-weight:400;color:var(--muted);margin-top:4px}

/* User-provided scientific diagram: preserve the complete image and labels. */
.track-atomistic-materials .track-intro{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:44px;align-items:center;margin-bottom:42px}
.track-atomistic-materials .track-intro>div{min-width:0}
@media(max-width:1050px){.track-atomistic-materials .track-intro{gap:26px;grid-template-columns:minmax(0,4fr) minmax(0,6fr)}}
@media(max-width:800px){.track-atomistic-materials .track-intro{grid-template-columns:1fr;gap:24px}}

/* One method per row, ten primary metrics, and an overall score bar. */
.track-atomistic-materials #results .am-score-definition{font-size:var(--am-type-body);line-height:1.7;color:var(--muted);max-width:90ch;margin:0 0 24px}
.track-atomistic-materials #results .am-method-table{width:100%;min-width:1160px;table-layout:fixed;border-collapse:collapse;font-size:var(--am-type-body);line-height:1.5}
.track-atomistic-materials #results .am-method-col{width:200px}
.track-atomistic-materials #results .am-metric-col{width:80px}
.track-atomistic-materials #results .am-overall-col{width:160px}
.track-atomistic-materials #results .am-method-table :is(th,td){padding:14px 6px;border-bottom:1px solid #d5dde7;vertical-align:middle;text-align:center;font-weight:400;font-variant-numeric:tabular-nums}
.track-atomistic-materials #results .am-method-table thead th{font-size:var(--am-type-body);font-weight:500;line-height:1.4;padding:0 6px 13px;border-bottom:1px solid #637183;overflow-wrap:normal}
.track-atomistic-materials #results .am-method-table :is(th,td):first-child{text-align:left;padding-left:0}
.track-atomistic-materials #results .am-method-table thead th:last-child{text-align:left;padding-left:12px}
.track-atomistic-materials #results .am-method-table .am-metric-unit{font-size:var(--am-type-body);color:var(--muted);margin-top:4px}
.track-atomistic-materials #results .am-method-table tbody th strong{display:block;font-weight:400;line-height:1.5}
.track-atomistic-materials #results .am-method-detail{display:block;font-size:var(--am-type-body);color:var(--muted);margin-top:5px;line-height:1.6}
.track-atomistic-materials #results .am-method-detail em{font-style:italic}
.track-atomistic-materials #results .am-metric-cell>span:first-child{white-space:nowrap}
.track-atomistic-materials #results .am-best-metric>span:first-child{font-weight:650}
.track-atomistic-materials #results .am-metric-track{display:block;width:36px;height:3px;background:#edf0f4;margin:5px auto 0}
.track-atomistic-materials #results .am-metric-track>span{display:block;height:100%;background:#dc3636}
.track-atomistic-materials #results .am-metric-track[data-direction="higher"]>span{background:#16963c}
.track-atomistic-materials #results .am-overall-cell{padding-left:12px}
.track-atomistic-materials #results .am-overall-result{display:grid;grid-template-columns:minmax(0,1fr) 57px;gap:8px;align-items:center;text-align:right}
.track-atomistic-materials #results .am-overall-track{height:14px;background:#edf0f4;display:block}
.track-atomistic-materials #results .am-overall-track>span{display:block;height:100%;background:var(--am-method-color,#3b82f6)}
.track-atomistic-materials #results [data-method-id="mixed_replay"]{--am-method-color:#3b82f6}
.track-atomistic-materials #results [data-method-id="zero_shot"]{--am-method-color:#8b5cf6}
.track-atomistic-materials #results [data-method-id="mp_finetune"]{--am-method-color:#f59e0b}
.track-atomistic-materials #results [data-method-id="value"]{--am-method-color:#14b8a6}
.track-atomistic-materials #results .am-comparison-note{font-size:var(--am-type-body);line-height:1.7;color:var(--muted);margin:15px 0 0;max-width:110ch}
@media(max-width:720px){.track-atomistic-materials #results .am-score-definition{font-size:var(--am-type-body)}.track-atomistic-materials #results .am-method-table{font-size:var(--am-type-body)}.track-atomistic-materials #results .am-method-table thead th{font-size:var(--am-type-body)}}

/* Keep shared site, table and explorer styles on the same type scale.
   Size/color overrides are deliberate: shared styles load after this file. */
body:not(.frontier-guides):has(.track-atomistic-materials),
body:not(.frontier-guides):has(.track-atomistic-materials) :where(:not(math, math *)){
 font-family:"Hanken Grotesk","Helvetica Neue",Arial,sans-serif!important;
 font-size:inherit!important;
 color:inherit!important;
}
body:has(.track-atomistic-materials){font-size:var(--am-type-body)!important;color:var(--ink)!important}
body:not(.frontier-guides):has(.track-atomistic-materials) .track-atomistic-materials h1{font-size:var(--am-type-title)!important}
body:not(.frontier-guides):has(.track-atomistic-materials) .track-atomistic-materials :is(#results h2,#task-details > section > h2,.method-references h2){font-size:var(--am-type-heading)!important}
body:has(.track-atomistic-materials) .track-atomistic-materials .atomistic-article h3,
body:not(.frontier-guides):has(.track-atomistic-materials) .track-atomistic-materials .track-deck{font-size:var(--am-type-subheading)!important}
body:has(.track-atomistic-materials) :is(.track-path,.track-domain,.chapter-label>span,.am-method-detail,.am-metric-unit,.am-comparison-note,.am-results-note,.am-note,figcaption:not(.track-diagram > figcaption),caption,.method-citation,.method-references li,.track-metrics span,.track-links,.am-method-table thead th),
body:has(.track-atomistic-materials) :is(.am-method-table thead th,.method-references li,.method-citation) *{font-size:var(--am-type-caption)!important}
body:not(.frontier-guides):has(.track-atomistic-materials) .track-atomistic-materials .track-diagram>figcaption{font-size:var(--am-type-subheading)!important;color:var(--ink)!important}
body:has(.track-atomistic-materials) .track-atomistic-materials :is(a,.animation-state){color:var(--link)!important}
body:has(.track-atomistic-materials) .track-atomistic-materials .track-path a{color:var(--muted)!important}
body:has(.track-atomistic-materials) :is(.track-path,.track-domain,.chapter-label>span,.am-method-detail,.am-metric-unit,.am-score-definition,.am-comparison-note,.am-results-note,.am-note,figcaption,caption){color:var(--muted)!important}
body:has(.track-atomistic-materials) .track-atomistic-materials svg text{fill:var(--ink)!important}
.track-atomistic-materials .method-citation{vertical-align:baseline;position:relative;top:-.35em}

@media(max-width:720px){
 body:has(.track-atomistic-materials){--am-type-title:36px;--am-type-heading:28px;--am-type-subheading:22px}
}

/* Give the header wordmark its own presence within the existing type scale. */
body:has(.track-atomistic-materials) .global-header .brand-name{font-size:var(--am-type-subheading)!important}

.track-atomistic-materials .atomistic-article .display-math > math {
  font-size: var(--am-type-body);
}

.track-atomistic-materials .am-energy-figure {
  margin: 16px 0 18px;
}

.track-atomistic-materials .am-energy-filter {
  position: absolute;
}

.track-atomistic-materials .am-energy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
}

.track-atomistic-materials .am-bond-states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.track-atomistic-materials .am-bond-states li {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 6px;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 6px;
  background: #fff;
  text-align: center;
  line-height: 1.35;
}

.track-atomistic-materials .am-bond-label {
  border-radius: 4px;
  padding: 4px 0;
  background: var(--am-bond-label-color);
  font-weight: 600;
}

.track-atomistic-materials .am-bond-compressed {
  --am-bond-label-color: #fedbb2;
  --am-atom-left: -21.73913%;
}

.track-atomistic-materials .am-bond-equilibrium {
  --am-bond-label-color: #cce3fc;
  --am-atom-left: -132.41107%;
}

.track-atomistic-materials .am-bond-stretched {
  --am-bond-label-color: #cfebd1;
  --am-atom-left: -242.68775%;
}

/* Show selected regions of the supplied artwork. Keep state labels and descriptions in HTML. */
.track-atomistic-materials :is(.am-bond-art, .am-bond-curve) {
  position: relative;
  display: block;
  overflow: hidden;
}

.track-atomistic-materials :is(.am-bond-art, .am-bond-curve) img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  /* Whiten the pale raster backdrop while retaining the darker scientific marks. */
  filter: url(#am-energy-white-background);
}

.track-atomistic-materials .am-bond-art {
  aspect-ratio: 253 / 60;
}

.track-atomistic-materials .am-bond-art img {
  width: 660.86957%;
  left: var(--am-atom-left);
  top: -610%;
}

.track-atomistic-materials .am-bond-curve {
  aspect-ratio: 716 / 499;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  border-radius: 6px;
}

.track-atomistic-materials .am-bond-curve img {
  width: 233.51955%;
  left: -129.18994%;
  top: -35.07014%;
}

body:has(.track-atomistic-materials) .am-energy-figure :is(.am-bond-distance, .am-bond-description, sub) {
  font-size: var(--am-type-caption) !important;
}

.track-atomistic-materials .am-energy-figure figcaption {
  margin-top: 8px;
  line-height: 1.5;
}

@media(max-width:760px) {
  .track-atomistic-materials .am-energy-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media(max-width:420px) {
  .track-atomistic-materials .am-energy-layout {
    padding: 7px;
  }

  body:has(.track-atomistic-materials) .am-energy-figure .am-bond-label {
    font-size: var(--am-type-caption) !important;
  }
}

.track-atomistic-materials .am-guide-table {
  width: 100%;
  margin-block: 12px 16px;
  border-collapse: collapse;
}

.track-atomistic-materials .am-guide-table :is(th, td) {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

body:has(.track-atomistic-materials) .am-guide-table thead th {
  color: var(--muted) !important;
  font-size: var(--am-type-caption) !important;
}

.track-atomistic-materials .am-guide-table :is(th, td):is(.am-training-table :nth-child(2), .am-suites-table :last-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.track-atomistic-materials :is(.am-training-table td:nth-child(2), .am-suites-table td:last-child) {
  white-space: nowrap;
}

.track-atomistic-materials .am-suites-scroll {
  overflow-x: auto;
}

.track-atomistic-materials .am-suites-table {
  min-width: 620px;
  margin-block: 0;
}

.content-page .track-atomistic-materials #task-details .am-simulation-equation {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
}

.content-page .track-atomistic-materials #task-details .am-simulation-equation math {
  margin-inline: 0;
}

.content-page .track-atomistic-materials #task-details .am-simulation-equation .am-simulation-arrow-vertical {
  display: none;
}

@media(max-width:620px) {
  .content-page .track-atomistic-materials #guide-data .am-training-table tr > :is(th, td) {
    padding-inline: 4px;
    overflow-wrap: normal;
  }

  .track-atomistic-materials .am-training-table {
    table-layout: fixed;
  }

  .track-atomistic-materials .am-training-table thead th:first-child {
    width: 31%;
  }

  .track-atomistic-materials .am-training-table thead th:nth-child(2) {
    width: 33%;
  }

  .content-page .track-atomistic-materials #guide-data .am-training-table tr > td:last-child {
    overflow-wrap: anywhere;
  }
  .content-page .track-atomistic-materials #task-details .am-simulation-equation {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .content-page .track-atomistic-materials #task-details .am-simulation-equation .am-simulation-arrow-horizontal {
    display: none;
  }

  .content-page .track-atomistic-materials #task-details .am-simulation-equation .am-simulation-arrow-vertical {
    display: block;
  }
}
