/* ================================================================
   collection.css — rules for collection search/detail pages
   (photographs, maps, and similar future modules)
   Requires shared.css (loaded automatically by pageHeader).
   ================================================================ */

/* ---- Date range inputs ---- */
.search-date-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
                   font-size: 0.85rem; color: #6b7280; }
.search-date-row input { padding: 0.3rem 0.6rem; border: 1px solid #d1d5db;
                          border-radius: 5px; font-size: 0.85rem; width: 150px; }
.search-date-row input:focus { outline: 2px solid #3b82f6; border-color: transparent; }
.date-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fca5a5;
              border-radius: 6px; padding: 0.4rem 0.75rem; margin-bottom: 0.5rem;
              font-size: 0.9rem; }

/* ---- @keyword search help ---- */
.at-search-help { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem;
                  margin: 0.5rem 0 0; font-size: 0.9rem; }
.at-search-help dt { font-weight: 600; white-space: nowrap; }
.at-search-help dd { margin: 0; }

/* ---- Result count ---- */
.result-count { color: #6b7280; margin-bottom: 1rem; font-size: 0.95rem; }

/* ---- Result cards ---- */
.results-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.result-card  { display: flex; background: #fff; border-radius: 10px; overflow: hidden;
                box-shadow: 0 1px 3px rgba(0,0,0,.08); text-decoration: none;
                transition: box-shadow .15s; }
.result-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }

.result-thumb { width: 150px; min-height: 150px; flex-shrink: 0;
                background: #e5e7eb; display: flex; align-items: center;
                justify-content: center; overflow: hidden; }
.result-thumb img { width: 150px; height: 150px; object-fit: contain; display: block; }
.result-thumb.no-image::after,
.no-image-placeholder { content: ''; width: 150px; height: 150px;
                         background: #e5e7eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23aaa' viewBox='0 0 24 24'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center/40px no-repeat; }

.result-info    { padding: 0.75rem 1rem; flex: 1; min-width: 0; }
.result-regnum  { font-size: 1.1rem; color: #111827; font-family: monospace;
                  letter-spacing: .03em; }
.result-img-count { font-size: 0.75em; color: #808080; font-family: sans-serif;
                    font-weight: normal; letter-spacing: normal; }
.result-heading { font-size: 1rem; font-weight: 600; margin: 0.15rem 0; }
.result-desc    { font-size: 0.875rem; color: #1f2937; margin: 0.2rem 0;
                  display: -webkit-box; -webkit-line-clamp: 2;
                  -webkit-box-orient: vertical; overflow: hidden; }
.result-date    { font-size: 0.8rem; color: #374151; margin-top: 0.35rem; }
.result-at-date { font-size: 0.78rem; color: #6b7280; margin-top: 0.2rem; }
.result-at-label { font-weight: 600; color: #4b5563; }

/* ---- Single-record view ---- */
.back-link { display: inline-flex; align-items: center; gap: 0.3rem; color: #3b82f6;
             text-decoration: none; font-size: 0.9rem; margin-bottom: 1.25rem; }
.back-link:hover { text-decoration: underline; }

/* Image(s) stacked above details */
.photo-view    { display: flex; flex-direction: column; gap: 1.5rem; }
.photo-images  { display: flex; flex-direction: column; gap: 1rem; }

.photo-figure   { margin: 0 auto; width: 100%; max-width: 900px; }
.photo-main-img { width: 100%; border-radius: 8px; display: block;
                  box-shadow: 0 2px 8px rgba(0,0,0,.15); }
figcaption      { font-size: 0.8rem; color: #6b7280; margin-top: 0.35rem;
                  text-align: center; }
.preview-warning { font-size: 0.85rem; color: #92400e; background: #fffbeb;
                   border: 1px solid #fcd34d; border-radius: 6px;
                   padding: 0.4rem 0.75rem; margin: 0.5rem auto 0;
                   max-width: 900px; text-align: center; }

.photo-meta   { background: #fff; border-radius: 10px; padding: 1.5rem;
                box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.photo-regnum { font-size: 1.1rem; color: #111827; font-family: monospace;
                letter-spacing: .03em; margin-bottom: 0.25rem;
                display: flex; align-items: center; gap: 0.4rem; }
.edit-link { text-decoration: none; line-height: 1; }
.edit-link img { width: 1.25rem; height: 1.25rem; vertical-align: middle; opacity: 0.75; }
.edit-link:hover img { opacity: 1; }
.photo-title  { font-size: 1.4rem; font-weight: 700; margin: 0 0 1.25rem; line-height: 1.3; }

.field-list    { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
.field-item dt { font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
                 letter-spacing: .06em; color: #9ca3af; }
.field-item dd { margin: 0.2rem 0 0; }
.field-item dd li > p { margin: 0; }
.field-list .message-box { padding: 0.4rem 0.75rem; }

/* ---- Tags ---- */
.tags-section { margin-top: 1.25rem; border-top: 1px solid #f3f4f6; padding-top: 1rem; }
.tags-label   { font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
                letter-spacing: .06em; color: #9ca3af; margin-bottom: 0.5rem; }
.tags         { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; }
.tag          { background: #dbeafe; color: #1d4ed8; padding: 0.2rem 0.65rem;
                border-radius: 999px; font-size: 0.8rem; text-decoration: none; }
.tag:hover    { background: #bfdbfe; }

.no-image-large { background: #f3f4f6; border-radius: 8px; height: 200px;
                  display: flex; align-items: center; justify-content: center;
                  color: #9ca3af; font-size: 0.9rem; }

/* ---- Tag search list ---- */
.tag-list      { list-style: none; padding: 0; margin: 0;
                 display: flex; flex-direction: column; gap: 0.4rem; max-width: 640px; }
.tag-list-item { background: #fff; border-radius: 8px;
                 box-shadow: 0 1px 3px rgba(0,0,0,.07);
                 padding: 0.6rem 1rem;
                 display: flex; align-items: center; justify-content: space-between; }
.tag-list-link { font-size: 1rem; color: #1d4ed8; text-decoration: none; font-weight: 500; }
.tag-list-link:hover { text-decoration: underline; }
.tag-count     { font-size: 0.85rem; color: #9ca3af; white-space: nowrap; }

/* ---- Browse lists (crown portions, melway, etc.) ---- */
.browse-list   { list-style: none; padding: 0; margin: 0;
                 columns: 3; column-gap: 1.5rem; max-width: 900px; }
.browse-list--wide { columns: 5; max-width: none; }
.browse-list li { break-inside: avoid; padding: 0.2rem 0; }
.browse-list a  { color: #1d4ed8; text-decoration: none; }
.browse-list a:hover { text-decoration: underline; }
.browse-count  { font-size: 0.8rem; color: #9ca3af; }

@media (max-width: 900px) {
  .browse-list--wide { columns: 3; }
}
@media (max-width: 700px) {
  .browse-list { columns: 1; }
  .browse-list--wide { columns: 2; }
}

/* ---- Books ---- */
.browse-btns  { margin: 0.75rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-browse   { display: inline-block; padding: 0.4rem 1rem;
                background: #2980b9; color: #fff; border-radius: 5px;
                text-decoration: none; font-size: 0.9rem; }
.btn-browse:hover { background: #1f6391; }

.browse-heading { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.75rem; }
.browse-letter  { list-style: none; margin-top: 0.6rem; }
.browse-letter strong { font-size: 1.1rem; color: #374151; }

/* Book result card — no thumbnail, full-width info */
.book-result-card { display: block; }
.book-result-card .result-info { padding: 0.75rem 1rem; }
.result-desc--small { font-size: 0.8rem; color: #1f2937; margin-top: 0.1rem; }

/* Illustrations field */
.book-illustrations { white-space: normal; font-size: 0.9rem; line-height: 1.55; }
.book-illustrations h3 { font-size: 1rem; margin: 0.6rem 0 0.2rem; }
.book-illustrations pre { font-family: monospace; white-space: pre-wrap;
                           font-size: 0.85rem; margin: 0.4rem 0; }

/* ---- PDF upload zone (information.php, admin users only) ---- */
/* Sits above the search bar; matches its horizontal padding and max-width */
.pdf-new-section   { background: #fff; border-bottom: 1px solid #e5e7eb;
                     padding: 0.45rem 1.5rem; }
.pdf-upload-zone   { max-width: 800px;
                     display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
                     border: 2px dashed #93c5fd; border-radius: 6px;
                     padding: 0.45rem 0.9rem; background: #eff6ff;
                     transition: background .15s, border-color .15s; }
.pdf-upload-zone.drag-over { background: #dbeafe; border-color: #3b82f6; }
.pdf-drop-hint     { color: #9ca3af; font-size: 0.85rem; }
.btn-browse--sm    { font-size: 0.85rem; padding: 0.3rem 0.8rem; }
.pdf-upload-status { max-width: 800px; min-height: 1.1em; font-size: 0.85rem;
                     margin-top: 0.2rem; }
.pdf-status-info   { color: #1d4ed8; }
.pdf-status-ok     { color: #16a34a; }
.pdf-status-error  { color: #dc2626; }

/* ---- Alphabetical document list ---- */
.alpha-jump       { margin: 0.5rem 0 1rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.alpha-jump-link  { display: inline-block; padding: 0.2rem 0.55rem;
                    background: #eff6ff; color: #1d4ed8; border-radius: 4px;
                    text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.alpha-jump-link:hover { background: #dbeafe; }
.alpha-list       { list-style: none; padding: 0; margin: 0 0 1.5rem;
                    columns: 2; column-gap: 2rem; }
.alpha-list li    { break-inside: avoid; padding: 0.1rem 0; }
.alpha-list a     { color: #1d4ed8; text-decoration: none; }
.alpha-list a:hover { text-decoration: underline; }
.alpha-marker     { font-size: 1.15rem; font-weight: 700; color: #374151;
                    margin-top: 0.75rem; break-after: avoid; }

/* ---- Heidelberg Leader issues list ---- */
.leader-year-heading  { font-size: 1.1rem; font-weight: 700; color: #1e3a5f;
                         margin: 1.5rem 0 0.4rem; border-bottom: 2px solid #dbeafe;
                         padding-bottom: 0.25rem; }
.leader-issues-list   { list-style: none; padding: 0; margin: 0 0 0.5rem;
                         columns: 4; column-gap: 1rem; }
.leader-issue-item    { break-inside: avoid; padding: 0.15rem 0.4rem;
                         border-radius: 4px; }
.leader-issue-item:hover { background: #f0f6ff; }
.leader-issue-link    { color: #1d4ed8; text-decoration: none; font-size: 0.95rem; }
.leader-issue-link:hover { text-decoration: underline; }
.leader-issue-meta    { font-size: 0.8rem; color: #9ca3af; }

/* ---- Unbound / community archive boxes list ---- */
.unbound-boxes      { display: flex; flex-direction: column; gap: 1.25rem; }
.unbound-box        { background: #fff; border-radius: 10px;
                      box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; }
.unbound-box-head   { background: #1e3a5f; color: #fff; padding: 0.6rem 1rem;
                      display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.unbound-box-num    { font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
                      letter-spacing: .08em; opacity: 0.7; white-space: nowrap; }
.unbound-box-title  { font-size: 0.95rem; font-weight: 600; }
.unbound-box-items  { list-style: none; padding: 0; margin: 0; }
.unbound-box-item   { padding: 0.45rem 1rem; border-top: 1px solid #f3f4f6;
                      display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem;
                      align-items: baseline; }
.unbound-item-reg   { font-size: 0.8rem; font-family: monospace; color: #1d4ed8;
                      font-weight: 600; white-space: nowrap; text-decoration: none; }
.unbound-item-reg:hover { text-decoration: underline; }
.unbound-item-head  { font-size: 0.875rem; color: #374151; }
.unbound-item-period { font-size: 0.8rem; color: #9ca3af; }

/* ---- Unbound single item ---- */
.unbound-location-note { font-size: 0.9rem; color: #6b7280; margin-top: 1.25rem;
                          border-top: 1px solid #f3f4f6; padding-top: 0.75rem; }

/* ---- House names full listing ---- */
.house-full-table          { width: 100%; border-collapse: collapse; font-size: 0.75rem;
                             line-height: 1.2; margin-bottom: 1.5rem; }
.house-full-table th       { background: #1e3a5f; color: #fff; padding: 0.25rem 0.4rem;
                             text-align: left; font-weight: 600; white-space: nowrap; }
.house-full-table td       { padding: 0.15rem 0.4rem; vertical-align: top; }
.house-full-table tr:nth-child(even) td { background: #f3f4f6; }
.house-full-table tr:nth-child(odd)  td { background: #fff; }
.house-full-table a        { color: #1d4ed8; text-decoration: none; }
.house-full-table a:hover  { text-decoration: underline; }
.house-full-table td.num   { white-space: nowrap; }
.house-type-heading        { font-size: 1.1rem; font-weight: 700; color: #1e3a5f;
                             margin: 1.5rem 0 0.4rem; border-bottom: 2px solid #dbeafe;
                             padding-bottom: 0.25rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .leader-issues-list { columns: 2; }
}
@media (max-width: 700px) {
  .result-thumb,
  .result-thumb img     { width: 90px; height: 75px; }
  .no-image-placeholder { width: 90px; height: 75px; }
  .leader-issues-list   { columns: 1; }
}

/* ---- Objects ---- */
.obj-subtitle       { font-size: 1rem; color: #4b5563; margin: -0.75rem 0 1rem; font-style: italic; }

/* ---- Object thumbnail strip + full-image toggle ---- */
.obj-thumb-strip    { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.obj-thumb-figure   { margin: 0; }
.obj-thumb-img      { height: 120px; width: auto; border-radius: 6px;
                      box-shadow: 0 1px 4px rgba(0,0,0,.18); display: block; cursor: default; }
a > .obj-thumb-img  { cursor: zoom-in; }
.obj-show-images-wrap { margin-bottom: 0.75rem; }
.obj-show-images-btn { display: inline-block; padding: 0.35rem 0.9rem;
                       border-radius: 6px; border: 1px solid #2980b9;
                       background: #fff; color: #2980b9; font-size: 0.9rem;
                       cursor: pointer; }
.obj-show-images-btn:hover { background: #2980b9; color: #fff; }
.obj-full-images    { display: none; flex-direction: column; gap: 1rem; margin-top: 0.5rem; }
.obj-full-images.is-visible { display: flex; }

/* Object classifications table */
.obj-class-table       { width: 100%; max-width: 700px; border-collapse: collapse;
                          font-size: 0.9rem; }
.obj-class-table th    { background: #1e3a5f; color: #fff; padding: 0.35rem 0.75rem;
                          text-align: left; font-weight: 600; }
.obj-class-table td    { padding: 0.25rem 0.75rem; border-bottom: 1px solid #f3f4f6; }
.obj-class-table tr:nth-child(even) td { background: #f8fafc; }
.obj-class-table a     { color: #1d4ed8; text-decoration: none; }
.obj-class-table a:hover { text-decoration: underline; }
.obj-class-count       { text-align: right; white-space: nowrap; color: #374151; }
.obj-class-table th.obj-class-count { text-align: right; }
.obj-donor-table       { max-width: 400px; }
.obj-class-id          { text-align: right; white-space: nowrap; color: #9ca3af;
                          font-family: monospace; font-size: 0.8rem; }

/* Object names listing */
.obj-name-filter-row   { margin-bottom: 1rem; }
.obj-name-filter-input { padding: 0.35rem 0.7rem; border: 1px solid #d1d5db;
                          border-radius: 5px; font-size: 0.95rem; width: 220px; }
.obj-name-filter-input:focus { outline: 2px solid #3b82f6; border-color: transparent; }

.obj-names-grid        { columns: 3; column-gap: 2rem; }
.obj-names-letter-group { break-inside: avoid; margin-bottom: 0.5rem; }
.obj-names-letter      { font-size: 1.1rem; font-weight: 700; color: #1e3a5f;
                          border-bottom: 1px solid #dbeafe; margin-bottom: 0.2rem;
                          padding-bottom: 0.1rem; }
.obj-names-list        { list-style: none; padding: 0; margin: 0; }
.obj-names-item        { padding: 0.05rem 0; font-size: 0.9rem; }
.obj-names-item a      { color: #1d4ed8; text-decoration: none; }
.obj-names-item a:hover { text-decoration: underline; }

@media (max-width: 900px) { .obj-names-grid { columns: 2; } }
@media (max-width: 600px) { .obj-names-grid { columns: 1; } }

/* Material / production-method inline editor */
.obj-attr-section   { margin-top: 1.25rem; border-top: 1px solid #f3f4f6; padding-top: 1rem; }
.obj-attr-pill      { display: inline-flex; align-items: center; gap: 0.3rem;
                      background: #dbeafe; color: #1d4ed8; padding: 0.2rem 0.6rem;
                      border-radius: 999px; font-size: 0.82rem; }
.obj-attr-remove    { background: none; border: none; cursor: pointer; padding: 0;
                      font-size: 1rem; line-height: 1; color: #60a5fa; }
.obj-attr-remove:hover { color: #1d4ed8; }
.obj-attr-add-row   { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem;
                      flex-wrap: wrap; }

/* ---- Related files ---- */
.obj-related-files   { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.obj-related-heading { font-size: 1rem; font-weight: 700; color: #1e3a5f;
                       margin: 0 0 0.6rem; }
.obj-related-list    { margin: 0; padding-left: 1.25rem; font-size: 0.9rem;
                       line-height: 1.8; }
.obj-related-list a  { color: #2563eb; text-decoration: none; }
.obj-related-list a:hover { text-decoration: underline; }

.obj-audit           { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.obj-audit-heading   { font-size: 1rem; font-weight: 700; color: #1e3a5f;
                       margin: 0 0 0.6rem; }
.obj-audit-table     { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.obj-audit-table th  { text-align: left; padding: 0.3rem 0.75rem 0.3rem 0;
                       border-bottom: 2px solid #d1d5db; color: #6b7280;
                       font-weight: 600; white-space: nowrap; }
.obj-audit-table td  { padding: 0.3rem 0.75rem 0.3rem 0; border-bottom: 1px solid #f3f4f6;
                       vertical-align: top; }
.obj-audit-table tr:last-child td { border-bottom: none; }
.obj-audit-count     { margin: 0.5rem 0 0; font-size: 0.82rem; color: #9ca3af; }

/* ---- Donor list ---- */
.obj-donor-notes { margin: 0 0 1rem; padding-left: 1.25rem;
                   font-size: 0.9rem; color: #6b7280; }
.obj-donor-notes li { margin-bottom: 0.25rem; }
.obj-donor-notes a  { color: #b91c1c; }

/* ---- Storage location tree ---- */
.obj-loc-table      { max-width: 360px; }
.obj-loc-table a    { color: #000; }
.obj-loc-table a:hover { color: #000; }
.obj-loc-name       { font-size: 0.95rem; }
.obj-loc-depth-0 .obj-loc-name { font-weight: 600; }

/* ---- Worksheet ---- */
.obj-worksheet-link       { color: #2563eb; text-decoration: none; font-size: 0.9rem; }
.obj-worksheet-link:hover { text-decoration: underline; }

/* ---- Oral histories & memoirs ---- */
.memoir-thumbnail      { margin-bottom: 1.25rem; }
.memoir-thumbnail img  { max-width: 240px; border-radius: 6px;
                         box-shadow: 0 2px 8px rgba(0,0,0,.18); display: block; }

.memoir-media          { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.memoir-media-section  { background: #fff; border-radius: 10px;
                         box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 1.25rem 1.5rem; }
.memoir-media-heading  { font-size: 1rem; font-weight: 700; color: #1e3a5f;
                         margin: 0 0 0.75rem; text-transform: uppercase;
                         letter-spacing: .04em; }
.memoir-video          { width: 100%; max-width: 640px; border-radius: 6px;
                         background: #000; display: block; }
.memoir-audio          { width: 100%; max-width: 480px; display: block; margin-top: 0.25rem; }

.memoir-transcript-section { margin-top: 1.5rem; background: #fff; border-radius: 10px;
                              box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 1.25rem 1.5rem; }
.memoir-transcript     { margin: 0; padding: 0 0 0 1.25rem;
                         border-left: 3px solid #dbeafe;
                         font-size: 0.95rem; line-height: 1.7; color: #374151;
                         white-space: pre-line; }
.memoir-transcript strong { color: #1e3a5f; }

/* Media badges on result cards */
.memoir-badges         { display: flex; gap: 0.35rem; margin-top: 0.3rem; flex-wrap: wrap; }
.memoir-badge          { display: inline-block; padding: 0.1rem 0.5rem;
                         border-radius: 999px; font-size: 0.72rem; font-weight: 600;
                         letter-spacing: .03em; text-transform: uppercase; }
.memoir-badge--video   { background: #fef3c7; color: #92400e; }
.memoir-badge--audio   { background: #d1fae5; color: #065f46; }

/* ---- Properties ---- */
.suburb-list      { list-style: none; padding: 0; margin: 1rem 0;
                    columns: 3; column-gap: 1.5rem; max-width: 900px; }
.suburb-list-item { break-inside: avoid; padding: 0.25rem 0;
                    display: flex; align-items: baseline; gap: 0.5rem; }
.suburb-link      { color: #1d4ed8; text-decoration: none; font-size: 1rem; font-weight: 500; }
.suburb-link:hover { text-decoration: underline; }
.suburb-count     { font-size: 0.8rem; color: #9ca3af; white-space: nowrap; }
.section-heading  { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.25rem; }
.prop-result-suburb { font-size: 0.82rem; color: #6b7280; margin: 0.1rem 0 0.2rem; }
.prop-suburb      { margin: -0.75rem 0 1rem; font-size: 0.9rem; }
.prop-suburb a    { color: #1d4ed8; text-decoration: none; }
.prop-suburb a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .suburb-list { columns: 1; }
}

/* Land titles — ancestor chain (connected boxes) */
.titles-chain { display: inline-flex; flex-direction: column; align-items: flex-start;
                margin: 0 0 1.25rem; }
.titles-chain__box { display: flex; flex-direction: column; gap: .1rem;
                     border: 2px solid #888; border-radius: 4px;
                     padding: .35rem .75rem; min-width: 190px; max-width: 320px;
                     background: #fff; color: #1d4ed8; text-decoration: none;
                     font-size: .9rem; }
.titles-chain__box:hover { background: #eff6ff; border-color: #3b82f6; }
.titles-chain__box--current { border-color: #1e3a5f; background: #e8eef6;
                               color: #1e3a5f; cursor: default; }
.titles-chain__box--current:hover { background: #e8eef6; border-color: #1e3a5f; }
.titles-chain__label { font-weight: 600; }
.titles-chain__addr  { font-size: .8rem; color: #374151; }
.titles-chain__tag   { font-size: .75rem; color: #6b7280; font-style: italic; }
.titles-chain__connector { width: 2px; height: 18px; background: #666;
                            margin-left: 1rem; flex-shrink: 0; }

/* Land titles — children list (fallback, not currently used for tree) */
.titles-hierarchy { list-style: none; margin: 0 0 1rem; padding: 0; }
.titles-hierarchy li { padding: .2rem 0 .2rem 1.25rem; border-left: 2px solid #d1d5db;
                       font-size: .9rem; }
.titles-hierarchy li + li { margin-top: .15rem; }
.titles-hierarchy a { color: #1d4ed8; text-decoration: none; }
.titles-hierarchy a:hover { text-decoration: underline; }

/* Land titles — recursive children tree (nested bordered boxes) */
.titles-tree { border: 1px solid #7fb3d3; border-radius: 5px; background: #eef6fc;
               box-shadow: 2px 2px 5px rgba(0,0,0,.15);
               padding: .4rem .5rem; display: inline-block; vertical-align: top; }
.titles-tree__row { display: flex; align-items: flex-start; gap: .4rem;
                    margin-bottom: .25rem; }
.titles-tree__row:last-child { margin-bottom: 0; }
.titles-tree__cell { vertical-align: top; font-size: .88rem; }
.titles-tree__cell a { color: #1d4ed8; text-decoration: underline;
                        display: block; white-space: nowrap; }
.titles-tree__cell a:hover { color: #1e40af; }
.titles-tree__addr { display: block; font-size: .8rem; color: #1f2937;
                      white-space: nowrap; }

/* Asset Register table */
.asset-list-table             { width: 100%; border-collapse: collapse; }
.asset-list-table th          { background: #1e3a5f; color: #fff; padding: 0.35rem 0.75rem;
                                 text-align: left; white-space: nowrap; }
.asset-list-table td          { padding: 0.25rem 0.75rem; border-bottom: 1px solid #f3f4f6;
                                 vertical-align: middle; }
.asset-list-table tr:nth-child(even) td { background: #f8fafc; }
.asset-list-table a           { color: #1d4ed8; text-decoration: none; }
.asset-list-table a:hover     { text-decoration: underline; }
.asset-value-cell             { text-align: right; white-space: nowrap;
                                 font-variant-numeric: tabular-nums; }
.asset-thumb-cell             { width: 70px; text-align: center; }
.asset-total-row td           { font-weight: 600; background: #e8edf5 !important;
                                 border-top: 2px solid #1e3a5f; }
.asset-total-label            { text-align: right; }
