/* mobile overflow guard */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }
﻿/* Pharma India Magazine / PhiR — matched to pharmaindiamagazine.com screenshot */

:root {
  --pim-navy: #0b1c2c;
  --pim-nav: #004d40;
  --pim-nav-hover: #00352c;
  --pim-teal: #0a8f7a;
  --pim-accent: #c8102e;
  --pim-more: #d35400;
  --pim-link: #066b5c;
  --pim-text: #222;
  --pim-muted: #6b7280;
  --pim-border: #e5e7eb;
  --pim-bg: #f4f6f8;
  --pim-container: 1170px;
  --pim-font: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--pim-font);
  font-weight: 400;
  color: var(--pim-text);
  background: #fff;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: var(--pim-link);
  text-decoration: none;
}

a:hover {
  color: var(--pim-more);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pim-font);
  color: #111;
  font-weight: 700;
  margin: 0 0 0.45em;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
  font-size: 15px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pim-container {
  width: 100%;
  max-width: var(--pim-container);
  margin: 0 auto;
  padding: 0 15px;
}

/* ========== Header: white masthead ========== */
.pim-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.pim-masthead {
  background: var(--pim-nav);
  border-bottom: 0;
}

.pim-masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.pim-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  text-decoration: none;
  color: #fff;
}

.pim-brand:hover,
.pim-brand:focus {
  color: #fff;
  text-decoration: none;
}

.pim-brand__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
}

.pim-brand__word {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}

.pim-brand__i {
  position: relative;
  display: inline-block;
}

/* Molecule tittle above the dotless-i stem */
.pim-brand__i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.02em;
  width: 0.26em;
  height: 0.26em;
  margin-left: -0.13em;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
  background: transparent;
}

.pim-brand__i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.08em;
  width: 2.5px;
  height: 0.44em;
  margin-left: -1.25px;
  background: #fff;
}

.pim-brand__tag {
  margin-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.pim-masthead__tools {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  z-index: 2;
}

.pim-social,
.pim-search-toggle {
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.pim-social:hover,
.pim-search-toggle:hover {
  color: #9ee7d8;
}

.pim-search-panel {
  display: none;
  background: #00352c;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pim-search-panel.is-open {
  display: block;
}

.pim-search-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
}

.pim-search-form__input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccd;
  border-radius: 2px;
  font-size: 15px;
}

.pim-search-form__btn {
  background: var(--pim-nav);
  color: #fff;
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 500;
}

/* ========== Nav: dark green uppercase ========== */
.pim-nav {
  background: var(--pim-nav);
}

.pim-nav__inner {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.pim-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.pim-nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.pim-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.pim-nav__list > li {
  position: relative;
}

.pim-nav__list > li > a {
  display: block;
  color: #fff;
  padding: 13px 15px 11px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: transparent;
  border-bottom: 3px solid transparent;
}

.pim-nav__list > li > a:hover {
  background: rgba(0, 0, 0, 0.16);
  color: #fff;
}

.pim-nav__list > li.current-menu-item > a,
.pim-nav__list > li.current-menu-ancestor > a,
.pim-nav__list > li.current_page_item > a {
  background: transparent;
  color: #9ee7d8;
  border-bottom-color: #9ee7d8;
}

.pim-nav__list .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 50;
}

.pim-nav__list > li:hover > .sub-menu {
  display: block;
}

.pim-nav__list .sub-menu a {
  display: block;
  padding: 8px 14px;
  color: #222;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.pim-nav__list .sub-menu a:hover {
  background: #eef7f5;
  color: var(--pim-teal);
}

/* ========== Main ========== */
.pim-main {
  padding: 16px 0 40px;
  background: #fff;
}

/* MagOne carousel — contained width, white page sides (no black bars) */
.pim-carousel {
  position: relative;
  margin: 0 0 18px;
  background: #fff;
}

.pim-carousel__frame {
  position: relative;
  overflow: hidden;
  background: #eef1f4;
}

.pim-carousel__viewport {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
}

.pim-carousel__slide {
  position: relative;
  display: none;
  min-height: 380px;
  background: #f4f6f8;
}

.pim-carousel__slide.is-active {
  display: block;
}

.pim-carousel__media {
  display: block;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #e8ecef;
}

.pim-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pim-carousel__caption {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: min(360px, 42%);
  background: rgba(255, 255, 255, 0.94);
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  z-index: 2;
}

.pim-carousel__title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.pim-carousel__title a {
  color: #111;
}

.pim-carousel__excerpt {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

.pim-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.pim-carousel__btn:hover {
  background: #fff;
  color: var(--pim-nav);
}

.pim-carousel__btn--prev {
  left: 22px;
}

.pim-carousel__btn--next {
  right: 22px;
}

.pim-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.pim-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  padding: 0;
}

.pim-carousel__dot.is-active {
  background: var(--pim-nav);
}

/* Subscribe strip — original PhiR banner (compact leaderboard height) */
.pim-subscribe-strip {
  margin: 0 auto 18px;
  border: 1px solid #dfe5ea;
  background: #fff;
  overflow: hidden;
  max-width: 970px;
}

.pim-subscribe-strip__banner {
  display: block;
  line-height: 0;
}

.pim-subscribe-strip__banner img {
  width: 100%;
  max-width: 970px;
  height: 90px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

/* Ads */
.pim-ad {
  margin: 0 0 18px;
  text-align: center;
}

.pim-ad--sidebar img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* MagOne-style 3-column masonry: news | tall magazine | quote */
.pim-promo-masonry {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.pim-promo-masonry__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.pim-mag-card {
  background: #fff;
  text-align: center;
}

.pim-mag-card__media {
  display: block;
  overflow: hidden;
  background: #eef1f4;
}

.pim-mag-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.pim-mag-card__body {
  padding: 14px 8px 6px;
}

.pim-mag-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.pim-mag-card__title a {
  color: var(--pim-accent);
}

.pim-mag-card__title a:hover {
  color: #9a0c22;
}

.pim-mag-card__excerpt {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pim-link);
}

.pim-mag-card .pim-more {
  display: inline-block;
  font-weight: 600;
}

.pim-promo-cover {
  display: block;
  overflow: hidden;
  background: #0b3d7a;
}

.pim-promo-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.pim-promo-thumb {
  display: block;
  overflow: hidden;
  background: #eef1f4;
}

.pim-promo-thumb__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

/* legacy alias kept for older markup */
.pim-promo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.pim-promo-card {
  background: #fff;
  overflow: hidden;
}

.pim-promo-card a {
  display: block;
}

.pim-promo-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #eef1f4;
}

/* Videos page gallery */
.pim-videos__intro {
  margin: 0 0 22px;
  color: var(--pim-muted);
  font-size: 15px;
}

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

.pim-video-card {
  background: #fff;
  border: 1px solid var(--pim-border);
  overflow: hidden;
}

.pim-video-card__media {
  position: relative;
  display: block;
  background: #0b1c2c;
  overflow: hidden;
}

.pim-video-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.pim-video-card__media:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.pim-video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 77, 64, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.pim-video-card__body {
  padding: 14px 16px 16px;
}

.pim-video-card__meta {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pim-teal);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.pim-video-card__title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.pim-video-card__title a {
  color: var(--pim-navy);
}

.pim-video-card__title a:hover {
  color: var(--pim-accent);
}

.pim-video-card__excerpt {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pim-muted);
}

@media (max-width: 768px) {
  .pim-videos-grid {
    grid-template-columns: 1fr;
  }
}

.pim-panel-row {
  margin-bottom: 28px;
}

.pim-panel-row__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pim-panel-card {
  display: block;
  border: 1px solid var(--pim-border);
  overflow: hidden;
  background: #fff;
}

.pim-panel-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.pim-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.pim-feature-tile {
  background: #fff;
  border: 1px solid var(--pim-border);
  overflow: hidden;
}

.pim-feature-tile a {
  display: block;
  color: inherit;
}

.pim-feature-tile__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8ecef;
}

.pim-feature-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pim-feature-tile__body {
  display: block;
  padding: 12px 14px 14px;
}

.pim-feature-tile__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin-bottom: 6px;
}

.pim-feature-tile__excerpt {
  display: block;
  font-size: 13px;
  color: var(--pim-muted);
  line-height: 1.45;
}

/* Home two-column */
.pim-home__layout,
.pim-single-wrap,
.pim-archive-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.pim-section {
  margin-bottom: 28px;
}

.pim-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--pim-nav);
  margin-bottom: 14px;
  padding-bottom: 6px;
}

.pim-section__title {
  font-size: 20px;
  color: var(--pim-navy);
  margin: 0;
}

.pim-section__link,
.pim-more {
  color: var(--pim-more);
  font-size: 13px;
  font-weight: 500;
}

.pim-section__more {
  margin-top: 12px;
}

.pim-btn {
  display: inline-block;
  background: var(--pim-nav);
  color: #fff !important;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

.pim-btn:hover {
  background: var(--pim-teal);
}

/* News cards */
.pim-news-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pim-news-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pim-border);
}

.pim-news-card__media {
  display: block;
  overflow: hidden;
  background: #e8ecef;
  aspect-ratio: 3 / 2;
}

.pim-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pim-news-card__cat {
  display: inline-block;
  font-size: 11px;
  color: var(--pim-teal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.pim-news-card__title {
  font-size: 19px;
  margin: 0 0 8px;
}

.pim-news-card__title a {
  color: #111;
}

.pim-news-card__excerpt {
  color: #444;
  font-size: 14px;
  margin-bottom: 8px;
}

/* MagOne-style vertical stack (homepage Latest) */
.pim-news-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.pim-stack-card {
  border-bottom: 1px solid var(--pim-border);
  padding-bottom: 22px;
}

.pim-stack-card__media {
  display: block;
  overflow: hidden;
  background: #e8ecef;
  aspect-ratio: 3 / 2;
  margin-bottom: 12px;
}

.pim-stack-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pim-stack-card__cat {
  display: inline-block;
  font-size: 11px;
  color: var(--pim-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.pim-stack-card__title {
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.pim-stack-card__title a {
  color: #111;
}

.pim-stack-card__excerpt {
  color: #444;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.55;
}
}

/* Grids */
.pim-grid {
  display: grid;
  gap: 16px;
}

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

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

.pim-grid-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e8ecef;
  margin-bottom: 8px;
}

.pim-grid-card__title {
  font-size: 15px;
  margin: 0;
}

.pim-grid-card__title a {
  color: #111;
}

.pim-grid-card--row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.pim-grid-card--row .pim-grid-card__img {
  margin: 0;
  aspect-ratio: 4 / 3;
}

.pim-grid-card__excerpt {
  font-size: 13px;
  color: var(--pim-muted);
  margin: 6px 0 0;
}

.pim-text-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pim-text-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--pim-border);
}

.pim-text-list a {
  color: #222;
  font-size: 15px;
  font-weight: 500;
}

/* Sidebar */
.pim-sidebar .pim-widget {
  margin-bottom: 22px;
  padding-bottom: 12px;
}

.pim-widget__title {
  font-size: 16px;
  border-bottom: 2px solid var(--pim-nav);
  padding-bottom: 6px;
  margin-bottom: 12px;
  color: var(--pim-navy);
}

.pim-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pim-topics a {
  display: inline-block;
  background: var(--pim-bg);
  border: 1px solid var(--pim-border);
  padding: 6px 10px;
  font-size: 12px;
  color: #333;
}

.pim-topics a:hover {
  background: var(--pim-nav);
  color: #fff;
  border-color: var(--pim-nav);
}

.pim-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pim-recent-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--pim-border);
  font-size: 13px;
  line-height: 1.4;
}

.pim-recent-list a {
  color: #222;
}

/* Single / archive */
.pim-single__header {
  margin-bottom: 16px;
}

.pim-single__cat {
  color: var(--pim-teal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pim-single__title {
  font-size: 30px;
  margin: 8px 0 10px;
}

.pim-single__meta {
  color: var(--pim-muted);
  font-size: 13px;
}

.pim-single__media {
  margin: 0 0 16px;
}

.pim-single__img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.pim-single__image-note {
  font-size: 12px;
  color: var(--pim-muted);
  margin-top: -8px;
}

.pim-single__content {
  font-size: 16px;
  line-height: 1.7;
}

.pim-single__content p {
  font-size: 16px;
  margin-bottom: 1.1em;
}

.pim-related {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--pim-border);
}

.pim-archive__header {
  margin-bottom: 18px;
  border-bottom: 2px solid var(--pim-nav);
  padding-bottom: 8px;
}

.pim-archive__title {
  font-size: 26px;
  margin: 0;
}

.pim-pagination {
  margin-top: 24px;
}

.pim-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pim-pagination .page-numbers {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid var(--pim-border);
  color: #333;
  font-size: 13px;
}

.pim-pagination .page-numbers.current,
.pim-pagination .page-numbers:hover {
  background: var(--pim-nav);
  border-color: var(--pim-nav);
  color: #fff;
}

/* Footer */
.pim-footer {
  background: var(--pim-navy);
  color: #c9d2db;
  padding-top: 36px;
  margin-top: 20px;
}

.pim-footer a {
  color: #e8eef3;
}

.pim-footer a:hover {
  color: #7fd4de;
}

.pim-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}

.pim-footer__brand p,
.pim-footer__newsletter p {
  font-size: 13px;
  line-height: 1.55;
  color: #aeb8c2;
}

.pim-footer h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.pim-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pim-footer__menu li {
  margin-bottom: 8px;
}

.pim-footer__menu a {
  font-size: 13px;
}

.pim-subscribe {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pim-subscribe input {
  flex: 1;
  padding: 9px 10px;
  border: 0;
  font-size: 13px;
}

.pim-subscribe button {
  background: var(--pim-teal);
  color: #fff;
  border: 0;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 500;
}

.pim-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  font-size: 12px;
  color: #8b97a3;
}

.pim-404 {
  padding: 40px 15px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .pim-masthead__inner {
    min-height: 124px;
  }

  .pim-brand__word {
    font-size: 58px;
  }

  .pim-brand__tag {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .pim-feature-row,
  .pim-promo-row,
  .pim-promo-masonry,
  .pim-panel-row__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pim-promo-masonry__col--center {
    grid-column: 1 / -1;
  }

  .pim-promo-cover img {
    aspect-ratio: 16 / 10;
  }

  .pim-carousel__caption {
    right: 24px;
    width: min(320px, 48%);
  }

  .pim-home__layout,
  .pim-single-wrap,
  .pim-archive-wrap {
    grid-template-columns: 1fr;
  }

  .pim-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pim-nav-toggle {
    display: block;
  }

  .pim-nav__menu-wrap {
    display: none;
    width: 100%;
  }

  .pim-nav.is-open .pim-nav__menu-wrap {
    display: block;
  }

  .pim-nav__inner {
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .pim-nav__list {
    flex-direction: column;
    width: 100%;
  }

  .pim-nav__list > li > a {
    padding: 12px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .pim-carousel__viewport,
  .pim-carousel__slide,
  .pim-carousel__media {
    min-height: 280px;
    height: auto;
  }

  .pim-carousel__media {
    height: 280px;
  }

  .pim-carousel__caption {
    position: static;
    transform: none;
    width: 100%;
    margin-top: -4px;
  }

  .pim-carousel__btn--prev {
    left: 8px;
  }

  .pim-carousel__btn--next {
    right: 8px;
  }

  .pim-feature-row,
  .pim-promo-row,
  .pim-promo-masonry,
  .pim-panel-row__grid,
  .pim-grid--3,
  .pim-grid--2 {
    grid-template-columns: 1fr;
  }

  .pim-promo-masonry__col--center {
    grid-column: auto;
  }

  .pim-news-card {
    grid-template-columns: 1fr;
  }

  .pim-footer__grid {
    grid-template-columns: 1fr;
  }

  .pim-single__title {
    font-size: 24px;
  }

  .pim-masthead__inner {
    min-height: 108px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .pim-brand__word {
    font-size: 46px;
  }

  .pim-brand__tag {
    margin-top: 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: normal;
    max-width: 240px;
  }

  .pim-masthead__tools {
    right: 4px;
  }

  .pim-subscribe-strip { max-width: 100%; }
  .pim-subscribe-strip__banner img { height: 64px; }
}

/* === zizhan mobile harden fixed === */
html, body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .alignwide, .alignfull {
    max-width: 100% !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}

/* === mobile overflow harden (auto) === */
html, body { overflow-x: hidden; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  .wrap, .container, .site, .site-content, .content-area, main, .sp-page, .sp-container {
    max-width: 100% !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}


/* === zizhan mobile harden v2 20261130092137 === */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, embed, object, svg { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  *, *::before, *::after { min-width: 0; box-sizing: border-box; }
  .wrap, .container, .site, .site-content, .content-area, main,
  .sp-page, .sp-container, .entry-content, .wp-block-group,
  .alignwide, .alignfull {
    max-width: 100% !important;
  }
  [class*="hero"], .sp-hero, .hero-grid, .ps-hero {
    max-width: 100% !important;
    min-height: 0 !important;
  }
  table { display: block; max-width: 100%; overflow-x: auto; }
}
