/* Kesyaa Site Customizer — optional Test Newspaper homepage, v1.5.2.
   All styles are limited to the newspaper shortcode or its own WordPress page. */
body.ksc-newspaper-page,
body.ksc-newspaper-page .wp-site-blocks {
  background: #f4f0e8;
}
body.ksc-newspaper-page .wp-block-post-title {
  display: none; /* The masthead supplies this page's single H1. */
}
/* Keep the front-page masthead directly beneath the Kesyaa navigation.
   Twenty Twenty-Five can add spacing at multiple template levels. All these
   resets apply ONLY to the page created for the newspaper homepage. */
body.ksc-newspaper-page .ksc-sticky-header-host,
body.ksc-newspaper-page .ksc-navbar.ksc-sticky-self {
  margin-bottom: 0 !important;
}
body.ksc-newspaper-page .wp-site-blocks > main,
body.ksc-newspaper-page main.wp-block-group,
body.ksc-newspaper-page main.wp-block-post-content,
body.ksc-newspaper-page .entry-content.wp-block-post-content {
  margin-block-start: 0 !important;
  padding-block-start: 0 !important;
}
/* Theme template's full-width Group can carry inline padding-top:var(--wp--preset--spacing--60).
   Keep the override specific to Groups enclosing the newspaper content; preserve bottom padding. */
body.ksc-newspaper-page .wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained:has(.ksc-paper-home) {
  padding-top: 0 !important;
  padding-block-start: 0 !important;
}
body.ksc-newspaper-page .entry-content.wp-block-post-content > :first-child {
  margin-block-start: 0 !important;
}
.ksc-paper-home,
.ksc-paper-home * {
  box-sizing: border-box;
}
.ksc-paper-home {
  --ksc-paper-ink: #202020;
  --ksc-paper-muted: #666157;
  --ksc-paper-line: #bcb5a9;
  --ksc-paper-accent: #742f28;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(1400px, calc(100vw - 48px));
  max-width: none;
  margin: 0 0 55px;
  color: var(--ksc-paper-ink);
  background: #f9f7f2;
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: 0 10px 45px rgba(24,20,14,.055);
}
.ksc-paper-masthead {
  padding: 18px 26px 22px;
  text-align: center;
  background: #f8f5ee;
  border: 1px solid #ded8ca;
  border-bottom: 0;
}
.ksc-paper-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #514e4a;
  border-bottom: 1px solid #514e4a;
  padding: 7px 3px;
  color: #55534e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ksc-paper-kicker time {
  font-weight: 600;
  letter-spacing: .07em;
}
.ksc-paper-masthead-inner {
  margin: 21px auto 0;
  max-width: 1140px;
}
.ksc-paper-home .ksc-paper-title {
  display: block;
  margin: 0 !important;
  padding: 0;
  color: #171717;
  font-family: 'Old English Text MT', 'Cloister Black', 'Goudy Old Style', 'Baskerville', Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 6.3vw, 94px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.052em;
  text-transform: none;
  text-align: center;
  text-wrap: balance;
}
.ksc-paper-home .ksc-paper-tagline {
  margin: 13px auto 0;
  color: #51504c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .045em;
  text-align: center;
  max-width: 930px;
}
.ksc-paper-masthead::after {
  content: '';
  display: block;
  margin-top: 22px;
  border-top: 3px double #3b3730;
}
.ksc-paper-columns {
  display: grid;
  grid-template-columns: minmax(0, var(--ksc-paper-games-width, 18%)) minmax(0, var(--ksc-paper-news-width, 60%)) minmax(0, var(--ksc-paper-trending-width, 22%));
  background: #fffefa;
  border: 1px solid #ded8ca;
  border-top: 0;
  align-items: start;
  min-height: 620px;
}
.ksc-paper-column {
  padding: 18px 16px 32px;
  min-width: 0;
  min-height: 100%;
  overflow-wrap: anywhere;
}
.ksc-paper-news {
  padding-inline: 22px;
  border-left: 1px solid var(--ksc-paper-line);
  border-right: 1px solid var(--ksc-paper-line);
}
.ksc-paper-home .ksc-paper-column-heading {
  display: block;
  border-top: 2px solid #34302a;
  border-bottom: 1px solid #b6afa2;
  padding: 7px 0 8px;
  margin: 0 0 16px !important;
  color: #34302a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ksc-paper-embed { width: 100%; min-width: 0; }
.ksc-paper-embed > * { max-width: 100%; }
.ksc-paper-home a { text-underline-offset: 2px; }
.ksc-paper-home .ksc-paper-unavailable { color: #605a53; font-family: Arial,Helvetica,sans-serif; font-size: 13px; line-height: 1.55; }
.ksc-paper-home .ksc-paper-fallback,
.ksc-paper-home .ksc-paper-admin-note { font-family: Arial,Helvetica,sans-serif; font-size: 12px; line-height: 1.5; }
.ksc-paper-home .ksc-paper-fallback a { color: var(--ksc-paper-accent); }
.ksc-paper-home .ksc-paper-admin-note { color: var(--ksc-paper-muted); }
/* Games hub normally appears full width; keep its grid usable in the left rail. */
.ksc-paper-games .nsg-hub { max-width: 100%; min-width: 0; }
.ksc-paper-games .nsg-collection-grid { grid-template-columns: minmax(0,1fr) !important; }
.ksc-paper-games .nsg-collection-card { min-width: 0; }
/* Prevent third-party widgets from forcing the page wider than its grid. */
.ksc-paper-trending .ksc-paper-embed,
.ksc-paper-trending .ksc-paper-embed > * { min-width: 0; max-width: 100%; }
@media (max-width: 1130px) {
  .ksc-paper-columns { grid-template-columns: minmax(175px, 225px) minmax(0, 1fr); }
  .ksc-paper-news { border-right: 0; }
  .ksc-paper-trending { grid-column: 1 / -1; min-height: 0; border-top: 1px solid var(--ksc-paper-line); }
  .ksc-paper-trending .ksc-paper-embed { max-width: 720px; }
}
@media (max-width: 800px) {
  .ksc-paper-home { width: calc(100vw - 28px); margin-top: 0; }
  .ksc-paper-masthead { padding: 12px 16px 14px; }
  .ksc-paper-kicker { justify-content: center; flex-wrap: wrap; font-size: 9px; gap: 5px 14px; }
  .ksc-paper-kicker span { display: none; }
  .ksc-paper-masthead-inner { margin-top: 15px; }
  .ksc-paper-home .ksc-paper-title { font-size: clamp(42px, 10vw, 68px); }
  .ksc-paper-home .ksc-paper-tagline { font-size: 11px; }
  .ksc-paper-masthead::after { margin-top: 16px; }
  .ksc-paper-columns { display: flex; flex-direction: column; min-height: 0; }
  .ksc-paper-column { width: 100%; padding: 16px 18px 22px; min-height: 0; border-left: 0; border-right: 0; }
  /* Trending first on mobile, consistent with the existing NewsScout layout. */
  .ksc-paper-trending { order: 1; border-top: 0; }
  .ksc-paper-news { order: 2; border-top: 1px solid var(--ksc-paper-line); }
  .ksc-paper-games { order: 3; border-top: 1px solid var(--ksc-paper-line); }
}
