/* base.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* appearance: none; */
  /* Comment out line-height to avoid overcrowding of text example long headers */
  /* line-height: 1.5rem; */
}

html,
body {
  text-size-adjust: 100%;
  /* 2 */
  font-family: Verdana, sans-serif;
  font-size: 0.9rem;
  width: 100%;
  height: 100%;
  background-color: #F1E9D2;
  /* onyx */
  color: #353839;
  /* jet */
  /* color: #343434;  */
}

@media (prefers-color-scheme: dark) {

  html,
  body {
    background-color: #000;
    color: ivory;
  }
}

/* normalize */

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2rem;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1rem;
  /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1rem;
  /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25rem;
}

sup {
  top: -0.5rem;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  box-sizing: border-box;
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.5;
  /* 1 */
  margin: 0;
  /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  appearance: button;
  -webkit-appearance: none;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625rem;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/* ::-webkit-scrollbar {
  scrollbar-width
  Width of vertical scroll bar
  width: 0.5rem;
  Height of horizontal scroll bar
  height: 0.5rem;
} */

/* ::-webkit-scrollbar-thumb {
  override by scrollbar-color
  border-radius: 0.5rem;
  background: silver; 
} */

* {
  scrollbar-color: silver;
  scrollbar-width: thin;
}

/* card.css */

.card {
  padding: 0.25rem;
  /* width: calc(100vw - (100vw - 100%));
    max-width: calc(100vw - (100vw - 100%)); */
  background-color: #FEFEFA;
  /* border: 0.1rem solid #808080; */
  border-radius: 0.5rem;
  box-shadow: 0 0.8rem 0.5rem -0.5rem rgba(0, 0, 0, 0.2);
}

/* @media only screen and (min-width: 32rem) {
    .card {
        width: 32rem;
        max-width: 32rem;
    }
} */

@media (prefers-color-scheme: dark) {
  .card {
    background-color: rgba(32, 28, 28, 1);
    /* box-shadow: 0 0.8rem 0rem -0.5rem rgba(0, 0, 0, 0.5); */
    box-shadow: none;
  }
}

/* @media only screen and (min-width: 32rem) and (prefers-color-scheme: dark) {
    .card {
        width: 32rem;
        max-width: 32rem;
    }
} */

.card-head {
  padding: 0.5rem;
  /* padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem; */
  border-top-left-radius: 0.8rem;
  border-top-right-radius: 0.8rem;
  /* background-color: #FFFFF0; */
}

@media (prefers-color-scheme: dark) {
  .card-head {
    /* background-color: #483C32; */
  }
}

.card-body {
  padding: 0.5rem;
  /* padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem; */
}

.card-foot {
  padding: 0.5rem;
  /* padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem; */
  border-bottom-left-radius: 0.8rem;
  border-bottom-right-radius: 0.8rem;
}

.border-radius-0 {
  border-radius: 0;
}

.border-radius-0pt25rem {
  border-radius: 0.25rem;
}

.border-radius-0pt5rem {
  border-radius: 0.5rem;
}

.border-radius-1rem {
  border-radius: 1rem;
}

.border-top-left-radius-0 {
  border-top-left-radius: 0;
}

.border-top-right-radius-0 {
  border-top-right-radius: 0;
}

.border-bottom-left-radius-0 {
  border-bottom-left-radius: 0;
}

.border-bottom-right-radius-0 {
  border-bottom-right-radius: 0;
}

.overflow-auto {
  overflow: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.overflow-y-scroll {
  overflow-y: scroll;
}

.overflow-y-hidden {
  overflow-y: hidden;
}

.overflow-x-scroll {
  overflow-x: scroll;
}

.overflow-wrap-normal {
  overflow-wrap: normal;
}

.list-style-none>summary {
  list-style: none;
}

.list-style-none>summary::-webkit-details-marker {
  display: none;
}

/* flex.css */

.flex {
  display: flex;
}

.flex-laid {
  display: flex;
  flex-direction: row;
}

.flex-rise {
  display: flex;
  flex-direction: column;
}

.flex-page-leaf {
  flex: 0 0 100%;
}

@media only screen and (min-width: 32rem) {
  .flex-page-leaf {
    flex: 0 0 50%;
  }
}

@media only screen and (min-width: 75rem) {
  .flex-page-leaf {
    flex: 0 0 calc(100% / 3);
  }
}

.flex-grow-0 {
  flex-grow: 0;
}

.flex-grow-1 {
  flex-grow: 1;
}

.flex-grow-2 {
  flex-grow: 2;
}

.flex-grow-3 {
  flex-grow: 3;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-shrink-1 {
  flex-shrink: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

.cage {
  width: 100%;
  max-width: 100vw;
}

@media only screen and (min-width: 32rem) {
  .cage {
    min-width: 30rem;
    max-width: 30rem;
  }
}

/* .slip-snap-x-mandatory {
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;

  scroll-padding: 2rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  gap: 0.25rem;
}

.slip-snap::-webkit-scrollbar {
  width: 1rem;
  height: 1rem;
}

.slip-snap::-webkit-scrollbar-thumb {
  background: silver;
  border-radius: 1rem;
}

.slip-snap-start {
  scroll-snap-align: start;
}

.slip-snap-center {
  scroll-snap-align: center;
}

.slip-snap-end {
  scroll-snap-align: end;
} */


.slip-pane-cage {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Forces the "snap" behavior */
  width: 100%;
  /* height: 100vh; */
  /* Full viewport height */
  gap: 0.25rem;
  scrollbar-width: none;
  /* Hides scrollbar for Firefox */
  scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome/Safari */
.slip-pane-cage::-webkit-scrollbar {
  display: none;
}

/* Individual Pane Styling */
.slip-pane {
  flex: 0 0 100%;
  /* Ensures each pane takes exactly 100% width */
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  /* Tells the browser where to snap */
  display: flex;
  justify-content: center;
  align-items: center;
  /* font-size: 3rem; */
  /* color: white; */
}

.position-sticky-top {
  position: sticky;
  top: 0;
}

.position-sticky-bottom {
  position: sticky;
  bottom: 0;
}

.position-fixed-top {
  position: fixed;
  top: 0;
  transform: translate3d(0,
      0,
      0);
  /* fix for ios, position fixed is bouncing when zoom on landscape */
}

.position-fixed-bottom {
  position: fixed;
  bottom: 0;
  transform: translate3d(0,
      0,
      0);
  /* fix for ios, position fixed is bouncing when zoom on landscape */
}

.justify-content-center {
  justify-content: center;
}

.align-items-center {
  align-items: center;
}

.float-right {
  float: right;
}

.hide {
  display: none;
}

/* .pack-border {
  border: 0.1rem solid rgba(128, 128, 128, 0.25);
  border-radius: 0.5rem;
  margin: 0.2rem;
} */

.pack-border {
  /* padding-right: 0.25rem; */
}

/* form.css */

input,
textarea {
  border-radius: 0.25rem;
}

input[type='checkbox'] {
  width: 1.2rem;
  height: 1.2rem;
}

/* ### view_menu_cell_form_fill */
form[data-nick='view_menu_cell_form_fill'] input[name='have_name_text']:not(:checked)+input[name='name_text'] {
  display: none;
}

form[data-nick='view_menu_cell_form_fill'] input[name='have_gist_text']:not(:checked)+input[name='gist_text'] {
  display: none;
}

form[data-nick='view_menu_cell_form_fill'] input[name='have_body_text']:not(:checked)+textarea[name='body_text'] {
  display: none;
}

/* ##. view_menu_cell_form_fill */

/* ### view_menu_cell_form_mend */
form[data-nick='view_menu_cell_form_mend'] input[name='have_name_text']:not(:checked)+input[name='name_text'] {
  display: none;
}

form[data-nick='view_menu_cell_form_mend'] input[name='have_gist_text']:not(:checked)+input[name='gist_text'] {
  display: none;
}

form[data-nick='view_menu_cell_form_mend'] input[name='have_body_text']:not(:checked)+textarea[name='body_text'] {
  display: none;
}

/* ##. view_menu_cell_form_mend */

/* ### view_menu_cell_meta_form_fill */
form[data-nick='view_menu_cell_meta_form_fill'] input[name='have_name_text']:not(:checked)+input[name='name_text'] {
  display: none;
}

form[data-nick='view_menu_cell_meta_form_fill'] input[name='have_gist_text']:not(:checked)+input[name='gist_text'] {
  display: none;
}

form[data-nick='view_menu_cell_meta_form_fill'] input[name='have_body_text']:not(:checked)+textarea[name='body_text'] {
  display: none;
}

/* ##. view_menu_cell_meta_form_fill */

/* ### view_menu_cell_meta_form_mend */
form[data-nick='view_menu_cell_meta_form_mend'] input[name='have_name_text']:not(:checked)+input[name='name_text'] {
  display: none;
}

form[data-nick='view_menu_cell_meta_form_mend'] input[name='have_gist_text']:not(:checked)+input[name='gist_text'] {
  display: none;
}

form[data-nick='view_menu_cell_meta_form_mend'] input[name='have_body_text']:not(:checked)+textarea[name='body_text'] {
  display: none;
}

/* ##. view_menu_cell_meta_form_mend */

.textarea-form-feed {
  resize: none;
  outline: none;
}

form .textfeed {
  border: silver solid 0.1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.input-form-feed {
  outline: none;
}

.input-form-feed-border {
  border: lightgray solid 0.1rem;
}

/* icon.css */

.dots-spinner {
  display: flex;
  gap: 5px;
}

.dots-spinner span {
  width: 10px;
  height: 10px;
  background: #3498db;
  border-radius: 50%;
  animation: pulse 1s infinite alternate;
}

.dots-spinner span:nth-child(2) {
  animation-delay: 0.1s;
}

.dots-spinner span:nth-child(3) {
  animation-delay: 0.2s;
}

.progress-bar {
  width: 100%;
  height: 1.5rem;
  background-color: #eee;
  border-radius: 0.5rem;
}

.progress-bar-fill {
  /* Manually set the width here */
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, royalblue, Steelblue);
  border-radius: 0.5rem;
  padding: 0.1rem;
}

.progress-bar-text {
  /* onyx */
  color: ivory;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.5);
    opacity: 0.5;
  }
}


/* knob.css */

.knob {
  cursor: pointer;
  /* text-decoration: none; */

  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;

  font-weight: bold;
  font-size: 0.9rem;
  /* jet black */
  ;
  /* color: #0E0E10; */
  /* jet */
  /* color: #343434; */
  /* onyx */
  /* color: #353839; */
  color: ivory;

  border-radius: 0.5rem;
  /* border: 0.1rem solid lightgray;
  background-color: whitesmoke; */
  /* border: 0.1rem solid #A0522D; */
  border: 0;
  /* background-color: transparent; */
  background-color: #A0522D;

  /* user-select: none; */

  text-wrap: nowrap;
  /* height: 100%; */
}

.knob:hover {
  /* border: 0.1rem solid #E97451; */
  background-color: #CD853F;
}

.knob-line {
  cursor: pointer;
  /* text-decoration: none; */

  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;

  font-weight: bold;
  font-size: 0.9rem;
  /* jet black */
  ;
  /* color: #0E0E10; */
  /* jet */
  /* color: #343434; */
  /* onyx */
  color: #353839;
  /* color: ivory; */

  border-radius: 0.5rem;
  /* border: 0.1rem solid lightgray;
  background-color: whitesmoke; */
  border: 0.1rem solid #A0522D;
  background-color: transparent;
  /* background-color: #A0522D; */

  /* user-select: none; */

  text-wrap: nowrap;
  /* height: 100%; */
}

.knob-line:hover {
  border: 0.1rem solid #CD853F;
  /* background-color: #CD853F; */
}

.knob-text {
  cursor: pointer;
  /* text-decoration: none; */

  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;

  font-weight: bold;
  font-size: 0.9rem;
  /* jet black */
  ;
  /* color: #0E0E10; */
  /* jet */
  /* color: #343434; */
  /* onyx */
  color: #353839;
  /* color: ivory; */

  border-radius: 0.5rem;
  /* border: 0.1rem solid lightgray;
  background-color: whitesmoke; */
  /* border: 0.1rem solid #A0522D; */
  border: 0.1rem solid transparent;
  /* border: 0; */
  background-color: transparent;
  /* background-color: #A0522D; */

  /* user-select: none; */

  text-wrap: nowrap;
  /* height: 100%; */
}

.knob-text:hover {
  border: 0.1rem solid #CD853F;
  /* background-color: #CD853F; */
}

.knob-no-radius {
  cursor: pointer;
  /* text-decoration: none; */

  padding-left: 0.3rem;
  padding-right: 0.3rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  margin: 0.5rem;

  font-size: 0.9rem;
  /* jet black */
  /* color: #0E0E10; */
  /* jet */
  /* color: #343434; */
  /* onyx */
  /* color: #353839; */
  color: ivory;

  /* border: 0.1rem solid lightgray;
  background-color: whitesmoke; */
  border: 0.15rem solid #A0522D;
  background-color: transparent;

  /* user-select: none; */
}

.knob-no-radius:hover {
  border: 0.18rem solid #E97451;
}

@media (prefers-color-scheme: dark) {
  .knob {
    color: ivory;
    /* background-color: lightgray; */
    /* background-color: transparent; */
    background-color: #A0522D;
  }

  .knob-line {
    color: ivory;
    /* background-color: lightgray; */
    background-color: transparent;
    /* background-color: #A0522D; */
  }

  .knob-text {
    color: ivory;
    /* background-color: lightgray; */
    background-color: transparent;
    /* background-color: #A0522D; */
  }

  .knob-no-radius {
    color: ivory;
    /* background-color: lightgray; */
    background-color: transparent;
  }
}

.knob-subs {
  background-color: saddlebrown;
  color: ivory;
}

.knob-subs:hover {
  background-color: #a0522d;
}

.knob-info {
  background-color: steelblue;
  color: ivory;
}

.knob-info:hover {
  background-color: lightblue;
}

.knob-warn {
  background-color: goldenrod;
  color: #353839;
}

.knob-warn:hover {
  background-color: #ffd700;
}

.knob-dire {
  /* lightcoral */
  /* background-color: #f08080; */
  /* background-color: crimson; */
  background-color: #b22222;
  /* jet black */
  /* color: #0E0E10; */
  /* jet */
  /* color: #343434; */
  /* onyx */
  /* color: #353839; */
  color: ivory;
}

.knob-dire:hover {
  background-color: #de3163;
  /* background-color: lightcoral; */
}

.knob-good {
  background-color: forestgreen;
  color: ivory;
}

.knob-good:hover {
  background-color: limegreen;
}

.knob-base {
  background-color: slategray;
  color: ivory;
}

.knob-base:hover {
  background-color: #99aab5;
}

.knob:disabled {
  background-color: lightgray;
  /* lightcoral */
  /* color: dimgray; */
  color: #333333;
  /* jet black */
  /* color: #343434; */
  /* jet */
  cursor: not-allowed;
  pointer-events: none;
  /* Prevents hover effects and clicks entirely */
}

.knob-line:disabled {
  /* background-color: lightgray; */
  /* lightcoral */
  /* color: dimgray; */
  color: #333333;
  /* jet black */
  /* color: #343434; */
  /* jet */
  cursor: not-allowed;
  pointer-events: none;
  /* Prevents hover effects and clicks entirely */
}

.knob-text:disabled {
  /* background-color: lightgray; */
  /* lightcoral */
  /* color: dimgray; */
  color: #333333;
  /* jet black */
  /* color: #343434; */
  /* jet */
  cursor: not-allowed;
  pointer-events: none;
  /* Prevents hover effects and clicks entirely */
}

/* line.css */

.line-rise {
  border-left: 0.15rem solid darkgray;
}

.line-rise-mute {
  border-left: 0.15rem solid lightgray;
}

.line-rise-dash-mute {
  border-left: 0.15rem dotted lightgray;
}

.line-laid {
  border-top: 0.15rem solid darkgray;
}

.line-laid-mute {
  border-top: 0.15rem solid lightgray;
}

.line-laid-dash-mute {
  border-top: 0.15rem dotted lightgray;
}

@media (prefers-color-scheme: dark) {

  .line-rise {
    border-left: 0.15rem solid lightgray;
  }

  .line-rise-mute {
    border-left: 0.15rem solid darkgray;
  }

  .line-rise-dash-mute {
    border-left: 0.15rem dotted darkgray;
  }

  .line-laid {
    border-top: 0.15rem solid lightgray;
  }

  .line-laid-mute {
    border-top: 0.15rem solid darkgray;
  }

  .line-laid-dash-mute {
    border-top: 0.15rem dotted darkgray;
  }
}

/* list.css */

.list-item {
  /* flex-grow: 2; */
}

.list-item ul {
  list-style: none;
  padding: 0;
}

.list-item li {
  display: block;
}

/* .list-item li a {
    display: block;
    text-decoration: none;
}

.list-item li a:hover {
    border: 0.1rem solid saddlebrown;
} */

.list-item:has(~ .list-item-info:target),
.list-view:has(~ .list-item-info:target),
.page-head:has(~ .list-item-info:target),
.page-info:has(~ .list-item-info:target) {
  display: none;
}

.list-item:has(~ .list-item-view:target),
.list-info:has(~ .list-item-view:target),
.page-head:has(~ .list-item-view:target),
.page-info:has(~ .list-item-view:target) {
  display: none;
}

/* Detail View Logic */

.list-item-view {
  /* flex-grow: 3; */
}

/* 
   THE MAGIC:
   By default, all .detail-content items are hidden via the inline style.
   We use :target to show the specific one matching the URL fragment.
*/
/* 1. Hide ALL detail sections by default */
.list-item-info {
  display: none;
}

/* 2. Only show the one that matches the URL hash (e.g., #item1) */
.list-item-info:target {
  display: block;
}

/* Optional: Add a smooth fade in when switching items */
.list-item-info:target {
  animation: fadeIn 0.3s;
}

.list-item-view {
  display: none;
}

/* 2. Only show the one that matches the URL hash (e.g., #item1) */
.list-item-view:target {
  display: block;
}

/* Optional: Add a smooth fade in when switching items */
.list-item-view:target {
  animation: fadeIn 0.3s;
}

/* move.css */

.text-wink {
  animation: move-text-wink 1.5s infinite;
}

@keyframes move-text-wink {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  90% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes beat {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* size.css */

.w-100pc {
  width: 100%;
}

.w-20pc {
  width: 20%;
}

.w-0pt25rem {
  width: 0.25rem;
}

.w-0pt5rem {
  width: 0.5rem;
}

.w-1rem {
  width: 1rem;
}

.w-1pt5rem {
  width: 1.5rem;
}

.w-8rem {
  width: 8rem;
}

.w-plus-0pt1rem {
  width: calc(100% + 0.1rem);
}

.w-100vw {
  width: 100vw;
}

.min-w-20pc {
  min-width: 20%;
}

.min-w-16rem {
  min-width: 16rem;
}

.min-w-32rem {
  min-width: 32rem;
}

.max-w-16rem {
  max-width: 16rem;
}

.max-w-100vw {
  max-width: 100vw;
}

.max-w-100pc {
  max-width: 100%;
}

.w-90vw-32rem {
  width: 90vw;
  min-width: 90vw;
  max-width: 90vw;
}

@media only screen and (min-width: 24rem) {

  .w-90vw-32rem {
    width: 24rem;
    min-width: 24rem;
    max-width: 24rem;
  }
}

.min-w-100vw {
  min-width: 100vw;
}

.h-25pc {
  height: 25%;
}

.h-50pc {
  height: 50%;
}

.h-100pc {
  height: 100%;
}

.h-100vh {
  height: 100vh;
}

.h-100dh {
  height: 100dvh;
}

.h-100svh {
  height: 100svh;
}

.h-0pt25rem {
  height: 0.25rem;
}

.h-0pt5rem {
  height: 0.5rem;
}

.h-1rem {
  height: 1rem;
}

.h-1pt5rem {
  height: 1.5rem;
}

.h-2rem {
  height: 2rem;
}

.h-2pt5rem {
  height: 2.5rem;
}

.min-h-1rem {
  min-height: 1rem;
}

.min-h-1pt5rem {
  min-height: 1.5rem;
}

.min-h-2rem {
  min-height: 2rem;
}

.min-h-8rem {
  min-height: 8rem;
}

.max-h-45vh {
  max-height: 45vh;
}

.max-h-100vh {
  max-height: 100vh;
}

.max-h-50pc {
  max-height: 50%;
}

.max-h-100pc {
  max-height: 100%;
}

.max-h-8-16-24rem {
  max-height: 8rem;
}

@media only screen and (max-height: 24rem) {

  .max-h-8-16-24rem {
    max-height: 16rem;
  }
}

@media only screen and (min-height: 32rem) {

  .max-h-8-16-24rem {
    max-height: 24rem;
  }
}

/* text.css */

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.3rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.2rem;
}

.font-bold {
  font-weight: bold;
}

.font-size-nano {
  font-size: 0.5rem;
}

.font-size-tiny {
  font-size: 0.7rem;
}

.font-size-mini {
  font-size: 0.8rem;
}

.font-size-norm {
  font-size: 0.95rem;
}

.font-size-bulk {
  font-size: 1.2rem;
}

.font-size-hulk {
  font-size: 1.5rem;
}

.font-size-huge {
  font-size: 2rem;
}

.font-size-vast {
  font-size: 3rem;
}

.cell-item-text {
  background-color: #f5f5f5;
  /* whitesmoke */
}

@media (prefers-color-scheme: dark) {
  .cell-item-text {
    background-color: rgba(64, 48, 48, 1);
  }
}

.btn-link {
  text-decoration: none;
}

/* unvisited link */
a:link {
  color: royalblue;
}

/* mouse over link */
a:hover {
  color: mediumslateblue;
}

/* selected link */
a:active {
  color: slateblue;
}

/* visited link */
a:visited {
  color: darkslateblue;
}

@media (prefers-color-scheme: dark) {

  /* unvisited link */
  a:link {
    color: cornflowerblue;
  }

  /* mouse over link */
  a:hover {
    color: deepskyblue;
  }

  /* selected link */
  a:active {
    color: mediumslateblue;
  }

  /* visited link */
  a:visited {
    color: blueviolet;
  }
}

.text-logo-link {
  font-weight: bold;
  font-size: 1.25rem;
}

.text-logo-link:link {
  /* sienna */
  color: #A0522D;
  text-decoration: none;
}

.text-logo-link:hover {
  /* sienna */
  color: #A0522D;
  cursor: pointer;
}

/* selected link */
.text-logo-link:active {
  /* sienna */
  color: #A0522D;
  cursor: pointer;
}

/* visited link */
.text-logo-link:visited {
  /* sienna */
  color: #A0522D;
}

.text-link {
  /* text-decoration: none; */
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-tone {
  /* jet black */
  /* color: #0E0E10; */
  /* jet */
  /* color: #343434; */
  /* onyx */
  color: #353839;
}

@media (prefers-color-scheme: dark) {
  .font-tone {
    color: ivory;
  }
}

.text-mute {
  color: gray;
}

@media (prefers-color-scheme: dark) {
  .text-mute {
    color: silver;
  }
}

.text-subs {
  color: saddlebrown;
}

.text-good {
  color: forestgreen;
}

.text-dire {
  color: crimson;
}

.text-info {
  color: steelblue;
}

.text-warn {
  color: goldenrod;
}

.text-base {
  color: slategray;
}

.text-align-center {
  text-align: center;
}

.text-wrap-no-wrap {
  text-wrap: nowrap;
}

.text-wrap-wrap {
  text-wrap: wrap;
}

.keep-space-newline {
  white-space: break-spaces;
}

.keep-space-no-wrap {
  white-space: nowrap;
}

.keep-space-pre {
  white-space: pre;
}

.word-wrap {
  word-wrap: break-word;
  word-break: break-all;
}

.readonly {
  pointer-events: none;
}

/* tone.css */

.tone-main {
  /* Sienna (X11 web colour) */
  color: #A0522D;
  /* brown sugar */
  /* color: #AF6E4D; */
}

.tone-main-more {
  /* Sienna */
  color: #882D17;
}

.tone-main-pale {
  /* Raw sienna */
  color: #965434;
}

.tone-main-pale-more {
  /* Burnt sienna pigment (Maerz and Paul) */
  color: #E97451;
}

.tone-main-dark {
  /* Burnt sienna */
  color: #623034;
}

.tone-main-dark-more {
  /* Dark sienna */
  color: #3C1414;
}

.tone-rear-main {
  /* Sienna (X11 web colour) */
  background-color: #A0522D;
  /* brown sugar */
  /* color: #AF6E4D; */
}

.tone-rear-main-more {
  /* Sienna */
  background-color: #882D17;
}

.tone-rear-main-pale {
  /* Raw sienna */
  background-color: #965434;
}

.tone-rear-main-pale-more {
  /* Burnt sienna pigment (Maerz and Paul) */
  background-color: #E97451;
}

.tone-rear-main-dark {
  /* Burnt sienna */
  background-color: #623034;
}

.tone-rear-main-dark-more {
  /* Dark sienna */
  background-color: #3C1414;
}

.base-rear-tone {
  background-color: #F1E9D2;
}

@media (prefers-color-scheme: dark) {
  .base-rear-tone {
    background-color: black;
  }
}

.card-rear-tone {
  background-color: #fefefa;
}

@media (prefers-color-scheme: dark) {
  .card-rear-tone {
    background-color: rgba(32, 28, 28, 1);
  }
}

.rear-tone-font-tone {
  /* onyx */
  background-color: #353839;
}

@media (prefers-color-scheme: dark) {
  .rear-tone-font-tone {
    background-color: ivory;
  }
}

/* void.css */

.m-0 {
  margin: 0;
}

.m-0-auto {
  margin: 0 auto;
}

.m-0pt25rem {
  margin: 0.25rem;
}

.m-0pt5rem {
  margin: 0.5rem;
}

.m-1rem {
  margin: 1rem;
}

.mx-0pt25rem {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-0pt5rem {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-1rem {
  margin-left: 1rem;
  margin-right: 1rem;
}

.my-0pt25rem {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.my-0pt5rem {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-1rem {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.my-2rem {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.ml-0 {
  margin-left: 0;
}

.ml-0pt25rem {
  margin-left: 0.25rem;
}

.ml-0pt5rem {
  margin-left: 0.5rem;
}

.ml-1rem {
  margin-left: 1rem;
}

.mr-0pt25rem {
  margin-right: 0.25rem;
}

.mr-0pt5rem {
  margin-right: 0.5rem;
}

.mr-1rem {
  margin-right: 1rem;
}

.mt-less-0pt25rem {
  margin-top: -0.25rem;
}

.mt-less-0pt5rem {
  margin-top: -0.5rem;
}

.mt-0pt25rem {
  margin-top: 0.25rem;
}

.mt-0pt5rem {
  margin-top: 0.5rem;
}

.mt-1rem {
  margin-top: 1rem;
}

.mt-1pt5rem {
  margin-top: 1.5rem;
}

.mt-2rem {
  margin-top: 2rem;
}

.mb-0pt25rem {
  margin-bottom: 0.25rem;
}

.mb-0pt5rem {
  margin-bottom: 0.5rem;
}

.mb-1rem {
  margin-bottom: 1rem;
}

.mb-2rem {
  margin-bottom: 2rem;
}

.p-0 {
  padding: 0;
}

.p-0pt25rem {
  padding: 0.25rem;
}

.p-0pt5rem {
  padding: 0.5rem;
}

.p-1rem {
  padding: 1rem;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}

.px-0pt25rem {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-0pt25rem {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-0pt5rem {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-1rem {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}

.py-0pt25rem {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-0pt5rem {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-1rem {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pl-0pt25rem {
  padding-left: 0.25rem;
}

.pl-0pt5rem {
  padding-left: 0.5rem;
}

.pl-1rem {
  padding-left: 1rem;
}

.pl-1pt5rem {
  padding-left: 1.5rem;
}

.pr-0pt25rem {
  padding-right: 0.25rem;
}

.pr-0pt5rem {
  padding-right: 0.5rem;
}

.pr-1rem {
  padding-right: 1rem;
}

.pr-1pt5rem {
  padding-right: 1.5rem;
}

.pt-0pt5rem {
  padding-top: 0.5rem;
}

.pt-1rem {
  padding-top: 1rem;
}

.pb-1rem {
  padding-bottom: 1rem;
}