/*
 * PopCo Atmos 1.3.1
 * Functional mobile navigation, instant community publishing and compact
 * editorial recommendations.
 */

:root {
  --popco-v131-navy: #011920;
  --popco-v131-blue: #073943;
  --popco-v131-yellow: #ffc928;
  --popco-v131-paper: #f4f7f5;
  --popco-v131-line: #d9e1de;
  --popco-v131-copy: #435458;
}

body.search-open {
  overflow: hidden;
}

/* Reliable touch targets and stacking in the mobile header. */
.header-v2__menu,
.header-v2__search-button {
  isolation: isolate;
  min-height: 44px;
  min-width: 44px;
  position: relative;
  touch-action: manipulation;
  z-index: 2;
}

.header-v2__search-button > span {
  pointer-events: none;
}

.menu-drawer-v2__backdrop {
  z-index: 0;
}

.menu-drawer-v2__panel {
  z-index: 1;
}

.menu-drawer-v2__profile {
  align-items: center;
  background: linear-gradient(125deg, rgba(255, 201, 40, 0.12), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--popco-v131-yellow);
  border-radius: 13px;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  margin: 16px;
  min-height: 78px;
  padding: 14px;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.menu-drawer-v2__profile:hover,
.menu-drawer-v2__profile:focus-visible {
  background: linear-gradient(125deg, rgba(255, 201, 40, 0.2), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 201, 40, 0.46);
  outline: 0;
  transform: translateX(2px);
}

.menu-drawer-v2__profile-visual {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.menu-drawer-v2__profile-visual .header-v2__avatar {
  height: 46px;
  width: 46px;
}

.menu-drawer-v2__profile-visual i {
  border: 2px solid var(--popco-v131-yellow);
  border-radius: 50%;
  display: block;
  height: 15px;
  position: relative;
  width: 15px;
}

.menu-drawer-v2__profile-visual i::after {
  border: 2px solid var(--popco-v131-yellow);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  content: "";
  height: 10px;
  left: -6px;
  position: absolute;
  top: 15px;
  width: 23px;
}

.menu-drawer-v2__profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.menu-drawer-v2__profile-copy strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-drawer-v2__profile-copy small {
  color: #aec0c3;
  font-size: 11px;
  line-height: 1.35;
}

.menu-drawer-v2__profile > svg {
  fill: none;
  height: 18px;
  stroke: var(--popco-v131-yellow);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 18px;
}

/* Search is a real modal sheet, independent of the sticky header geometry. */
.search-panel-v2 {
  background: transparent;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
  visibility: hidden;
  z-index: 140;
}

.search-panel-v2.is-visible,
.search-panel-v2.is-closing {
  display: block;
}

.search-panel-v2.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.search-panel-v2.is-closing {
  visibility: visible;
}

.search-panel-v2__backdrop {
  background: rgba(1, 25, 32, 0.72) !important;
  border: 0 !important;
  border-radius: 0 !important;
  inset: 0;
  padding: 0 !important;
  position: absolute;
  width: 100%;
}

.search-panel-v2__dialog {
  background: #fff;
  border-top: 7px solid var(--popco-v131-yellow);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 24px 60px rgba(1, 25, 32, 0.32);
  color: var(--popco-v131-navy);
  margin: 0 auto;
  max-width: 820px;
  padding: 30px;
  position: relative;
  transform: translateY(-18px);
  transition: transform 260ms cubic-bezier(0.22, 0.85, 0.3, 1);
  width: calc(100% - 32px);
  z-index: 1;
}

.search-panel-v2.is-visible .search-panel-v2__dialog {
  transform: translateY(0);
}

.search-panel-v2__dialog > header {
  align-items: start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-panel-v2__dialog > header span {
  color: #8b6900;
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.search-panel-v2__dialog h2 {
  color: var(--popco-v131-navy);
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.search-panel-v2 .search-panel-v2__close {
  align-items: center;
  background: #edf2f0;
  border: 0;
  border-radius: 50%;
  color: var(--popco-v131-navy);
  display: flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.search-panel-v2__close svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  width: 20px;
}

.search-panel-v2 .search-field > div {
  background: #f3f6f4;
  border: 2px solid transparent;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  padding: 7px;
  transition: border-color 160ms ease, background 160ms ease;
}

.search-panel-v2 .search-field > div:focus-within {
  background: #fff;
  border-color: var(--popco-v131-yellow);
}

.search-panel-v2 .search-field > div > span {
  border: 2px solid #6c7b7e;
  border-radius: 50%;
  height: 15px;
  margin: auto 0 auto 8px;
  position: relative;
  width: 15px;
}

.search-panel-v2 .search-field > div > span::after {
  background: #6c7b7e;
  content: "";
  height: 2px;
  position: absolute;
  right: -6px;
  top: 11px;
  transform: rotate(45deg);
  width: 7px;
}

.search-panel-v2 input {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--popco-v131-navy);
  font-size: 16px;
  min-height: 48px;
  outline: 0;
  padding: 0 10px;
}

.search-panel-v2 .search-field button {
  background: var(--popco-v131-yellow);
  border: 0;
  border-radius: 9px;
  color: var(--popco-v131-navy);
  min-height: 48px;
  padding: 0 24px;
}

.search-panel-v2__dialog > p {
  color: #718084;
  font-size: 12px;
  margin: 10px 0 0;
}

/* PopCo recomenda: images and headlines live side by side at every size. */
.editorial-rail {
  background: #fff;
  border: 1px solid var(--popco-v131-line);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(1, 25, 32, 0.07);
  overflow: hidden;
}

.editorial-rail > header {
  background: linear-gradient(125deg, #fff2bd, #fff9e8);
  border: 0;
  border-top: 6px solid var(--popco-v131-yellow);
  padding: 20px;
}

.editorial-rail > header > div {
  border: 0;
  padding: 0;
}

.editorial-rail > header span {
  color: #765b00;
  font-size: 9px;
  letter-spacing: 0.13em;
  margin-bottom: 6px;
}

.editorial-rail > header h2 {
  color: var(--popco-v131-navy);
  font-size: 23px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.editorial-rail > header p {
  color: #58676a;
  font-size: 11px;
  line-height: 1.45;
  margin: 8px 0 0;
}

.editorial-rail__list {
  display: grid;
}

.editorial-rail__card {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--popco-v131-line);
  display: grid;
  gap: 13px;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 105px;
  padding: 13px;
}

.editorial-rail__card:hover {
  background: var(--popco-v131-paper);
}

.editorial-rail__card img {
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  height: 78px;
  object-fit: cover;
  width: 104px;
}

.editorial-rail__card > span {
  display: grid;
  min-width: 0;
}

.editorial-rail__card small {
  align-items: center;
  color: #7e6300;
  display: flex;
  font-size: 8px;
  gap: 6px;
  letter-spacing: 0.07em;
}

.editorial-rail__card small b {
  align-items: center;
  background: var(--popco-v131-yellow);
  border-radius: 50%;
  color: var(--popco-v131-navy);
  display: inline-flex;
  font-size: 7px;
  height: 20px;
  justify-content: center;
  letter-spacing: 0;
  width: 20px;
}

.editorial-rail__card strong {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--popco-v131-navy);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 6px;
  overflow: hidden;
}

.editorial-rail__card em {
  align-items: center;
  color: #748185;
  display: flex;
  font-size: 9px;
  justify-content: space-between;
  margin-top: 7px;
}

.editorial-rail__card em svg,
.editorial-rail__all svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 14px;
}

.editorial-rail__all {
  align-items: center;
  color: var(--popco-v131-navy);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  justify-content: space-between;
  padding: 15px 17px;
  text-decoration: none;
}

.editorial-rail__all:hover {
  color: #7b5d00;
}

.editorial-rail .article-ad-sidebar {
  border-top: 1px solid var(--popco-v131-line);
  margin-top: 0;
}

/* The second reading module uses different stories and a quieter surface. */
.related-v3 {
  background: #eef4f2;
  border-radius: 18px;
}

.related-v3 .related-v3__card {
  border: 0;
  box-shadow: 0 7px 22px rgba(1, 25, 32, 0.055);
}

/* Discussion without dark strips or pending-state banners. */
.popco-comments {
  background: #fff;
  border-top: 0;
  margin-top: 76px;
  max-width: 840px;
  padding-top: 0;
}

.popco-comments__header {
  background: linear-gradient(125deg, #eef5f3, #fbfcfb);
  border-left: 6px solid var(--popco-v131-yellow);
  border-radius: 14px;
  padding: 24px 26px;
}

.popco-comments__eyebrow {
  color: #806400 !important;
  font-size: 9px !important;
  font-weight: 850;
  letter-spacing: 0.13em;
  margin: 0 0 7px !important;
  text-transform: uppercase;
}

.popco-comments__header h2 {
  color: var(--popco-v131-navy);
  font-size: clamp(28px, 5vw, 39px);
  line-height: 1;
}

.popco-comments__policy {
  color: #5b6a6d;
  font-size: 13px;
  margin-top: 10px;
}

.popco-comment-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.popco-comment-list .children {
  border-left: 3px solid #e2e9e6;
  margin-top: 12px;
}

.popco-comment,
.popco-comment__card,
.popco-comment__card > header,
.popco-comment__content,
.popco-comment__card footer {
  background: transparent;
}

.popco-comment__card {
  background: #f7f9f7;
  border: 1px solid #e0e6e3;
  border-radius: 13px;
  padding: 19px 20px;
}

.popco-comment__card > header strong {
  color: var(--popco-v131-navy);
  font-size: 13px;
}

.popco-comment__content {
  color: #394b4f;
  font-family: var(--popco-interface, Arial, sans-serif);
  font-size: 14px;
  line-height: 1.62;
}

.popco-comment__card footer a {
  color: #496066;
}

.popco-comment-form-shell,
.popco-comments__login {
  background: #fff8df;
  border: 1px solid #f0df9c;
  border-radius: 14px;
}

.popco-comment-form textarea {
  border-color: #c9d4d0;
  border-radius: 10px;
  color: var(--popco-v131-navy);
}

.popco-comment-form textarea:focus {
  border-color: var(--popco-v131-yellow);
  box-shadow: 0 0 0 4px rgba(255, 201, 40, 0.2);
  outline: 0;
}

.popco-comment-submit,
.popco-comments__login-actions a {
  background: var(--popco-v131-navy);
  border-color: var(--popco-v131-navy);
}

/* Reader critiques use yellow score chips, never black bands. */
.popcometro__public-review > header > span {
  background: var(--popco-v131-yellow);
  color: var(--popco-v131-navy);
}

.popcometro__public-review > header b,
.popcometro__public-review > header small {
  color: var(--popco-v131-navy);
}

/* First login confirmation. */
.auth-v2__welcome {
  background: #fff;
  border: 1px solid var(--popco-v131-line);
  border-top: 6px solid var(--popco-v131-yellow);
  border-radius: 15px;
  box-shadow: 0 16px 38px rgba(1, 25, 32, 0.08);
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: 24px;
}

.auth-v2__welcome-mark {
  align-items: center;
  background: var(--popco-v131-yellow);
  border-radius: 50%;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.auth-v2__welcome-mark svg {
  fill: none;
  height: 27px;
  stroke: var(--popco-v131-navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 27px;
}

.auth-v2__welcome p {
  color: #816400;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.auth-v2__welcome h2 {
  color: var(--popco-v131-navy);
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

.auth-v2__welcome > div > span {
  color: #5e6f72;
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 9px;
}

.auth-v2__welcome ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-v2__welcome li {
  align-items: center;
  color: #34484c;
  display: flex;
  font-size: 12px;
  gap: 9px;
}

.auth-v2__welcome li b {
  color: #8b6d00;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.auth-v2__welcome > a {
  align-items: center;
  background: var(--popco-v131-navy);
  border-radius: 9px;
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
}

.auth-v2__welcome > a svg {
  fill: none;
  height: 17px;
  stroke: var(--popco-v131-yellow);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

@media (max-width: 820px) {
  .header-v2__primary {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .header-v2__actions {
    min-width: 48px;
  }

  .header-v2__search-button {
    align-items: center;
    display: flex;
    justify-content: center;
  }

  .editorial-rail {
    margin: 2px 0 0;
    width: 100%;
  }

  .editorial-rail > header {
    padding: 22px;
  }

  .editorial-rail > header h2 {
    font-size: 28px;
  }

  .editorial-rail__card {
    gap: 15px;
    grid-template-columns: 128px minmax(0, 1fr);
    min-height: 116px;
    padding: 14px;
  }

  .editorial-rail__card img {
    height: 90px;
    width: 128px;
  }

  .editorial-rail__card strong {
    font-size: 15px;
  }

  .editorial-rail__all {
    font-size: 12px;
    padding: 17px 19px;
  }

  .auth-v2--account .auth-v2__content {
    max-width: 580px;
  }
}

@media (max-width: 620px) {
  .search-panel-v2__dialog {
    border-radius: 0 0 22px 22px;
    padding: max(20px, env(safe-area-inset-top)) 18px 22px;
    width: 100%;
  }

  .search-panel-v2__dialog > header {
    margin-bottom: 20px;
  }

  .search-panel-v2__dialog h2 {
    font-size: 28px;
    max-width: 12ch;
  }

  .search-panel-v2 .search-field > div {
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 6px;
  }

  .search-panel-v2 .search-field button {
    grid-column: 1 / -1;
    min-height: 46px;
    width: 100%;
  }

  .editorial-rail {
    border-radius: 15px;
    margin-left: 0;
    margin-right: 0;
  }

  .editorial-rail__card {
    gap: 12px;
    grid-template-columns: 110px minmax(0, 1fr);
    min-height: 104px;
    padding: 12px;
  }

  .editorial-rail__card img {
    height: 82px;
    width: 110px;
  }

  .editorial-rail__card strong {
    font-size: 13.5px;
    -webkit-line-clamp: 3;
  }

  .related-v3 {
    margin-left: 16px;
    margin-right: 16px;
    padding: 22px 16px;
  }

  .related-v3 .related-v3__card {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 100px;
    padding: 0;
  }

  .related-v3 .related-v3__card > img {
    height: 100%;
    min-height: 100px;
    width: 108px;
  }

  .popco-comments {
    margin-top: 54px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .popco-comments__header {
    border-left-width: 5px;
    padding: 21px 19px;
  }

  .popco-comments__header h2 {
    font-size: 30px;
  }

  .popco-comment-list {
    gap: 10px;
  }

  .popco-comment__card {
    padding: 17px 16px;
  }

  .popco-comment-form-shell,
  .popco-comments__login {
    padding: 20px 17px;
  }

  .popco-comments__login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .popco-comments__login-actions a {
    text-align: center;
  }

  .popcometro__public-review > header {
    align-items: start;
  }

  .auth-v2__welcome {
    padding: 20px;
  }

  .auth-v2__welcome h2 {
    font-size: 21px;
  }
}

@media (max-width: 390px) {
  .editorial-rail__card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .editorial-rail__card img {
    height: 76px;
    width: 96px;
  }

  .editorial-rail__card em {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-panel-v2,
  .search-panel-v2__dialog,
  .menu-drawer-v2__profile {
    transition: none !important;
  }
}
