/* nindata.io site styles.
   Part 1: base layout & components. Part 2: the black-on-white design, scoped under body.rd (every page). */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
  }

  .navbar-brand {
      font-weight: 600;
  }

  .main-content {
      padding-top: 2rem;
      padding-bottom: 3rem;
  }

  .display-4 {
      font-weight: 500;
      font-size: 2.0rem;
      margin-bottom: 1.5rem;
  }

  .lead {
      font-size: 1.25rem;
      font-weight: 300;
      color: #6c757d;
      line-height: 1.6;
  }

  .stats-card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08);
      padding: 0.51rem;
      margin-bottom: 2rem;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid #f1f3f4;
  }

  .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  }

  .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: block;
  }

  .card-title {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
  }

  /* ---- show & tour pages (shared) ---- */
  .show-hero { margin-bottom: 2rem; }
  .show-venue { font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 700; margin: 0 0 .25rem; line-height: 1.25; }
  .show-date { font-size: 1.25rem; color: #495057; margin-bottom: .5rem; }
  .show-festival { font-weight: 500; margin-bottom: .25rem; }
  .show-date a.show-release { color: inherit; text-decoration: none; border-bottom: 1px solid #ced4da; }
  .show-date a.show-release:hover { border-bottom-color: currentColor; }
  .show-venue .tag { font-size: .7rem; vertical-align: 6px; }
  .show-meta { color: #6c757d; margin-top: 1.25rem; }
  .show-sep { color: #adb5bd; margin: 0 .35rem; }
  .show-venue a, .show-meta a, .setlist .title { color: inherit; text-decoration: none; }
  .show-venue a:hover, .show-meta a:hover, .setlist .title:hover { text-decoration: underline; }
  .show-meta a { color: #495057; }
  .show-meta a.show-tour { color: var(--bs-link-color); }
  .show-nav a { text-decoration: none; }
  .show-nav { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #eee; font-size: .9rem; }

  .show-summary { font-size: 1.05rem; margin-bottom: .75rem; }
  .show-summary strong { font-weight: 600; }

  /* Album mix: pinned categorical slots (validated palette), gray for Other */
  .slot-1 { --c: #2a78d6; } .slot-2 { --c: #eb6834; } .slot-3 { --c: #1baf7a; } .slot-4 { --c: #eda100; }
  .slot-5 { --c: #e87ba4; } .slot-6 { --c: #008300; } .slot-7 { --c: #4a3aa7; } .slot-8 { --c: #e34948; }
  .slot-other { --c: #b4b2a9; }
  .album-bar { display: flex; gap: 2px; height: 14px; margin-bottom: .6rem; }
  .album-bar > span { background: var(--c); min-width: 4px; }
  .album-bar > span:first-child { border-radius: 4px 0 0 4px; }
  .album-bar > span:last-child { border-radius: 0 4px 4px 0; }
  .album-bar > span:only-child { border-radius: 4px; }
  .album-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .85rem; color: #495057; margin-bottom: 2rem; }
  .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: .35rem; vertical-align: 1px; }

  .setlist { list-style: none; padding: 0; margin: 0 0 2rem; }
  .setlist li { display: flex; gap: .75rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid #f0f0f0; }
  .setlist li:last-child { border-bottom: 0; }
  .setlist .num { width: 1.75rem; flex-shrink: 0; text-align: right; color: #adb5bd; font-variant-numeric: tabular-nums; }
  .setlist .main { flex: 1; min-width: 0; }
  .setlist .title { font-weight: 500; }
  .setlist .notes { color: #6c757d; font-size: .875rem; }
  .setlist .album { color: #6c757d; font-size: .875rem; white-space: nowrap; }
  .setlist .album-inline { display: none; }
  .tag { display: inline-block; font-size: .65rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .1rem .4rem; border-radius: 4px; border: 1px solid #ced4da; color: #495057; margin-left: .35rem; vertical-align: 2px; }
  .tag-rare { border-color: #b8860b; color: #8a6508; }
  .show-uniqueness { color: #495057; margin: .75rem 0 1rem; }
  .tag-debut { background: #212529; border-color: #212529; color: #fff; }
  .stage-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #6c757d; margin: 1.5rem 0 .25rem; }

  @media (max-width: 575.98px) {
  .setlist .album { display: none; }
  .setlist .album-inline { display: block; }
  }

  .section-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #6c757d; font-weight: 600; margin-bottom: .5rem; }
  .tour-songs td { vertical-align: middle; border-color: #f0f0f0; }
  .tour-songs .title, .plain-list .title { color: inherit; text-decoration: none; }
  .tour-songs .title:hover, .plain-list .title:hover { text-decoration: underline; }
  .tour-songs .bar-cell { width: 30%; }
  .mini-bar { display: block; height: 6px; background: #6c757d; border-radius: 0 3px 3px 0; min-width: 2px; }
  .plain-list { list-style: none; padding: 0; margin: 0; }
  .plain-list li { padding: .2rem 0; }
  .plain-list a.small { text-decoration: none; margin-left: .25rem; }
  .show-list { list-style: none; padding: 0; margin: 0 0 2rem; }
  .show-list li { position: relative; display: flex; gap: .75rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid #f0f0f0; }
  .show-list li:hover { background: #f8f9fa; }
  .show-list a { color: inherit; text-decoration: none; }
  /* venue link sits above the row-wide stretched link to the show */
  .show-list .venue a, .show-list .city a { position: relative; z-index: 2; }
  .show-list .venue a:hover, .show-list .city a:hover { text-decoration: underline; }
  .show-list .num { width: 1.75rem; flex-shrink: 0; text-align: right; color: #adb5bd; font-variant-numeric: tabular-nums; }
  .show-list .date { width: 6.5rem; flex-shrink: 0; color: #495057; font-variant-numeric: tabular-nums; }
  .show-list .where { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; column-gap: 1rem; }
  .show-list .venue { font-weight: 500; flex: 1 1 14rem; }
  .show-list .city { color: #6c757d; flex: 1 1 12rem; }
  /* whole row is one link (list pages with no links inside the row) */
  .show-list a.row-link { display: flex; gap: .75rem; align-items: baseline; flex: 1; min-width: 0; }
  .show-list a.row-link:hover .venue { text-decoration: underline; }
  .show-list .years { width: 6rem; flex-shrink: 0; text-align: right; color: #6c757d; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .show-list .setlist-col { width: 4.5rem; flex-shrink: 0; text-align: right; align-self: center; }
  .show-list .no-setlist { font-size: .75rem; color: #adb5bd; white-space: nowrap; }
  .show-list a.setlist-icon { color: var(--bs-link-color); position: relative; z-index: 2; }
  .show-list a.setlist-icon:hover { color: var(--bs-link-hover-color); }

  /* ---- release page ---- */
  .release-top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 1.5rem; }
  .release-cover img { border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
  .release-tracklist .setlist { margin-bottom: .5rem; }
  .release-tracklist .dur { color: #6c757d; font-size: .875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .track-grid.release-info { background: #f8f9fa; border: 1px solid #eef0f2; border-radius: 8px; padding: 1rem 1.25rem; margin: 0 0 2rem; gap: .7rem 1rem; }
  .track-section { padding: 1.25rem 0 .5rem; border-bottom: 1px solid #f0f0f0; scroll-margin-top: 1rem; }
  .track-heading { font-size: 1.35rem; font-weight: 600; margin: 0 0 .25rem; display: flex; gap: .75rem; align-items: baseline; }
  .track-heading .num { color: #adb5bd; font-weight: 400; min-width: 1.75rem; text-align: right; font-variant-numeric: tabular-nums; }
  .track-heading .title { color: inherit; text-decoration: none; }
  .track-heading .title:hover { text-decoration: underline; }
  .track-details .accordion-body { padding-left: 2.5rem !important; padding-top: 0 !important; }
  .track-details .track-meta { margin-bottom: 1.5rem; }
  .lyrics-toggle summary { cursor: pointer; color: var(--bs-link-color); list-style: none; display: inline-block; margin-bottom: .5rem; }
  .lyrics-toggle summary::-webkit-details-marker { display: none; }
  .lyrics-toggle summary:hover { text-decoration: underline; }
  .lyrics-toggle .hide-label, .lyrics-toggle[open] .show-label { display: none; }
  .lyrics-toggle[open] .hide-label { display: inline; }
  /* lyrics as a raw terminal dump */
  .lyrics { background: #0d0d0d; color: #e4e4e4; font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
            font-size: .85rem; line-height: 1.75; white-space: pre-wrap; word-break: break-word;
            padding: 1.25rem 1.5rem; margin: .5rem 0 0; border-left: 3px solid #5a5a5a; border-radius: 2px; max-width: 48rem; }
  .lyrics::selection { background: #e4e4e4; color: #0d0d0d; }
  .track-meta { color: #6c757d; font-size: .9rem; margin-bottom: .5rem; }
  .track-grid { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .9rem 1rem; margin: .25rem 0 .75rem; font-size: .925rem; }
  .track-grid dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #6c757d; font-weight: 600; padding-top: .2rem; }
  .track-grid dd { margin: 0; }
  .track-grid .lyrics-toggle summary { margin-bottom: .25rem; }
  @media (max-width: 767.98px) {
    .release-top { grid-template-columns: 1fr; }
    .release-cover { max-width: 320px; }
    .track-details .accordion-body { padding-left: 0 !important; }
    .track-grid { grid-template-columns: 1fr; gap: 0; }
    .track-grid dt { padding-top: 1rem; }
    .track-heading { flex-wrap: wrap; }
  }

  /* ---- top nav: underline the current section (inset shadow, so nothing shifts) ---- */
  .navbar .nav-link { color: #6c757d; }
  .navbar .nav-link:hover { color: #212529; }
  .navbar .nav-link.active { color: #212529; box-shadow: inset 0 -2px 0 #212529; }

  /* ---- about + corrections ---- */
  .email-reveal { color: var(--bs-link-color); cursor: pointer; text-decoration: underline; }
  .show-correction { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid #f0f0f0; font-size: .875rem; color: #6c757d; }

  /* ---- on this day ---- */
  .otd-strip { display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; padding: .7rem 1rem; margin: 0 0 1.75rem;
               background: #f8f9fa; border: 1px solid #eef0f2; border-radius: 8px; color: #343a40; text-decoration: none; }
  .otd-strip:hover { background: #f1f3f5; }
  .otd-strip:hover .otd-text { text-decoration: underline; }
  .otd-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: #6c757d; white-space: nowrap; }
  .otd-text { flex: 1; min-width: 0; }
  .otd-arrow { color: var(--bs-link-color); }
  .otd-nav { margin: -1rem 0 1.5rem; padding-top: 0; border-top: 0; }
  .otd-releases { margin-bottom: 1.5rem; }
  .otd-release { display: flex; gap: .75rem; align-items: center; padding: .5rem 0; color: inherit; text-decoration: none; }
  .otd-release img { border-radius: 4px; object-fit: cover; }
  .otd-release:hover strong { text-decoration: underline; }

  /* two-column cards stack on mobile: space the second column's title off the first */
  @media (max-width: 767.98px) {
    .stats-card .row > [class*="col-"] + [class*="col-"] {
      margin-top: 2rem;
    }
  }

  .top-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .top-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
  }

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

  .top-list li:hover {
    background-color: #f8f9fa;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px;
  }

  .song-stat-item {
    margin-bottom: 1.5rem;
  }

  .song-stat-item:last-child {
    margin-bottom: 0;
  }

  .song-name {
    font-weight: 600;
    color: #1a1a1a;
  }

  .song-percentage {
    font-weight: 700;
    color: #495057;
    font-size: 0.9rem;
  }

  .song-progress {
    height: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 0.25rem;
  }

  .song-progress .progress-bar {
    border-radius: 4px;
    transition: width 1s ease-in-out;
  }

  .rank-number {
    font-weight: 700;
    color: #007bff;
    margin-right: 0.75rem;
    font-size: 0.875rem;
  }

  .see-more-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
  }

  .see-more-btn:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .venue-name {
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
  }

  .venue-name:hover {
    color: #007bff;
    text-decoration: none;
  }

  .venue-location {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 2px;
  }

  .show-count {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .tooltip-wrapper {
    position: relative;
    display: block;
    cursor: pointer;
  }

  .tooltip-wrapper:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 999;
  }

  .cities-card .stat-number { color: #198754; }
  .cities-card .show-count { background: #198754; }
  .cities-card .see-more-btn:hover { background: #198754; border-color: #198754; }

  .track-accordion .accordion-button {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    text-align: left !important;
  }

  .track-accordion .accordion-button::after {
    margin-left: 0 !important;
    position: absolute !important;
    right: 1rem !important;
  }

  .accordion-button::after {
    background-image: none;
    width: 0;
  }

  .accordion-button:not(.collapsed)::after {
    background-image: none;
    width: 0;
  }

  .accordion-button {
    display: block;
    text-align: center;
    font-size: 1.0rem;
  }

  p.track-info {
      margin: 0;
  }

  @media (max-width: 768px) {
    .tooltip-wrapper::after {
        font-size: 10px;
        max-width: 150px;
        left: 10px;
        transform: none;
    }
    table.dataTable,
    table.dataTable tbody,
    table.dataTable tbody tr,
    table.dataTable tbody td {
        font-size: 0.8rem !important;
    }

    table.dataTable thead th {
        font-size: 0.65rem !important;
        font-weight: 600;
        padding: 0.4rem 0.1rem !important; /* Increased from 0.25rem */
        text-align: left !important;
    }

    table.dataTable tbody td {
        padding: 0.4rem 0.5rem !important; /* Increased from 0.2rem */
        white-space: nowrap;
        text-align: left !important;
    }
}

/* ======================================================================== */

/* nindata redesign — black on white, typographic, rules not boxes.
   Loaded only with ?redesign=1 while we try it out; everything is scoped under body.rd. */

body.rd {
  --ink: #111; --grey: #6b6b6b; --hair: #e4e4e4; --paper: #fff;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bs-link-color: var(--ink); --bs-link-hover-color: #000; --bs-link-color-rgb: 17,17,17;
  background: var(--paper); color: var(--ink);
  font: 15px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

/* links: black, underline on hover only */
.rd a { color: var(--ink); text-decoration: none; }
.rd a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* nav */
.rd .navbar { background: var(--paper) !important; border-bottom: 1px solid var(--ink) !important; }
.rd .navbar .nav-link { color: var(--grey); font-size: .9rem; }
.rd .navbar .nav-link:hover { color: var(--ink); text-decoration: none; }
.rd .navbar .nav-link.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }

/* page header */
.rd .show-hero { margin-bottom: 2.5rem; }
.rd .show-venue { font: 700 clamp(2rem, 5vw, 3.1rem)/1.05 var(--sans); letter-spacing: -0.035em; margin-bottom: .6rem; }
.rd .show-date { font: 400 .8rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--grey); }
.rd .show-date a.show-release { border-bottom-color: var(--hair); }
.rd .show-meta { font-size: .9rem; color: var(--grey); margin-top: 1.1rem; }
.rd .show-meta a, .rd .show-meta a.show-tour { color: var(--ink); }
.rd .show-sep { color: #bdbdbd; }
.rd .show-nav { border-top: 1px solid var(--ink); font: .8rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* section labels: small mono caps over a hairline */
.rd .section-label, .rd .card-title {
  font: 500 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--ink);
  padding-bottom: .55rem; border-bottom: 1px solid var(--ink); margin: 2.25rem 0 0;
}

/* summary lines: numbers in mono */
.rd .show-summary { font-size: .95rem; }
.rd .show-summary strong, .rd .show-uniqueness strong { font: 600 .95rem var(--mono); }
.rd .show-uniqueness { color: var(--grey); }

/* lists: hairlines, mono for numbers and dates */
.rd .setlist li, .rd .show-list li { border-bottom: 1px solid var(--hair); }
.rd .setlist .num, .rd .show-list .num, .rd .track-heading .num { font-family: var(--mono); font-size: .8rem; color: #a3a3a3; }
.rd .show-list .date, .rd .show-list .years, .rd .release-tracklist .dur, .rd .setlist .dur { font-family: var(--mono); font-size: .82rem; color: var(--grey); }
.rd .setlist .title { font-weight: 500; }
.rd .setlist .album { font-size: .8rem; color: var(--grey); }
.rd .show-list li:hover { background: #f6f6f6; }

/* tags: square, mono, black */
.rd .tag { border-radius: 0; border-color: var(--ink); color: var(--ink); font-family: var(--mono); font-weight: 500; letter-spacing: .06em; }
.rd .tag-debut { background: var(--ink); color: #fff; }
.rd .tag-rare { border-style: dashed; color: var(--ink); }

/* info grids: no grey box, just rules */
.rd .track-grid.release-info { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 1.1rem 0; }
.rd .track-grid dt { font: 500 .66rem/1.6 var(--mono); letter-spacing: .14em; color: var(--grey); }
.rd .track-meta { font-family: var(--mono); font-size: .8rem; color: var(--grey); }

/* release page */
.rd .release-cover img { border-radius: 0; box-shadow: none; }
.rd .track-section { border-bottom: 1px solid var(--hair); }
.rd .track-heading { font-weight: 700; letter-spacing: -0.02em; }

/* album bar: square ends */
.rd .album-bar > span, .rd .album-bar > span:first-child, .rd .album-bar > span:last-child, .rd .album-bar > span:only-child { border-radius: 0; }
.rd .album-legend { font-size: .8rem; }

/* misc */
.rd .show-correction { border-top-color: var(--hair); font-size: .82rem; }
.rd .setlist-icon, .rd .otd-arrow { color: var(--ink) !important; }

/* links inside running text keep a faint underline so they still read as links */
.rd .track-grid dd a, .rd .show-summary a, .rd .show-uniqueness a, .rd p a, .rd .show-date a, .rd .show-correction a {
  text-decoration: underline; text-decoration-color: #c9c9c9; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.rd .track-grid dd a:hover, .rd .show-summary a:hover, .rd p a:hover, .rd .show-date a:hover, .rd .show-correction a:hover { text-decoration-color: var(--ink); }

/* wordmark: nin/data (type only — no NIN logo) */
.rd .navbar-brand { text-decoration: none; }
.rd .wordmark { font: 700 1.4rem/1 var(--sans); letter-spacing: -0.045em; color: var(--ink); }
.rd .wm-slash { color: #b5b5b5; font-weight: 400; margin: 0 .04em; }
.rd .navbar-toggler { border-radius: 0; border-color: var(--ink); }
.rd .navbar-toggler:focus { box-shadow: none; outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- older pages brought into the design ---- */

/* page titles from the older title partials */
.rd .show-header h1, .rd .show-header .display-4 { font: 700 clamp(2rem, 5vw, 3.1rem)/1.05 var(--sans); letter-spacing: -0.035em; }
.rd .show-header h2, .rd .show-header .h3 { font: 400 .85rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--grey); border: 0 !important; }
.rd h2, .rd h3 { font-weight: 700; letter-spacing: -0.025em; }
.rd hr { border-top: 1px solid var(--ink); opacity: 1; }

/* stats cards: no box, gradient or lift — a ruled section */
.rd .stats-card { background: none !important; box-shadow: none; border: 0; border-radius: 0; padding: 0; margin-bottom: 2.25rem; }
.rd .stats-card:hover { transform: none; box-shadow: none; }
.rd .stats-card .card-title { margin-top: 0; margin-bottom: .9rem; }

/* tables: hairlines, no zebra stripes, mono header */
.rd .table { --bs-table-striped-bg: transparent; --bs-table-hover-bg: #f6f6f6; --bs-table-bg: transparent; border-color: var(--hair); }
.rd .table > :not(caption) > * > * { border-bottom-color: var(--hair); box-shadow: none; }
.rd .table thead th { font: 500 .66rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink); border-bottom: 1px solid var(--ink); }

/* homepage filter buttons: outlined, active one solid black (the page's JS swaps btn-success/btn-dark) */
.rd .filter-button-group { gap: 0; border: 1px solid var(--ink); border-radius: 0; }
.rd .filter-button-group .btn { border-radius: 0 !important; border: 0; background: var(--paper); color: var(--ink); font: 500 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: .7rem .5rem; }
.rd .filter-button-group .btn + .btn { border-left: 1px solid var(--ink); }
.rd .filter-button-group .btn:hover { background: #f1f1f1; }
.rd .filter-button-group .btn.btn-success { background: var(--ink); color: var(--paper); }

/* badges and Bootstrap colour accents → monochrome */
.rd .badge { border-radius: 0; background: var(--ink) !important; font: 500 .62rem/1 var(--mono); letter-spacing: .12em; padding: .35em .5em; }
.rd .text-primary, .rd .text-warning { color: var(--ink) !important; }

/* tours index cards */
.rd .tour-category, .rd .card, .rd .list-group-item { background: none; border-radius: 0; box-shadow: none; }
.rd .card { border: 0; border-top: 1px solid var(--ink); }

/* DataTables paints its own stripes with an inset shadow */
.rd table.dataTable > tbody > tr > *, .rd table.dataTable.table-striped > tbody > tr.odd > *,
.rd table.dataTable.table-hover > tbody > tr:hover > * { box-shadow: none !important; }
.rd table.dataTable > tbody > tr:hover > * { background: #f6f6f6; }

/* on-this-day strip: ruled, not boxed */
.rd .otd-strip { background: none; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; padding: .75rem 0; }
.rd .otd-strip:hover { background: none; }
.rd .otd-label { font-family: var(--mono); font-weight: 500; color: var(--ink); }

/* navbar contents sit in the same column as the page content */
.rd .nav-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.rd .navbar > .container > .row { flex: 1 1 100%; }
.rd .navbar-brand { margin-right: 0; }
@media (min-width: 992px) { .rd .navbar-nav .nav-item:last-child .nav-link { padding-right: 0; } }

/* progress bars (tours index "most played"): thin, square, black */
.rd .progress { height: 6px; border-radius: 0; background: var(--hair); }
.rd .progress-bar { border-radius: 0; background: var(--ink) !important; }
/* section labels always span the full width, with breathing room between sections */
.rd .stats-card .card-title { display: block; flex: 1 1 100%; }
/* beats Bootstrap's .mb-4 (which uses !important) on these sections */
.rd .stats-card, .rd .stats-card.mb-4 { margin-bottom: 3rem !important; }

/* desktop nav: a quiet · between items (on the <li>, so the active underline stays under the text) */
@media (min-width: 992px) {
  .rd .navbar-nav .nav-item { display: flex; align-items: center; }
  .rd .navbar-nav .nav-item + .nav-item::before { content: "\00B7"; color: #bdbdbd; padding: 0 .1rem; }
  .rd .navbar-nav .nav-link { padding-left: .55rem; padding-right: .55rem; }
}
