html {
    max-width: 1800px;
    margin: auto;

}

body {
    padding: 0px;
    margin: 0px;
}

header {
    background-color: black;
    height: 50vh;
}

.dropcap {
  float: left;
  font-family: 'veneer-two', serif;
  font-size: 4rem;
  font-weight: normal;
  color: #E40000;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  border: 2px double #E40000;
  background: rgba(228, 0, 0, 0.05);
  display: inline-block;
}



.header-bar {
    position: sticky;
    top: 0;
    height: 30px;
    width: 100%;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    z-index: 9999;
}

.netra-logo {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.netra-logo a {
    background: none;
}

.nav-logo {
    height: 20px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 20px;
}

.social-icons-m {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 20px;
    margin-top: 20px;
}

.twitter,
.facebook {
    display: flex;
    align-items: center;
}

.twitter-share,
.facebook-share {
    list-style: none;
}

.twitter-logo,
.fb-logo {
    height: 20px;
    color: #000;
    margin: 0px 3px;
}


.hero {
    position: relative;
    background: black;
    padding: 4rem 1rem 6rem;
    overflow: hidden;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% auto;
    -webkit-mask-position: bottom;
    mask-repeat: no-repeat;
    mask-size: 100% auto;
    mask-position: bottom;
    min-height: 70vh;
    max-width: 100%;
    margin: auto;
}

.images {
    position: relative;
    min-height: 60vh;
    width: 90%;
    margin: auto;
}



.img {
    position: absolute;
    max-width: 220px;
    object-fit: cover;
}

.img1 {
    top: 0px;
    left: 4%;
    z-index: 4;
}

.img2 {
    top: 40px;
    left: 18%;
    z-index: 2;
}

.img3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.img4 {
    top: 210px;
    left: 2%;
    z-index: 5;
}

.img5 {
    top: 100px;
    right: 4%;
    z-index: 3;
}

.img6 {
    top: 220px;
    right: 15%;
    z-index: 2;
}

.img7 {
    top: 20px;
    right: 10%;
    z-index: 2;
}


h2 {
    font-family: 'veneer-two', sans-serif;
    font-weight: normal;
    font-style: normal;
    color: red;
    font-size: 3rem;
    letter-spacing: 1px;
}

.headline {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;

    color: #e5322d;
    font-family: 'veneer-two', sans-serif;
    font-size: 6rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 0.9;
    pointer-events: none;
    font-weight: normal;
    font-style: normal;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
    image-rendering: pixelated;

}

.pcontainer {
    max-width: 675px;
    margin: 0 auto;
    text-align: right;
}

.policeIgp {
    max-width: 800px;
    display: inline-block;
}


.blurb {

    font-family: "  ", serif;
    font-size: 1.3rem;
    margin: 20rem auto 3rem;
    max-width: 675px;
    display: block;
    padding: 1rem 1rem 0;
    line-height: 1.6;
    font-style: italic;
    font-weight: normal;

}


.blurb::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: #e5322d;
    margin: 1rem auto 0;
}

.author {
    font-family: 'ibm-plex-mono', monospace;
    font-size: 1.1rem;
    color: #444;
    text-align: center;
    margin: 2rem auto 0rem;
    max-width: 675px;
}

.author-name,
.author-date {
    display: inline;
    white-space: nowrap;
}
.list ul li a, .credits p a, .author-name a, .social-icons a, .social-icons-m a, .netra-logo a {
    text-decoration-line:none;
    border-bottom: none;
}


article {


    margin: auto;
}

.article-text {
    max-width: 675px;
    margin: auto;
    padding: 1rem 1rem 0;
}

p {
    font-family: "utopia-std", serif;
    font-size: 1.3rem;


    display: block;

    line-height: 1.6;
}




.table-container {
    border: 1px solid #e5322d;
    border-radius: 8px;
    overflow-x: auto;
    max-width: 900px;
    margin: auto;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5322d;
    font-family: 'ibm-plex-mono', monospace;
    font-size: 0.95rem;
    align-items: center;
}

.filters label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
}

.filters select {
    font-family: inherit;
    font-size: inherit;
    background: none;
    border: none;
    border-bottom: 1px solid #aaa;
    padding: 0.1rem 0.25rem;
    color: #e5322d;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filters select:hover {
    border-color: #e5322d;
}

.filters select:focus {
    outline: none;
    border-color: #e5322d;
}


table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

thead {
    border-bottom: 2px solid #ccc;
    background: #fafafa;
}

thead th {
    font-weight: 600;
    font-family: 'ibm-plex-mono', monospace;
    color: #000;
}

tbody td {
    font-family: 'ibm-plex-mono', monospace;
    color: #000;
}

tbody tr:hover {
    background: #f2f2f2;
    cursor: pointer;
}

tbody tr:hover .victim {
    color: #e5322d;
}

tbody tr {
    transition: background 0.2s ease, color 0.2s ease;
}

th,
td {
    text-align: left;
    padding: 0.75rem 1rem;
}

tbody tr:nth-child(even) {
    background: #f9f9f9;
}

tbody tr.highlight {
    background: #eee;
}

tbody tr.highlight .victim {
    color: #e5322d;
}


.search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.search input {
    font-family: 'ibm-plex-mono', monospace;
    padding: 0.25rem 0.75rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search {
    margin-left: auto;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    font-family: 'ibm-plex-mono', monospace;
    padding: 0.4rem 0;
    color: #aaa;
    width: 200px;
}

.search-icon {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.search input {
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    width: 100%;
}

.pagination {
    margin: 2rem auto 1rem;
    text-align: center;
    font-family: 'ibm-plex-mono', monospace;
    font-size: 0.95rem;
    color: #999;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pagination span {
    cursor: pointer;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination span:hover {
    background-color: #eee;
}

.pagination .active {
    background-color: #e5322d;
    color: white;
    font-weight: bold;
}



.chart-wrapper {

    padding: 1rem;
    height: 400px;
    max-width: 900px;
    position: relative;
    margin: 0px auto 10rem;
    padding-bottom: 40px;


}

.chart-title {
    font-family: "utopia-std", serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.chart-subtitle {
    font-family: 'utopia-std', serif;
    color: #444;
    font-size: 1rem;
    margin-bottom: 1rem;
}





.stats-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 1rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: auto;
}

.stat-box {
    background-color: #e60000;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    width: 200px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-family: 'veneer-two', sans-serif;
    font-size: 4rem;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-label {
    font-family: 'utopia-std', serif;
    font-size: 1.25rem;
    line-height: 1.4;
}




.methods-section {
    font-family: 'utopia-std', serif;
    padding: 2rem 1rem;
    border-top: 1px solid #999;
    max-width: 900px;
    margin: auto;
}

.chart-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.chart-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.full-width {
    width: 100%;
    margin-bottom: 2rem;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pie-container {
    background: #f3f3f3;
    padding: 2rem;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pie-container canvas {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
}


.legend {
    margin-top: 1rem;
    font-family: 'ibm-plex-mono', monospace;
    font-size: 0.9rem;
}

.right-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.chart-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.count-square {
    background: #eee;
    padding: 2rem 1rem;
    text-align: center;
}

.big-number {
    font-family: 'veneer-two', sans-serif;
    font-size: 4rem;
    color: #cc0000;
    margin-bottom: 0.5rem;
}

.label {
    font-size: 1rem;
}

.key-findings {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #cc0000;
}

.key-findings h3 {
    font-weight: bold;
    color: #cc0000;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.key-findings ul {
    list-style: none;
    padding: 0;
}

.key-findings li {
    margin-bottom: 0.6rem;
    border-top: 1px solid #ccc;
    padding-top: 0.6rem;
    font-size: 0.95rem;
}

.heatmap-section {
    font-family: 'utopia-std', serif;
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: auto;
    background: none;
    border: none;
}

.heatmap-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.heatmap-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
}

#heatmapChart .slice.cursor-pointer {
    cursor: pointer;
}

.heatmap-section text.slicetext {
    font-family: 'ibm-plex-mono', monospace !important;
}


#gen-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem 1.5rem;
    max-width: 800px;
    margin: auto;
    padding: 1rem;
    box-sizing: border-box;
    justify-items: center;
}

.gen-block {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.dot-grid {
    display: grid;
    grid-template-columns: repeat(7, 14px);

    gap: 6px;
    justify-content: center;
    justify-items: center;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #d40000;
}

.gen-label {
    font-family: 'ibm-plex-mono', monospace;
    font-size: 14px;
    margin-top: 0.75rem;
    text-align: left;
}

.generation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    column-gap: 3rem;

    row-gap: 2rem;
    justify-items: center;
    max-width: 1000px;
    margin: auto;
}


.generation-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 20px);
    justify-content: center;
    row-gap: 6px;
    column-gap: 6px;

}

.gen-block {
    position: relative;
}

.gen-block::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(51, 51, 51, 0.9);
    color: #fff;
    font-family: 'ibm-plex-mono', monospace;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.gen-block:hover::after {
    opacity: 1;
}



.perpetrators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.perpetrator-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perpetrator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perpetrator-image span {
    position: absolute;
    color: white;
    font-family: 'veneer-two', monospace;
    font-weight: 900;
    font-style: normal;
    text-align: center;
    font-size: 15rem;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.perpetrator-image span:first-of-type {
    font-size: 4rem;
    font-weight: bold;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.perpetrator-image span:last-of-type {
    font-size: 1rem;
    font-weight: normal;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 0.5px;
}



.perpetrator-chart-section {
    font-family: 'ibm-plex-mono', serif;
    padding: 2rem 1rem;
    border-top: 1px solid #999;
    max-width: 900px;
    margin: auto;
}

.perpetrator-chart-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.perpetrator-chart-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 720px;
    color: #444;
}

#perpetratorChart {
    max-width: 900px !important;
    height: 500px !important;
    margin: auto;
}

canvas#perpetratorChart {
    font-family: 'ibm-plex-mono', monospace !important;
}




#scrolly {
    position: relative;
}


#map-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    z-index: 0;
}

#bd-map {
    width: 800px;
    height: 800px;
}

#scroll-sections {
    pointer-events: none;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.scroll-cover {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}


.scroll-text {
    pointer-events: auto;
    font-family: 'ibm-plex-mono', monospace;
    border: 1px solid #000;
    padding: 2rem 1.5rem;
    max-width: 500px;
    text-align: center;
    background-color: rgba(249, 249, 249, 0.5);
}

.scroll-text::before {
    content: attr(data-day);
    display: table;
    margin: 0 auto 1rem;
    padding: 0.4rem 1rem;
    border: 1px solid #000;
    border-radius: 999px;
    font-weight: 500;
    font-size: 1rem;
}

.scroll-spacer {
  height: 100vh; /* or adjust as needed */
}

#tooltip {
    position: absolute;
    display: none;
    background: #fff;
    border: 1px solid #999;
    padding: .4rem .6rem;
    font: 0.9rem/1.35 'utopia-std', serif;
    pointer-events: none;
}



.credits p {
    font-family: "ibm-plex-mono", "Courier New", monospace;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    color: #999;
    max-width: 800px;
    margin: 3rem auto;
    padding: 1rem;
    border-top: 1px solid #333;
    text-align: center;
}

a {
  color: #E40000;
  text-decoration: none;
  border-bottom: 3px double #E40000;
  padding-bottom: 0.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
  
}

a:hover {
  color: #B00000;
  border-bottom-color: #B00000;
  background-color: rgba(228, 0, 0, 0.05);
}



.method-title {

    font-style: normal;
    color: #c74c3d;
    font-size: 18px;
    border-top: 1px solid #333;
    font-family: 'veneer-two';
    text-transform: uppercase;
    max-width: 800px;
    padding-top: 3rem;
}

.content p,
.footnotes p {
    font-family: 'ibm-plex-mono', 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: normal;
}

.methodology,
.methodology p {
    color: #333;
    font-size: 15px;
    line-height: normal;
    font-family: 'ibm-plex-mono', monospace;
}



.content {
    --closed-height: 100px;
    max-height: var(--max-height, unset);
    transition: max-height 0.2s ease-in-out;
    overflow: hidden;
    line-height: 1.3;
    padding: 0 0;
}



.toggle {
    line-height: 2;
    text-align: center;
    font-weight: 600;
    border-top: 1px solid transparent;
    padding: 2rem 0 0;
    box-shadow: 0 -30px 40px transparent;
    position: relative;
    transition: all 0.1s ease;
}

.box:not(.open) .toggle {
    border-top-color: rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 200px;
    margin: 0 auto;

}

.toggle button {
    display: block;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border-width: 0;
    width: 100%;
    text-decoration: none;
    color: red;
    display: block;
    padding: 0.8rem 1.5rem;
    transition: all 0.1s linear;
    font-weight: normal;
    background-color: #f9f9f9;
    font-size: 1rem;
    font-family: 'ibm-plex-mono', sans-serif;
    border: none;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease;
}



.toggle button:hover,
.toggle button:focus {
    background-color: #e0e0e0;
    outline-width: 0;
    color: #000;
}

.toggle button:active {
    background-color: #c74c3d;
    color: #fff;
    transform: translateY(1px);
    outline-width: 0;
}




.content p,
.footnotes p {
    font-family: 'ibm-plex-mono', 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: normal;

}

.footnote {
    font-size: 1em;
    line-height: 0.1em;
    text-decoration: none;
    vertical-align: super;
    position: relative;
    top: -0.1em;

}

.return-link,
sup {
    color: #DB1D08;
    font-family: 'ibm-plex-mono', 'Arial Narrow', Arial, sans-serif;

}


code {
    font-family: 'Courier New', Courier, monospace;
    padding: 6px 10px;
    border-radius: 6px;
    color: #444;

    letter-spacing: -0.02em;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}





.footnotes a,
.footnote a,
.footnotes a:visited,
.footnote a:visited,
.footnotes a:hover,
.footnote a:hover {
    text-decoration: none;
}

.banner {

    margin: 20px auto;
}



.banner img {
    height: auto;
    width: 100%;
    display: block;

}




#footer {
    background-color: #f9f9f9;
    color: #000;
    padding: 40px;
    margin: auto;
    display: flex;
    justify-content: center;
}

#footer-inner {
    max-width: 618px;
    margin: 0 auto;
}

.logo {
    text-align: left;
    margin-bottom: 20px;
}

.logo img {
    display: block;
    margin-bottom: 10px;
    max-width: 150px;
    height: 100%;
    margin: auto;
}



.logo p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    color: black;
    margin: 10px;
    text-align: center;
}

.lists {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 30px;
    margin-top: 30px;
    color: black;
    font-family: 'ibm-plex-mono', 'Courier New', Courier, monospace;
    font-weight: 300;
    text-transform: uppercase;
}

.list {
    flex: 1;
    min-width: 200px;
    text-align: center;

}

.list h3 {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.list ul li {
    margin-bottom: 5px;
}


.list ul li a {
    color: black;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    background: none;
}

.list ul li a:hover {
    opacity: 1;
}

.social-icons a {
    background: none;
    
}

.social-icons-m a {
    background: none;
}

.map-police {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  text-align: center;
}

.map-police img {
  width: 100%;
  height: auto;
  display: block;
}

.pcontainer figcaption, .map-police figcaption {
  font-family: 'ibm-plex-mono', monospace;
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.5rem;
  line-height: 1.4;
}

@media (min-width: 1800px) {
    .hero {
        min-height: 60vh;
    }

    .headline {
        bottom: 35%;
    }
}


@media (max-width: 1042px) {
    .hero {
        -webkit-mask-size: unset;
        -webkit-mask-position: unset;
        mask-size: unset;
        mask-position: unset;
    }

    .headline {
        bottom: 20rem;
    }
}



@media (max-width: 768px) {
    #perpetratorChart {
        width: 100% !important;
    }

    .policeIgp {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) and (orientation: portrait) {


    .images {
        width: 100%;
    }

    .img {
        max-width: 150px;
    }

    .headline {
        bottom: 10rem;
    }

    .blurb {
        margin: 25rem auto 3rem;
    }

    .img1 {
        left: 0%;
    }

    .img4 {
        top: 310px;
    }

    .img2 {
        top: 20%;
        left: 8%;
    }

    .img5 {
        top: 30%;
    }

    .img6 {
        top: 70%;
        right: 5%;
    }
}

@media (max-width: 450px) and (orientation: portrait) {
    .img {
        max-width: 120px;
    }

    .headline {
        bottom: 0rem;
        font-size: 4rem;
        width: 95%;
    }

    .hero {
        mask-position: bottom;
    }
}

@media (max-width: 499px) {
    .dropcap {
    font-size: 2.8rem;
    padding: 0.3rem 0.5rem;
    margin-right: 0.4rem;
    border-width: 1.5px;
  }
    .perpetrators {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .perpetrator-image span:first-of-type {
        font-size: 1.5rem;

    }

    .perpetrator-image span:last-of-type {
        font-size: 0.5rem;
    }

    .medical-id {
        display: none;
    }

    th:nth-child(1) {
        display: none;
    }

    #perpetratorChart {
        /* height: unset !important; */
    }

    .methods-section, .chart-wrapper {
        padding: 0.1rem;
    }
}