/* GSB v1.5.1 — narrowly scoped display-only calendars. Existing styles untouched. */
.gsb-calendar .gsb-calendar-entry.gsb-history-home-list{min-height:0!important;height:auto!important;overflow:visible;display:block!important;padding:10px 12px!important}
.gsb-calendar .gsb-history-list{margin:0!important;padding:0!important;list-style:none;display:flex;flex-direction:column;gap:0}
.gsb-history-item{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:12px;align-items:baseline;padding:8px 2px;margin:0!important;border-bottom:1px solid rgba(30,92,150,.13);min-width:0}
.gsb-history-item:last-child{border-bottom:0}
.gsb-history-year{font:700 14px/1.32 'Chakra Petch',sans-serif;color:#1E5C96;white-space:nowrap}
.gsb-history-event{font:600 14px/1.38 'Barlow',sans-serif;color:#142c44;overflow-wrap:anywhere}
.gsb-history-event a{color:inherit;text-decoration:none;text-underline-offset:3px}
.gsb-history-event a:hover{text-decoration:underline}
.gsb-history-event a:focus-visible,.gsb-history-all:focus-visible{outline:2px solid #1E5C96;outline-offset:3px;border-radius:2px}
.gsb-history-home-bottom{margin-top:auto!important;display:flex;justify-content:flex-end}
.gsb-history-all{font:700 13px/1.45 'Barlow',sans-serif;color:#1E5C96;text-decoration:none}
.gsb-history-all:hover{text-decoration:underline}
.gsb-history-empty{font:500 14px/1.5 'Barlow',sans-serif;color:#35536e;margin:0!important}
.gsb-history-page{width:100%;max-width:1100px;margin:0 auto 50px;font-family:'Barlow',sans-serif}
.gsb-history-page .gsb-history-intro{color:#516980;font-size:17px;margin:0 0 25px}
.gsb-history-page .gsb-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;gap:0 32px;padding:0;margin:0}
.gsb-history-page .gsb-history-item{padding:15px 9px;border-bottom:1px solid #dce5eb}
.gsb-history-page .gsb-history-year{font-size:17px}
.gsb-history-page .gsb-history-event{font-size:17px}
.gsb-compact-calendar{font-family:'Barlow',sans-serif;width:100%;max-width:1200px;margin:0 auto 55px;color:#142c44}
.gsb-compact-calendar section{margin:0 0 32px}
.gsb-compact-calendar h2{font:700 clamp(24px,2.5vw,32px)/1.2 'Chakra Petch',sans-serif;margin:0 0 16px;color:#102841}
.gsb-compact-calendar__month{font:700 21px/1.25 'Chakra Petch',sans-serif!important;text-transform:capitalize;color:#1E5C96;margin:26px 0 12px!important}
.gsb-compact-releases{padding:0;margin:0!important;list-style:none;background:#fff;border:1px solid #dce5eb;border-radius:8px;overflow:hidden}
.gsb-compact-release{display:grid;grid-template-columns:minmax(104px,140px) minmax(0,2.3fr) minmax(130px,1.4fr);align-items:center;gap:14px;padding:15px 18px!important;margin:0!important;border-bottom:1px solid #e2eaf0;min-width:0}
.gsb-compact-release:last-child{border-bottom:0}
.gsb-compact-release:nth-child(even){background:#f5fafe}
.gsb-compact-release__date{font:700 14px/1.45 'Chakra Petch',sans-serif;color:#1E5C96;white-space:nowrap}
.gsb-compact-release__title{font:700 17px/1.35 'Barlow',sans-serif;color:#142c44;overflow-wrap:anywhere}
.gsb-compact-release__platforms{font:500 14px/1.4 'Barlow',sans-serif;color:#455f78;overflow-wrap:anywhere}
.gsb-compact-empty{padding:20px;border-radius:7px;background:#eaf6fb;color:#36546e;font:500 15px/1.5 'Barlow',sans-serif}
@media(max-width:850px){.gsb-compact-release{grid-template-columns:120px minmax(0,1.4fr) minmax(0,1fr);gap:9px}.gsb-compact-release__platforms{grid-column:2/-1}}
@media(max-width:650px){.gsb-history-page .gsb-history-list{grid-template-columns:1fr}.gsb-compact-release{grid-template-columns:minmax(80px,110px) minmax(0,1fr);padding:13px 12px!important;gap:5px 12px}.gsb-compact-release__title{font-size:16px}.gsb-compact-release__platforms{grid-column:1/-1}.gsb-history-year{font-size:13px}.gsb-history-event{font-size:13px}}

/* Dedicated history page can use more width without affecting articles/reviews. */
.gsb-article-page.gsb-history-page-shell{max-width:1180px!important;width:calc(100% - 32px)!important;box-sizing:border-box}
.gsb-history-page-shell .wp-block-post-content{width:100%!important;max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}

/* v1.5.2: historical gaming events, not only game releases. Short source-backed summaries. */
.gsb-history-item{align-items:start}
.gsb-history-event{display:flex;flex-direction:column;gap:3px;min-width:0}
.gsb-history-name{display:block;font-weight:700;overflow-wrap:anywhere}
.gsb-history-summary{display:block;color:#49647b;font:400 13px/1.4 'Barlow',sans-serif;overflow-wrap:anywhere;white-space:normal}
.gsb-history-page .gsb-history-summary{font-size:15px;line-height:1.45}
.gsb-history-page .gsb-history-list{grid-template-columns:1fr;max-width:1100px}
.gsb-calendar .gsb-history-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:650px){.gsb-history-item{gap:10px}.gsb-history-summary{font-size:12px}.gsb-history-page .gsb-history-summary{font-size:14px}}

/* v1.5.4: category, platform and time-range controls, scoped to the calendar page. */
.gsb-calendar-views{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 16px}
.gsb-calendar-view{font:700 15px/1.4 'Barlow',sans-serif;color:#1E5C96;background:#fff;border:1px solid #c6d8e5;border-radius:7px;text-decoration:none;padding:10px 15px}
.gsb-calendar-view.is-active{background:#1E5C96;color:#fff;border-color:#1E5C96}
.gsb-calendar-view:hover:not(.is-active){background:#eaf6fb;text-decoration:none}
.gsb-calendar-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px 15px;margin:0 0 12px}
.gsb-calendar-filters label{display:flex;flex-direction:column;gap:5px;font:600 14px/1.4 'Barlow',sans-serif;color:#29455e}
.gsb-calendar-filters select{min-width:175px;font:500 15px/1.35 'Barlow',sans-serif;border:1px solid #b8cfdd;border-radius:7px;padding:10px 12px;background:#fff;color:#142c44}
.gsb-calendar-filters button{border:0;border-radius:7px;padding:11px 20px;min-height:44px;background:#D03722;color:#fff;font:700 15px/1.4 'Barlow',sans-serif;cursor:pointer}
.gsb-calendar-views a:focus-visible,.gsb-calendar-filters :focus-visible,.gsb-calendar-pagination a:focus-visible{outline:3px solid #D03722;outline-offset:3px}
.gsb-calendar-count{font:500 14px/1.5 'Barlow',sans-serif;color:#49657e;margin:0 0 22px}
.gsb-calendar-pagination{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:26px 0 16px;font:600 15px/1.45 'Barlow',sans-serif}
.gsb-calendar-pagination a{color:#1E5C96;text-underline-offset:3px}
@media(max-width:560px){.gsb-calendar-filters label{width:100%}.gsb-calendar-filters select,.gsb-calendar-filters button{width:100%}.gsb-calendar-views a{flex:1;text-align:center}}

/* v1.5.5: clear context when a narrow platform/date filter has zero results. */
.gsb-calendar-view__count{font-weight:600;opacity:.85}
.gsb-compact-empty p{margin:0 0 8px}
.gsb-compact-empty p:last-child{margin-bottom:0}
.gsb-compact-empty a{color:#1E5C96;font-weight:700;text-underline-offset:3px}
.gsb-compact-empty a:focus-visible{outline:3px solid #D03722;outline-offset:3px}

/* 1.5.6: icon-only platform selector with visible labels; scoped to releases page. */
.gsb-calendar-platforms{margin:4px 0 14px}
.gsb-calendar-platforms__heading{display:block;font:600 14px/1.4 'Barlow',sans-serif;color:#29455e;margin:0 0 8px}
.gsb-calendar-platforms__options{display:flex;gap:8px;flex-wrap:wrap}
.gsb-platform-choice{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:72px;min-width:92px;padding:10px 12px;box-sizing:border-box;border:1px solid #b8cfdd;border-radius:8px;background:#fff;color:#1E5C96;text-decoration:none;font:700 13px/1.2 'Barlow',sans-serif;transition:background-color .15s ease,border-color .15s ease}
.gsb-platform-choice svg{display:block;width:26px;height:26px;flex-shrink:0}
.gsb-platform-choice.is-active{background:#1E5C96;color:#fff;border-color:#1E5C96}
.gsb-platform-choice:hover:not(.is-active){background:#eaf6fb;text-decoration:none}
.gsb-platform-choice:focus-visible{outline:3px solid #D03722;outline-offset:3px}
.gsb-calendar-editorial-note{font:500 13px/1.55 'Barlow',sans-serif;color:#49657e;margin:0 0 12px;max-width:780px}
@media(max-width:650px){.gsb-calendar-platforms__options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.gsb-platform-choice{min-width:0;min-height:70px;padding:9px 5px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.gsb-platform-choice{transition:none}}

/* v1.5.7 — compact editorial home teaser; preserve the full history page. */
@media(min-width:851px){
  .gsb-news-layout{align-items:start!important}
  .gsb-home-main .gsb-calendar{height:425px!important;min-height:0!important;max-height:425px!important;box-sizing:border-box;overflow:hidden;gap:10px!important}
  .gsb-home-main .gsb-calendar-entry.gsb-history-home-list{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;padding:9px 11px!important}
  .gsb-home-main .gsb-history-home-bottom{flex:0 0 auto!important}
}
.gsb-home-main .gsb-history-list--home{margin:0!important}
.gsb-home-main .gsb-history-list--home .gsb-history-item{padding:7px 1px!important;gap:8px}
.gsb-home-main .gsb-history-list--home .gsb-history-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gsb-home-main .gsb-history-list--home .gsb-history-summary{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.gsb-home-main .gsb-history-home-bottom{padding-top:4px!important}
@media(max-width:850px){.gsb-home-main .gsb-calendar{height:auto!important;max-height:none!important;overflow:visible!important}}
/* Genuine platform identifiers; native colours are preserved, never recoloured by filters. */
.gsb-platform-choice .gsb-brand-logo{display:block;max-width:76px;width:auto;height:27px;object-fit:contain;flex-shrink:0}
.gsb-platform-choice .gsb-brand-logo--nintendo{height:25px;width:68px}
.gsb-platform-choice .gsb-brand-logo--nintendo{filter:none}
.gsb-platform-choice.is-active .gsb-brand-logo--nintendo{filter:none}
@media(min-width:851px) and (prefers-contrast:more){.gsb-home-main .gsb-calendar{height:auto!important;max-height:none!important;overflow:visible!important}}

.gsb-platform-choice .gsb-brand-logo{background:#fff;border-radius:4px;padding:3px 8px;box-sizing:content-box}

/* GSB 1.5.8: consistent, Retina-crisp branded platform filters.
   SVG artwork is never redrawn; only the presentation is monochrome GSB blue/white. */
.gsb-calendar-platforms__options{gap:10px}
.gsb-platform-choice{min-height:88px;border-radius:10px;gap:7px;padding:12px 10px;background:#fff;box-shadow:0 1px 0 rgba(12,35,59,.06)}
.gsb-platform-choice .gsb-brand-logo{box-sizing:border-box;width:72px;max-width:80px;height:34px;object-fit:contain;object-position:center;padding:0;background:none;border-radius:0;filter:brightness(0) saturate(100%) invert(31%) sepia(43%) saturate(1394%) hue-rotate(167deg) brightness(89%) contrast(92%)}
.gsb-platform-choice .gsb-brand-logo--playstation,.gsb-platform-choice .gsb-brand-logo--xbox{width:39px;height:36px}
.gsb-platform-choice .gsb-brand-logo--nintendo{width:76px;height:34px;filter:brightness(0) saturate(100%) invert(31%) sepia(43%) saturate(1394%) hue-rotate(167deg) brightness(89%) contrast(92%)}
.gsb-platform-choice.is-active .gsb-brand-logo{filter:brightness(0) invert(1)}
.gsb-platform-choice.is-active .gsb-brand-logo--nintendo{filter:brightness(0) invert(1)}
.gsb-platform-choice.is-active{background:#1E5C96;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}
.gsb-platform-choice:hover:not(.is-active){border-color:#1E5C96}
@media(max-width:650px){.gsb-platform-choice{min-height:80px;padding:10px 5px}.gsb-platform-choice .gsb-brand-logo{max-width:70px}}

/* 1.5.9: local typographic Nintendo label; avoids blocked external SVG and monochrome filter artefacts. */
.gsb-platform-choice .gsb-nintendo-wordmark{display:inline-flex;align-items:center;justify-content:center;color:#1E5C96;border:2px solid currentColor;border-radius:14px;min-height:24px;min-width:70px;padding:1px 4px;font-family:Arial,Helvetica,sans-serif;font-size:12px;font-weight:800;letter-spacing:-.6px;line-height:1;box-sizing:border-box}
.gsb-platform-choice.is-active .gsb-nintendo-wordmark{color:#fff}

/* v1.5.46: readable year/title separation on the dedicated history page.
   Layout-only; existing historical content and home teaser are untouched. */
@media (max-width:650px) {
  .gsb-history-page .gsb-history-item {
    display:flex!important;flex-direction:column!important;align-items:flex-start!important;
    gap:8px!important;padding:18px 6px 19px!important;
  }
  .gsb-history-page .gsb-history-year {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:auto!important;max-width:100%!important;
    padding:3px 9px!important;border-radius:5px!important;
    background:#e8f5fb!important;color:#1E5C96!important;
    font:700 14px/1.3 'Chakra Petch',sans-serif!important;white-space:nowrap;
  }
  .gsb-history-page .gsb-history-event {
    display:flex!important;flex-direction:column!important;
    gap:7px!important;width:100%!important;min-width:0!important;
    color:#142c44;
  }
  .gsb-history-page .gsb-history-name {
    font-size:17px!important;line-height:1.35!important;overflow-wrap:anywhere;
  }
  .gsb-history-page .gsb-history-summary {
    font-size:15px!important;line-height:1.55!important;color:#49647b;
  }
}
