
/* body padding-bottom is handled per-layout via main { padding-bottom } in each template */

.card {
      border: 1px solid #ccc;
      background-color: #f4f4f4;
      padding: 2px;
      margin-bottom: 0px;
    }

.card-body {
     padding: 2px;
 }

 .boxThing {
    border-style: solid;
    border-width: 2px;
    display: inline-block;
    padding: 3px;
    margin: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
 }

 .spanCardThing {
    display: inline-block;
    padding: 2px;
    margin: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
 }

#fire {
    font-size: 24px;
    color: #007bff;
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 8px;
}

.table {
    font-size: 0.85rem;
}

.table .badge {
    border-radius: 3px;
}
/* ── Thing fields panel ── */
.thing-fields-header {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6c757d;
    margin: 1.25rem 0 .4rem;
}

.thing-fields-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
}

.thing-fields-list li {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    padding: .45rem .75rem;
    border-bottom: 1px solid #f1f3f5;
    font-size: .875rem;
    line-height: 1.4;
}

.thing-fields-list li:last-child {
    border-bottom: none;
}

.thing-fields-list .tf-label {
    flex: 0 0 38%;
    max-width: 38%;
    color: #6c757d;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thing-fields-list .tf-value {
    flex: 1;
    color: #212529;
    word-break: break-word;
}

/* ── Thing comments ── */
.thing-comments {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.thing-comment {
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    background: #fff;
    overflow: hidden;
}

.tc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .4rem .75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: .8rem;
}

.tc-author {
    font-weight: 600;
    color: #343a40;
}

.tc-author i {
    color: #6c757d;
}

.tc-date {
    color: #6c757d;
    font-size: .75rem;
}

.tc-body {
    padding: .6rem .75rem;
    font-size: .875rem;
    color: #212529;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ── text-large field truncation ── */
.tf-li-large {
    flex-direction: column;
    align-items: flex-start !important;
    gap: .3rem !important;
}

.tf-li-large .tf-label {
    max-width: 100%;
}

.tf-li-large .tf-value {
    width: 100%;
}

.tf-large-text {
    font-size: .875rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.tf-large-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-large-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: .78rem;
    color: #0d6efd;
    cursor: pointer;
    margin-top: .2rem;
}

.tf-large-toggle:hover {
    text-decoration: underline;
}

/* ── Mobile / small-screen improvements ── */
@media (max-width: 575.98px) {

    /* Reduce card and body padding on small screens */
    .card-body {
        padding: .5rem !important;
    }

    /* Tighten form controls */
    .form-control, .form-select {
        font-size: .875rem;
    }

    /* Form labels smaller */
    .col-form-label {
        font-size: .875rem;
        padding-top: .25rem;
        padding-bottom: .25rem;
    }

    /* Thing header: wrap long summary text */
    h5 {
        font-size: 1rem;
        word-break: break-word;
    }

    /* Action bar: smaller buttons and allow wrap */
    .btn-group-sm > .btn {
        padding: .2rem .4rem;
        font-size: .78rem;
    }

    /* Right-panel cards below content, less margin */
    #context-panel,
    .col-12.col-md-4 {
        margin-top: 0;
    }

    /* Reduce thing-fields label width on mobile so value has more room */
    .thing-fields-list .tf-label {
        flex: 0 0 45%;
        max-width: 45%;
        font-size: .75rem;
    }

    /* Breadcrumb smaller */
    .breadcrumb {
        font-size: .78rem;
    }

    /* Search box: cap width so it doesn't fill the entire hamburger menu */
    #searchForm {
        max-width: 220px;
    }
}
