@media (min-width: 1040px) {
  .citedby {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    border-top: none;
    align-self: start;
    max-width: none;
  }
  .citedby .lbl {
    display: block;
    margin: 0 0 0.35rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .article:target .num {
    animation: flash 1.2s ease-out 1;
  }
  @keyframes flash {
    0%,
    40% {
      background: var(--inforce);
    }
    100% {
      background: var(--state);
    }
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }
  .masthead,
  .strip,
  .pager,
  footer.reg,
  .finder,
  .skip {
    display: none;
  }
  .sheet {
    border: none;
    max-width: none;
    padding: 0;
  }
  .article {
    break-inside: avoid;
  }
  a {
    color: #000;
    text-decoration: none;
  }
}

@media (max-width: 1100px) {
  .maplayout {
    grid-template-columns: 1fr;
  }
  .mappanel {
    position: static;
  }
}

@media (max-width: 640px) {
  .findbtn kbd {
    display: none;
  }
  .sections .bar {
    padding: 0 0.6rem;
  }
  .sections a {
    padding: 0.55rem 0.6rem;
    font-size: 0.78rem;
  }
  .onthispage {
    right: 0.6rem;
    bottom: 0.6rem;
  }
}

@media print {
  .onthispage,
  .finderlay,
  .sections {
    display: none;
  }
}

@media (max-width: 640px) {
  .tl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (max-width: 780px) {
  .ptab .ideo,
  .ptab .pos {
    display: none;
  }
  .ptab {
    font-size: 0.9rem;
  }
}

@media (max-width: 1100px) {
  .townlayout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .townfacts {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .contents.towns a.row {
    grid-template-columns: 4.6rem minmax(0, 1fr) auto;
    column-gap: 0.8rem;
    padding: 0.75rem 0.2rem;
  }
  .contents.towns .arts {
    grid-column: auto;
    font-size: 0.7rem;
  }
}

@media (min-width: 1040px) {
  .sheet.railed::before {
    content: none;
  }
  .railzone::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(3.5rem + 1.25rem + 36rem + 0.625rem);
    border-left: 1px dashed var(--rule);
    pointer-events: none;
  }
  .railzone > * {
    position: relative;
  }
  /* a matching dashed rule above the citation list */
  .citedby {
    border-top: 1px dashed var(--rule);
    padding-top: 0.5rem;
  }
}

@media (max-width: 640px) {
  .tablewrap .ptab {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .ptab.seats .pos {
    display: none;
  }
  .hemilegend {
    font-size: 0.7rem;
    gap: 0.25rem 0.7rem;
  }
  .pbar {
    max-width: none;
  }
}

@media (max-width: 1100px) {
  .artlayout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .infobox {
    position: static;
    order: -1;
  }
}

@media (min-width: 641px) and (max-width: 819px) {
  .citedby {
    grid-column: 2;
    border-top: 1px dashed var(--rule);
    border-left: none;
    padding: 0.5rem 0 0;
    margin: 0.75rem 0 0;
  }
  .citedby .lbl {
    display: inline;
    margin-right: 0.45rem;
  }
}

@media (max-width: 640px) {
  .citedby {
    grid-column: auto;
  }
}

@media (min-width: 820px) {
  .railzone::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: auto;
    right: calc(12rem + 0.625rem);
    border-left: 1px dashed var(--rule);
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  .ptab.words tbody th,
  .ptab.words .legalterm {
    width: auto;
  }
  .ptab.words {
    font-size: 0.82rem;
  }
}

@media (max-width: 700px) {
  .ptab.seats,
  .ptab.proj,
  .ptab.hist {
    table-layout: auto;
  }
  .ptab.seats th,
  .ptab.seats td,
  .ptab.proj th,
  .ptab.proj td,
  .ptab.hist th,
  .ptab.hist td {
    width: auto;
  }
}

@media (max-width: 33rem) {
  .frow .flab {
    width: 100%;
  }
  ul.res a {
    grid-template-columns: 2.2rem minmax(0, 1fr);
  }
}
