/* Blog list and single post in the ggslots.to style: list cards like the /promotions/
   page, article like the static slot pages. Scoped under #content to beat Hello. */

/* Keeps the footer at the bottom of the window when a page has little content.
   The admin-bar variable is set by WordPress only while the bar is showing. */
body {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

body > #content { flex: 1 0 auto; }

#content.ggb-archive,
#content.ggb-single {
  --ggb-gold: #a98b55;
  --ggb-gold-light: #d7b468;
  --ggb-cream: #fff0c8;
  --ggb-ink: #242222;
  --ggb-text: #494644;
  --ggb-red: #981b29;
  --ggb-red-dark: #781320;
  --ggb-rule: #dfd8cf;
  --ggb-paper: #fcfaf7;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  font-family: "Slot Editorial 45", "GG Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

#content.ggb-archive *,
#content.ggb-single * { box-sizing: border-box; }

#content .ggb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0 0 30px;
  font-size: 12px;
  line-height: 1.8;
}

#content .ggb-breadcrumb a { text-decoration: none; }
#content .ggb-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
#content .ggb-breadcrumb > span:last-child { overflow: hidden; max-width: 40ch; text-overflow: ellipsis; white-space: nowrap; }

#content .ggb-date { display: block; font-size: 12px; line-height: 1.6; }

/* List */

#content.ggb-archive {
  padding: 22px 0 56px;
  background: #fff;
  color: var(--ggb-text);
}

#content.ggb-archive .ggb-shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

#content.ggb-archive .ggb-breadcrumb,
#content.ggb-archive .ggb-breadcrumb a { color: #827970; }

#content.ggb-archive .ggb-archive-header { margin-bottom: 22px; }

#content.ggb-archive .ggb-archive-title {
  margin: 0;
  color: var(--ggb-ink);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
}

#content.ggb-archive .ggb-archive-description { margin-top: 8px; color: #827970; font-size: 14px; }
#content.ggb-archive .ggb-archive-description p { margin: 0; }

/* Cards copied from the static /promotions/ page (.collection-card). */
#content.ggb-archive .ggb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

#content.ggb-archive .ggb-card { display: flex; min-width: 0; }

#content.ggb-archive .ggb-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ggb-rule);
  border-radius: 5px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s;
}

#content.ggb-archive .ggb-card-link:hover { border-color: var(--ggb-gold); }
#content.ggb-archive .ggb-card-link:focus-visible { outline: 3px solid #ad8752; outline-offset: 3px; }

#content.ggb-archive .ggb-card-image {
  display: block;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--ggb-rule);
  background: var(--ggb-paper);
}

#content.ggb-archive .ggb-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#content.ggb-archive .ggb-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px 22px 23px;
}

#content.ggb-archive .ggb-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
  margin-bottom: 10px;
  color: #776f68;
  font-size: 12px;
  line-height: 1.6;
}

#content.ggb-archive .ggb-card-cat { color: var(--ggb-red); font-weight: 700; }
#content.ggb-archive .ggb-date { display: inline; color: #776f68; font-size: 12px; }

#content.ggb-archive .ggb-card-title {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ggb-rule);
  color: var(--ggb-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#content.ggb-archive .ggb-card-excerpt {
  display: -webkit-box;
  margin-bottom: 22px;
  overflow: hidden;
  color: var(--ggb-text);
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: .006em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#content.ggb-archive .ggb-card-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ggb-rule);
  color: var(--ggb-red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

#content.ggb-archive .ggb-card-more > span {
  color: #ac8b56;
  font-size: 21px;
  line-height: 1;
  transition: transform .2s;
}

#content.ggb-archive .ggb-card-link:hover .ggb-card-more > span { transform: translateX(4px); }

#content.ggb-archive .ggb-empty { color: #827970; }

#content.ggb-archive .pagination,
#content.ggb-archive .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

#content.ggb-archive .pagination { margin-top: 34px; }

#content.ggb-archive .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ggb-gold);
  border-radius: 6px;
  color: var(--ggb-red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

#content.ggb-archive a.page-numbers:hover { border-color: var(--ggb-red); }
#content.ggb-archive .page-numbers.current { border-color: var(--ggb-red); background: var(--ggb-red); color: #fff; }
#content.ggb-archive .page-numbers.dots { border: 0; }

/* Single post */

#content.ggb-single {
  padding: 22px 0 56px;
  background: #fff;
  color: var(--ggb-text);
}

#content.ggb-single .ggb-breadcrumb,
#content.ggb-single .ggb-article,
#content.ggb-single #comments {
  width: min(820px, calc(100% - 36px));
  margin-inline: auto;
}

#content.ggb-single .ggb-breadcrumb { margin-bottom: 34px; color: #827970; }
#content.ggb-single .ggb-breadcrumb a { color: #827970; }

#content.ggb-single .ggb-article-title {
  margin: 0 0 10px;
  color: var(--ggb-ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

#content.ggb-single .ggb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 22px;
}

#content.ggb-single .ggb-date { color: #827970; font-size: 13px; }

#content.ggb-single .ggb-meta a,
#content.ggb-single .ggb-tags a {
  color: var(--ggb-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
}

#content.ggb-single .ggb-meta a:hover,
#content.ggb-single .ggb-tags a:hover { text-decoration: underline; text-underline-offset: 3px; }

#content.ggb-single .ggb-cover {
  margin: 0 0 24px;
  border: 1px solid var(--ggb-rule);
  border-radius: 3px;
}

#content.ggb-single .ggb-cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* Same light sweep as the poker blog's eye-catch images. */
#content .ggb-shine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#content .ggb-shine::after {
  position: absolute;
  z-index: 2;
  inset: -25% 0;
  background: linear-gradient(112deg,
    transparent 33%, rgba(255,255,255,.06) 41%,
    rgba(255,255,255,.44) 49%, rgba(255,255,255,.14) 55%, transparent 64%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-115%, 0, 0);
  animation: ggb-light-pass 8.6s cubic-bezier(.25,.46,.45,.94) infinite;
  animation-delay: var(--ggb-shine-delay, .25s);
}

#content .ggb-card:nth-child(3n+2) .ggb-shine { --ggb-shine-delay: .57s; }
#content .ggb-card:nth-child(3n) .ggb-shine { --ggb-shine-delay: .89s; }

@keyframes ggb-light-pass {
  0% { opacity: 0; transform: translate3d(-115%, 0, 0); }
  3% { opacity: 1; }
  23% { opacity: 1; transform: translate3d(115%, 0, 0); }
  24%, 100% { opacity: 0; transform: translate3d(115%, 0, 0); }
}

#content.ggb-single .ggb-content {
  color: var(--ggb-text);
  font-size: 15.5px;
  line-height: 1.95;
  letter-spacing: .006em;
  overflow-wrap: anywhere;
}

#content.ggb-single .ggb-content > * { margin-block: 0 18px; }

#content.ggb-single .ggb-content h2 {
  margin: 48px 0 23px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--ggb-rule);
  color: var(--ggb-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.02em;
}

#content.ggb-single .ggb-content h3 {
  margin: 34px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--ggb-gold);
  color: #292524;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

#content.ggb-single .ggb-content h4 {
  margin: 26px 0 10px;
  color: #292524;
  font-size: 16px;
  font-weight: 700;
}

#content.ggb-single .ggb-content a {
  color: var(--ggb-red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#content.ggb-single .ggb-content a:hover { color: var(--ggb-red-dark); }

#content.ggb-single .ggb-content strong,
#content.ggb-single .ggb-content b {
  font-weight: 700;
  background: linear-gradient(transparent 54%, #f4ddb0 54%);
}

#content.ggb-single .ggb-content :is(ul, ol) { padding-left: 1.5em; }
#content.ggb-single .ggb-content li + li { margin-top: 6px; }
#content.ggb-single .ggb-content li::marker { color: var(--ggb-gold); }

#content.ggb-single .ggb-content img { max-width: 100%; height: auto; border-radius: 3px; }
#content.ggb-single .ggb-content figure { margin-inline: 0; }
#content.ggb-single .ggb-content figcaption { margin-top: 8px; color: #827970; font-size: 13px; text-align: center; }

#content.ggb-single .ggb-content blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  border: 1px solid #e3d4c4;
  border-radius: 6px;
  background: var(--ggb-paper);
  color: var(--ggb-text);
}

#content.ggb-single .ggb-content blockquote > :last-child { margin-bottom: 0; }

#content.ggb-single .ggb-content .wp-block-table { overflow-x: auto; }

#content.ggb-single .ggb-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#content.ggb-single .ggb-content thead { border-bottom: 0; }

#content.ggb-single .ggb-content :is(th, td) {
  padding: 10px 12px;
  border: 1px solid var(--ggb-rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
}

#content.ggb-single .ggb-content td:first-child,
#content.ggb-single .ggb-content th:first-child { white-space: nowrap; }

#content.ggb-single .ggb-content th { background: #f7efeb; color: var(--ggb-ink); }
#content.ggb-single .ggb-content tbody tr:nth-child(odd) { background: var(--ggb-paper); }

#content.ggb-single .ggb-content hr { border: 0; border-top: 1px solid var(--ggb-rule); }

#content.ggb-single .ggb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 28px 0 0;
}

#content.ggb-single .ggb-back {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--ggb-rule);
  text-align: center;
}

/* Solid red like the header ダウンロード button; the sweep comes from style.css .slot34-shiny. */
#content.ggb-single .ggb-back a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 28px;
  border: 1px solid var(--ggb-red);
  border-radius: 10px;
  background: var(--ggb-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}

#content.ggb-single .ggb-back a:hover { background: var(--ggb-red-dark); color: #fff; }

@media (max-width: 999px) {
  #content.ggb-archive .ggb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  #content.ggb-archive { padding: 18px 0 40px; }
  #content.ggb-archive .ggb-shell { width: calc(100% - 36px); }
  #content.ggb-archive .ggb-archive-title { font-size: 25px; }
  #content.ggb-archive .ggb-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #content.ggb-archive .ggb-card-body { padding: 19px 20px 20px; }
  #content .ggb-breadcrumb { margin-bottom: 20px; }
  #content.ggb-single { padding: 17px 0 36px; }
  #content.ggb-single .ggb-article-title { font-size: 25px; }
  #content.ggb-single .ggb-content { font-size: 15px; }
  #content.ggb-single .ggb-content h2 { margin-top: 37px; margin-bottom: 21px; font-size: 21px; }
  #content.ggb-single .ggb-content h3 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  #content.ggb-archive :is(.ggb-card-link, .ggb-card-more > span),
  #content.ggb-single .ggb-back a { transition: none; }
  #content .ggb-shine::after { display: none; animation: none; }
}
