/*
Theme Name: Brick Current Editorial
Template: newspaperss
Version: 1.0.22
Description: Editorial homepage for Brick Current.
*/

:root {
  --bc-bg: #f6f7f8;
  --bc-card: #ffffff;
  --bc-text: #151a20;
  --bc-muted: #66717c;
  --bc-line: #e4e8ec;
  --bc-accent: #15b8d6;
  --bc-dark: #172028;
}

body {
  background: var(--bc-bg);
  color: var(--bc-text);
}

.bc-home {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 72px;
}

.bc-home * {
  box-sizing: border-box;
}

.bc-kicker,
.bc-category {
  display: inline-block;
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bc-kicker {
  color: var(--bc-accent);
  margin-bottom: 10px;
}

.bc-category {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--bc-accent);
  color: #fff;
}

.bc-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 42px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bc-line);
}

.bc-section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.bc-section-head p {
  margin: 0;
  max-width: 520px;
  color: var(--bc-muted);
  line-height: 1.5;
}

/* HERO */

.bc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: 22px;
}

.bc-hero-main,
.bc-mini-card,
.bc-story-card {
  background: var(--bc-card);
  border: 1px solid var(--bc-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(20, 29, 38, .06);
}

.bc-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  min-height: 460px;
}

.bc-media {
  position: relative;
  overflow: hidden;
  background: #e8edf0;
}

.bc-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.bc-hero-main:hover .bc-media img,
.bc-story-card:hover .bc-media img,
.bc-mini-card:hover .bc-media img {
  transform: scale(1.025);
}

.bc-hero-main .bc-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
}

.bc-hero-main h1 {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.bc-hero-main .bc-excerpt {
  margin: 0;
  color: var(--bc-muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.bc-meta {
  margin-top: 22px;
  font-size: .84rem;
  color: var(--bc-muted);
}

.bc-card-link {
  color: inherit;
  text-decoration: none;
}

/* SIDE STORIES */

.bc-hero-side {
  display: grid;
  gap: 22px;
}

.bc-mini-card .bc-media {
  aspect-ratio: 16 / 9;
}

.bc-mini-copy {
  padding: 19px 20px 22px;
}

.bc-mini-copy h3 {
  margin: 10px 0 0;
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: -.015em;
}

/* LATEST */

.bc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bc-story-card .bc-media {
  aspect-ratio: 16 / 9;
}

.bc-story-copy {
  padding: 20px 21px 24px;
}

.bc-story-copy h3 {
  margin: 11px 0 10px;
  font-size: 1.28rem;
  line-height: 1.24;
  letter-spacing: -.015em;
}

.bc-story-copy p {
  margin: 0;
  color: var(--bc-muted);
  line-height: 1.55;
}

/* INTRO */

.bc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
}

.bc-intro h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  letter-spacing: -.03em;
}

.bc-intro p {
  margin: 9px 0 0;
  max-width: 720px;
  color: var(--bc-muted);
  line-height: 1.6;
}

.bc-topic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bc-topic-nav a {
  display: inline-block;
  padding: 9px 12px;
  border: 1px solid var(--bc-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bc-dark);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 750;
}

.bc-topic-nav a:hover {
  border-color: var(--bc-accent);
  color: #087d95;
}

@media (max-width: 960px) {
  .bc-hero {
    grid-template-columns: 1fr;
  }

  .bc-hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-intro {
    grid-template-columns: 1fr;
  }

  .bc-topic-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .bc-home {
    width: min(100% - 22px, 1180px);
    margin-top: 22px;
  }

  .bc-hero-main {
    display: block;
    min-height: 0;
  }

  .bc-hero-main .bc-media {
    aspect-ratio: 16 / 10;
  }

  .bc-hero-main .bc-copy {
    padding: 24px 21px 28px;
  }

  .bc-hero-main h1 {
    font-size: 2rem;
  }

  .bc-hero-side,
  .bc-grid {
    grid-template-columns: 1fr;
  }

  .bc-section-head {
    display: block;
  }

  .bc-section-head p {
    margin-top: 8px;
  }
}

/* brickcurrent-comments-frontend-cleanup */
.comments-area,
#comments,
.comment-title,
.comment-reply-title,
.comment-form,
.comments-link,
.meta-info-comment,
.box-comment-btn {
  display: none !important;
}

/* brickcurrent-hide-public-author-ui */
.meta-info-author,
.author-content-wrap,
.newspaperss-author-bttom-wrap,
.author-links {
    display: none !important;
}

/* brickcurrent-compact-brand-header */

/* Remove duplicated textual site title when custom logo is active */
.custom-logo-link + .site-title,
#site-title .site-title {
    display: none !important;
}

/* Compact desktop branding area */
.head-top-area {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

#main-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-items: center;
}

#site-title {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
}

#site-title .custom-logo-link {
    display: block;
    line-height: 0;
}

#site-title .custom-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-height: 82px !important;
    max-width: min(520px, 90vw) !important;
    object-fit: contain;
}

/* Mobile header */
.logo.title-bar-title .site-title {
    display: none !important;
}

.logo.title-bar-title .custom-logo-link {
    display: block;
    line-height: 0;
}

.logo.title-bar-title .custom-logo {
    width: auto !important;
    height: auto !important;
    max-height: 46px !important;
    max-width: 230px !important;
    object-fit: contain;
}

@media screen and (max-width: 63.9375em) {
    .head-top-area {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}



/* brickcurrent-home-card-text-runtime-fix-v1 */
.bc-home .bc-story-copy {
  display: block !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 1px !important;
  overflow: visible !important;
  color: var(--bc-text) !important;
  background: var(--bc-card) !important;
}

.bc-home .bc-story-copy .bc-card-link,
.bc-home .bc-story-copy h3 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: var(--bc-text) !important;
}

.bc-home .bc-story-copy p,
.bc-home .bc-story-copy .bc-meta {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  color: var(--bc-muted) !important;
}

.bc-home .bc-story-copy .bc-category {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* brickcurrent-home-card-layout-fix-v1 */
.bc-home .bc-story-card {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
}

.bc-home .bc-story-card .bc-media {
  display: block !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}

.bc-home .bc-story-card .bc-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.bc-home .bc-story-card .bc-story-copy {
  display: block !important;
  position: relative !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
}


/* brickcurrent-hero-image-overlay-v1 */

/* Main hero */
.bc-home .bc-hero-main {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  background: #172028 !important;
}

.bc-home .bc-hero-main > .bc-media {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}

.bc-home .bc-hero-main > .bc-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.bc-home .bc-hero-main .bc-copy {
  position: absolute !important;
  z-index: 3 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block !important;
  padding: clamp(28px, 5vw, 54px) !important;
  color: #fff !important;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 15, 20, 0) 0%,
      rgba(10, 15, 20, .30) 24%,
      rgba(10, 15, 20, .82) 72%,
      rgba(10, 15, 20, .94) 100%
    ) !important;
}

.bc-home .bc-hero-main .bc-copy h1,
.bc-home .bc-hero-main .bc-copy .bc-card-link,
.bc-home .bc-hero-main .bc-copy .bc-excerpt,
.bc-home .bc-hero-main .bc-copy .bc-meta {
  color: #fff !important;
}

.bc-home .bc-hero-main .bc-copy h1 {
  max-width: 900px !important;
  margin-top: 14px !important;
  margin-bottom: 14px !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .38);
}

.bc-home .bc-hero-main .bc-copy .bc-excerpt {
  max-width: 760px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, .90) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .32);
}

.bc-home .bc-hero-main .bc-copy .bc-meta {
  margin-top: 16px !important;
  color: rgba(255, 255, 255, .82) !important;
}

/* Two smaller hero cards */
.bc-home .bc-mini-card {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  background: #172028 !important;
}

.bc-home .bc-mini-card > .bc-media {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}

.bc-home .bc-mini-card > .bc-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.bc-home .bc-mini-card .bc-mini-copy {
  position: absolute !important;
  z-index: 3 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 48px 20px 20px !important;
  color: #fff !important;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 15, 20, 0) 0%,
      rgba(10, 15, 20, .38) 34%,
      rgba(10, 15, 20, .90) 100%
    ) !important;
}

.bc-home .bc-mini-card .bc-mini-copy h3,
.bc-home .bc-mini-card .bc-mini-copy .bc-card-link {
  color: #fff !important;
}

.bc-home .bc-mini-card .bc-mini-copy h3 {
  margin: 10px 0 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .42);
}

/* Mobile */
@media (max-width: 680px) {
  .bc-home .bc-hero-main > .bc-media {
    aspect-ratio: 16 / 10 !important;
  }

  .bc-home .bc-hero-main .bc-copy {
    padding: 60px 21px 24px !important;
  }

  .bc-home .bc-hero-main .bc-copy h1 {
    font-size: clamp(1.6rem, 7vw, 2rem) !important;
    line-height: 1.08 !important;
  }

  .bc-home .bc-hero-main .bc-copy .bc-excerpt {
    display: none !important;
  }

  .bc-home .bc-hero-main .bc-copy .bc-meta {
    margin-top: 12px !important;
  }

  .bc-home .bc-mini-card .bc-mini-copy {
    padding: 52px 18px 18px !important;
  }
}


/* brickcurrent-public-author-profile-v1 */

/* Author byline on single articles */
.single-post .meta-info-author {
  display: inline-flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Full author bio box */
.single-post .author-content-wrap {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Keep unnecessary author navigation hidden */
.single-post .newspaperss-author-bttom-wrap,
.single-post .author-links {
  display: none !important;
}


/* brickcurrent-header-banner-archivist-fullwidth START */
@media (min-width: 960px) {
  .head-top-area {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  #main-header {
    display: block !important;
  }

  #main-header > .cell:first-child {
    display: none !important;
  }

  #main-header > .cell:last-child {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  #main-header .sidebar-headeradvertising,
  #main-header .widget_custom_html,
  #main-header .bc-header-editorial-banner,
  #main-header .bc-header-editorial-banner img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  .bc-header-editorial-banner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(20, 29, 38, .08);
  }

  .bc-header-editorial-banner img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
  }
}

@media (max-width: 959px) {
  .head-top-area .bc-header-editorial-banner {
    display: none !important;
  }
}
/* brickcurrent-header-banner-archivist-fullwidth END */

/* brickcurrent-header-menu-overlay-v1 START */

@media (min-width: 1024px) {

  /*
   * Header bez wewnętrznych odstępów.
   */
  .head-top-area {
    padding: 0 !important;
    margin: 0 !important;
  }

  .head-top-area > .grid-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  #main-header {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  #main-header > .cell:last-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  #main-header #block-7,
  #main-header .widget_custom_html,
  #main-header .bc-header-editorial-banner {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  #main-header .bc-header-editorial-banner img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  /*
   * Cały pasek menu znajduje się na dole zdjęcia.
   */
  #header-bottom.head-bottom-area {
    position: relative !important;
    z-index: 20 !important;
    margin-top: -40px !important;
    background: rgba(8, 78, 92, .32) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  #header-bottom.head-bottom-area > .grid-container,
  #header-bottom #the-menu {
    background: transparent !important;
  }

  #header-bottom #the-menu,
  #header-bottom .top-bar {
    min-height: 40px !important;
  }

  #header-bottom #the-menu a {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
  }

  #header-bottom .search-wrap,
  #header-bottom .search-wrap .fa-search {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
  }

  /*
   * Po przewinięciu sticky wraca do pełnego paska.
   */
  #header-bottom.head-bottom-area.is-stuck {
    position: fixed !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    margin-top: 0 !important;
    background: #31bfd8 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
  }

  #header-bottom.head-bottom-area.is-stuck #the-menu a {
    text-shadow: none !important;
  }
}

@media (max-width: 1023px) {
  #header-bottom.head-bottom-area {
    margin-top: 0 !important;
  }
}

/* brickcurrent-header-menu-overlay-v1 END */

/* brickcurrent-search-menu-readability-v1 START */
@media (min-width: 1024px) {

  /*
   * Czytelniejsze menu na grafice.
   */
  #header-bottom #the-menu .desktop-menu > li > a {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    margin: 3px 1px !important;
    border-radius: 17px !important;

    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: .015em !important;

    text-shadow:
      0 1px 2px rgba(0,0,0,.78),
      0 0 6px rgba(0,0,0,.28) !important;

    transition:
      background-color .18s ease,
      box-shadow .18s ease,
      transform .18s ease !important;
  }

  #header-bottom #the-menu .desktop-menu > li > a:hover,
  #header-bottom #the-menu .desktop-menu > li > a:focus,
  #header-bottom #the-menu .desktop-menu > li:focus-within > a {
    background: rgba(255,255,255,.18) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.25),
      0 2px 8px rgba(0,0,0,.12) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
  }

  /*
   * Szersza i bardziej widoczna wyszukiwarka.
   */
  #header-bottom .search-wrap,
  #header-bottom .search-wrap.open {
    width: 320px !important;
    min-width: 320px !important;
    height: 36px !important;
    margin-top: 2px !important;
    padding: 0 10px 0 12px !important;

    border: 1.5px solid rgba(255,255,255,.86) !important;
    border-radius: 19px !important;
    background: rgba(8,18,22,.50) !important;

    box-shadow:
      0 2px 8px rgba(0,0,0,.20),
      inset 0 0 0 1px rgba(255,255,255,.05) !important;
  }

  #header-bottom .search-wrap .search-form {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 34px !important;
  }

  #header-bottom .search-wrap label {
    display: block !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 34px !important;
    padding: 0 !important;
    opacity: 1 !important;
  }

  #header-bottom .search-wrap .search-field {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    padding: 0 8px !important;

    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  #header-bottom .search-wrap .search-field::placeholder {
    color: rgba(255,255,255,.90) !important;
    opacity: 1 !important;
  }

  #header-bottom .search-wrap .fa-search {
    display: block !important;
    flex: 0 0 auto !important;
    margin-left: 7px !important;
    padding: 0 !important;

    color: #fff !important;
    font-size: 18px !important;
    opacity: 1 !important;

    border: 0 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.70) !important;
  }

  /*
   * Po wejściu w sticky zachowujemy tę samą czytelność,
   * bez zmiany jego mechaniki.
   */
  #header-bottom.head-bottom-area.is-stuck .search-wrap,
  #header-bottom.head-bottom-area.is-stuck .search-wrap.open {
    background: rgba(14,92,108,.48) !important;
    border-color: rgba(255,255,255,.90) !important;
  }

  #header-bottom.head-bottom-area.is-stuck #the-menu .desktop-menu > li > a {
    text-shadow: 0 1px 2px rgba(0,0,0,.28) !important;
  }
}
/* brickcurrent-search-menu-readability-v1 END */

/* brickcurrent-sticky-menu-vertical-polish-v1 START */
@media (min-width: 1024px) {

  #header-bottom #the-menu,
  #header-bottom .top-bar {
    min-height: 48px !important;
    height: 48px !important;
    align-items: center !important;
  }

  #header-bottom .menu-position {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
  }

  #header-bottom #the-menu .desktop-menu {
    display: flex !important;
    align-items: center !important;
    height: 48px !important;
  }

  /* Delikatnie widoczne także bez hovera */
  #header-bottom #the-menu .desktop-menu > li > a {
    min-height: 32px !important;
    margin: 0 1px !important;
    padding: 0 13px !important;

    background: rgba(5,20,24,.16) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.10) !important;

    transform: none !important;
  }

  /* Mocniejszy hover, ale bez przesuwania elementu */
  #header-bottom #the-menu .desktop-menu > li > a:hover,
  #header-bottom #the-menu .desktop-menu > li > a:focus,
  #header-bottom #the-menu .desktop-menu > li:focus-within > a {
    background: rgba(5,20,24,.38) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.32),
      0 2px 8px rgba(0,0,0,.18) !important;

    transform: none !important;
  }

  /* Wyszukiwarka wyśrodkowana pionowo */
  #header-bottom .search-wrap,
  #header-bottom .search-wrap.open {
    top: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: center !important;
  }

  #header-bottom.head-bottom-area.is-stuck {
    min-height: 48px !important;
    height: 48px !important;
  }

  #header-bottom.head-bottom-area.is-stuck > .grid-container {
    height: 48px !important;
  }

  #header-bottom.head-bottom-area.is-stuck #the-menu,
  #header-bottom.head-bottom-area.is-stuck .top-bar {
    height: 48px !important;
    min-height: 48px !important;
  }
}
/* brickcurrent-sticky-menu-vertical-polish-v1 END */

