:root {
    /* Navigation tab colors - same in all four CSS files */
    --checklist-theme-colour: var(--red);
    --style-theme-colour: var(--darkest-orange);
    --style-theme-main: var(--orange);
    --link-theme-colour: var(--bright-blue);
    --completion-theme-colour: var(--dark-green);

    /* Checkbox colors - themed per view */
    --checklist-checkbox-colour: var(--red);
    --link-checkbox-colour: var(--bright-blue);
    --style-checkbox-colour: var(--orange);
    --completion-checkbox-colour: var(--dark-green);

    /* Structural colors */
    --tag-background-colour: var(--lightest-grey);

    /* Message colors */
    --message-success-colour: var(--dark-green);
    --message-error-colour: var(--red);

    /* Layout dimensions - responsive design */
    --main-min-width: 720px;
    --main-max-width: 1000px;
    --sidetags-min-width: 150px;
    --sidetags-max-width: 300px;
    --content-gap: 20px;
    --page-padding: 5px;
}

body {
    margin: 0;
    font-family: helvetica, arial, sans;
    display: flex;
    justify-content: center;
}

.outer-container {
    display: flex;
    gap: var(--content-gap);
    width: 100%;
    max-width: calc(
        var(--main-max-width) + var(--content-gap) +
        var(--sidetags-min-width) + 4 * var(--page-padding)
    );
}

.page-wrapper {
    flex: 1 1 var(--main-min-width);
    min-width: var(--main-min-width);
    max-width: var(--main-max-width);
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

.content-container {
    margin-top: 2px;
}

/* Token management UI */
.token-messages {
    margin: 0;
}

.token-message-success {
    color: var(--message-success-colour);
    font-weight: bold;
}

.token-message-error {
    color: var(--message-error-colour);
    font-weight: bold;
}

.token-hidden {
    /* Bullets shown by default, always on own line */
    display: block;
}

.token-revealed {
    /* Token text hidden by default, shows as block when revealed */
    display: none;
    font-family: courier, monospace;
    font-size: small;
}

.token-name-edit {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    width: 30ch;  /* Fit ~30 characters: "API Token 2025-10-24T15-30-42" */
    min-width: 30ch;
}

.token-name-edit:focus {
    border: 1px solid #ccc;
    outline: none;
    padding: 2px;
}

.checklistname .token-name-edit {
    color: var(--theme-link-colour);
    font-size: large;
}

.token-details {
    color: var(--darker-grey);
    font-size: small;
}

.token-limit-warning {
    color: var(--message-error-colour);
    margin-left: 10px;
}

h1, h2, h3, h4, h5, h6, .admin {
    color: var(--theme-heading-colour);
}

.admin {
    font-weight: bold;
}

h1 {
    font-size: x-large;
}

h2 {
    font-size: medium;
}
.c {
    text-align: center;
}

.Giant {
    font-size : 72pt;
    font-family: Times, Garamond, Baskerville, Serif;
}

.hexalex {
    font-family : Garamond, Times, Serif;
    font-style : italic;
    font-size: large;
    padding: 0 0 12pt 0;
    color: darkgreen;

}

.ajaxTarget, .ajaxNonTarget {
    font-size: small;
}

.ajaxNonTarget a, .ajaxNonTarget a:hover{
    color: var(--lighter-grey);
    text-decoration: none;
}

.ajaxTarget {
    cursor: pointer;
    color: var(--theme-link-colour);
}

.ajaxLinkTarget:hover, a.ajaxLinkTarget:hover {
    cursor: pointer;
    color: var(--theme-link-colour);
    text-decoration: underline;
}

.ajaxNonTarget {
    color: var(--lighter-grey);
}

.ajaxLinkNonTarget:hover, a.ajaxLinkNonTarget:hover {
    color: var(--lighter-grey);
    text-decoration: none;
}

.empty {
    background-color: white;
    border: 1px solid white;
    width: 100px;
    padding-left: 4px;
}

a {
    color: var(--theme-link-colour);
    text-decoration: none;
}

a:visited {
    color: var(--theme-link-visited-colour);
    text-decoration: none;
}

a:hover {
    color: var(--theme-link-hover-colour);
    text-decoration: underline;
}

a:visited:hover {
    color: var(--theme-link-hover-colour);
    text-decoration: underline;
}

.checklistname a {
    font-size: large;
}

.checklistname .disabled {
    font-size: large;
    color: var(--darkish-grey);
}

.date {
    font-size: x-small;
    padding-right: 1ex;
    white-space: nowrap;
}

table.checklists {
    width: 100%;
}

table.checklists td {
    vertical-align: bottom;
}

table.checklists td:first-child {
    white-space: nowrap;
}

.textboxes {
    font-size: small;
}

.checklistname a:hover {
    text-decoration: underline;
}

.tag {
    background-color: var(--tag-background-colour);
    font-size: small;
    color: black;
    padding: 1px 1ex 1px 1ex;
    border-radius: 4px;
    display: inline-block;
}

.tag a {
    color: black;
    text-decoration: none;
}

.tag a:hover {
    background-color: var(--theme-link-colour);
    color: white;
}

.actionlink, .nonactionlink {
    font-size: small;
}

.actionlink, .actionlink a {
    color: var(--darker-grey);
    text-decoration: none;
}

.nonactionlink, .nonactionlink a, .nonactionlink a:hover {
    color: var(--lighter-grey);
    text-decoration: none;
}

.actionlink a:hover {
    color: var(--theme-link-colour);
    text-decoration: underline;
}

.actionlink.disabled, .actionlink.disabled a {
    color: var(--lighter-grey);
    cursor: default;
}

.actionlink.disabled a:hover {
    color: var(--lighter-grey);
    text-decoration: none;
    cursor: default;
}

.kill, .kill a {
    color: var(--bright-red);
}

.kill a:hover {
    color: var(--bright-red);
    text-decoration: underline;
}


.author a {
    color: var(--darker-grey);
    font-size: normal;
    text-decoration: none;
}

.author a:hover {
    color: var(--theme-link-colour);
    text-decoration: underline;
}

.listlinks {
}

.tags {
    padding-left: 1em;
}

td:first-child .tags {
    padding-left: 0.3em;
}

.main {
}

.hline {
    width: 100%;
    font-size: 1px;
    border-top: 1px solid var(--lighter-grey);
}

.sep {
    font-size: small;
}

.sepline .offtext {
    font-size: var(--tab-separator-font-size);
    color: var(--tab-separator-color);
}

#header {
    margin-top: 6px;
    margin-bottom: 0;
}

.symboltest, .symbol {
    font-family: "Arial Unicode MS", Sans;
    font-size: small;
}

.symbol a {
    text-decoration: none;
}

.symbol a:hover {
    font-weight: bold;
}

.checkeagle {
    font-size: x-large;
    font-family: Palatino, "Palatino Linotype", "Book Antiqua", serif;
    color: white;
    background-color: var(--header-footer-bg);
    height: 52px;
}

.checkeagle a.ll {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    height: 52px;
    padding-left: 4px;
}

.checkeagle a img {
    display: block;
    flex-shrink: 0;
    margin-top: -4px;
}

.checkeagle a:hover {
    text-decoration: none;
}

.headertable {
    width: 100%;
}


.switch, .checkswitch {
    color: white;
    font-size: small;
    text-align: right;
    padding-right: 1em;
    height: 52px;
}

.ra {
/*    margin-left: auto;
    margin-right: 0; */
    margin: auto 0 0 auto;
}



.checkswitch, .ontext a {
    background-color: var(--header-footer-bg);
    text-decoration: none;
}

.offtext a:hover, .ontext a:hover {
    text-decoration: none;
    color: white;
}

.ontext, .ontext a {
    font-weight: bold;
    font-size: small;
    color: white;
}

.ontext a:visited {
    color: white;
}



.offtext, .offtext a {
    font-weight: normal;
    font-size: small;
    color: var(--unselected-tab-grey);
}

#toplinks {
    margin-top: 2px;
    margin-bottom: 0;
    padding: 0;
    text-align: right;
    font-size: small;
    line-height: 1;
}

.tab, .selectedtab, .createbutton, .greyedtab {
    width: 100px;
    border: 1px solid white;
    margin: 0;
    text-align: center;
    font-size: small;
    color: white;
}

.selectedtab {
   background-color: var(--theme-tab-colour);
}

.greyedtab, .greyedtab a {
   color: var(--unselected-tab-grey);
}

.tab, .createbutton, .greyedtab {
    background-color: var(--mid-grey);
}

td.createbutton a, td.tab a, td.selectedtab a {
    color: white;
}

td.createbutton a:visited, td.tab a:visited, td.selectedtab a:visited {
    color: white;
}

.createbutton a:hover, td.tab a:hover, td.selectedtab a:hover  {
    color: white;
    text-decoration: none;
    background-color: var(--theme-tab-hover-colour);
}

.createbutton a:visited:hover, td.tab a:visited:hover, td.selectedtab a:visited:hover  {
    color: white;
    text-decoration: none;
    background-color: var(--theme-tab-hover-colour);
}

a.ll {
    display: block;
    padding: 2px 0 2px 0;
}

.headertable {
    border-collapse: collapse;
    border-spacing: 0;
}

.headertable td.tab,
.headertable td.selectedtab,
.headertable td.createbutton,
.headertable td.greyedtab {
    padding: 0;
    margin: 0;
}

.headertable td.empty {
    padding: 0 0 0 6px;
    margin: 0;
}

.headertable td.tab:first-child,
.headertable td.selectedtab:first-child,
.headertable td.createbutton:first-child,
.headertable td.greyedtab:first-child {
    border-left: none;
}

.headertable td.tab:last-child,
.headertable td.selectedtab:last-child,
.headertable td.createbutton:last-child,
.headertable td.greyedtab:last-child {
    border-right: none;
}

#main {
    flex: 1 1 var(--main-min-width);
    min-width: var(--main-min-width);
    max-width: var(--main-max-width);
}

.sidetag, .tagcount {
    font-size: small;
    padding-top: 3px;
    padding-bottom: 3px;
}

.tagcount {
    text-align: right;
    padding-left: 1ex;
}

.sidetagtable {
    border-collapse: collapse;
    width: 100%;
}

.foot {
    margin-top: 0;
}

.foottable a {
    color: white;
}

.listurl {
    max-width: var(--main-max-width);
    text-align: center;
    font-size: small;
    padding: 1ex;
}

.listurl a {
    color: black;
    text-decoration: none;
}

.listurl a:hover {
    color: var(--theme-link-hover-colour);
    text-decoration: underline;
}

.para {
    max-width: var(--main-max-width);
}

.para table {
    width: 95%;
}

form table {
    width: 95%;
}

.foottext {
    text-align: center;
    font-size: small;
    padding: 6px;
    max-width: var(--main-max-width);
}

.footer {
    background-color: var(--header-footer-bg);
    padding: 6px 0 6px 0;
}

.footer td {
    color: white;
    padding: 0 .5ex 0 0.8em;
    font-size: small;
}

.footer a:hover {
    color: #FFD603;
    text-decoration: none;
}

.error {
    font-weight: bold;
    color: var(--red-c00000);
    padding: 10 0 10 0;
}

.warning {
    color: orange;
}

.info {
    color: orange;
}

.pre {
    whitespace: pre;
    font: monospace;
}

.input-label {
    padding: 6px 0 3px 0;;
    font-size: small;
}

.radio, .boxlabel {
    padding-left: 30px;
}

input, textarea {
    font-family: courier, monospace;
    font-size: 0.75rem;  /* 12px at default 16px base */
}

textarea[name="items"], textarea[name="css"], textarea[name="notes"] {
    width: 100%;
    max-width: calc(var(--main-max-width) - 20px);
}

em {
    font-family: Palatino, "Palatino Linotype", Georgia, Times, serif;
    font-style: italic;
}

input[type="submit"], input[type="button"], button {
    font-family: helvetica, arial, sans;
}

input[type="checkbox"] {
    accent-color: var(--theme-checkbox-colour);
}

input:focus, textarea:focus {
    outline: 1px solid var(--theme-checkbox-colour);
    outline-offset: 0;
}

input[readonly] {
    border: none;
}

input[readonly]:focus {
    outline: none;
}


.listline {
    border-bottom: solid var(--tab-border-thickness) var(--checklist-theme-colour);
}

.completedline {
    border-bottom: solid var(--tab-border-thickness) var(--completion-theme-colour);
}

.styleline {
    border-bottom: solid var(--tab-border-thickness) var(--style-theme-colour);
}

.linkline {
    border-bottom: solid var(--tab-border-thickness) var(--link-theme-colour);
}


.sepline {
    border-bottom: solid 3px black;
}

#heldtype {
    font-size: small;
    padding: 0 .5em 0 .5em;
}

.stylish {
    color: var(--style-theme-colour);
}

.listish {
    color: var(--theme-link-colour);
}

.bookmarkish {
    color: var(--link-theme-colour);
}

.completish {
    color: var(--completion-theme-colour);
}

#held {
    font-size: small;
    font-family: monospace;
    color: var(--darker-grey);
    position: relative;
    top: -1px;
}

#clearsymbol {
    display: inline-block;
    position: relative;
    top: 1px;
    padding-top: 0.2em;
}

#downarrow.empty {
    color: var(--lighter-grey);
}

#downarrow.empty a {
    color: var(--lighter-grey);
}

.pagination-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
   max-width: var(--main-max-width);
   font-size: small;
   padding: 1em 0;
}

.sizeselector {
   flex: 0 0 auto;
   text-align: left;
}

.sizeselector a,
.sizeselector .current {
    padding: 0 0.25em;
}

.pagelinks, .subpagelinks {
   flex: 1 1 auto;
   text-align: center;
   font-size: medium;
}

.pagelink {
    padding: 0 0.3em;
}

.pagelink a {
    text-decoration: none;
}

.pagelink a:hover {
    text-decoration: underline;
}

.pagelink.arrowhead {
    font-size: 0.825rem;
}

.hidden {
    display: none;
}

.visible {
}

.importlink {
    max-width: var(--main-max-width);
    text-align: center;
    padding: 10px 0 1em 0;
}

.importarea {
    max-width: var(--main-max-width);
    text-align: center;
    padding: 0px 0px 10px 0;
}

.p {
    padding: .5em;
    max-width: var(--main-max-width);
}

#count {
    flex: 0 0 auto;
    text-align: right;
    font-size: small;
    color: var(--mid-grey);
    padding-right: 0.25em;
}

#sidetags {
    flex: 0 1 auto;
    min-width: var(--sidetags-min-width);
    max-width: var(--sidetags-max-width);
    width: fit-content;
    margin-top: 118px;
    padding-right: calc(2 * var(--page-padding));
}

.sidetagheader {
    background-color: var(--mid-grey);
    text-align: center;
    padding: 0;
    color: white;
    font-size: small;
}

.sidetagheader a {
    display: block;
    padding: 2px 30px 2px 30px;
    color: white;
    text-decoration: none;
}

.sidetagheader a:hover {
    background-color: var(--theme-link-colour);
}

.sidetag, .tagcount {
    font-size: small;
    padding-top: 3px;
    padding-bottom: 3px;
}

.tagcount {
    text-align: right;
    padding-left: 1ex;
}

.sidetagtable {
    border-collapse: collapse;
    width: 100%;
}

.denselinks td {
    padding: 0 10px 0 10px;
}

/* Language selector dropdown */
.language-selector {
    position: relative;
    display: inline-block;
}

#language-trigger {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: small;
    padding: 2px 6px;
    outline: none;
}

#language-trigger:hover {
    background-color: var(--lightest-grey);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--mid-grey);
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    min-width: 120px;
}

.language-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 6px;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.language-menu a:hover {
    background-color: var(--lightest-grey);
    text-decoration: none;
}

.language-menu.hidden {
    display: none;
}

/* Icon rendering (inline SVG and Unicode symbols) */
.icon-svg {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    padding: var(--icon-padding);
}

.icon-svg svg {
    width: 1.8em;
    vertical-align: middle;
    color: inherit;
}

#toplinks .icon-svg {
    vertical-align: var(--toplinks-icon-valign);
}

#toplinks .icon-svg svg {
    width: 1.2em;
}

.tab .icon-svg svg,
.selectedtab .icon-svg svg {
    width: 1.6em;
}

#toplinks .entity-tab {
    vertical-align: baseline;
}

.icon-missing {
    color: red;
    font-weight: bold;
}

/* Holding cell toggle and active state */
#holdingcell {
    display: inline-block;
    padding-top: 0.2em;
}

#held {
    padding: 0 0.5em;
}

#holdingcell.active #held {
    background-color: #ffeb99;
}

.cell-indicator {
    display: inline-block;
    width: 1em;
    text-align: center;
}

.cell-indicator .icon-svg {
    width: 0.8em;
    height: 0.8em;
    color: var(--page-bg);
}

#holdingcell.active .cell-indicator .icon-svg {
    color: #FFD603;
}

.cell-toggle {
    font-size: x-small;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: normal;
    cursor: pointer;
}

.cell-toggle.inactive .bulb-fill {
    fill: white;
}

.cell-toggle.active .bulb-fill {
    fill: #FFD603;
}

.cell-toggle.inactive:hover .bulb-fill {
    fill: #FA7909;
}

.cell-toggle.active:hover .bulb-fill {
    fill: #606060;
}

.cell-toggle.active {
    background-color: transparent;
    color: black;
}

.cell-toggle.inactive {
    background-color: transparent;
    color: white;
}

/* Item indicator for affected items in lists */
.item-indicator {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    padding-right: 4px;
}

.item-indicator::before {
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23FFD603"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* Show yellow indicator on up arrows when affected by holding cell */
.ajaxTarget.has-indicator::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23FFD603"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* URL component prefix styling - matches input field font */
.shortname-prefix {
    font-family: courier, monospace;
    font-size: 0.75rem;  /* Match input fields */
}

/* Perms field toggle button and input */
.perms-toggle-btn {
    display: inline-block;
    padding: 3px 12px;
    margin: 0 0.5em;
    min-width: 2em;
    text-align: center;
    border-radius: 12px;
    background-color: var(--theme-tab-colour);
    border: 1px solid var(--theme-tab-colour);
    color: white;
    text-transform: uppercase;
    font-size: 0.65em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    padding-bottom: 0.3em;
}

.perms-toggle-btn:hover {
    background-color: var(--theme-tab-hover-colour);
    border-color: var(--theme-tab-hover-colour);
    text-decoration: none;
    color: white;
}

.perms-input {
    font-family: courier, monospace;
    font-size: 0.75rem;
    width: 4.5ch;
    margin-left: 0.3em;
    padding: 0.2em;
    text-align: center;
}

.perms-input.invalid {
    color: red;
    border-color: red;
    background-color: #ffe0e0;
}

.perms-input.hidden {
    display: none;
}

/* Submit area - always visible */
.submit-area {
    margin-top: 0.5em;
}

/* Submit buttons at top of area */
.submit-buttons {
    padding: 0;
    margin: 0;
}

/* Button-styled links (for form submit actions) */
a.button-link {
    display: inline-block;
    padding: 3px 12px;
    margin: 0.1em 1ex;
    min-width: 4em;
    text-align: center;
    border-radius: 12px;
    background-color: var(--theme-tab-colour);
    border: 1px solid var(--theme-tab-colour);
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: small;
}

a.button-link:hover {
    background-color: var(--theme-tab-hover-colour);
    border-color: var(--theme-tab-hover-colour);
    text-decoration: none;
    color: white;
}

a.button-link:visited {
    color: white;
}

/* When there are errors, add red border and styling */
.submit-area.has-errors {
    border: 4px solid red;
    padding: 0.5em;
    margin-top: 0.5em;
}

/* Error messages below buttons */
.error-messages {
    padding-top: 0.5em;
    color: red;
}

/* Mobile responsive layout - reduce widths by 50% */
@media (max-width: 730px) {
    :root {
        --main-min-width: 360px;
        --main-max-width: 500px;
        --sidetags-min-width: 75px;
        --sidetags-max-width: 150px;
        --content-gap: 10px;
    }

    /* Hide CheckEagle text, keep logo */
    .checkeagle a.ll {
        font-size: 0;
    }
}

/* Language-specific styles: UNIX/Lunix (ux_LI) */
body[data-language="ux_LI"] #toplinks,
body[data-language="ux_LI"] .checkeagle,
body[data-language="ux_LI"] .checkswitch,
body[data-language="ux_LI"] .subtab,
body[data-language="ux_LI"] .footer,
body[data-language="ux_LI"] .actionlink {
    font-family: "PT Mono", Menlo, monospace;
}