:root { 
    /* ----- The app fonts are here so they can be used in the html editor. */
    --font-serif: georgia,"times new roman",times,serif;

    --font-sans-serif: Verdana, Helvetica, sans-serif; 
    /* --font-sans-serif-system: system-ui, Verdana, Helvetica, sans-serif;  */

    --font-serif-size-standard: 19px;

    --font-sans-serif-size-standard: 17px; 

    --font-sans-serif-size-h1: 24px; 
    --font-sans-serif-size-h2: 18px;  
    --font-sans-serif-size-h3: 16px;  
    --font-sans-serif-size-h4: 15px;  

    --font-sans-serif-weight-h2: 600; 
    --font-sans-serif-weight-h3: 600; 
    --font-sans-serif-weight-h4: 600; 
    
    /* ----- The five node types ----- */
    /* These variables are also used by PtrTextEditor.css. ========================== */
    --bg-color-claim:  #cca4cd; /* Light purple */ 
    --bg-color-intcon: #ffcccc; /* Light orange pink */
    --bg-color-rule:   #ffff7f; /* 50% yellow */
    --bg-color-fact:   #c9e9de; /* Light green */
    --bg-color-rclaim: #c1e8ff; /* Light neon blue */
    --bg-color-truth:  #ebebeb; /* Very light gray. This is 10% gray. */
    --bg-color-deception-pattern: #ffdada; /* Light pink to indicate danger. */

    /* These are used only in this file. ============================== */
    --bg-color-rule-lighter: #ffffdd;   /* Lighter than 50% yellow, for map node header. */
    --bg-color-rule-darker:  #e3e300;   /* Darker than 50% yellow, for markup border. */
    --bg-color-truth-type-bkg: #d0cece; /* A slightly darker gray, for mark type background. */
    --bg-color-truth-border: #b0b0b0;   /* Light medium gray, for text border. */

    --bg-color-articles-header: #4e89c1; /* Lighter than selected tab, which is medium dark blue. */
    --bg-color-editor-toolbar:  #f3f5f7; /* Slightly darker than GhostWhite, more blue. */

    --bg-color-pattern-mark:  #ffb19d; /* Medium red orange. */
}
/* Claims and ICs have no database text. */
.arg-mark-claim .arg-mark-type, .arg-mark-button-claim { background: var(--bg-color-claim); }
.arg-mark-claim .arg-mark-type                       { border-color: var(--bg-color-claim); }
.arg-mark-claim .arg-mark-text                       { border-color: var(--bg-color-claim); }

.arg-mark-intcon .arg-mark-type, .arg-mark-button-intcon { background: var(--bg-color-intcon); }
.arg-mark-intcon .arg-mark-type                        { border-color: var(--bg-color-intcon); }
.arg-mark-intcon .arg-mark-text                        { border-color: var(--bg-color-intcon); }

.arg-mark-rule .arg-mark-type, .arg-mark-button-rule { background: var(--bg-color-rule); }
.arg-mark-rule .arg-mark-type                      { border-color: var(--bg-color-rule-darker); }
.arg-mark-rule .arg-mark-text                      { border-color: var(--bg-color-rule-darker); }
.arg-mark-rule .arg-mark-database                  { border-color: var(--bg-color-rule-darker); }

.arg-mark-fact .arg-mark-type, .arg-mark-button-fact { background: var(--bg-color-fact); }
.arg-mark-fact .arg-mark-type                      { border-color: var(--bg-color-fact); }
.arg-mark-fact .arg-mark-text                      { border-color: var(--bg-color-fact); }
.arg-mark-fact .arg-mark-database                  { border-color: var(--bg-color-fact); }

.arg-mark-rclaim .arg-mark-type, .arg-mark-button-rclaim { background: var(--bg-color-rclaim); }
.arg-mark-rclaim .arg-mark-type                          { border-color: var(--bg-color-rclaim); }
.arg-mark-rclaim .arg-mark-text                          { border-color: var(--bg-color-rclaim); }
.arg-mark-rclaim .arg-mark-database                      { border-color: var(--bg-color-rclaim); }

.arg-mark-truth .arg-mark-type                          { background: var(--bg-color-truth-type-bkg); } 
.arg-mark-button-truth                                  { background: var(--bg-color-truth); }
.arg-mark-truth .arg-mark-type                          { border-color: var(--bg-color-truth-type-bkg); }
.arg-mark-truth .arg-mark-text                          { border-color: var(--bg-color-truth-border); }
.arg-mark-truth .arg-mark-database                      { border-color: var(--bg-color-truth-border); }

/* .arg-mark-button-rule { background: var(--bg-color-rule-lighter); } */

.mce-content-body {
    font-size: 16px;
}

/* ----- Markup ----- */
.arg-mark-type, .arg-mark-database, .arg-mark-text { 
    border-width: 2px; border-style: solid; border-left: none;
    border-top: none; /* Test to see how no box looks. Looks better so use it. */
}
.arg-mark-database { color: gray; display: none; } /* The color of marked node database text. */

/* ----- Deception pattern marks #ff8466 ----------------------------------------  */
/* .trs-pattern-mark {
    
} */
.trs-editor-pattern-structure {
    margin: 15px 30px;
    padding: 10px;

    font-family: var(--font-sans-serif);
    text-align: center;
    /* color: white; */

    border: 2px solid #b90000; /* Red black */
    border-radius: 30px;
    /* background-color: #e14646;  */
    /* background-color: #d45050;; /* Light red black */
    background-color: var(--bg-color-deception-pattern);
}
.trs-patterns-middlepanel-pattern-structure {
    margin: 5px 15px;
    padding: 5px;
    
    font-family: var(--font-sans-serif);
    text-align: center;
    /* color: white; */
    font-size: 13px;
    font-weight: normal;

    border: 1px solid gray;
    border-radius: 20px;
    /* background-color: #d45050; /* Darker red black than in description. */
    background-color: var(--bg-color-deception-pattern);
}
.trs-articles-panel-current .trs-patterns-middlepanel-pattern-structure {
    /* Light pink 2px border to avoid chromostereopsis due to red box on green background. 
    See: https://www.cdgi.com/2016/07/design-lesson-vibrating-color-theory/  */
    /* border: 2px solid #ffd3d3;  */
    color: black;
}
.trs-editor-pattern-rule {
    margin-top: 35px;
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
    color: blue;
    background-color: #feffe3;
    padding: 3px 2px 3px 8px;
    border: 1px solid gray;
    /* border-radius: 15px; */
    border-bottom-left-radius: unset;
    border-bottom-right-radius: unset;
}
.trs-editor-pattern-rule::before {
    content: 'RULE - ';
    color: #8f8ebd; /* Medium blue gray */
}
/* .trs-editor-pattern-rule > * {  Ignored, I don't know why. 
    margin-left: 20px;
} */
.trs-editor-special-phrase {
    font-weight: 600;
    color: blue;
}
.trs-editor-special-pretitle, .trs-editor-special-subtitle {
    text-align: center;
    font-weight: 600;
    font-size: 21px;
}
.trs-editor-special-subtitle {
    margin-top: -20px;
    margin-bottom: 30px;
}
.trs-editor-pattern-arrow-white {
    width: 69px;
    height: 24px;
    background: url(PatternRightArrowBlack.png) center no-repeat;
}
.trs-editor-pattern-arrow-black {
    width: 69px;
    height: 24px;
    background: url(PatternRightArrowBlack.png) center no-repeat;
}
.trs-pattern-mark-name, .trs-pattern-mark-text, .trs-pattern-mark-comment {
    padding: 0 6px 1px 6px;
    border-right:  2px solid var(--bg-color-pattern-mark);
    border-bottom: 2px solid var(--bg-color-pattern-mark);
}
.trs-pattern-mark-name {
    font-weight: bold;
    cursor: default;
    background-color: var(--bg-color-pattern-mark);
    /* background-color: #ffb19d; 
    border-right: 2px solid #ffb19d; */
}
/* .trs-pattern-mark-text {

} */
.trs-pattern-mark-comment {
    color: gray;
}
.trs-pattern-mark-highlight .trs-pattern-mark-name {
    background-color: yellow;
}
/* ----- Top Button bar ----- */
.trs-editor-buttonbar {
    background-color: var(--bg-color-editor-toolbar);
    display: none; /* So doesn't flash when page first shown. */
    max-height: 0;
    transition: max-height 1s ease;
}
.arg-mark-button {
    font-family: var(--font-sans-serif);
    font-size: 15px;
    padding: 3px 8px;
    border: 1px solid gray;
    border-top: 1px solid darkgreen;
    cursor: default;
    /* display: inline-block; */
}
/* .arg-mark-button:hover {
    background-color: DodgerBlue; 
    color: white;
} */
.arg-mark-button:active {
    background-color: rgb(0, 111, 221);
    padding-left: 9px;
    padding-right: 7px;
}
.arg-mark-page-number, .arg-mark-rclaim-status {
    margin: auto 0 auto 13px;
    display: inline-block;
    font-size: 12px;
}
/* .arg-mark-rclaim-status {
    margin: auto 0 auto 13px;
    display: inline-block;
    font-size: 12px;
} */
/* ----- TinyMCE ----- */
.mce-container {
    border-width: 0;
}
/* 
Note that .mce-content-body is not requied, since an iframe is used. Can remmove it. ===================
But when claim-check articles are published, we will need a wrapper class. So keep it but rename it. 
*/
.mce-content-body body {
    margin: 5px 10px 20px 10px;
}
.mce-content-body  h1, .mce-content-body  h2, .mce-content-body  h3, .mce-content-body  h4,
.mce-content-body  h5, .mce-content-body  h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    /* margin: 40px 0 10px 0; */
    padding: 0;
} /* h1 is modeled after the NYTimes.  */
.mce-content-body  h1 { font-size: 2.125em; margin: 0 0 10px 0; }
.mce-content-body  h2 { font-size:  1.5em; font-family: var(--font-sans-serif); margin-top: 35px; }
.mce-content-body  h3 { font-size:  1.2em; font-family: var(--font-sans-serif); margin: 30px 0 0 0; }
.mce-content-body  h4 { font-size:  1.1em; }
.mce-content-body  h5 { font-size:  1.0em; }
.mce-content-body  h6 { font-size:  1.0em; font-family: var(--font-sans-serif); }

.mce-content-body p, .mce-content-body  blockquote, .mce-content-body  li {
    font-family: var(--font-serif);
    font-size: 17px;   
    line-height: 22px; /* To get markup lines to touch perfectly. */
    margin: 15px 0 15px 0; /* 10px on right for scrollbar. */
    padding: 0;
    font-family: georgia,"times new roman",times,serif; /* Required for unknown reasons. */
}
.mce-content-body  blockquote {
    font-style: italic;
    /* line-height: 1.6em; /* Causes marked node lines to not touch. */
    margin: 15px 30px;
    /* padding: 10px; */
}
/* .mce-content-body .twitter-tweet {

} */
.mce-content-body  pre {
    font-family: Consolas, Menlo, Monaco, "Courier New", monospace;
    font-size: 14px;
    margin: 15px 30px;
    padding: 10px;
    /* line-height: 1.5em; */
    background-color: GhostWhite;
    display: block;
    white-space: pre-wrap;
}
.mce-content-body  figure {
    margin: 0;
}
/* .mce-content-body  a:link {
    text-decoration-line: none;
} */
/* Margin set is better than none, but improperly aligned if align left. ============= */
.mce-content-body img {
    margin: 5px; 
    max-width: 100%;
    height: auto;
}
.trs-image-responsive {
    /* margin: 4px 5px 5px 5px; */
    max-width: 100%;
    height: auto;
}
/* ----- Redactor - NO LONGER NEEDED ------ */
.redactor-box {
    margin: 0;
    padding: 0; /* 0 0 10px; /* None on right due to vertical scrollbar. */
    background: white;
    /* border: 1px solid LightGray; */
    border: none;
    /* display: flex;
    flex-direction: column; */
}
.redactor-focus { /* Can't see this is doing anything. ==================  */
    border-color: #82b7ec; 
}
.redactor-toolbar {
    padding: 5px 10px 1px 10px;
    background-color: var(--bg-color-editor-toolbar);
    border-bottom: 1px solid lightgray;
}
.redactor-toolbar a, .redactor-air a {
    cursor: default;
}
.redactor-dropdown a  {
    padding: 5px 8px;
}
.redactor-toolbar a.re-button-icon, .redactor-air a.re-button-icon {
    padding: 6px 10px 3px 10px;
}
/*  Let's hope the toolbar is not needed elsehere. This is shown on click image, not needed. 
    Using pointer-events: none; causes resize handle to not appear. */
.redactor-context-toolbar {
    opacity: 0;
    /* pointer-events: none; */
}
.redactor-dropdown {
    max-height: 500px;    
}
/* ----- Markup in the article ----- */
/* ----- Marked node type and text ----- */
.arg-mark-type {
    padding-bottom: 1px;
    font-weight: bold;
    cursor: default;
    /* Allow user to select entire type text with one click, for ease in drag and drop. */
    /* Bug, no effect in Chrome. ============= */
    -webkit-touch-callout: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    user-select: all;
}
.arg-mark-text, .arg-mark-database  {
    padding: 0 6px 1px 6px;
}
.arg-mark-text {
    border-left: none; 
}
.arg-mark-selected {
    position: relative; /* So appears over other touching marks. */
}
.arg-mark-selected .arg-mark-type, .arg-mark-selected .arg-mark-text, .arg-mark-selected .arg-mark-database  {
    /* border: 2px solid black; */
    border-bottom: 2px solid black;
}
/* .arg-mark-selected .arg-mark-type {
    font-size: 17px; 
    font-weight: bold;
} */
.arg-mark-selected .arg-mark-text, .arg-mark-selected .arg-mark-database  {
    border-left: none;
}
.arg-mark-selected .arg-mark-type, .arg-mark-selected .arg-mark-text, .arg-mark-selected .arg-mark-database  {
    padding-bottom: 0; /* Allow double width border to show on multiple lines. */
}
/* ----- NEW Toggle visibility of various portions of markup ----- */
/* The default is to show only the mark of the what's in the text and not the database text. */
.arg-mark-hide-mark .arg-mark-type {
    display: none;
}
.arg-mark-hide-mark .arg-mark-text {
    background-color: initial;
    border: none;
    padding-left: 0;
    padding-right: 0;
}
.arg-mark-show-database .arg-mark-database {
    display: inline; /* Normally it is display none. */
}
.arg-mark-show-only-highlight .arg-mark-type {
    display: none;
}
.arg-mark-show-only-highlight .arg-mark-text {
    background-color: none;
    border: none;
    border-bottom: 1px dashed gray;
    padding-left: 0;
    padding-right: 0;
}
/* ----- Images ----- */


/* Responsive, image only scales down. */
/* .arg-mark-image-left, .arg-mark-image-right, .arg-mark-image-center { 
    max-width: 100%;
    height: auto;
}
.arg-mark-image-left {
    float: left;
    margin: 5px 15px 10px 0;
}
.arg-mark-image-right {
    float: right;
    margin: 5px 0 10px 10px;
}
.arg-mark-image-center {
    display: block;
    margin: 10px auto 10px auto;
}
.arg-mark-image-border {
    border: 1px solid gray;
} */
/* ----- Claim check box ----- */
.trs-claim-check-box, .trs-rule-box {
    float: right;    
    margin: 5px 0 5px 8px;
    background: url(ClaimCheckBoxBackground.jpg) top center repeat;
    overflow: hidden;
}
.trs-claim-check-box {
    padding: 15px 5px 10px 10px;
    width: 300px;
    border: 5px solid #3f88d0;
    border-radius: 40px;
}
.trs-claim-check-box-heading {
    font-family: var(--font-sans-serif);
    color: #3f88d0;
    font-size: 19px;
    font-weight: bold;
    text-align: left;
    line-height: 17px;
    margin: 0 0 2px 0;
}
.trs-claim-check-box-text {
    /* font-family: var(--font-serif); */
    font-size: 14.5px;
    margin: 0 0 10px 0;
    line-height: 20px;
}
.trs-claim-check-box-claim {
    font-weight: bold;
    font-size: 16px;
}
/* ----- Rule box ----- */
.trs-rule-box {
    width: 300px;
    border: 3px solid #3f88d0;
    border-radius: 20px;
}
.trs-rule-box-title {
    padding: 5px;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    background-color: var(--bg-color-rule-lighter);
    border-bottom: 1px solid cadetblue;
}
.trs-rule-box p {
    margin: 10px 0;
    padding: 0px 5px 0px 8px;
    font-size: 15.5px;
    line-height: 20px;
}
/* ----- Rating Dial ----- */
.trs-claim-check-box-dial { /* The static image version */
    display: block;
    margin: -5px auto -10px auto;
}
/* The adjustable version */
.trs-dial-and-description-container {
    margin: -5px 0 5px 0;
}
.trs-dial-container { 
    position: relative; 
    display: inline-block;
    /* margin-left: 10px; */
}
.trs-dial-container, .trs-dial-container img, .trs-dial-text, .trs-dial-percent {
    width:  155px;
}
.trs-dial-container img {
    margin: 0;
}
.trs-dial-arrow, .trs-dial-text, .trs-dial-percent { 
    position: absolute;
    display: flex; 
    justify-content: center;
}
.trs-dial-text, .trs-dial-percent {
    font-family: var(--font-sans-serif);
    font-weight: bold;
}
.trs-dial-text {
    padding-top: 105px;
    font-size: 14px;
}
.trs-dial-percent {
    padding-top: 121px;
    font-size: 18px;
}
.trs-dial-description {
    float: right;
    padding: 28px 10px 0 0;
    width: 129px;
    color: Gray;
    font-size: 12px;
    cursor: default;
}
/* ----- Article summary box button. Says "Show Markup". ----- */
.trs-claim-check-box-button { 
    font-size: 12px;
    padding: 1px 5px 2px 5px;
    margin: 0 5px;
    border: 1px solid gray;
    border-radius: 7px;
    background-color: rgb(223, 223, 223);
    cursor: pointer;
    /* Center the element */
    /* position: relative;
    left: 50%;
    transform: translateX(-50%);  */
    /* Prevent selection and editing of button */
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.trs-claim-check-box-button:hover  {
    background-color: rgb(206, 206, 206); /* Slightly darker */
}
.trs-claim-check-box-button:active {
    box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset;
    padding-left: 5px;
    padding-right: 3px;
}
/* ----- Various ----- */
.trs-info-panel-test-photo1, .trs-info-panel-test-photo2 { 
    padding-top: 50px;
    margin: 0 10px 0 5px;
    width: 200px;
    height: 110px;
    border: 2px solid black;
    float: right;
    text-align: center;
    background: gainsboro;
}
.trs-info-panel-test-photo2 {
    width: 150px;
    background: bisque;
}
.trs-info-indentbox, .trs-info-indentbox-oneblock {
    margin: 20px 25px 20px 25px;
    border: 1px solid #999999;
    border-radius: 20px;
    background-color: GhostWhite;

    -webkit-box-shadow: #acacac 1px 2px 4px;
    -moz-box-shadow: #acacac 1px 2px 4px;
    box-shadow: #acacac 1px 2px 4px;
}
.trs-info-indentbox {
    padding: 0px 10px 0px 15px;
}
.trs-info-indentbox-oneblock { /* For use in html editor. */
    padding: 15px 10px 15px 15px;
    font-family: var(--font-serif);
    line-height: 1.5em;
}
.trs-doc-container h1, .mce-content-body h1 {
    margin: 0px 0 20px 0;
    font-family: var(--font-sans-serif);
    font-size:   var(--font-sans-serif-size-h1);
    /* font-size: 28px; */
    text-align: center;
    color: darkblue;
}
body h2, .mce-content-body h2 { 
    font-family: var(--font-sans-serif);
    font-size:   var(--font-sans-serif-size-h2);
    font-weight: var(--font-sans-serif-weight-h2);
    margin-top: 30px;
    margin-bottom: -5px;
}
body h3, .mce-content-body h3 { 
    font-family: var(--font-sans-serif);
    font-size:   var(--font-sans-serif-size-h3);
    font-weight: var(--font-sans-serif-weight-h3);
    margin-top: 30px;
    margin-bottom: 0;
}
body h4, .mce-content-body h4 { 
    font-family: var(--font-sans-serif);
    font-size:   var(--font-sans-serif-size-h4);
    font-weight: var(--font-sans-serif-weight-h4);
    margin-top: 20px;
    margin-bottom: 0;
}
/* ----- Tab set ----- */
.trs-tab-oddeven {
    padding: 0;
}
.trs-tab-oddeven > *:nth-child(odd) {
    padding-left:  7px;
    padding-right: 6px;
}
.trs-tab-oddeven > *:nth-child(even) {
    background-color: #e5f8fe; /* Very light blue, to identify 'paragraphs' in articles. */
    padding-left:  7px;
    padding-right: 6px;
}
