/* Ballynakill & Surroundings Historical Group — site stylesheet */

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/SourceSansPro-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: italic;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/SourceSansPro-Italic.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 600;
  font-display: fallback;
  src: url("../fonts/SourceSansPro-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url("../fonts/SourceSansPro-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/DMSerifDisplay-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: fallback;
  src: url("../fonts/DMSerifDisplay-Italic.ttf") format("truetype");
}

:root {
  --color-bg: #fff;
  --color-text: #000;
  --color-caption: #555;
  --color-secondary: #666;
  --color-border: #dedede;
  --color-population-up: #3d7a4d;
  --color-population-down: #a33f3f;
  --content-width: 1200px;
  --side-padding: clamp(1.5rem, 5vw, 2rem);
  --fs-small: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.227), 1rem);
  --fs-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.227), 1.125rem);
  --fs-large: clamp(1.375rem, 1.375rem + ((1vw - 0.2rem) * 0.909), 1.875rem);
  --fs-x-large: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.909), 2.25rem);
  --fs-h1: clamp(1.743rem, 1.743rem + ((1vw - 0.2rem) * 2.285), 3rem);
}

/* desktop and laptop screens: slightly smaller text (about 17px body) and titles; phones keep full size */
@media (min-width: 900px) {
  html {
    font-size: 94%;
  }
  :root {
    --fs-h1: clamp(1.743rem, 1.743rem + ((1vw - 0.2rem) * 2.285), 2.65rem);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Source Sans Pro", sans-serif;
  font-size: var(--fs-medium);
  line-height: 1.6;
  padding: 0 var(--side-padding);
}

a {
  color: var(--color-text);
}
nav a, footer a {
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: var(--fs-h1); }
h2, h3 { font-size: var(--fs-x-large); }
h4 { font-size: var(--fs-large); }

header, main, footer {
  max-width: var(--content-width);
  margin: 0 auto;
}

header {
  padding: clamp(16px, 5vh, 50px) 0;
}

/* header / banner / nav */

.banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 440;
  max-height: 48vh;
  object-fit: cover;
  object-position: center 28%;
}

nav {
  border-top: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding: 10px 0;
}
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-family: "DM Serif Display", serif;
  font-size: 1.2rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
}
nav a:hover,
nav a:focus-visible {
  background: #f2f2f2;
  border-color: #444;
}
nav a[aria-current] {
  color: #fff;
  background: var(--color-text);
  border-color: var(--color-text);
}

/* content */

main > * + *,
.intro > * + * {
  margin-top: 1.5rem;
}

/* homepage intro column is narrower than the rest of the site */
.intro {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
}
body.home {
  padding-bottom: 60px;
}

/* Placenames Project index: small headings in the intro text, prominent Townlands heading */
h2.minor-heading,
h3.minor-heading {
  font-size: 1.875rem;
  margin: 2rem 0 0.5rem;
}
@media (min-width: 900px) {
  h2.minor-heading,
  h3.minor-heading {
    font-size: 2.1rem;
  }
}
h2.section-heading {
  font-size: var(--fs-h1);
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* Placenames Project landing page: townland finder first, project text after */
h2.section-heading {
  scroll-margin-top: 1rem;
}
.landing .lead {
  font-size: 1.25rem;
  line-height: 1.5;
}
.page-contents {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}
.page-contents li {
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.page-contents strong {
  display: block;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 1.2rem;
}
.landing-tools {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.map-link {
  align-self: flex-start;
  margin-top: 0.25rem;
  color: var(--color-secondary);
  font-size: var(--fs-medium);
  font-weight: 600;
  text-decoration-thickness: 1px;
}
.map-link:hover,
.map-link:focus-visible {
  color: var(--color-text);
}
.townland-search label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.townland-search input {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.85rem;
  font: inherit;
  color: var(--color-text);
  background: #fff;
  border: 2px solid var(--color-secondary);
  border-radius: 8px;
}
.townland-search input:focus {
  outline: 3px solid #1a5fb4;
  outline-offset: 2px;
}
.townland-meta {
  margin: 1rem 0 0.75rem;
}
.townland-status:empty {
  display: none;
}
.townland-status {
  margin: 0;
  color: var(--color-secondary);
  font-size: var(--fs-small);
}
.landing .townland-list {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.5rem;
}
.landing .townland-list li {
  padding: 0;
}
.landing .townland-list li[hidden] {
  display: none;
}
.landing .townland-list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .landing .townland-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing .townland-list a {
    padding: 0 0.5rem;
    font-size: 0.9rem;
  }
}
.landing .townland-list a:hover,
.landing .townland-list a:focus-visible {
  background: #f2f2f2;
  border-color: var(--color-secondary);
  text-decoration: underline;
}

/* first text section after the townland list gets a divider */
.landing .townland-list + h2.minor-heading {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* church parish sub-headings above each townland list */
h3.parish-heading {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem;
}

/* small group lists: names run across the row so every column is used */
.group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  column-gap: 2rem;
}
.group-list li {
  padding: 0.15rem 0;
}

/* alphabetical townland/contributor lists on the Placenames Project pages — flows into as many
   columns as fit rather than one long single-file list */
.townland-list,
.contributor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-width: 12rem;
  column-gap: 2rem;
}
.townland-list li,
.contributor-list li {
  break-inside: avoid;
  padding: 0.15rem 0;
}

main img {
  display: block;
  width: 100%;
  height: auto;
}

figure {
  margin: 0;
}
main audio {
  display: block;
  width: 100%;
}
figure + figure {
  margin-top: 2.5rem;
}
figcaption {
  color: var(--color-caption);
  font-size: 0.9375rem;
  text-align: center;
  margin-top: 0.5em;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-border);
}

/* smaller, centered figure (e.g. a portrait photo of an object) */
.figure-small {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
th:last-child, td:last-child {
  border-right: none;
}
td {
  font-weight: 400;
}
th {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-text);
}
tbody tr:last-child td {
  border-bottom: none;
}
.table-scroll {
  overflow-x: auto;
  font-size: 0.9rem;
}
.table-scroll table {
  width: auto;
  min-width: 100%;
}
.table-scroll td, .table-scroll th {
  white-space: nowrap;
  padding: 6px 8px;
}

/* household lists per historical source (Tithe/Griffith/census) — separate
   cards on purpose, not a table: rows across sources aren't matched to each
   other, so the layout doesn't line them up as if they were. */
.ownership-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.ownership-source {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f7f7f7;
  padding: 12px 14px 16px;
}
.ownership-source-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.ownership-source ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.7;
}
.ownership-placeholder {
  color: var(--color-caption);
  font-style: italic;
}

/* quick-facts strip: what was actually collected for this townland, above the map */
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 36px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.quick-facts > div {
  min-width: 0;
}
.quick-facts > div:has(.placename-types) {
  max-width: 280px;
}
.quick-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 2px;
}
.quick-facts dd {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
}
.quick-facts-note {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-secondary);
}
/* placename type breakdown, right under the quick-facts row - dot colours match
   the map's own legend (assets/js/townland-map.js TYPE_COLORS), never invented */
.placename-types-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-caption);
  margin: 14px 0 6px;
}
.placename-types {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
}
.placename-types li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.placename-types .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.placename-types .count {
  font-weight: 700;
  color: var(--color-text);
}
.quick-facts-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 18px 0 0;
}
.quick-facts-heading + .quick-facts {
  margin-top: 8px;
}

/* map thumbnail galleries (click to enlarge) */

.map-gallery {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.map-gallery a {
  display: block;
  cursor: zoom-in;
}

/* interactive townland map */

.townland-map {
  width: 100%;
  height: 640px;
  border: 1px solid var(--color-border);
  background: #eee;
}
.townland-map:fullscreen {
  height: 100%;
  border: none;
}

/* full-viewport overview map, no site header/nav/footer */
body.map-page {
  margin: 0;
}
body.map-page .townland-map {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.map-back-link {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
}
.map-back-link a {
  display: block;
  padding: 6px 10px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.map-fullscreen-control a {
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}
.map-legend {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
  line-height: 1.6;
}
.map-legend-toggle {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.map-legend-toggle::after {
  content: "▾";
  float: right;
  margin-left: 8px;
}
.map-legend.collapsed .map-legend-toggle::after {
  content: "▸";
}
.map-legend.collapsed .map-legend-items {
  display: none;
}
.map-legend-items {
  padding: 0 10px 8px;
}
.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.leaflet-tooltip.point-label {
  pointer-events: none;
  background: #fff;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 5px;
  color: #111;
}
.leaflet-tooltip-right.point-label::before {
  border-right-color: #fff;
}
.leaflet-tooltip-left.point-label::before {
  border-left-color: #fff;
}
.leaflet-tooltip.townland-label {
  pointer-events: none;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  text-shadow:
    0 0 3px #000,
    0 0 3px #000;
}
.leaflet-tooltip.townland-label::before {
  display: none;
}
.leaflet-popup-content {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}
.leaflet-popup-content-wrapper {
  max-width: 280px;
}
.leaflet-popup-content p {
  margin: 0.5em 0 0;
}
.map-popup-category {
  color: var(--color-caption);
}
.map-popup-source {
  color: var(--color-caption);
  font-size: 0.875rem;
}
.map-popup-townland {
  color: var(--color-caption);
  font-size: 0.875rem;
}

/* footer */

footer {
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
  padding: 40px 0 20px;
  text-align: center;
}
.social-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 0 40px;
  padding: 0;
}
.social-links li {
  display: flex;
}
.social-links a {
  display: inline-flex;
}
.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
footer p {
  color: var(--color-secondary);
  font-size: var(--fs-small);
  margin: 0;
}

/* interactive townland population chart */

.population-chart-figure {
  max-width: 660px;
  margin: 1.5rem auto;
}
.townland-population-chart {
  border: 1px solid var(--color-border);
  padding: 18px clamp(12px, 3vw, 22px) 4px;
}
.population-chart-wrap {
  position: relative;
}
.population-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-grid {
  stroke: var(--color-border);
  stroke-width: 1;
}
.chart-axis-label {
  fill: var(--color-text);
  font-size: 13px;
  font-family: "Source Sans Pro", sans-serif;
}
.chart-year-label {
  font-size: 12px;
}
.chart-line {
  fill: none;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-dot {
  stroke: var(--color-bg);
  stroke-width: 1.5;
  pointer-events: none;
}
.chart-hit {
  fill: transparent;
  cursor: pointer;
}
.chart-hit:focus {
  outline: none;
}
.chart-hit:focus + .chart-dot,
.chart-hit:hover + .chart-dot {
  r: 4.5;
}

/* trend colours: population grew (up), declined (down), or never changed
   /never had residents (flat). Compound selectors (.chart-line.chart-up
   etc.) so these win over .chart-line's fill: none regardless of
   stylesheet order, instead of relying on a single-class specificity tie. */
.chart-line.chart-up,
.chart-dot.chart-up {
  stroke: var(--color-population-up);
}
.chart-line.chart-down,
.chart-dot.chart-down {
  stroke: var(--color-population-down);
}
.chart-line.chart-flat,
.chart-dot.chart-flat {
  stroke: var(--color-secondary);
}
.chart-dot.chart-up {
  fill: var(--color-population-up);
}
.chart-dot.chart-down {
  fill: var(--color-population-down);
}
.chart-dot.chart-flat {
  fill: var(--color-secondary);
}
.chart-change-value.chart-up {
  color: var(--color-population-up);
}
.chart-change-value.chart-down {
  color: var(--color-population-down);
}
.chart-change-value.chart-flat {
  color: var(--color-secondary);
}

.chart-tooltip {
  position: absolute;
  transform: translate(-50%, -130%);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--fs-small);
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
}
.population-chart-summary {
  text-align: center;
  margin: 8px 0 10px;
}
.population-chart-summary p {
  margin: 0;
}
.chart-change-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4em;
  color: var(--color-secondary);
  font-size: var(--fs-medium);
}
.chart-change-value {
  font-family: inherit;
  font-size: inherit;
}
.chart-change-label {
  color: var(--color-secondary);
  font-size: var(--fs-small);
}
.chart-change-detail {
  color: var(--color-caption);
  font-size: 0.8125rem;
  margin-top: 4px;
}
.population-chart-figure figcaption {
  font-size: 0.9375rem;
}

/* population-change choropleth page */

.population-change-map {
  width: 100%;
  height: 640px;
  border: 1px solid var(--color-border);
  background: #eee;
}
.pc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1rem 0;
}
.pc-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.pc-controls select {
  font: inherit;
  padding: 0.35rem 0.6rem;
  border: 2px solid var(--color-secondary);
  background: var(--color-bg);
  color: var(--color-text);
}
.pc-note {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-left: 4px solid #b7791f;
  border-radius: 8px;
  background: #fbf7ee;
  font-size: var(--fs-small);
}
.pc-summary {
  margin: 0 0 1rem;
}
.pc-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  font-size: var(--fs-small);
}
.pc-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pc-legend-empty {
  color: var(--color-secondary);
}
.pc-count {
  color: var(--color-secondary);
}
.pc-swatch {
  display: inline-block;
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.4);
  vertical-align: -0.15em;
}
.pc-legend .pc-swatch {
  margin-right: 0;
}
.pc-popup-class {
  color: var(--color-secondary);
}
#pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
#pc-table caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 0.5rem;
}
#pc-table th,
#pc-table td {
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
}
#pc-table th:first-child,
#pc-table td:first-child {
  text-align: left;
}
.pc-sort {
  font: inherit;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
th[aria-sort="ascending"] .pc-sort::after {
  content: " ▲";
  font-size: 0.7em;
}
th[aria-sort="descending"] .pc-sort::after {
  content: " ▼";
  font-size: 0.7em;
}
@media (max-width: 600px) {
  .population-change-map {
    height: 440px;
  }
}
/* Chrome draws a rectangular focus box around a townland after a click. The polygons have
   no keyboard behaviour (the table below the map is the keyboard/screen-reader route),
   so there is nothing for the focus ring to indicate */
.population-change-map path.leaflet-interactive:focus,
.population-change-map path.leaflet-interactive:focus-visible {
  outline: none;
}

/* Articles index */
.article-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.article-list a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-decoration: none;
}
.article-list a:hover,
.article-list a:focus-visible {
  border-color: var(--color-secondary);
}
.article-list strong {
  display: block;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 1.35rem;
}
.article-list a > span {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-secondary);
  font-size: var(--fs-small);
}

/* three menu items: keep them on one row on most phones */
@media (max-width: 480px) {
  nav a {
    padding: 0 0.8rem;
    font-size: 1.05rem;
  }
}

/* the townland table is wider than a phone: scroll it inside its own box, not the whole page */
.pc-table-wrap {
  overflow-x: auto;
}

.nowrap {
  white-space: nowrap;
}
