/* The newspaper page uses wrapping flex rows, including the ad columns. */
.newspaper-body {
  --ink: #25241f;
  --muted: #666156;
  --purple: #343127;
  --purple-dark: #151410;
  --lavender: #ebe5d5;
  --line: #aaa18e;
  background: #e7e2d6;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}
.newspaper-body .test-banner {
  background: #2e2c25;
  color: #f1ead8;
  font-family: Arial, sans-serif;
}
.newspaper-body .header {
  min-height: 65px;
  max-width: 1280px;
  font-family: Arial, sans-serif;
}
.newspaper-body .brand,
.newspaper-body .brand span {
  color: #28261f;
}
.newspaper-body .brand i {
  background: #8c2f27;
}
.newspaper-body .nav {
  font-size: 12px;
}
.newspaper-body .button,
.newspaper-body .nav-account {
  border-radius: 0;
}
.newspaper-body .main {
  max-width: 1280px;
  width: calc(100% - 64px);
}
.newspaper {
  background: #f4efdf;
  box-shadow: 0 4px 24px #382e1720;
  padding: 20px 25px 15px;
  margin: 0 0 28px;
  border: 1px solid #b6ad96;
}
.paper-masthead {
  border: 3px solid #2e2b24;
  padding: 6px 12px 0;
}
.paper-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font:
    bold 9px/1.3 Arial,
    sans-serif;
  letter-spacing: 2px;
  padding: 3px 0;
  border-bottom: 1px solid #3c382e;
}
.paper-name {
  font-family: "Arial Black", Arial, sans-serif;
  font-style: italic;
  font-size: clamp(68px, 12.5vw, 172px);
  font-weight: 900;
  text-align: center;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 10px 0 6px;
  transform: scaleX(1.03);
  color: #24231f;
}
.paper-motto {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(14px, 2.8vw, 32px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 1px;
}
.paper-motto::before,
.paper-motto::after {
  content: "";
  flex: 1;
  height: 29px;
  background: repeating-linear-gradient(
    to bottom,
    #343127 0,
    #343127 1px,
    transparent 1px,
    transparent 4px
  );
}
.paper-motto span {
  flex: 0 1 auto;
}
.paper-edition {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 2px solid #343127;
  padding: 5px 0;
  font:
    10px/1.3 Arial,
    sans-serif;
}
.paper-edition strong {
  font-size: 11px;
}
.paper-search {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  border-top: 1px solid #37332a;
  border-bottom: 3px double #37332a;
  margin: 10px 0 15px;
  padding: 12px 0;
}
.paper-search p {
  margin: 0;
  font:
    10px/1.5 Arial,
    sans-serif;
}
.paper-search p strong,
.paper-search p span {
  display: block;
}
.paper-search p strong {
  letter-spacing: 0.5px;
}
.paper-search form {
  display: flex;
  gap: 7px;
  flex: 0 1 440px;
  align-items: stretch;
}
.paper-search input {
  border: 1px solid #6d6657;
  background: #fbf8ee;
  border-radius: 0;
  margin: 0;
  font:
    12px Arial,
    sans-serif;
  padding: 10px 12px;
  min-width: 0;
  flex: 1;
}
.paper-search button {
  font:
    bold 10px Arial,
    sans-serif;
  border: 1px solid #24231e;
  background: #302d26;
  color: #fbf5e5;
  padding: 10px 16px;
  white-space: nowrap;
}
.paper-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.paper-index {
  flex: 0 0 145px;
  border: 2px solid #37332b;
  padding: 8px;
}
.paper-index h2 {
  background: #302e27;
  color: #f6f0df;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-style: italic;
  text-align: center;
  font-size: 44px;
  letter-spacing: -2px;
  line-height: 0.9;
  padding: 12px 5px;
  margin: 0 0 8px;
}
.paper-index-sub {
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  border-bottom: 3px double #3a362e;
  padding-bottom: 8px;
  margin-bottom: 0;
}
.paper-index nav {
  display: flex;
  flex-direction: column;
}
.paper-index nav a {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid #b9af97;
  color: #333027;
  font-size: 12px;
  line-height: 1.25;
}
.paper-index nav a:hover {
  background: #e5ddc9;
}
.paper-count {
  font:
    9px Arial,
    sans-serif;
  color: #6d6557;
}
.paper-index-all {
  display: block;
  font:
    bold 9px Arial,
    sans-serif;
  text-align: center;
  padding: 11px 0;
  color: #302c23;
}
.paper-small-ad {
  border: 1px solid #343127;
  padding: 12px 7px;
  margin-top: 13px;
  text-align: center;
  background: #e4dbc3;
}
.paper-small-ad strong {
  font:
    bold 15px/1.2 Arial,
    sans-serif;
  display: block;
}
.paper-small-ad p {
  font-size: 12px;
  line-height: 1.35;
  margin: 9px 0;
}
.paper-small-ad a {
  font:
    bold 9px/1.4 Arial,
    sans-serif;
  color: #28261f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.paper-small-ad.plain {
  background: transparent;
  border: 0;
  border-top: 3px double #343127;
  padding-top: 16px;
}
.paper-listings {
  flex: 1;
  min-width: 0;
}
.paper-section-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 3px double #343127;
  padding: 0 0 9px;
  margin-bottom: 12px;
}
.paper-section-title h2 {
  border: 3px double #343127;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: -0.5px;
  padding: 5px 22px;
  margin: 0;
  line-height: 1.2;
}
.paper-section-title > span {
  font-size: 12px;
  font-style: italic;
}
.paper-section-title > a {
  margin-left: auto;
  color: #39352c;
  font:
    bold 9px Arial,
    sans-serif;
  text-decoration: underline;
}
.paper-demo-notice {
  border: 1px dashed #8a7b5f;
  padding: 8px 11px;
  font:
    10px/1.5 Arial,
    sans-serif;
  background: #eae1cb;
  margin: 0 0 12px;
}
.paper-ad-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 11px;
}
.paper-ad {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(25% - 11px);
  min-width: 155px;
  max-width: calc(33.333% - 7px);
  border: 1px solid #655d4d;
  padding: 10px 11px 8px;
  color: #302d25;
  background: #f7f2e5;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.paper-ad:hover {
  background: #fffbef;
  color: #1f1d19;
  box-shadow: inset 0 0 0 1px #514a3d;
}
.paper-ad-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #b8ae95;
  padding-bottom: 5px;
  font:
    8px/1.3 Arial,
    sans-serif;
  letter-spacing: 0.3px;
  color: #655d4e;
}
.paper-ad-heading > span:first-child {
  text-transform: uppercase;
}
.paper-ad h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.12;
  font-weight: bold;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  margin: 10px 0 6px;
}
.paper-ad-location {
  font-size: 10px;
  font-weight: bold;
  line-height: 1.35;
  margin: 0 0 8px;
}
.paper-ad-copy {
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  margin: 0 0 14px;
}
.paper-ad-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid #b8ae95;
  font:
    8px/1.4 Arial,
    sans-serif;
}
.paper-ad-bottom strong {
  letter-spacing: 0.35px;
}
.paper-sample {
  border-style: solid;
}
.paper-sample .paper-ad-bottom strong {
  color: #806b49;
}
.paper-house-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(50% - 11px);
  min-width: 250px;
  border: 4px double #e4d9bf;
  background: #353128;
  color: #f7f0df;
  padding: 25px 16px;
  text-align: center;
}
.paper-house-ad > span {
  font:
    italic 900 24px Impact,
    "Arial Black",
    Arial,
    sans-serif;
  letter-spacing: 1px;
  border-bottom: 1px solid #e4d9bf;
  padding-bottom: 5px;
}
.paper-house-ad h3 {
  font:
    italic bold 27px/1.05 Georgia,
    serif;
  margin: 14px 0 12px;
  letter-spacing: -1px;
}
.paper-house-ad p {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.paper-house-ad a {
  font:
    bold 9px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.4px;
  color: #fff5dc;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.paper-no-ad {
  flex: 1 1 100%;
  border: 1px solid #655d4d;
  padding: 30px;
  text-align: center;
}
.paper-no-ad h3 {
  font-family: Georgia, serif;
  font-size: 25px;
}
.paper-no-ad p {
  font-size: 14px;
}
.paper-colophon {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  border-top: 3px double #3c372c;
  margin-top: 20px;
  padding-top: 10px;
}
.paper-colophon p {
  font-size: 11px;
  margin: 0;
  line-height: 1.5;
}
.paper-colophon p:first-child {
  font-weight: bold;
}
.paper-colophon > span {
  flex: 1 1 100%;
  text-align: right;
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 1px;
  margin-top: 5px;
}
.newspaper-body .footer {
  border-color: #92876f;
  max-width: 1280px;
  width: calc(100% - 64px);
  margin-top: 20px;
  font-family: Arial, sans-serif;
}
.newspaper-body .footer > div > a:not(.brand) {
  color: #575041;
}
.newspaper-body .notice {
  background: #ece3ce;
  border-color: #b9aa8a;
  border-radius: 0;
  color: #40372a;
}
@media (min-width: 1450px) {
  .paper-name {
    font-size: 180px;
  }
}
@media (max-width: 1100px) {
  .paper-ad {
    flex-basis: calc(33.333% - 11px);
    max-width: calc(50% - 6px);
  }
  .paper-index {
    flex-basis: 130px;
  }
  .paper-layout {
    gap: 14px;
  }
  .paper-name {
    font-size: 13vw;
  }
  .paper-ad h3 {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .newspaper-body .header {
    min-height: auto;
    padding: 14px 0;
    gap: 12px;
  }
  .newspaper-body .nav {
    gap: 12px;
    font-size: 10px;
  }
  .newspaper-body .main,
  .newspaper-body .footer {
    width: calc(100% - 20px);
  }
  .newspaper {
    padding: 10px 11px;
  }
  .paper-masthead {
    padding: 5px 6px 0;
    border-width: 2px;
  }
  .paper-kicker {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .paper-name {
    font-size: 15vw;
    letter-spacing: -0.025em;
    margin: 9px 0 6px;
  }
  .paper-motto {
    gap: 7px;
    font-size: 3.3vw;
    letter-spacing: 0;
  }
  .paper-motto::before,
  .paper-motto::after {
    height: 18px;
    background-size: auto 3px;
  }
  .paper-edition {
    gap: 5px;
    font-size: 7px;
  }
  .paper-edition strong {
    font-size: 8px;
  }
  .paper-search {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 10px 0;
  }
  .paper-search form {
    flex-basis: auto;
  }
  .paper-search p {
    font-size: 9px;
  }
  .paper-search input {
    font-size: 11px;
    padding: 10px;
  }
  .paper-layout {
    flex-direction: column;
    gap: 12px;
  }
  .paper-index {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex-basis: auto;
    width: 100%;
    padding: 6px;
    gap: 7px;
    border-width: 1px;
  }
  .paper-index h2 {
    font-size: 18px;
    letter-spacing: -1px;
    padding: 5px 8px;
    line-height: 0.9;
    margin: 0;
    align-self: flex-start;
    flex: 0 0 44px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .paper-index-sub {
    display: none;
  }
  .paper-index nav {
    flex: 1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px 10px;
  }
  .paper-index nav a {
    font-size: 10px;
    padding: 3px 0;
    border: 0;
    gap: 4px;
  }
  .paper-index-all {
    font-size: 8px;
    padding: 4px;
    margin-left: auto;
  }
  .paper-index .paper-small-ad {
    display: none;
  }
  .paper-listings {
    width: 100%;
  }
  .paper-section-title {
    gap: 8px;
    margin-bottom: 9px;
  }
  .paper-section-title h2 {
    font-size: 18px;
    padding: 4px 15px;
  }
  .paper-section-title > span {
    font-size: 10px;
  }
  .paper-section-title > a {
    font-size: 8px;
  }
  .paper-demo-notice {
    font-size: 9px;
  }
  .paper-ad-flex {
    gap: 8px;
  }
  .paper-ad {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    max-width: calc(50% - 4px);
    padding: 8px;
  }
  .paper-ad h3 {
    font-size: 14px;
    letter-spacing: -0.2px;
  }
  .paper-ad-copy {
    font-size: 12px;
    line-height: 1.4;
  }
  .paper-ad-location {
    font-size: 9px;
  }
  .paper-ad-heading {
    font-size: 12px;
  }
  .paper-ad-bottom {
    font-size: 7px;
    gap: 4px;
  }
  .paper-house-ad {
    flex-basis: 100%;
    min-width: 0;
    padding: 22px;
  }
  .paper-house-ad h3 {
    font-size: 25px;
  }
  .paper-colophon > span {
    text-align: left;
    font-size: 7px;
  }
  .paper-colophon p {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .paper-ad {
    flex-basis: 100%;
    max-width: 100%;
  }
  .paper-ad h3 {
    font-size: 14px;
  }
  .paper-ad-copy {
    font-size: 14px;
  }
  .paper-name {
    font-size: 14vw;
  }
  .paper-edition > span {
    display: none;
  }
}

.paper-more-categories {
  font-size: 11px;
  padding-top: 10px;
}
.paper-more-categories summary {
  font-weight: bold;
}
.paper-more-categories[open] > summary {
  margin-bottom: 5px;
}
@media (max-width: 760px) {
  .paper-more-categories {
    flex-basis: 100%;
    padding: 5px;
    font-size: 10px;
  }
  .paper-more-categories[open] {
    display: flex;
    flex-wrap: wrap;
  }
  .paper-index .paper-more-categories a {
    margin: 4px 0;
  }
}

.paper-index nav a > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.paper-ad-heading > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.paper-ad-heading span {
  font-size: 12px !important;
}

.newspaper-body .pagination {
  font-family: Arial, sans-serif;
  margin-top: 20px;
  gap: 6px;
}
.newspaper-body .pagination a {
  border: 1px solid #655d4d;
  border-radius: 0;
  font-size: 11px;
  padding: 8px 12px;
  color: #353128;
}
.newspaper-body .pagination .current {
  background: #353128;
  color: #f5edda;
}

.paper-filter-link {
  display: block;
  color: #39352c;
  text-decoration: underline;
  font:
    9px/1.5 Arial,
    sans-serif;
  margin-top: 4px;
}

.paper-search form {
  flex-wrap: wrap;
  align-items: end;
}
.paper-search form > input {
  flex: 1 1 170px;
  min-width: 0;
}
.paper-search .company-filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
  font:
    bold 10px Arial,
    sans-serif;
}
.paper-search .company-filter select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #655d4d;
  border-radius: 0;
  background: #faf7ef;
  color: #25221d;
  padding: 10px;
  font:
    12px Arial,
    sans-serif;
}
.paper-search button {
  flex: 0 0 auto;
}

.paper-actions {
  display: flex;
  flex-direction: column;
  flex: 0 0 160px;
  min-width: 0;
  border: 2px solid #37332b;
  padding: 8px;
}
.paper-actions .paper-small-ad:first-child {
  margin-top: 0;
}
.paper-actions .paper-small-ad {
  overflow-wrap: anywhere;
}
@media (max-width: 1050px) and (min-width: 761px) {
  .paper-actions {
    flex-basis: 150px;
  }
  .paper-section-title {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .paper-actions {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 12px;
    padding: 8px;
  }
  .paper-actions .paper-small-ad {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  .paper-actions .paper-small-ad.plain {
    border: 1px solid #343127;
    padding: 12px 7px;
  }
  .paper-actions .paper-small-ad strong {
    font-size: 13px;
  }
}

.paper-actions .paper-small-ad strong {
  font-size: 13px;
}
.paper-actions .paper-small-ad a {
  white-space: nowrap;
}

/* A rovatcím a sorszám helyét is használhatja. */
.paper-ad-heading > span:nth-child(2) {
  display: none;
}
.paper-ad-heading > span:first-child {
  flex: 1 1 100%;
  width: 100%;
}
