:root {
  --pt-black: #111;
  --pt-dark: #555;
  --pt-mid: #777;
  --pt-white: #fff;

  --pt-ui-text: #434a54;
  --pt-ui-border: #c8d1e0;
  --pt-ui-border-hover: #afbacc;
  --pt-ui-bg: #dde3ed;
  --pt-ui-blue: #229ad6;
  --pt-ui-blue-hover: #0c7bb3;
  --pt-ui-blue-light: #53baed;

  --pt-desktop-gap: .12rem;
  --pt-mobile-gap: .6rem;
  --pt-tile-min: 53px;
  --pt-control-size: 19px;

  --state-solid: #229AD6;
  --state-liquid: #0AA648;
  --state-gas: #F55353;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: .5px;
  background: var(--pt-white);
  color: var(--pt-black);
}

/* Layout */

.periodic-table-component {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding: .25rem;
}

.periodic-table-controls {
  padding: .25rem;
}

.periodic-table-desktop-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.periodic-table-desktop,
.periodic-table-mobile {
  display: grid;
}

.periodic-table-desktop {
  grid-template-columns: repeat(18, minmax(var(--pt-tile-min), 1fr));
  grid-template-rows: repeat(7, minmax(var(--pt-tile-min), 1fr)) 1.5rem repeat(2, minmax(var(--pt-tile-min), 1fr));
  grid-auto-rows: minmax(var(--pt-tile-min), 1fr);
  gap: var(--pt-desktop-gap);
  min-width: 981px;
}

.periodic-table-mobile {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pt-mobile-gap);
}

/* Tiles */

.element-tile,
.element-placeholder {
  aspect-ratio: 1 / 1;
  min-height: var(--pt-tile-min);
}

.element-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .1rem;
  border: .5px solid var(--pt-dark);
  color: var(--pt-dark);
  text-decoration: none;
  transition: opacity .15s ease, outline-color .15s ease;
}

.periodic-table-component a.element-tile,
.periodic-table-component a.element-tile:hover,
.periodic-table-component a.element-tile:focus,
.periodic-table-component a.element-tile:visited,
.periodic-table-component a.element-tile *,
.periodic-table-component a.element-tile:hover *,
.periodic-table-component a.element-tile:focus * {
  color: inherit;
  text-decoration: none !important;
}

.periodic-table-component a.element-tile.element-tile--inverse-text,
.periodic-table-component a.element-tile.element-tile--inverse-text:hover,
.periodic-table-component a.element-tile.element-tile--inverse-text:focus,
.periodic-table-component a.element-tile.element-tile--inverse-text:visited,
.periodic-table-component a.element-tile.element-tile--inverse-text *,
.periodic-table-component a.element-tile.element-tile--inverse-text:hover *,
.periodic-table-component a.element-tile.element-tile--inverse-text:focus * {
  color: #fff;
}

.element-placeholder {
  border: 1px dashed transparent;
}

.element-tile.is-dimmed {
  opacity: .4;
}

.element-tile.is-highlighted {
  outline: .5px solid var(--pt-black);
}

.element-tile--series {
  margin-top: 0;
}

.element-tile--neutral {
  background: #f5f7fb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.element-tile--inverse-text {
  color: #fff;
}

.element-tile--inverse-text .element-tile__number,
.element-tile--inverse-text .element-tile__symbol,
.element-tile--inverse-text .element-tile__name,
.element-tile--inverse-text .element-tile__mass {
  color: #fff;
}

.element-tile--inverse-text .element-tile__state {
  border-color: #fff;
}

.element-tile--inverse-text.element-tile[data-state="unknown"] .element-tile__state {
  border-color: #fff;
}

/* Category colors */

.element-tile[data-category="alkali metal"] { background: #F8DABF; }
.element-tile[data-category="alkaline earth metal"] { background: #FFF3C6; }
.element-tile[data-category="transition metal"] { background: #BBE5FA; }
.element-tile[data-category="post-transition metal"] { background: #E3DCF7; }
.element-tile[data-category="metalloid"] { background: #CEC2F0; }
.element-tile[data-category="nonmetal"] { background: #8EF5B7; }
.element-tile[data-category="halogen"] { background: #FAD4E4; }
.element-tile[data-category="noble gas"] { background: #FAB4D1; }
.element-tile[data-category="lanthanide"] { background: #EAD9FA; }
.element-tile[data-category="actinide"] { background: #DABCF7; }
.element-tile[data-category="unknown"] { background: #FFF; }

/* Tile content */

.element-tile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1;
}

.element-tile__number {
  font-size: .7rem;
  line-height: 1;
  font-weight: 700;
  color: var(--pt-dark);
}

.element-tile__symbol {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: .1rem 0;
  text-align: center;
  font-size: .96rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
}

.element-tile__name,
.element-tile__mass {
  text-align: center;
  line-height: 1.1;
}

.element-tile__name {
  min-height: 1.35em;
  font-size: .55rem;
  font-weight: 600;
  color: var(--pt-dark);
}

.element-tile__mass {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .6rem;
  color: var(--pt-mid);
}

.element-tile__mass--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.element-tile__mass-value,
.element-tile__mass-unit {
  display: block;
}

.element-tile__mass-unit {
  font-size: .54rem;
}

/* Guard against the later, unscoped .element-tile__* rules (ported from calkoo's
   sitewide style.css for the element-detail hero tile) overriding the main grid's
   sizes here. On calkoo.com itself that em-based block loads before this one (an
   external stylesheet, followed by this page's own styles), so the grid always wins
   there; merged into one file the order flips, so we pin it back with higher
   specificity instead of relying on source order. Each tier below re-states the
   matching breakpoint's values (see the plain, now-losing .element-tile__* rules
   further down) with #periodic-table-mobile prefixed on so it wins at that width too. */
#periodic-table-desktop .element-tile__number{font-size:.7rem;font-weight:700}
#periodic-table-desktop .element-tile__symbol{font-size:.96rem;font-weight:700}
#periodic-table-desktop .element-tile__name{font-size:.55rem;font-weight:600}
#periodic-table-desktop .element-tile__mass{font-size:.6rem}
#periodic-table-mobile .element-tile__number{font-size:.7rem;font-weight:700}
#periodic-table-mobile .element-tile__symbol{font-size:.96rem;font-weight:700}
#periodic-table-mobile .element-tile__name{font-size:.55rem;font-weight:600}
#periodic-table-mobile .element-tile__mass{font-size:.6rem}
@media (min-width: 768px) and (max-width: 991.98px) {
	#periodic-table-mobile .element-tile__number{font-size:.91rem}
	#periodic-table-mobile .element-tile__symbol{font-size:2.5rem}
	#periodic-table-mobile .element-tile__name{font-size:.72rem}
	#periodic-table-mobile .element-tile__mass{font-size:.78rem}
}
@media (max-width: 767.98px) {
	#periodic-table-mobile .element-tile__number{font-size:.9rem}
	#periodic-table-mobile .element-tile__symbol{font-size:1.98rem}
	#periodic-table-mobile .element-tile__name{font-size:.84rem}
	#periodic-table-mobile .element-tile__mass{font-size:.77rem}
}
@media (max-width: 389.98px) {
	#periodic-table-mobile .element-tile__number{font-size:.98rem}
	#periodic-table-mobile .element-tile__symbol{font-size:2.06rem}
	#periodic-table-mobile .element-tile__name{font-size:.91rem}
	#periodic-table-mobile .element-tile__mass{font-size:.84rem}
}

/* State dots */

.element-tile__state {
  display: block;
  width: .72em;
  height: .72em;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid var(--pt-white);
  background: transparent;
}

.element-tile[data-state="solid"] .element-tile__state {
  background: var(--state-solid);
}

.element-tile[data-state="liquid"] .element-tile__state {
  background: var(--state-liquid);
}

.element-tile[data-state="gas"] .element-tile__state {
  background: var(--state-gas);
}

.element-tile[data-state="unknown"] .element-tile__state {
  background: transparent;
  border: 1px dashed var(--pt-dark);
}

.element-tile[data-color-mode="blackWhite"][data-state="solid"] .element-tile__state {
  background: #111;
  border-color: #111;
}

.element-tile[data-color-mode="blackWhite"][data-state="liquid"] .element-tile__state {
  background: #888;
  border-color: #888;
}

.element-tile[data-color-mode="blackWhite"][data-state="gas"] .element-tile__state {
  background: #fff;
  border-color: #666;
}

.element-tile[data-color-mode="blackWhite"][data-state="unknown"] .element-tile__state {
  background: transparent;
  border: 1px dashed var(--pt-dark);
}

/* Labels */

.pt-temp-label {
  display: block;
  margin: 0 0 4px;
  font: 12px Raleway, sans-serif;
  font-weight: 400;
  color: var(--pt-ui-text);
}

.pt-temperature-bar {
  width: 100%;
  height: 1rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #1e3a8a 0%,
    #2563eb 14%,
    #60a5fa 26%,
    #dbeafe 39%,
    #fff7ed 50%,
    #fed7aa 62%,
    #fb923c 76%,
    #dc2626 100%
  );
}

/* Temperature controls */

.pt-temp-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px 76px;
  align-items: center;
  gap: 6px;
}

.pt-temp-input {
  width: 100%;
  height: 32px;
  color: var(--pt-ui-text);
  border: 1px solid var(--pt-ui-border);
  border-radius: 2px;
  background-color: #fff;
  font: 16px Raleway, sans-serif;
  font-weight: 300;
}

.pt-temp-input {
  padding: 3px 5px 2px;
  text-align: right;
}

.pt-temp-input:hover {
  border-color: var(--pt-ui-border-hover);
}

.pt-temp-input:focus {
  outline: none;
  border-color: var(--pt-ui-text);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
}

/* Temperature slider */

.pt-temp-range {
  width: 100%;
  height: 8px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.pt-temp-range:focus {
  outline: none;
}

.pt-temp-range::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid var(--pt-ui-border);
  border-radius: 999px;
  background: var(--pt-ui-bg);
}

.pt-temp-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pt-ui-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  transition: background-color .15s ease;
  -webkit-appearance: none;
}

.pt-temp-range:hover::-webkit-slider-thumb {
  background: var(--pt-ui-blue-hover);
}

.pt-temp-range::-moz-range-track {
  height: 8px;
  border: 1px solid var(--pt-ui-border);
  border-radius: 999px;
  background: var(--pt-ui-bg);
}

.pt-temp-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--pt-ui-blue-light);
}

.pt-temp-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pt-ui-blue);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  cursor: pointer;
}

.pt-temp-range:hover::-moz-range-thumb {
  background: var(--pt-ui-blue-hover);
}

/* Radios and checkboxes reuse shared styles from style.css */

.pt-category-radios,
.pt-subcategory-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}

.pt-subcategory-filters {
  display: block;
  width: 100%;
}

.pt-subcategory-filters > .row {
  width: 100%;
}

.pt-subcategory-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: var(--pt-subcategory-dot, #ccc);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.pt-subcategory-item {
  display: flex;
  align-items: center;
}

.pt-subcategory-label {
  display: inline-block;
  height: auto;
  min-height: 19px;
  line-height: 19px;
  white-space: normal;
  vertical-align: top;
  padding-top: 0;
  padding-bottom: 0;
}

.pt-subcategory-label .pt-subcategory-dot {
  vertical-align: middle;
}

.pt-dynamic-legend {
  --pt-legend-bg: #f5f7fb;
  margin: .6rem 0 .85rem;
  border: .5px solid var(--pt-dark);
  border-radius: 2px;
  background: var(--pt-legend-bg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
}

.pt-dynamic-legend__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.1rem 1.4rem;
}

.pt-dynamic-legend__title {
  margin: 0;
  font: 12px Raleway, sans-serif;
  font-weight: 700;
  color: var(--pt-ui-text);
}

.pt-dynamic-legend__toggle {
  display: none;
  border: .5px solid var(--pt-ui-border);
  border-radius: 2px;
  background: #fff;
  color: var(--pt-ui-text);
  font: 12px Raleway, sans-serif;
  font-weight: 600;
  line-height: 1;
  padding: .35rem .55rem;
}

.pt-dynamic-legend__body {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: .7rem .85rem;
  padding: 1.4rem 1.4rem 1.4rem;
  align-items: start;
}

.pt-dynamic-legend__section {
  min-width: 0;
}

.pt-dynamic-legend__section-title {
  margin: 0 0 .35rem;
  font: 11px Raleway, sans-serif;
  font-weight: 700;
  color: var(--pt-ui-text);
}

.pt-dynamic-legend__items {
  display: grid;
  gap: .22rem .45rem;
}

.pt-dynamic-legend__items--compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.pt-dynamic-legend__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  font-size: .7rem;
  line-height: 1.28;
  color: var(--pt-dark);
}

.pt-dynamic-legend__swatch,
.pt-dynamic-legend__state-swatch,
.pt-dynamic-legend__mini-tile {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: .5px solid var(--pt-dark);
  background: #fff;
}

.pt-dynamic-legend__state-swatch {
  border-radius: 50%;
}

.pt-dynamic-legend__mini-tile {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .03);
}

.pt-dynamic-legend__mini-tile-dot {
  position: absolute;
  top: 1px;
  left: 1px;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  border: 1px solid var(--pt-white);
  background: transparent;
}

.pt-dynamic-legend__mini-tile-dot--solid { background: var(--state-solid); }
.pt-dynamic-legend__mini-tile-dot--liquid { background: var(--state-liquid); }
.pt-dynamic-legend__mini-tile-dot--gas { background: var(--state-gas); }
.pt-dynamic-legend__mini-tile-dot--unknown {
  border: 1px dashed var(--pt-dark);
}

.pt-dynamic-legend__mini-tile-dot--mono-solid {
  background: #111;
  border-color: #111;
}

.pt-dynamic-legend__mini-tile-dot--mono-liquid {
  background: #888;
  border-color: #888;
}

.pt-dynamic-legend__mini-tile-dot--mono-gas {
  background: #fff;
  border-color: #666;
}

.pt-dynamic-legend__mini-tile-dot--mono-unknown {
  border: 1px dashed var(--pt-dark);
}

.pt-dynamic-legend__gradient {
  width: 100%;
  height: .9rem;
  border: .5px solid var(--pt-dark);
  background: linear-gradient(
    90deg,
    #1e3a8a 0%,
    #2563eb 14%,
    #60a5fa 26%,
    #dbeafe 39%,
    #fff7ed 50%,
    #fed7aa 62%,
    #fb923c 76%,
    #dc2626 100%
  );
}

.pt-dynamic-legend__range {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .3rem;
  font-size: .74rem;
  color: var(--pt-mid);
}

.pt-dynamic-legend__note {
  margin: 0;
  font-size: .74rem;
  line-height: 1.35;
  color: var(--pt-mid);
}

.pt-dynamic-legend__sample {
  display: grid;
  gap: .6rem;
}

.pt-dynamic-legend__sample-tile {
  width: 100px;
  max-width: 100px;
  justify-self: start;
  aspect-ratio: 1 / 1;
  min-height: 100px;
  padding: .18rem .14rem;
}

.pt-dynamic-legend__sample-tile .element-tile__number {
  font-size: .73rem;
}

.pt-dynamic-legend__sample-tile .element-tile__symbol {
  margin: .06rem 0;
  font-size: .88rem;
}

.pt-dynamic-legend__sample-tile .element-tile__name {
  min-height: 1.1em;
  font-size: .58rem;
}

.pt-dynamic-legend__sample-tile .element-tile__mass {
  font-size: .62rem;
}

.pt-dynamic-legend__sample-notes {
  display: grid;
  gap: .28rem;
}

.pt-dynamic-legend__sample-note {
  font-size: .72rem;
  line-height: 1.3;
  color: var(--pt-dark);
}

.pt-dynamic-legend__sample-note strong {
  font-weight: 700;
  color: var(--pt-ui-text);
}

.pt-dynamic-legend__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .45rem .7rem;
  align-items: start;
}

.pt-dynamic-legend--external {
  display: none;
}

.pt-grid-legend {
  display: block;
  grid-column: 3 / 13;
  grid-row: 1 / 4;
  margin: 0;
  align-self: stretch;
  overflow: hidden;
  break-inside: avoid;
  background: #f8fafc;
}

.pt-grid-legend .pt-dynamic-legend__header {
  padding: .9rem 1.1rem;
}

.pt-grid-legend .pt-dynamic-legend__body {
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: .55rem .85rem;
  padding: .85rem 1.1rem .85rem;
}

.pt-grid-legend .pt-dynamic-legend__section-title,
.pt-grid-legend .pt-dynamic-legend__title {
  font-size: 11px;
}

.pt-grid-legend .pt-dynamic-legend__item,
.pt-grid-legend .pt-dynamic-legend__note,
.pt-grid-legend .pt-dynamic-legend__range {
  font-size: .7rem;
}

.pt-grid-legend .pt-dynamic-legend__items--compact {
  grid-template-columns: repeat(2, 1fr);
}

.pt-grid-legend .pt-dynamic-legend__split {
  grid-template-columns: 1fr;
}

.pt-grid-legend .pt-dynamic-legend__section--tile {
  grid-column: 1;
}

.pt-grid-legend .pt-dynamic-legend__section--colors {
  grid-column: 2 / 4;
}

.pt-grid-legend .pt-dynamic-legend__section--state {
  grid-column: 4;
}

.pt-grid-legend .pt-dynamic-legend__section--state .pt-dynamic-legend__items--compact {
  grid-template-columns: 1fr;
}

.pt-grid-legend .pt-dynamic-legend__section--tile .pt-dynamic-legend__section-title {
  display: none;
}

@media (max-width: 767.98px) {
  .pt-dynamic-legend__body {
    grid-template-columns: 1fr;
  }

  .pt-dynamic-legend__items--compact {
    grid-template-columns: 1fr;
  }

  .pt-dynamic-legend__range {
    flex-direction: column;
    gap: .15rem;
  }

  .pt-dynamic-legend__sample-tile {
    width: 72px;
    max-width: 100px;
    min-height: 0;
  }

  .pt-dynamic-legend__sample-tile .element-tile__number {
    font-size: .52rem;
  }

  .pt-dynamic-legend__sample-tile .element-tile__symbol {
    margin: .03rem 0;
    font-size: .73rem;
  }

  .pt-dynamic-legend__sample-tile .element-tile__name {
    font-size: .4rem;
  }

  .pt-dynamic-legend__sample-tile .element-tile__mass {
    font-size: .43rem;
  }

  .pt-dynamic-legend__split {
    grid-template-columns: 1fr;
  }
}

.pt-visibility-controls {
  width: 100%;
}

.pt-visibility-controls .col-12 {
  margin-bottom: 0;
}

.pt-temperature-controls {
  width: 100%;
}

.pt-settings-info {
  margin-top: .5rem;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--pt-mid);
}

.pt-settings-info:empty {
  display: none;
}

.pt-table-heading {
  margin: .2rem 0 .6rem;
}

.pt-table-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(260px, 1fr) auto;
  align-items: stretch;
  gap: .75rem 1rem;
  margin: .2rem 0 .75rem;
}

.pt-table-toolbar__actions {
  flex: 0 0 auto;
}

.pt-table-toolbar__actions .pt-toolbar-panel {
  height: 100%;
}

.pt-table-toolbar__actions .btn {
  white-space: nowrap;
}

.pt-toolbar-panel {
  min-width: 0;
  min-height: 82px;
  border: .5px solid var(--pt-ui-border);
  border-radius: 2px;
  background: #dde3ed;
  padding: .55rem .65rem .6rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.pt-toolbar-panel .pt-settings-group-label {
  margin-bottom: .35rem;
}

.pt-pdf-export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .42rem .75rem;
}

.pt-pdf-export-size-label {
  margin: 0;
  font-size: .76rem;
  line-height: 1.2;
  color: var(--pt-mid);
}

.pt-pdf-export-size-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .65rem;
}

.pt-pdf-export-size-options .css-label {
  margin: 0;
}

.pt-pdf-export-button {
  white-space: nowrap;
}

.pt-table-toolbar__actions a.pt-pdf-export-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  text-decoration: none;
}

.pt-table-toolbar__actions a.pt-pdf-export-button:hover,
.pt-table-toolbar__actions a.pt-pdf-export-button:focus,
.pt-table-toolbar__actions a.pt-pdf-export-button:active,
.pt-table-toolbar__actions a.pt-pdf-export-button:visited {
  text-decoration: none;
}

.pt-table-toolbar__actions a.pt-pdf-export-button:visited {
  color: #6c757d;
}

.pt-table-toolbar__actions a.pt-pdf-export-button:hover,
.pt-table-toolbar__actions a.pt-pdf-export-button:focus,
.pt-table-toolbar__actions a.pt-pdf-export-button:active {
  color: #fff;
}

.pt-static-pdf-select {
  min-width: 150px;
}

.pt-table-search {
  min-width: 0;
}

.pt-table-search .pt-search-wrap {
  margin: 0;
}

.pt-table-search .pt-search-input {
  min-height: 38px;
  border-color: var(--pt-ui-border);
  background-color: #fff;
}

.pt-table-search .pt-search-input:focus {
  border-color: var(--pt-ui-text);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18), 0 0 0 .12rem rgba(34, 154, 214, .12);
}

.pt-table-heading__title {
  margin: 0;
  font: 700 1.15rem Poppins, sans-serif;
  color: var(--pt-black);
}

.pt-table-heading__subtitle {
  margin: .1rem 0 0;
  font: 12px Raleway, sans-serif;
  color: var(--pt-mid);
}

.pt-table-heading__tip {
  margin: .25rem 0 0;
  font: italic 11px Raleway, sans-serif;
  color: var(--pt-mid);
  opacity: .75;
}

@media (max-width: 767.98px) {
  .pt-table-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-top: .45rem;
  }

  .pt-table-toolbar__actions {
    width: 100%;
  }

  .pt-toolbar-panel {
    min-height: 113px;
  }

  .pt-table-search.pt-toolbar-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .pt-table-heading__tip { display: none; }

  .pt-pdf-export-actions {
    justify-content: flex-start;
  }
}

.pt-print-source {
  margin: .35rem 0 1rem;
  font-size: .78rem;
  color: var(--pt-mid);
}

.pt-print-source a {
  color: inherit;
  text-decoration: none;
}

.pt-subcategory-filters [data-subcategory-filter="alkali metal"] { --pt-subcategory-dot: #F8DABF; }
.pt-subcategory-filters [data-subcategory-filter="alkaline earth metal"] { --pt-subcategory-dot: #FFF3C6; }
.pt-subcategory-filters [data-subcategory-filter="transition metal"] { --pt-subcategory-dot: #BBE5FA; }
.pt-subcategory-filters [data-subcategory-filter="post-transition metal"] { --pt-subcategory-dot: #E3DCF7; }
.pt-subcategory-filters [data-subcategory-filter="lanthanide"] { --pt-subcategory-dot: #EAD9FA; }
.pt-subcategory-filters [data-subcategory-filter="actinide"] { --pt-subcategory-dot: #DABCF7; }
.pt-subcategory-filters [data-subcategory-filter="nonmetal"] { --pt-subcategory-dot: #8EF5B7; }
.pt-subcategory-filters [data-subcategory-filter="halogen"] { --pt-subcategory-dot: #FAD4E4; }
.pt-subcategory-filters [data-subcategory-filter="noble gas"] { --pt-subcategory-dot: #FAB4D1; }

.periodic-table-component.pt-temperature-hidden .element-tile__state {
  visibility: hidden;
}

@media (max-width: 991.98px) {
  .pt-dynamic-legend--external {
    display: block;
  }

  .pt-grid-legend {
    display: none;
  }

  .periodic-table-component.pt-hide-inactive-mobile .element-tile.is-dimmed {
    display: none;
  }

  .pt-dynamic-legend__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pt-dynamic-legend.is-collapsed .pt-dynamic-legend__body {
    display: none;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  body {
    background: #fff;
  }

  .periodic-table-component {
    --pt-tile-min: 42px;
    max-width: none;
    padding: 0;
  }

  .periodic-table-component > .row:first-of-type,
  .periodic-table-component > .row:last-of-type,
  .pt-dynamic-legend--external,
  .pt-table-search,
  .pt-table-toolbar__actions {
    display: none !important;
  }

  .pt-dynamic-legend--external {
    display: none !important;
  }

  .pt-grid-legend {
    display: block !important;
    break-inside: avoid;
    page-break-inside: avoid;
    overflow: hidden;
  }

  .periodic-table-desktop-wrap {
    overflow: visible;
    display: block !important;
  }

  .periodic-table-mobile {
    display: none !important;
  }

  .periodic-table-desktop {
    min-width: 0;
  }
}

/* Responsive */

@media (max-width: 991.98px) {
  .periodic-table-component {
    padding: .5rem;
  }

  .periodic-table-desktop-wrap {
    display: none;
  }

  .periodic-table-mobile {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .element-tile__number { font-size: .91rem; }
  .element-tile__symbol { font-size: 2.5rem; }
  .element-tile__name { font-size: .72rem; }
  .element-tile__mass { font-size: .78rem; }

  .pt-dynamic-legend__sample-tile {
    width: 84px;
    max-width: 84px;
    min-height: 84px;
  }

  .pt-dynamic-legend__sample-tile .element-tile__number { font-size: .57rem; }
  .pt-dynamic-legend__sample-tile .element-tile__symbol { font-size: .81rem; }
  .pt-dynamic-legend__sample-tile .element-tile__name { font-size: .44rem; }
  .pt-dynamic-legend__sample-tile .element-tile__mass { font-size: .47rem; }
}

@media (max-width: 767.98px) {
  .periodic-table-mobile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .element-tile {
    min-height: 112px;
    padding: .45rem;
  }

  .element-tile__number { font-size: .9rem; }
  .element-tile__symbol { font-size: 1.98rem; }
  .element-tile__name { font-size: .84rem; }
  .element-tile__mass { font-size: .77rem; }

  .pt-dynamic-legend__sample-tile {
    width: 72px;
    max-width: 72px;
    min-height: 72px;
  }
}

@media (max-width: 991.98px) {
  .pt-temp-grid {
    grid-template-columns: 1fr 82px 70px;
  }

  .element-tile__state {
    width: 1.44em;
    height: 1.44em;
    border-width: 2px;
  }
}

@media (max-width: 389.98px) {
  .periodic-table-component {
    padding: .25rem;
  }

  .periodic-table-mobile {
    gap: .45rem;
  }

  .element-tile {
    min-height: 102px;
    padding: .3rem;
  }

  .element-tile__number { font-size: .98rem; }
  .element-tile__symbol { font-size: 2.06rem; }
  .element-tile__name { font-size: .91rem; }
  .element-tile__mass { font-size: .84rem; }

  .pt-dynamic-legend__sample-tile {
    min-height: 72px;
  }
}

/* ── Element selection ── */

#periodic-table-desktop .element-tile[data-atomic-number] {
  cursor: pointer;
}

.element-tile.is-selected {
  outline: 2px solid var(--pt-black);
  outline-offset: -1px;
  position: relative;
  z-index: 2;
}

/* ── Element detail panel (desktop, replaces legend when element selected) ── */

.pt-element-detail-body {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: .55rem 1rem;
  padding: .85rem 1.1rem;
  align-items: start;
}

.pt-element-detail__tile-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}

.pt-element-detail__tile {
  width: 100px;
  min-height: 100px;
  aspect-ratio: 1 / 1;
  padding: .18rem .14rem;
}

.pt-element-detail__tile .element-tile__number {
  font-size: .73rem;
}

.pt-element-detail__tile .element-tile__symbol {
  font-size: 1.55rem;
  margin: .06rem 0;
}

.pt-element-detail__tile .element-tile__name {
  font-size: .58rem;
  min-height: 1.1em;
}

.pt-element-detail__tile .element-tile__mass {
  font-size: .62rem;
}

.pt-element-detail__dismiss {
  border: .5px solid var(--pt-ui-border);
  border-radius: 2px;
  background: #fff;
  color: var(--pt-ui-text);
  font: 600 11px Raleway, sans-serif;
  line-height: 1;
  padding: .3rem .5rem;
  cursor: pointer;
  white-space: nowrap;
}

.pt-element-detail__dismiss:hover {
  border-color: var(--pt-ui-border-hover);
}

.pt-element-detail__col {
  display: flex;
  flex-direction: column;
  gap: .42rem;
  min-width: 0;
}

.pt-element-detail__prop {
  min-width: 0;
}

.pt-element-detail__prop-label {
  font: 600 .58rem/1 Raleway, sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pt-mid);
  margin-bottom: .12rem;
}

.pt-element-detail__prop-value {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pt-black);
  word-break: break-word;
}

.pt-feature-strip,
.pt-quick-modes {
  display: grid;
  gap: .55rem;
}

.pt-quick-modes-block {
  margin: 1rem 0 1.1rem;
}

.pt-feature-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: .9rem 0 0;
}

.pt-feature {
  border: .5px solid var(--pt-ui-border);
  border-radius: 2px;
  background: #f8fafc;
  padding: .55rem .65rem;
  font: 600 .78rem/1.25 Raleway, sans-serif;
  color: var(--pt-ui-text);
}

.pt-quick-modes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: .6rem 0 0;
}

.pt-quick-modes-title {
  margin: 0;
  font: 700 1rem/1.25 Poppins, sans-serif;
  color: var(--pt-black);
}

.pt-quick-modes-intro {
  margin: .15rem 0 0;
  font: .8rem/1.35 Raleway, sans-serif;
  color: var(--pt-mid);
}

.pt-quick-mode {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
  border: .5px solid var(--pt-ui-border);
  border-radius: 2px;
  background: #f8fafc;
  color: var(--pt-ui-text);
  text-align: left;
  padding: .82rem .85rem .78rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.pt-quick-mode::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin: 0 0 .55rem;
  border-radius: 999px;
  background: var(--pt-ui-blue);
  opacity: .78;
}

.pt-quick-mode:hover,
.pt-quick-mode:focus {
  border-color: var(--pt-ui-border-hover);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 2px 8px rgba(16, 24, 40, .08);
  outline: none;
}

.pt-quick-mode:active {
  transform: translateY(1px);
}

.pt-quick-mode__title {
  display: block;
  font: 700 .86rem/1.2 Raleway, sans-serif;
  color: var(--pt-black);
}

.pt-quick-mode__desc {
  display: block;
  margin-top: .32rem;
  font: .74rem/1.35 Raleway, sans-serif;
  color: var(--pt-mid);
}

.pt-seo-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
  margin: 1rem 0 1rem;
}

.pt-seo-section {
  border: .5px solid var(--pt-ui-border);
  border-radius: 2px;
  background: #fff;
  padding: .95rem 1rem;
}

.pt-seo-section h2 {
  margin: 0 0 .45rem;
  font: 700 1rem/1.25 Poppins, sans-serif;
  color: var(--pt-black);
}

.pt-seo-section p,
.pt-seo-section li {
  font: .86rem/1.5 Raleway, sans-serif;
  color: var(--pt-dark);
}

.pt-seo-section p {
  margin: 0;
}

.pt-seo-section ol {
  margin: 0;
  padding-left: 1.2rem;
}

.pt-seo-section li + li {
  margin-top: .28rem;
}

.pt-search-wrap {
  display: grid;
  gap: .35rem;
  margin-bottom: .45rem;
}

.pt-search-input {
  width: 100%;
  max-width: 100%;
}

.pt-settings-card {
  border: .5px solid #c8d1e0;
  border-radius: 2px;
  background: #dde3ed;
  padding: .9rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.pt-settings-card hr {
  border-top-color: rgba(67, 74, 84, .18);
}

.pt-settings-group-label {
  margin: 0 0 .45rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pt-mid);
}

.element-tile.is-search-match {
  outline: 2px solid var(--pt-ui-blue);
  outline-offset: -1px;
  position: relative;
  z-index: 3;
}

@media (max-width: 991.98px) {
  .pt-feature-strip,
  .pt-quick-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .pt-feature-strip,
  .pt-quick-modes {
    grid-template-columns: 1fr;
  }
}


/* Shared radio/checkbox/label styles, ported verbatim from calkoo.com/style.css (used by .css-radio/.css-checkbox/.css-label/.chk-label controls) */
input[type=radio]{margin:5px}
input[type=radio].css-radio,input[type=checkbox].css-checkbox{display:none}
input[type=radio].css-radio + label.css-label,input[type=checkbox].css-checkbox + label.chk-label{font-weight:300;padding-left:24px;margin:4px 0 9px 6px;min-height:19px;display:inline-block;line-height:1.35;background-repeat:no-repeat;background-position:0 0;vertical-align:top;cursor:pointer;background-color:transparent!important;color:#434a54!important;white-space:normal}
input[type=checkbox]:disabled + label.chk-label{cursor:auto;}
input[type=radio].css-radio:checked + label.css-label,input[type=checkbox].css-checkbox:checked + label.chk-label{background-position:0 -19px}
label.css-label,label.chk-label{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent!important;color:#434a54!important}
label.css-label:hover,label.css-label:active,label.css-label:focus,label.chk-label:hover,label.chk-label:active,label.chk-label:focus{background-color:transparent!important;color:#434a54!important}
label.css-label{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Crect x='0.75' y='0.75' width='17.5' height='17.5' rx='3' fill='%23ffffff' stroke='%23c8d1e0' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size:19px 19px;
}
input[type=radio].css-radio:checked + label.css-label{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Crect x='0.75' y='0.75' width='17.5' height='17.5' rx='3' fill='%23ffffff' stroke='%23c8d1e0' stroke-width='1.5'/%3E%3Crect x='5.2' y='5.2' width='8.6' height='8.6' rx='2' fill='%23555555'/%3E%3C/svg%3E");
	background-position:0 0;
}
input[type=radio]:disabled + label.css-label{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Crect x='0.75' y='0.75' width='17.5' height='17.5' rx='3' fill='%23dde3ed' stroke='%23c8d1e0' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size:19px 19px;
	cursor:auto;
}
input[type=radio]:disabled:checked + label.css-label{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Crect x='0.75' y='0.75' width='17.5' height='17.5' rx='3' fill='%23dde3ed' stroke='%23c8d1e0' stroke-width='1.5'/%3E%3Crect x='5.2' y='5.2' width='8.6' height='8.6' rx='2' fill='%23555555'/%3E%3C/svg%3E");
	background-position:0 0;
}
input[type=radio].css-radio + label.css-label.ytm-radio-label{
	height:auto;
	min-height:19px;
	line-height:1.35;
	display:inline-block;
	white-space:normal;
	padding-top:0;
	padding-bottom:0;
}
label.chk-label{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Crect x='0.75' y='0.75' width='17.5' height='17.5' rx='3' fill='%23ffffff' stroke='%23c8d1e0' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size:19px 19px;
}
input[type=checkbox].css-checkbox:checked + label.chk-label{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Crect x='0.75' y='0.75' width='17.5' height='17.5' rx='3' fill='%23ffffff' stroke='%23c8d1e0' stroke-width='1.5'/%3E%3Cpath d='M4.7 9.9 8 13.2 14.6 6.6' fill='none' stroke='%23555555' stroke-width='2.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
	background-position:0 0;
}
input[type=checkbox]:disabled + label.chk-label{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Crect x='0.75' y='0.75' width='17.5' height='17.5' rx='3' fill='%23dde3ed' stroke='%23c8d1e0' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size:19px 19px;
}
input[type=checkbox]:disabled:checked + label.chk-label{
	background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19'%3E%3Crect x='0.75' y='0.75' width='17.5' height='17.5' rx='3' fill='%23dde3ed' stroke='%23c8d1e0' stroke-width='1.5'/%3E%3Cpath d='M4.7 9.9 8 13.2 14.6 6.6' fill='none' stroke='%23555555' stroke-width='2.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
	background-position:0 0;
}

/* Shared width utility classes, ported verbatim from calkoo.com/style.css (used by temperature/select controls) */
.select180{width:180px}
.select240{width:240px}
.W120{width:120px}

/* Element tile + element detail page styles, ported verbatim from calkoo.com/style.css "Element page" section */
.element-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:4px;padding:4px 2px 5px;cursor:default;position:relative;box-sizing:border-box;font-family:inherit;border:1px solid rgba(0,0,0,.08);transition:box-shadow .15s}
.element-tile__top{display:flex;justify-content:space-between;align-items:flex-start;width:100%;padding:0 4px}
.element-tile__number{font-size:.65em;color:rgba(0,0,0,.55);font-weight:600;line-height:1}
.element-tile__state{width:7px;height:7px;border-radius:50%;display:block;background:transparent}
.element-tile[data-state="solid"] .element-tile__state{background:#4a9eff}
.element-tile[data-state="liquid"] .element-tile__state{background:#ff9f40}
.element-tile[data-state="gas"] .element-tile__state{background:#6bcb77}
.element-tile__symbol{font-size:1.55em;font-weight:700;line-height:1;color:#1a1a2e}
.element-tile__name{font-size:.58em;color:rgba(0,0,0,.65);margin-top:1px;text-align:center;line-height:1.1}
.element-tile__mass{font-size:.58em;color:rgba(0,0,0,.55);margin-top:0}
.element-tile[data-category="alkali metal"]{background:#F8DABF}
.element-tile[data-category="alkaline earth metal"]{background:#FFF3C6}
.element-tile[data-category="transition metal"]{background:#BBE5FA}
.element-tile[data-category="post-transition metal"]{background:#E3DCF7}
.element-tile[data-category="metalloid"]{background:#CEC2F0}
.element-tile[data-category="nonmetal"]{background:#8EF5B7}
.element-tile[data-category="halogen"]{background:#FAD4E4}
.element-tile[data-category="noble gas"]{background:#FAB4D1}
.element-tile[data-category="lanthanide"]{background:#EAD9FA}
.element-tile[data-category="actinide"]{background:#DABCF7}
.element-tile[data-category="unknown"]{background:#F5F7FB}
#ep-root{font-family:inherit;color:#434a54}
.ep-hero{display:flex;gap:24px;align-items:flex-start;padding:20px 0 28px;border-bottom:2px solid var(--ep-accent,#e0e0e0)}
.ep-hero__tile-wrap{flex-shrink:0}
.ep-hero__tile.element-tile{width:96px;height:96px;border-radius:8px;font-size:1.1rem;border:none;box-shadow:0 2px 12px rgba(0,0,0,.12)}
.ep-hero__info{flex:1;min-width:0}
.ep-hero__category-badge{display:inline-block;padding:3px 12px;border-radius:20px;font-size:.78rem;font-weight:600;color:#434a54;margin-bottom:8px;letter-spacing:.02em}
.ep-hero__badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.ep-badge{display:inline-block;padding:3px 10px;border-radius:20px;font-size:.75rem;font-weight:500;background:#f5f7fa;color:#434a54;border:1px solid #dde3ed}
.ep-badge--stable{background:#e1faeb;color:#056b2e;border-color:#8ef5b7}
.ep-badge--radioactive{background:#fff9e6;color:#805806;border-color:#fff0b8}
.ep-badge--synthetic{background:#faf0f0;color:#9f0e0e;border-color:#fad4d4}
.ep-hero__info p{margin:0;line-height:1.6;color:#434a54;font-size:.93rem}
.ep-estimated-note{font-size:.75rem;color:#707a8a;margin-top:6px;text-align:center}
.ep-density-note{font-size:.75rem;color:#707a8a;margin:6px 0 0;padding:0 10px}
.ep-section{margin:28px 0}
#ep-root .ep-section h2{color:#229ad6;font-size:.85rem;font-weight:700;letter-spacing:0;text-transform:uppercase;margin:0 0 .75rem}
.ep-row{display:flex;justify-content:space-between;align-items:baseline;padding:7px 10px;background:#f5f7fa;border-radius:3px;font-size:.875rem;gap:8px}
.ep-row:nth-child(even){background:#fff}
.ep-row__label{color:#707a8a;font-weight:500;white-space:nowrap}
.ep-val{color:#434a54;font-weight:600;text-align:right}
.ep-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.ep-facts-uses-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;margin:28px 0}
.ep-facts-uses-row .ep-section{margin:0}
@media(max-width:768px){.ep-facts-uses-row{grid-template-columns:1fr}}
.ep-card{background:#dde3ed;border:1px solid #c8d1e0;border-radius:8px;padding:16px}
.ep-card--full{grid-column:1/-1}
.ep-card h3{font-size:.72rem;font-weight:700;color:#58606e;text-transform:uppercase;letter-spacing:.05em;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #c8d1e0}
.ep-card .ep-row{padding:5px 0;background:transparent!important;border-radius:0;border-bottom:1px solid #c8d1e0}
.ep-card .ep-row:last-child{border-bottom:none}
.ep-temp-controls{margin-bottom:6px;padding-bottom:8px;border-bottom:1px solid #f0f0f0}
.ep-temp-bar{width:100%;height:1rem;border-radius:999px;margin-bottom:4px;background:linear-gradient(90deg,#1e3a8a 0%,#2563eb 14%,#60a5fa 26%,#dbeafe 39%,#fff7ed 50%,#fed7aa 62%,#fb923c 76%,#dc2626 100%)}
.ep-temp-range{width:100%;height:8px;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer;display:block;margin:6px 0}
.ep-temp-range:focus{outline:none}
.ep-temp-range::-webkit-slider-runnable-track{height:8px;border:1px solid #c8d1e0;border-radius:999px;background:#dde3ed}
.ep-temp-range::-webkit-slider-thumb{width:20px;height:20px;margin-top:-7px;border:2px solid #fff;border-radius:50%;background:#229ad6;box-shadow:0 1px 4px rgba(0,0,0,.15);-webkit-appearance:none}
.ep-temp-range:hover::-webkit-slider-thumb{background:#0c7bb3}
.ep-temp-range::-moz-range-track{height:8px;border:1px solid #c8d1e0;border-radius:999px;background:#dde3ed}
.ep-temp-range::-moz-range-progress{height:8px;border-radius:999px;background:#53baed}
.ep-temp-range::-moz-range-thumb{width:20px;height:20px;border:2px solid #fff;border-radius:50%;background:#229ad6;box-shadow:0 1px 4px rgba(0,0,0,.15);cursor:pointer}
.ep-temp-range:hover::-moz-range-thumb{background:#0c7bb3}
.ep-temp-inputs{display:flex;gap:2px;align-items:flex-start}
.ep-uses-list{margin:0;padding-left:18px;font-size:.85rem;color:#1a1a2e}
.ep-uses-list li{margin-bottom:2px}
.ep-context{display:flex;gap:20px;align-items:flex-start;background:#f8f9fb;border:1px solid #e5e9f0;border-radius:8px;padding:20px}
.ep-context__tile-wrap .element-tile{width:72px;height:72px;border-radius:6px;font-size:.85rem;flex-shrink:0}
.ep-context__info p{margin:0 0 14px;font-size:.9rem;color:#444;line-height:1.6}
.ep-nav-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.ep-nav-row a.btn{text-decoration:none;color:inherit}
.ep-nav-row a.btn-outline-secondary{color:#6c757d}
.ep-nav-row a.btn-outline-secondary:hover{color:#fff}
.ep-nav{display:flex;flex-wrap:wrap;gap:8px}
.ep-nav__btn{display:inline-block;padding:6px 14px;border-radius:20px;font-size:.8rem;font-weight:600;text-decoration:none;border:1px solid #d0d3d8;background:#fff;color:#333;transition:background .15s,border-color .15s}
.ep-nav__btn:hover{background:#f0f2f5;border-color:#bbb}
.ep-nav__btn--pt{background:var(--ep-accent,#e8eaed);border-color:transparent;color:#1a1a2e}
.ep-ssr__topic-links{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:12px;font-size:.86rem;line-height:1.4;color:#444}
.ep-ssr__topic-links strong{margin-right:2px;color:#1a1a2e}
.ep-ssr__topic-links a{display:inline-block;padding:3px 9px;border:1px solid #d8dde6;border-radius:20px;background:#fff;color:#333;text-decoration:none}
.ep-ssr__topic-links a:hover{background:#f0f2f5;border-color:#c8d1e0;text-decoration:none}
.ep-faq{display:flex;flex-direction:column;gap:4px}
.ep-faq__item{border:1px solid #d8dde6;border-radius:8px;overflow:hidden}
.ep-faq__item[open]{border-color:#c8d1e0}
.ep-faq__q{padding:12px 16px;cursor:pointer;font-size:.9rem;font-weight:600;color:#1a1a2e;list-style:none;display:flex;justify-content:space-between;align-items:center;background:#fff;user-select:none}
.ep-faq__q::-webkit-details-marker{display:none}
.ep-faq__q::after{content:"＋";font-size:.9em;color:#888;flex-shrink:0;margin-left:8px}
.ep-faq__item[open] .ep-faq__q::after{content:"−"}
.ep-faq__a{padding:10px 16px 14px;font-size:.875rem;line-height:1.6;color:#444;background:#f8f9fb;border-top:1px solid #e5e9f0}
@media(max-width:600px){.ep-hero{flex-direction:column;gap:16px}.ep-hero__tile.element-tile{width:80px;height:80px}.ep-cards{grid-template-columns:1fr}.ep-context{flex-direction:column}}
.toc-teddybase a.toc{text-transform:uppercase;}


/* Section heading utility classes, ported verbatim from calkoo.com/style.css */
.content-section-heading{margin:1rem 0 .5rem}
.content-section-heading h2{margin:0;color:#434a54;font-size:1.25rem;font-weight:600;line-height:1.4}
.calc-card-label,
.time-calc-section-label {
	color: #229ad6;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

/* FAQ: full width below its heading, split into 2 columns; keep each Q&A intact. */
.pt-faq-columns{column-count:2;column-gap:2.5rem}
.pt-faq-columns p{break-inside:avoid-column;-webkit-column-break-inside:avoid}
@media(max-width:767.98px){.pt-faq-columns{column-count:1}}

/* CJK readability: avoid synthetic/faux-bold rendering on dense small-caps labels
   and headings within the periodic table component for zh/ja/ko. */
:lang(zh) .time-calc-section-label,:lang(zh) .calc-card-label,:lang(zh) .pt-settings-group-label,:lang(zh) .pt-table-heading__title,:lang(zh) .pt-quick-modes-title,:lang(zh) .pt-seo-section h2,:lang(zh) .ep-faq__q,
:lang(ja) .time-calc-section-label,:lang(ja) .calc-card-label,:lang(ja) .pt-settings-group-label,:lang(ja) .pt-table-heading__title,:lang(ja) .pt-quick-modes-title,:lang(ja) .pt-seo-section h2,:lang(ja) .ep-faq__q,
:lang(ko) .time-calc-section-label,:lang(ko) .calc-card-label,:lang(ko) .pt-settings-group-label,:lang(ko) .pt-table-heading__title,:lang(ko) .pt-quick-modes-title,:lang(ko) .pt-seo-section h2,:lang(ko) .ep-faq__q{
	font-weight: 500;
}
