/* GM Site — styles for news, events, patents, slider and math */

/* News list */
.gms-news-list .gms-news-item { overflow: hidden; margin: 0 0 1.5em; }
.gms-news-list .gms-news-image img { float: left; margin: 0 1em .5em 0; width: 96px; height: auto; border-radius: 4px; }
.gms-news-title { margin: 0 0 .2em; font-size: 1.1em; }
.gms-news-date { font-size: .85em; opacity: .7; margin-bottom: .4em; }

/* Banner slider */
.gms-slider { position: relative; margin: 0 0 1.5em; border-radius: 6px; overflow: hidden; }
.gms-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gms-track::-webkit-scrollbar { display: none; }
.gms-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; min-height: 220px;
	background: #2b3440 center / cover no-repeat; position: relative; text-decoration: none; }
.gms-caption { position: absolute; inset: auto 0 0 0; padding: 1.2em 1.4em; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.gms-slide-title { display: block; color: #fff; font-size: 1.35em; font-weight: 600; line-height: 1.25; }
.gms-cat { display: block; color: #fff; font-size: .75em; text-transform: uppercase; letter-spacing: .05em; opacity: .85; margin-bottom: .3em; }

/* Events */
.gms-event { display: flex; gap: 1em; margin: 0 0 1.75em; }
.gms-event-image img { width: 96px; height: auto; border-radius: 4px; }
.gms-event-body { flex: 1; min-width: 0; }
.gms-event-title { margin: 0 0 .3em; font-size: 1.1em; }
.gms-event-meta { list-style: none; margin: 0 0 .5em; padding: 0; display: flex; flex-wrap: wrap; gap: .2em 1.2em; font-size: .9em; opacity: .8; }
.gms-event-summary p { margin: 0 0 .5em; }
.gms-event-link { margin: 0; font-size: .9em; }
.gms-events-empty { font-style: italic; opacity: .75; }

/* Patents */
.gms-patent { margin: 0 0 1.75em; padding: 0 0 1.25em; border-bottom: 1px solid rgba(0,0,0,.08); }
.gms-patent-title { margin: 0 0 .3em; font-size: 1.15em; }
.gms-patent-meta { margin: 0 0 .5em; font-size: .9em; opacity: .8; display: flex; flex-wrap: wrap; gap: .2em 1.2em; }
.gms-patent-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.gms-patent-abstract { margin: 0; }

/* Math */
.gms-math { font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif; font-style: italic; white-space: nowrap; }
.gms-math sup, .gms-math sub { font-size: .7em; }

/* Slider controls */
.gms-prev, .gms-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px;
	border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 38px; cursor: pointer; padding: 0; }
.gms-prev { left: 10px; } .gms-next { right: 10px; }
.gms-prev:hover, .gms-next:hover, .gms-prev:focus-visible, .gms-next:focus-visible { background: rgba(0,0,0,.75); }
.gms-dots { position: absolute; top: 10px; right: 12px; z-index: 2; display: flex; gap: 6px; }
.gms-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.gms-dots button.is-active { background: #fff; }
