/* ─── CSS Variables / Themes ─────────────────────────────────────────── */

[data-theme="dark"] {
  --app-bg: #333;
  --site-color: #fff;
  --header-height: 3rem;
  --header-bg: var(--button-bg-color);
  --code-bg: #2d2d2d;
  --view-bg: #fff;
  --theme-btn-icon: url(assets/icons/dark-theme.svg);
  --button-bg-color: #444;
  --btn-icon-color: #fff;
  --section-border-color: #333;
  --resize-handle-color: #333;
  --resize-handle-small-color: #222;
  --caret-color: #fff;
  --settings-menu: #222;
  --ac-dropdown-bg: #1e1e1e;
  --ac-dropdown-border: #111;
  --ac-dropdown-color: #fff;
}

[data-theme="light"] {
  --app-bg: #ddd;
  --site-color: #333;
  --header-height: 3rem;
  --header-bg: rgb(202 202 202);
  --code-bg: #f5f2f0;
  --view-bg: #fff;
  --theme-btn-icon: url(assets/icons/light-theme.svg);
  --button-bg-color: #999;
  --btn-icon-color: #fff;
  --section-border-color: #ccc;
  --resize-handle-color: #ddd;
  --resize-handle-small-color: #ccc;
  --caret-color: #000;
  --settings-menu: #f8f8f8;
  --ac-dropdown-bg: #e1e1e1;
  --ac-dropdown-border: #ccc;
  --ac-dropdown-color: #333;
}

/* ─── Reset & Base ───────────────────────────────────────────────────── */

body {
  margin: 0 !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--site-color);
}

span,
:focus {
  outline: none;
}

/* ─── App Shell ──────────────────────────────────────────────────────── */

.app {
  background: var(--app-bg);
}

header {
  background: var(--header-bg);
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  padding-right: .5rem;
  border-bottom: solid .1rem var(--section-border-color);
}

main {
  height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr;
  box-sizing: border-box;

  @media(min-width: 960px){
    padding: 1rem 1rem 0 1rem;
    grid-template-rows: 1fr !important;
  }
}

/* ─── Code & Preview panes ───────────────────────────────────────────── */

.code-window,
.right-panel {
  overflow: hidden;
  scrollbar-width: none;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
}

.code-window::-webkit-scrollbar,
.right-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.code-window .window-title {
  display: flex;
  gap: .5rem;
  align-items: center;
  background-color: var(--header-bg);
  width: fit-content;
  padding: .5rem 1rem;
  font-size: .8rem;
  border-radius: .4rem .4rem 0 0;

  @media(max-width: 960px){
    margin-top: 1rem;
  }
}

/* ─── Editor Container & Textarea Overlay Technique ─────────────────── */

.fullscreen-container {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.editor-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--code-bg);
  border-radius: 0;
}

.editor-pre,
.editor-textarea {
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  line-height: 1.5;
  tab-size: 2;
  white-space: pre;
  word-wrap: normal;
  overflow-wrap: normal;
  box-sizing: border-box;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1em 1em 1em 61px; /* 3.8em @ 16px = 60.8px — rounded to whole pixel to avoid sub-pixel hit-test offset on Windows */
}

/* Word-wrap mode — toggled by adding .wrap-lines to .editor-wrapper */
.editor-wrapper.wrap-lines .editor-pre,
.editor-wrapper.wrap-lines .editor-pre code,
.editor-wrapper.wrap-lines .editor-textarea {
  white-space: pre-wrap !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

/* Prism pre overlay — scroll is driven by textarea via JS _syncScroll().
   overflow:hidden so pre never gets its own scrollbar.
   pre width is set dynamically by EditorComponent._matchPreWidth()
   to match textarea's clientWidth exactly (compensating for scrollbar). */
.editor-pre {
  pointer-events: none;
  overflow: hidden !important;  /* beats Prism's pre[class*="language-"] { overflow: auto } */
  padding-left: 61px !important; /* override Prism's 3.8em — must match textarea exactly */
  font-family: "Courier New", Courier, monospace !important; /* override Prism's Consolas stack on pre — must match textarea */
  color: #ccc;
  background: var(--code-bg);
  border-radius: 0;
  margin: 0 !important;
  z-index: 0;
}

/* Prism sets Consolas on code[class*="language-"] — override on the code child too */
.editor-pre code {
  font-family: "Courier New", Courier, monospace !important;
}

/* Textarea: thin scrollbar, always visible so gutter is stable.
   scrollbar-width:thin = 6px on Windows Chromium. */
.editor-textarea {
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: var(--caret-color);
  z-index: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,120,120,0.4) transparent;
}
.editor-textarea::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.editor-textarea::-webkit-scrollbar-track  { background: transparent; }
.editor-textarea::-webkit-scrollbar-thumb  { background: rgba(120,120,120,0.4); border-radius: 3px; }
.editor-textarea::-webkit-scrollbar-thumb:hover { background: rgba(120,120,120,0.7); }


[data-theme="light"] .editor-textarea {
  caret-color: var(--caret-color); /* Keep caret visible on dark code bg */
}

/* Selection highlight - browsers use their own color for <textarea> selection */
.editor-textarea::selection {
  background: rgba(100, 160, 255, 0.35);
  color: transparent;
}

/* ─── Resize Handle ──────────────────────────────────────────────────── */

.resize-handle {
  width: 1rem;
  height: calc(100dvh - 8.9rem);
  background-color: var(--resize-handle-color);
  cursor: col-resize;
  position: relative;
  transition: background-color 0.15s;
  margin-top: 2rem;
}

.resize-handle:hover  { background-color: #4caf50; } 
.resize-handle:active { background-color: #4caf50; }

/* ─── Buttons & Controls ─────────────────────────────────────────────── */

.buttons,
.snippet-controls {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0 0 0.5rem 0;
}

.right-panel .buttons { padding-left: .5rem }

.snippet-controls {
    overflow-x: auto;
}

.buttons button::before {
  background-color: #fff;
}

.buttons > *:last-child {
  margin-left: auto;
}

button,
select,
input {
  background-color: var(--button-bg-color);
  font-weight: 600;
  font-size: .75rem;
  border: none;
  color: var(--btn-icon-color);
  border-radius: 0.5rem;
}

select,
input {
  padding: 0.5rem 1rem;
}

::placeholder {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  position: relative;
  display: flex;
  gap: 0.2rem;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0.25rem .8rem 0.25rem .5rem;
}

button::before {
  content: "";
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--btn-icon-color) center no-repeat;
  -webkit-mask-size: 80%;
  mask-size: 80%;
  mask-repeat: no-repeat;
  mask-position: center;
}

#saveBtn::before   { mask-image: url("assets/icons/save.svg"); }
#deleteBtn::before { mask-image: url("assets/icons/delete.svg"); }
#copyBtn::before   { mask-image: url("assets/icons/content-copy.svg"); }
#runBtn::before    { mask-image: url("assets/icons/play-circle.svg"); }
#exportBtn::before { mask-image: url("assets/icons/download.svg"); }
#settings-btn      { mask-image: url("assets/icons/settings.svg"); }
.intro-close       { mask-image: url("assets/icons/close.svg"); }

#snippetSelector, #snippetName {
  width: 9rem;
}

.icon-html,
.icon-css,
.icon-js,
.icon-preview,
.icon-console,
.icon-split {
display: flex;
align-items: center;

}

.icon-html::before,
.icon-css::before,
.icon-js::before,
.icon-preview::before,
.icon-console::before,
.icon-split::before  {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: no-repeat center / contain;
  margin-right: .3rem;
}

.icon-html::before { background-image: url(assets/icons/icon-html.svg) }
.icon-css::before { background-image: url(assets/icons/icon-css.svg) }
.icon-js::before { background-image: url(assets/icons/icon-js.svg) }
.icon-preview::before { 
  background-color: var(--site-color);
  background-size: 100%;
  border-radius: .15rem; 
  width: 1.3rem;
  -webkit-mask-size: 100%;
  mask-size: 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-image: url(/assets/icons/icon-visibility.svg);
  mask-image: url(/assets/icons/icon-preview.svg)
}

.icon-console::before {
  background-color: var(--site-color);
  background-size: 100%;
  border-radius: .15rem;
  width: 1.3rem;
  -webkit-mask-size: 100%;
  mask-size: 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-image: url(/assets/icons/icon-console.svg);
}

.icon-split::before {
  background-color: var(--site-color);
  background-size: 100%;
  border-radius: .15rem;
  width: 1.3rem;
  -webkit-mask-size: 100%;
  mask-size: 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-image: url(/assets/icons/icon-split.svg);
}

/* ─── Settings button & menu ─────────────────────────────────────────── */

.settings-wrapper {
  position: relative;
}

.intro-close, 
#settings-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: center no-repeat;
  background-size: 55%;
  background-color: var(--site-color);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
  -webkit-mask-size: 70%;
  mask-size: 70%;
  mask-repeat: no-repeat;
  mask-position: center;
}

.intro-close {
  margin: 0 0 0 auto;
  width: 3rem;
  height: 3rem;
}

.intro-close::before,
#settings-btn::before {
  display: none;
}

.settings-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  min-width: 300px;
  background: var(--settings-menu);
  padding: 0.75rem;
  z-index: 1000;
  border-radius: .5rem;
  box-shadow: 0 .25rem 1rem rgba(0, 0, 0, 0.5);
}

.settings-menu.is-open {
  display: block;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* ─── Theme picker ───────────────────────────────────────────────────── */

.theme-picker {
  display: flex;
  gap: 0.4rem;
}

.theme-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.25rem;
  border-radius: 0.5rem;
  background: var(--header-bg);
  color: var(--site-color);
  font-size: 0.75rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.theme-btn::before {
  display: none; /* Override generic button::before */
}

.theme-btn.is-active {
  background-color: var(--app-bg);
  color: #fff;

  .theme-btn-icon {
    background-color: #fff;
  }
}

[data-theme="dark"] {
  #theme-light.theme-btn {
    background-color: transparent;
    border: solid .1rem #555;
    color: #999;
  }

  #theme-light.theme-btn .theme-btn-icon--light {
    background-color: #999;
  }
}

[data-theme="light"] {
  #theme-dark.theme-btn {
    background-color: transparent;
    border: solid .1rem #999;
    color: #999;
  }

  #theme-light.theme-btn .theme-btn-icon--light {
    background-color: #999;
  }

    #theme-dark.theme-btn .theme-btn-icon--dark {
    background-color: #999;
  }
}

#theme-dark.theme-btn.is-active {
  background-color: rgb(255 255 255 / .1);
  color: #fff;
}

#theme-dark.theme-btn.is-active .theme-btn-icon--dark{
  background-color: #fff;
}

#theme-light.theme-btn.is-active .theme-btn-icon--light{
  background-color: #fff;
}

#theme-light.theme-btn.is-active {
  background-color: #999;
  color: #fff;
}

.theme-btn-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--site-color) center no-repeat;
  background-size: contain;
  -webkit-mask-size: 80%;
  mask-size: 80%;
  mask-repeat: no-repeat;
  mask-position: center;
}

.theme-btn-icon--light {
  mask-image: url(assets/icons/light-theme.svg);
  -webkit-mask-image: url(assets/icons/light-theme.svg);
}

.theme-btn-icon--dark {
  mask-image: url(assets/icons/dark-theme.svg);
  -webkit-mask-image: url(assets/icons/dark-theme.svg);
}

/* ─── Panel Tabs (Preview / Console) ──────────────────────────────────── */

.panel-tabs {
  display: flex;
  align-items: center;
  gap: .5rem;

  @media(max-width: 960px){
    margin-top: 1rem;
  }
}

.panel-tab {
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  border-radius: .4rem .4rem 0 0;
  background: transparent;
  color: var(--site-color);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
  border: none;
}

.panel-tab::before {
  display: none;
}

.panel-tab.is-active {
  background-color: var(--header-bg);
  opacity: 1;
}

.panel-tab:hover:not(.is-active) {
  opacity: 0.7;
}

.panel-split-toggle {
  margin-left: auto;
  padding: .35rem .5rem;
  font-size: .8rem;
  font-weight: 600;
  border-radius: .4rem;
  background: transparent;
  color: var(--site-color);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
  border: none;
}

.panel-split-toggle::before {
  display: none;
}

.panel-split-toggle:hover {
  opacity: 0.7;
}

.panel-split-toggle.is-active {
  background-color: var(--header-bg);
  opacity: 1;
}

/* Hide split toggle on mobile */
@media (max-width: 960px) {
  .panel-split-toggle {
    display: none;
  }
}

/* ─── Panel Views (tabbed / split) ───────────────────────────────────── */

.panel-views {
  display: grid;
  min-height: 0;
  overflow: hidden;
}

/* Tabbed mode: only active panel visible */
.panel-views:not(.is-split) {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.panel-views:not(.is-split) .panel-view {
  display: none;
}

.panel-views:not(.is-split) .panel-view.is-active {
  display: block;
}

/* Split mode: both visible, stacked vertically */
.panel-views.is-split {
  grid-template-rows: 1fr auto 1fr;
}

.panel-views.is-split .panel-view {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.panel-views.is-split .panel-console {
  border-top: none;
}

/* Resize handle between preview and console in split mode */
.panel-split-handle {
  display: none;
}

.panel-views.is-split .panel-split-handle {
  display: block;
  height: 6px;
  background: var(--resize-handle-color);
  cursor: row-resize;
  transition: background-color 0.15s;
  flex-shrink: 0;
}

.panel-views.is-split .panel-split-handle:hover,
.panel-views.is-split .panel-split-handle.is-resizing {
  background-color: #4caf50;
}

/* ─── Console Output ─────────────────────────────────────────────────── */

.console-output {
  height: 100%;
  overflow-y: auto;
  background: var(--code-bg);
  padding: .5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: .8rem;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,120,120,0.4) transparent;
}

.console-output::-webkit-scrollbar {
  width: 6px;
}
.console-output::-webkit-scrollbar-track {
  background: transparent;
}
.console-output::-webkit-scrollbar-thumb {
  background: rgba(120,120,120,0.4);
  border-radius: 3px;
}

.console-line {
  padding: .15rem .4rem;
  border-bottom: 1px solid rgba(128,128,128,0.1);
  display: flex;
  gap: .75rem;
  align-items: baseline;
}

.console-timestamp {
  color: rgba(128,128,128,0.5);
  font-size: .7rem;
  flex-shrink: 0;
}

.console-message {
  white-space: pre-wrap;
  word-break: break-word;
}

.console-log .console-message {
  color: var(--site-color);
}

.console-warn .console-message {
  color: #e6a817;
}

.console-error {
  background: rgba(255, 60, 60, 0.08);
}

.console-error .console-message {
  color: #f44;
}

.console-info .console-message {
  color: #5ca0f2;
}

/* ─── iframe preview ─────────────────────────────────────────────────── */

iframe {
  background-color: var(--view-bg);
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* ─── Toggle Switch (Auto kør) ───────────────────────────────────────── */

.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-container label {
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: #4caf50;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ─── Loading Overlay ────────────────────────────────────────────────── */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  text-align: center;
  color: white;
}

.spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #4caf50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-spinner p {
  font-size: 1.1rem;
  margin: 0;
}

/* ─── Responsive: vertical layout below 960px ───────────────────────── */

@media (max-width: 960px) {
  main {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr auto 1fr;
  }

  .resize-handle {
    width: 100%;
    height: 1rem;
    cursor: row-resize;
    background-color: var(--resize-handle-small-color);
    margin-top: 0;

  }

  .resize-handle.is-resizing {
      background-color: #4caf50 !important;
    }

  .right-panel .buttons {
    padding: 0 .5rem .5rem .5rem;
  }
}
/* ─── Autocomplete dropdown ──────────────────────────────────────────── */

.autocomplete-dropdown {
  display: none;
  position: fixed;
  z-index: 1000;
  background: var(--ac-dropdown-bg);
  border-radius: .3rem;
  box-shadow: 0 .25rem 1rem rgba(0, 0, 0, 0.5);
  min-width: 180px;
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,120,120,0.4) transparent;
}

.autocomplete-dropdown::-webkit-scrollbar {
  width: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.45);
  border-radius: 2px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.75);
}

.autocomplete-item {
  padding: 0.3rem 0.75rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  color: var(--ac-dropdown-color);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.autocomplete-item:hover,
.autocomplete-item.is-selected {
  background: #4caf50;
  color: #fff;
}

.autocomplete-match {
  color: hsl(122, 39%, 60%);
  font-weight: bold;
}

.autocomplete-item.is-selected .autocomplete-match {
  color: #a8d8a8;
}

/* ─── Header button group ────────────────────────────────────────────── */

.header-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Intro button ───────────────────────────────────────────────────── */

#intro-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  background-color: var(--site-color);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s;
  mask-image: url("assets/icons/help.svg");
  -webkit-mask-size: 70%;
  mask-size: 70%;
  mask-repeat: no-repeat;
  mask-position: center;
}

#intro-btn::before {
  display: none;
}

/* ─── Intro overlay ──────────────────────────────────────────────────── */

.intro-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.intro-overlay.is-open {
  display: flex;
}

.intro-content {
  position: relative;
  background: var(--settings-menu);
  color: var(--site-color);
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
  max-width: 840px;
  width: calc(100% - 2rem);
  max-height: 86dvh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  margin: 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(120,120,120,0.4) transparent;
}

.intro-content::-webkit-scrollbar {
  width: 6px;
}

.intro-content::-webkit-scrollbar-track {
  background: transparent;
}

.intro-content::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.45);
  border-radius: 3px;
}

.intro-content::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.75);
}

.intro-content h2 {
  margin: 0 0 1.25rem;
  font-size: 2rem;
}

.intro-content h3 {
  font-size: 1rem;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 1.25rem 0 0.4rem;
}

.intro-content section:first-of-type h3 {
  margin-top: 0;
}

.intro-content p,
.intro-content li {
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 0.4rem;
}

.intro-content ul {
  margin: 0.25rem 0 0;
  padding-left: 2rem;
}
.intro-content a {
  color: inherit;
}

.intro-content code {
  background: rgba(128,128,128,0.25);
  border-radius: 0.25rem;
  padding: 0.1em 0.35em;
  font-size: 0.82rem;
}

.intro-content kbd {
  background: rgba(128,128,128,0.25);
  border-radius: 0.25rem;
  padding: 0.1em 0.4em;
  font-size: 0.8rem;
  font-family: inherit;
  border: 0.0625rem solid rgba(128,128,128,0.4); /* 1px = 0.0625rem  */
}