/* Styles specific to the git browser.
 *
 * The site chrome - header, background, typography, links - lives in
 * stylesheet.css, which every page loads first. Only put a rule here if it
 * applies to the repository pages and nowhere else.
 */

.section-heading
{
    display: flex;
    width: 100%;
    margin-bottom: 0;
    justify-content: space-between;
    align-items: baseline;
}

.section-heading > .right
{
    flex: 1;
    text-align: right;
    margin-bottom: 0;
}

.section-heading > .left
{
    flex: 1;
    text-align: left;
    margin-bottom: 0;
}

article > h1
{
    border-bottom: 1px solid #000;
    display: block;
    width: 100%;
}

/* Icon styles */

table {
    margin: auto auto;
    width: 85%;
    table-layout: fixed;
}

/* Table Styles for .datatable */
table.datatable {
    width: 100%;
    border-collapse: collapse;
    margin: auto auto;
    table-layout: auto;
}

table.datatable tr {
    cursor: pointer;
}

table.datatable tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
    text-decoration: underline;
    text-shadow: 2px 2px 2px rgba(255,255,255,0.85);
    opacity: 0.75;
    color: inherit;
}

table.datatable td,
table.datatable th {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

table.datatable td:last-child,
table.datatable th:last-child {
    text-align: right;
}

table.datatable th {
    border-bottom: 1px solid #000;
}

table.datatable td svg,
table.datatable th svg {
    display: block;
    margin: auto;
}

table.datatable td a {
    color: inherit;
    text-decoration: none;
}

table.datatable td a:hover {
    text-decoration: underline;
}

.header > a:hover
{
    text-decoration: underline;
}

/******** End Header Styles ********/

/******** Main Styles ********/

/******** End Main Styles ********/

.commit-info tr {
    cursor: default;
}
.commit-info tr:hover {
    background-color: transparent;
}
.commit-info td {
    padding: 2px 8px;
    border: none;
}

/* Diff styles */
.diff-file {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #d1d5da;
    border-radius: 3px;
    background-color: rgba( 200, 200, 200, 0.25 );
}

.diff-header {
    background-color: transparent;
    padding: 8px 10px;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
    font-size: 12px;
    border-bottom: 1px solid #777;
    font-weight: 600;
    color: #24292e;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.diff-content {
    font-family: monospace;
    font-size: 0.75em;
    overflow-x: auto;
    background-color: rgba( 200, 200, 200, 0.25 );
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    padding: 0.5em;
    line-height: 1.5;
}

.diff-add {
    background-color: rgba(200, 255, 200, 0.75);
    color: #24292e;
    white-space: pre;
    padding: 0 10px;
    display: block;
}

.diff-del {
    background-color: rgba(255, 200, 200, 0.75);
    color: #24292e;
    white-space: pre;
    padding: 0 10px;
    display: block;
}

.diff-chunk {
    background-color: rgba(200, 220, 255, 0.75);
    color: #0366d6;
    white-space: pre;
    padding: 0 10px;
    display: block;
}

.diff-chunk-header {
    font-weight: bold;
}

.diff-chunk-context {
    color: #666;
    font-style: italic;
}

.diff-meta {
    color: #586069;
    font-weight: bold;
    white-space: pre;
    padding: 0 10px;
    background-color: transparent;
    display: block;
}

.diff-ctx {
    color: #586069;
    white-space: pre;
    padding: 0 10px;
    display: block;
}

/* Markdown Styles */
.readme-container {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.markdown-body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 0.3em;
}

.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(27,31,35,0.05);
    border-radius: 3px;
    font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
}

.markdown-body pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 3px;
    border: none; /* Override default pre border */
}

.markdown-body pre code {
    padding: 0;
    background-color: transparent;
    font-size: 100%;
}

/* Syntax Highlighting */
.highlight { 
    background-color: rgba( 200, 200, 200, 0.25 ); 
    padding: 0.5em; 
    overflow: auto; 
    border: 1px solid; 
    font-size: 1.0em;
    font-family: monospace;
}

.highlight .c { color: #408080; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
.highlight .o { color: #666666 } /* Operator */
.highlight .ch { color: #408080; font-style: italic } /* Comment.Hashbang */
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
.highlight .cpf { color: #408080; font-style: italic } /* Comment.PreprocFile */
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #00A000 } /* Generic.Inserted */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
.highlight .gt { color: #0044DD } /* Generic.Traceback */
.highlight .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #008000 } /* Keyword.Pseudo */
.highlight .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #B00040 } /* Keyword.Type */
.highlight .m { color: #666666 } /* Literal.Number */
.highlight .s { color: #BA2121 } /* Literal.String */
.highlight .na { color: #7D9029 } /* Name.Attribute */
.highlight .nb { color: #008000 } /* Name.Builtin */
.highlight .nc { color: #0000FF; font-weight: bold } /* Name.Class */
.highlight .no { color: #880000 } /* Name.Constant */
.highlight .nd { color: #AA22FF } /* Name.Decorator */
.highlight .ni { color: #999999; font-weight: bold } /* Name.Entity */
.highlight .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #0000FF } /* Name.Function */
.highlight .nl { color: #A0A000 } /* Name.Label */
.highlight .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
.highlight .nt { color: #008000; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #19177C } /* Name.Variable */
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mb { color: #666666 } /* Literal.Number.Bin */
.highlight .mf { color: #666666 } /* Literal.Number.Float */
.highlight .mh { color: #666666 } /* Literal.Number.Hex */
.highlight .mi { color: #666666 } /* Literal.Number.Integer */
.highlight .mo { color: #666666 } /* Literal.Number.Oct */
.highlight .sa { color: #BA2121 } /* Literal.String.Affix */
.highlight .sb { color: #BA2121 } /* Literal.String.Backtick */
.highlight .sc { color: #BA2121 } /* Literal.String.Char */
.highlight .dl { color: #BA2121 } /* Literal.String.Delimiter */
.highlight .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
.highlight .s2 { color: #BA2121 } /* Literal.String.Double */
.highlight .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
.highlight .sh { color: #BA2121 } /* Literal.String.Heredoc */
.highlight .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
.highlight .sx { color: #008000 } /* Literal.String.Other */
.highlight .sr { color: #BB6688 } /* Literal.String.Regex */
.highlight .s1 { color: #BA2121 } /* Literal.String.Single */
.highlight .ss { color: #19177C } /* Literal.String.Symbol */
.highlight .bp { color: #008000 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #0000FF } /* Name.Function.Magic */
.highlight .vc { color: #19177C } /* Name.Variable.Class */
.highlight .vg { color: #19177C } /* Name.Variable.Global */
.highlight .vi { color: #19177C } /* Name.Variable.Instance */
.highlight .vm { color: #19177C } /* Name.Variable.Magic */
.highlight .il { color: #666666 } /* Literal.Number.Integer.Long */

/* Syntax Highlighting Layout Fixes */
.highlight table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    margin: 0;
    table-layout: auto;
}

.highlight thead {
    border-bottom: 1px solid #777;
}

.highlight td {
    padding: 0;
    border: none;
    vertical-align: top;
    text-align: left;
}

.highlight pre {
    border: none;
    background-color: transparent;
    white-space: pre;
    overflow: visible;
    padding: 0;
    margin: 0;
    width: auto;
    font-family: monospace;
}

.highlight .linenos {
    color: #777;
    padding-right: 10px !important;
    text-align: right;
    user-select: none;
    border-right: 1px solid #777 !important;
    width: 1%; /* Shrink to fit */
    white-space: pre;
}

.highlight .code {
    padding-left: 10px !important;
    width: 100%;
    overflow: auto;
}

/* Diff styles override for .highlight collision */
.diff-content.highlight {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    overflow: auto; /* Keep overflow handling from diff-content */
}

.diff-content.highlight pre {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.d-ln {
    display: inline-block;
    width: 3em;
    text-align: right;
    padding-right: 0.5em;
    margin-right: 0.5em;
    color: rgba(0,0,0,0.3);
    user-select: none;
    -webkit-user-select: none;
    vertical-align: top;
}

.d-content {
    display: inline;
}

button.icon-button
{
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    background-color: transparent;
    font-size: inherit;
    font-family: inherit;
}

button.icon-button:hover
{
    text-decoration: underline;
    opacity: 0.75;
    color: inherit;
    text-shadow: 2px 2px 2px rgba(255,255,255,0.85);
}

.copy-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    transform: translate(0, -100%);
}

.copy-tooltip.visible {
    opacity: 1;
}
