.geomaterials-page{
  gap:18px;
}

.geomaterials-head{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.geomaterials-title{
  font-size:34px;
  line-height:1.05;
  font-weight:700;
}

.geomaterials-summary{
  width:100%;
  max-width:none;
  color:var(--muted);
  font-size:17px;
  line-height:1.45;
}

.geomaterials-summary p{
  margin:0 0 10px;
}

.geomaterials-summary p:last-child,
.geomaterials-summary ul:last-child{
  margin-bottom:0;
}

.geomaterials-summary a{
  color:rgba(186,230,253,.92);
  text-decoration:none;
  font-weight:500;
}

.geomaterials-summary a:hover{
  color:#dbeafe;
  text-decoration:underline;
  text-underline-offset:3px;
}

.geomaterials-unverified-note{
  margin:0;
  color:var(--muted);
  font-size:17px;
  line-height:1.45;
}

.geomaterials-unverified-note span{
  color:rgba(146,102,48,.92);
  font-weight:600;
}

.geomaterials-summary.is-collapsed > :not(:first-child){
  display:none;
}

.geomaterials-summary-toggle{
  border:0;
  padding:0;
  background:transparent;
  color:rgba(186,230,253,.88);
  cursor:pointer;
  font:inherit;
  font-size:13px;
  font-weight:500;
}

.geomaterials-summary-toggle[hidden]{
  display:none !important;
}

.geomaterials-summary-toggle--more{
  display:inline;
  margin-left:4px;
}

.geomaterials-summary-toggle--less{
  align-self:flex-start;
  margin-top:-2px;
}

.geomaterials-summary-toggle:hover{
  text-decoration:underline;
  text-underline-offset:3px;
}

.geomaterials-back{
  align-self:flex-start;
  color:rgba(186,230,253,.92);
  text-decoration:none;
  font-size:13px;
  font-weight:500;
}

.geomaterial-type-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.geomaterial-type-card{
  display:grid;
  grid-template-columns:132px 1fr;
  min-height:0;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.035);
  color:var(--txt);
  text-decoration:none;
}

.geomaterial-type-cover{
  display:flex;
  align-items:flex-end;
  align-self:stretch;
  height:100%;
  aspect-ratio:auto;
  min-height:0;
  padding:10px;
  background:linear-gradient(160deg, rgba(125,211,252,.20), rgba(255,255,255,.035));
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}

.geomaterial-type-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  margin:-10px;
  min-width:calc(100% + 20px);
  min-height:calc(100% + 20px);
}

.geomaterial-type-body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  padding:12px;
}

.geomaterial-type-title{
  font-size:16px;
  line-height:1.18;
  font-weight:600;
}

.geomaterial-type-summary,
.geomaterial-name-en{
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.geomaterial-type-meta{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  color:rgba(244,246,251,.72);
  font-size:12px;
  line-height:1.2;
}

.geomaterial-type-meta span{
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.035);
}

.geomaterials-tools{
  --geomaterials-control-h:44px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto auto;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.03);
}

.geomaterials-tools--mineral-tabs{
  grid-template-columns:minmax(0, 1fr) auto;
}

.geomaterials-search{
  width:100%;
  grid-column:1;
  height:var(--geomaterials-control-h);
  box-sizing:border-box;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.04);
  color:var(--txt);
  outline:none;
  font:inherit;
}

.geomaterials-seg{
  grid-column:2;
  display:grid;
  grid-template-columns:1fr 1fr;
  justify-items:stretch;
  min-height:var(--geomaterials-control-h);
  box-sizing:border-box;
  gap:0;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(0,0,0,.10);
}

.geomaterials-tools--mineral-tabs .geomaterials-seg{
  grid-column:1 / -1;
}

.geomaterials-seg--three{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.geomaterials-seg--tabs{
  grid-template-columns:repeat(auto-fit, minmax(92px, 1fr));
  gap:0;
  padding:0;
  overflow:hidden;
}

.geomaterials-seg-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  width:100%;
  justify-self:stretch;
  box-sizing:border-box;
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  padding:9px 8px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:14px;
  font-weight:500;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}

.geomaterials-seg-btn:last-child{
  border-right:0;
}

.geomaterials-seg--three .geomaterials-seg-btn,
.geomaterials-seg--tabs .geomaterials-seg-btn{
  font-size:14px;
}

.geomaterials-seg--tabs .geomaterials-seg-btn{
  min-height:var(--geomaterials-control-h);
  border-radius:0;
  border-right:1px solid var(--line);
  padding:10px 8px;
}

.geomaterials-seg--tabs .geomaterials-seg-btn:last-child{
  border-right:0;
}

.geomaterials-seg-btn:hover{
  background:rgba(255,255,255,.055);
  color:var(--txt);
}

.geomaterials-seg-btn.is-active{
  background:rgba(125,211,252,.14);
  color:var(--txt);
}

.geomaterials-mineral-nav{
  display:flex;
  flex-direction:column;
  align-items:center;
  align-self:center;
  gap:8px;
  width:fit-content;
  max-width:100%;
  padding:8px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.03);
}

.geomaterials-lang-seg{
  grid-column:3;
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(0,0,0,.10);
}

.geomaterials-tools--mineral-tabs .geomaterials-lang-seg{
  grid-column:2;
}

.geomaterials-lang-btn{
  min-width:48px;
  padding:11px 10px;
  border-right:1px solid var(--line);
  border-radius:0;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
}

.geomaterials-lang-btn:last-child{
  border-right:0;
}

.geomaterials-lang-btn:hover{
  background:rgba(255,255,255,.055);
  color:var(--txt);
}

.geomaterials-lang-btn.is-active{
  background:rgba(125,211,252,.14);
  color:var(--txt);
}

.geomaterials-alpha-pages{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}

.geomaterials-alpha-page{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:rgba(244,246,251,.88);
  background:rgba(255,255,255,.035);
  font-size:16px;
  font-weight:650;
  line-height:1.2;
  text-decoration:none;
}

.geomaterials-alpha-page span{
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}

.geomaterials-alpha-page--all{
  margin-left:16px;
}

.geomaterials-alpha-page:hover,
.geomaterials-alpha-page.is-active{
  border-color:rgba(186,230,253,.24);
  background:rgba(186,230,253,.10);
  color:var(--txt);
}

.geomaterials-view{
  display:none;
}

.geomaterials-view.is-active{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.geomaterials-view[hidden]{
  display:none !important;
}

.geomaterials-search-results{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.geomaterials-search-results[hidden]{
  display:none !important;
}

.geomaterials-search-meta{
  margin:0 0 8px;
  color:var(--muted);
  font-size:13px;
}

.geomaterial-group{
  display:grid;
  grid-template-columns:42px minmax(0, 1fr);
  align-items:start;
  gap:12px;
  padding:8px 0 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.geomaterials-view--um-special .geomaterial-group{
  grid-template-columns:54px minmax(0, 1fr);
}

.geomaterial-group.is-um-special{
  grid-template-columns:54px minmax(0, 1fr);
}

.geomaterial-group[hidden]{
  display:none !important;
}

.geomaterials-view--class .geomaterial-group{
  grid-template-columns:1fr;
  gap:8px;
}

.geomaterials-view--class .geomaterial-group-title{
  position:static;
  max-width:920px;
}

.geomaterial-group-title{
  position:sticky;
  top:calc(var(--sitebar-h) + 10px);
  font-size:18px;
  line-height:1.25;
  font-weight:700;
  color:rgba(244,246,251,.92);
}

.geomaterial-name-list{
  columns:1;
  column-gap:22px;
}

.geomaterial-name-link{
  display:block;
  break-inside:avoid;
  padding:3px 0;
  color:rgba(176,212,224,.92);
  text-decoration:none;
  line-height:1.18;
}

.geomaterial-name-link--unverified-ru{
  color:rgba(210,185,150,.92);
}

.geomaterial-name-mini-group{
  break-inside:avoid;
  margin:0 0 8px;
}

.geomaterial-mini-prefix{
  color:rgba(112,190,216,.96);
  font-size:17px;
  font-weight:600;
  line-height:1.25;
  padding:3px 0 1px;
}

.geomaterial-name-mini-group .geomaterial-name-link{
  margin-left:20px;
  padding:2px 0;
}

.geomaterial-name-mini-group .geomaterial-name-link::before{
  content:"·";
  display:inline-block;
  width:10px;
  margin-left:-10px;
  color:rgba(176,212,224,.96);
  font-size:18px;
  font-weight:800;
  line-height:0;
}

.geomaterial-name-link[hidden]{
  display:none !important;
}

.geomaterial-name-link:hover .geomaterial-name-main{
  text-decoration:underline;
  text-underline-offset:3px;
}

.geomaterial-name-main{
  font-size:15px;
  font-weight:600;
}

.geomaterial-ima-chip{
  display:inline-flex;
  align-items:center;
  margin-left:6px;
  padding:1px 5px;
  transform:translateY(-1px);
  border:1px solid rgba(186,230,253,.18);
  border-radius:999px;
  color:rgba(244,246,251,.68);
  background:rgba(255,255,255,.035);
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:11px;
  font-weight:500;
  line-height:1.25;
}

.geomaterial-name-en{
  display:inline;
  margin-left:5px;
  font-size:12px;
  line-height:1.18;
}

.geomaterials-empty,
.geomaterials-panel-empty{
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  color:var(--muted);
  background:rgba(255,255,255,.03);
}

.geomaterials-panel-empty[hidden]{
  display:none !important;
}

@media (max-width:900px), (pointer:coarse){
  .geomaterials-seg--tabs{
    gap:6px;
    padding:4px;
    overflow:visible;
  }

  .geomaterials-seg--tabs .geomaterials-seg-btn{
    min-height:auto;
    width:100%;
    border-right:0;
    border-radius:10px;
    padding:9px 4px;
  }
}

@media (min-width:760px){
  .geomaterials-title{
    font-size:46px;
  }

  .geomaterials-summary{
    font-size:17px;
    line-height:1.5;
  }

  .geomaterial-type-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
  }

  .geomaterial-type-card{
    grid-template-columns:1fr;
    grid-template-rows:auto 1fr;
    min-height:0;
  }

  .geomaterial-type-cover{
    align-self:auto;
    height:auto;
    min-height:0;
    aspect-ratio:4 / 3;
  }

  .geomaterial-type-body{
    min-height:136px;
    justify-content:flex-start;
  }

  .geomaterial-type-title{
    font-size:19px;
  }

  .geomaterial-type-summary{
    font-size:17px;
    line-height:1.42;
  }

  .geomaterials-tools{
    grid-template-columns:minmax(0, 1fr) auto auto;
    align-items:center;
  }

  .geomaterials-tools--mineral-tabs{
    grid-template-columns:minmax(0, 1fr) auto;
  }

  .geomaterial-name-list{
    columns:3 210px;
  }

  .geomaterial-group-title{
    font-size:20px;
  }

  .geomaterial-name-main{
    font-size:17px;
  }

  .geomaterial-name-en{
    font-size:14px;
  }

  .geomaterial-ima-chip{
    font-size:13px;
  }
}

@media (min-width:1120px){
  .geomaterial-name-list{
    columns:4 210px;
  }

  .geomaterials-view--groups .geomaterial-name-list{
    columns:3 280px;
  }
}

html[data-theme="light"] .geomaterial-type-card,
html[data-theme="light"] .geomaterials-tools,
html[data-theme="light"] .geomaterials-mineral-nav,
html[data-theme="light"] .geomaterials-empty,
html[data-theme="light"] .geomaterials-panel-empty{
  background:rgba(255,255,255,.72);
}

html[data-theme="light"] .geomaterial-type-meta{
  color:rgba(15,23,42,.64);
}

html[data-theme="light"] .geomaterial-type-meta span{
  background:rgba(15,23,42,.035);
}

html[data-theme="light"] .geomaterials-back{
  color:rgba(30,64,175,.92);
}

html[data-theme="light"] .geomaterials-summary a,
html[data-theme="light"] .geomaterials-summary-toggle{
  color:rgba(30,64,175,.86);
}

html[data-theme="light"] .geomaterials-summary a:hover,
html[data-theme="light"] .geomaterials-summary-toggle:hover{
  color:rgba(30,64,175,.98);
}

html[data-theme="light"] .geomaterials-seg{
  background:rgba(15,23,42,.035);
}

html[data-theme="light"] .geomaterials-seg-btn.is-active{
  background:rgba(37,99,235,.10);
}

html[data-theme="light"] .geomaterials-seg-btn:hover{
  background:rgba(15,23,42,.06);
}

html[data-theme="light"] .geomaterials-lang-seg{
  background:rgba(15,23,42,.035);
}

html[data-theme="light"] .geomaterials-lang-btn{
  color:rgba(15,23,42,.62);
}

html[data-theme="light"] .geomaterials-lang-btn.is-active{
  background:rgba(37,99,235,.10);
  color:rgba(15,23,42,.84);
}

html[data-theme="light"] .geomaterials-lang-btn:hover{
  background:rgba(15,23,42,.06);
  color:rgba(15,23,42,.84);
}

html[data-theme="light"] .geomaterials-alpha-page{
  color:rgba(15,23,42,.84);
  background:rgba(15,23,42,.025);
}

html[data-theme="light"] .geomaterials-alpha-page:hover,
html[data-theme="light"] .geomaterials-alpha-page.is-active{
  border-color:rgba(37,99,235,.18);
  background:rgba(37,99,235,.08);
  color:rgba(15,23,42,.90);
}

html[data-theme="light"] .geomaterial-group{
  border-bottom-color:rgba(15,23,42,.10);
}

html[data-theme="light"] .geomaterial-group-title{
  color:rgba(15,23,42,.84);
}

html[data-theme="light"] .geomaterial-name-link{
  color:rgba(30,64,175,.92);
}

html[data-theme="light"] .geomaterial-name-link--unverified-ru{
  color:rgba(146,102,48,.92);
}

html[data-theme="light"] .geomaterial-mini-prefix{
  color:#333;
}

html[data-theme="light"] .geomaterial-name-mini-group .geomaterial-name-link::before{
  color:#333;
}

html[data-theme="light"] .geomaterial-ima-chip{
  border-color:rgba(30,64,175,.16);
  color:rgba(15,23,42,.58);
  background:rgba(15,23,42,.035);
}
