:root {
  /* Backgrounds */
  --bg-primary:     #0B1C26; /* Deep indigo night */
  --bg-secondary:   #102A3A; /* Wave shadow blue */
  --bg-tertiary:    #1B1E27; /* Inked night (less purple, more sumi) */

  /* Text */
  --text-primary:   #E6E3DA; /* Washi paper */
  --text-secondary: #BCC6CC; /* Cool mist */
  --text-muted:     #8E9EA8; /* Fogged distance */

  /* Links & Blues */
  --link-primary:   #6E8FA1; /* Weathered Prussian blue */
  --accent-teal:    #3A8C8B; /* Sea foam (kept) */
  --accent-ink:     #1A3D5A; /* Indigo ink (kept) */

  /* Reds (Ukiyo-e inspired) */
  --accent-red:     #C1362F; /* Beni / vermilion (less neon) */
  --accent-red2:    #B85C6A; /* Muted rose red */
  --accent-rust:    #8F4638; /* Iron oxide */

  /* Highlights */
  --highlight-foam: #8FBFA0; /* Aged sea foam */
  --highlight-sand: #D8A24A; /* Edo parchment gold */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;
    font-size: 1.1rem;
    line-height: 1.5rem;  
}

a {
    color: var(--link-primary);
    text-decoration: none;
}
  
a:hover {
    color: var(--highlight-sand);
}

a.missing-link {
    color: var(--accent-red);
    font-style: italic;
}

a.missing-link:hover {
    color: var(--accent-rust);
}

p.subject:before {
  content: " => ";
  color: var(--accent-red2);

}

h1.title:before {
  content: "> ";
  color: var(--accent-red2);
  font-size: 18px;
  vertical-align: middle;
  font-weight: bold;

}


table.header tr td {
 border: none;
 position: relative;
 padding-left: 5%;
 padding-bottom: 5px;
 display: block;
}

.header-text {
 display: none;
}

a.marktask,
a.markread,
table.header a {
  color: var(--accent-red2);
  text-decoration: none;
}

a.marktask:hover,
a.markread:hover,
table.header a:hover {
  color: var(--highlight-sand);
}

table.header td.ok a {
  color: #35ce84
}

div.header {
    margin: -8px;
}

@media only screen and (max-width: 767px) {

  div.header {
      margin: -12px;
  }
}

table.header {
  width: 100%;
  font-weight: bold;
  padding-top: 3px;
}

table.table0 {
  background: var(--bg-secondary);
  font-size: 16px;
}

table.table1 {
  background: var(--bg-tertiary);
  padding-top: 6px;
}

div.r3-content {
  padding-top: 20px;
}

div.r3-content div.r3-rss {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
}

div.r3-content div.r3-rss input[type="text"] {
  width: 80%;
  padding: 7px;
  font-size: 1.1rem;
  font-family: Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;
}


h1.title {
  padding-bottom: 15px;
}


div.r3-content img,
div.image img {
  max-width:100%;
}

div.create input {
  background-color: #609543;
  color: white;
  border: none;
  padding: 10px;
  font-weight: bold;
}

div.remove input {
  background-color: #682020;
  color: white;
  border: none;
  padding: 10px;
  font-weight: bold;
}

@media only screen and (min-width: 768px) {

  table.header tr td {
    display: table-cell !important;
    padding-left: 10px;
  }

  .header-text {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) {

  table.header tr td {
    display: table-cell !important;
    padding: 15px 20px;
    text-align: center;
  }

  .header-text {
    display: inline !important;
  }
}

span.feed {
  color: var(--highlight-foam);
  font-weight: bold;
}

a.markread {
  font-weight: bold;
}

ul.folder {
  list-style-type: none;
  line-height: 1.8rem;
  letter-spacing: 1px;
}

/* Set editor dimensions */
#editor {
    height: 500px;
    width: 100%;
}

/* Stretch editor to fit inside its containing div */
.cm-editor {
    height: 100%;
    width: 100%;
}

.viewer_content .highlight {
  padding: 5px;
  padding-left:1%;
  margin: 10px;
  background-color: #302d3e;
  border-left: 5px var(--highlight-foam) solid;
  border-radius: 10px;
}

.viewer_content h1:after,
.viewer_content h2:after, 
.viewer_content h3:after {
  content: "";
  display: block;
  border-bottom: 2px solid var(--accent-red1);
  margin-top: 0.5em;
}

.viewer_content pre { line-height: 125%; }
.viewer_content td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
.viewer_content span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
.viewer_content td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.viewer_content span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.viewer_content .hll { background-color: #ffffcc }
.viewer_content .c { color: #3D7B7B; font-style: italic } /* Comment */
.viewer_content .err { border: 1px solid #F00 } /* Error */
.viewer_content .k { color: #008000; font-weight: bold } /* Keyword */
.viewer_content .o { color: #666 } /* Operator */
.viewer_content .ch { color: #3D7B7B; font-style: italic } /* Comment.Hashbang */
.viewer_content .cm { color: #3D7B7B; font-style: italic } /* Comment.Multiline */
.viewer_content .cp { color: #9C6500 } /* Comment.Preproc */
.viewer_content .cpf { color: #3D7B7B; font-style: italic } /* Comment.PreprocFile */
.viewer_content .c1 { color: #3D7B7B; font-style: italic } /* Comment.Single */
.viewer_content .cs { color: #3D7B7B; font-style: italic } /* Comment.Special */
.viewer_content .gd { color: #A00000 } /* Generic.Deleted */
.viewer_content .ge { font-style: italic } /* Generic.Emph */
.viewer_content .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.viewer_content .gr { color: #E40000 } /* Generic.Error */
.viewer_content .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.viewer_content .gi { color: #008400 } /* Generic.Inserted */
.viewer_content .go { color: #717171 } /* Generic.Output */
.viewer_content .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.viewer_content .gs { font-weight: bold } /* Generic.Strong */
.viewer_content .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.viewer_content .gt { color: #04D } /* Generic.Traceback */
.viewer_content .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.viewer_content .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.viewer_content .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.viewer_content .kp { color: #008000 } /* Keyword.Pseudo */
.viewer_content .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.viewer_content .kt { color: #B00040 } /* Keyword.Type */
.viewer_content .m { color: #666 } /* Literal.Number */
.viewer_content .s { color: #d35f5f } /* Literal.String */
.viewer_content .na { color: #687822 } /* Name.Attribute */
.viewer_content .nb { color: #008000 } /* Name.Builtin */
.viewer_content .nc { color: #00F; font-weight: bold } /* Name.Class */
.viewer_content .no { color: #800 } /* Name.Constant */
.viewer_content .nd { color: #A2F } /* Name.Decorator */
.viewer_content .ni { color: #717171; font-weight: bold } /* Name.Entity */
.viewer_content .ne { color: #CB3F38; font-weight: bold } /* Name.Exception */
.viewer_content .nf { color: #00F } /* Name.Function */
.viewer_content .nl { color: #767600 } /* Name.Label */
.viewer_content .nn { color: #00F; font-weight: bold } /* Name.Namespace */
.viewer_content .nt { color: #008000; font-weight: bold } /* Name.Tag */
.viewer_content .nv { color: #6F6CF0 } /* Name.Variable */
.viewer_content .ow { color: #A2F; font-weight: bold } /* Operator.Word */
.viewer_content .w { color: #BBB } /* Text.Whitespace */
.viewer_content .mb { color: #666 } /* Literal.Number.Bin */
.viewer_content .mf { color: #666 } /* Literal.Number.Float */
.viewer_content .mh { color: #666 } /* Literal.Number.Hex */
.viewer_content .mi { color: #666 } /* Literal.Number.Integer */
.viewer_content .mo { color: #666 } /* Literal.Number.Oct */
.viewer_content .sa { color: #d35f5f } /* Literal.String.Affix */
.viewer_content .sb { color: #d35f5f } /* Literal.String.Backtick */
.viewer_content .sc { color: #d35f5f } /* Literal.String.Char */
.viewer_content .dl { color: #d35f5f } /* Literal.String.Delimiter */
.viewer_content .sd { color: #d35f5f; font-style: italic } /* Literal.String.Doc */
.viewer_content .s2 { color: #d35f5f } /* Literal.String.Double */
.viewer_content .se { color: #AA5D1F; font-weight: bold } /* Literal.String.Escape */
.viewer_content .sh { color: #d35f5f } /* Literal.String.Heredoc */
.viewer_content .si { color: #A45A77; font-weight: bold } /* Literal.String.Interpol */
.viewer_content .sx { color: #008000 } /* Literal.String.Other */
.viewer_content .sr { color: #A45A77 } /* Literal.String.Regex */
.viewer_content .s1 { color: #d35f5f } /* Literal.String.Single */
.viewer_content .ss { color: #19177C } /* Literal.String.Symbol */
.viewer_content .bp { color: #008000 } /* Name.Builtin.Pseudo */
.viewer_content .fm { color: #00F } /* Name.Function.Magic */
.viewer_content .vc { color: #19177C } /* Name.Variable.Class */
.viewer_content .vg { color: #19177C } /* Name.Variable.Global */
.viewer_content .vi { color: #19177C } /* Name.Variable.Instance */
.viewer_content .vm { color: #19177C } /* Name.Variable.Magic */
.viewer_content .il { color: #666 } /* Literal.Number.Integer.Long */

.mention {
  color: var(--highlight-sand);
  font-weight: bold;
}
