/* PQB Tạp chí is the saved magazine baseline; the other public themes override presentation only. */
/* Homepage reference revision. Article and topic reading widths remain unchanged. */
.mag-home-v2 {
  --home-radius: var(--mag-image-radius);
}
.mag-home-v2 :is(.home-story-photo, .home-slide-thumbs img, .home-news) {
  border-radius: var(--home-radius);
  overflow: hidden;
}
.mag-home-v2
  :is(.home-slide-controls button, .home-rail-controls button, .home-slide-thumbs button) {
  border-radius: 2px;
}
.magazine:has(.mag-home-v2) {
  background: #fff;
}
.magazine:has(.mag-home-v2) :is(.mag-masthead, .mag-nav-wrap, .mag-footer),
.home-frame {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.magazine:has(.mag-home-v2) .mag-masthead {
  min-height: 104px;
}
.magazine:has(.mag-home-v2) .mag-desktop-nav {
  justify-content: center;
  min-height: 48px;
}
.magazine:has(.mag-home-v2) .mag-desktop-nav a:last-child {
  margin-left: 0;
}
.mag-home-v2 h3 {
  font-weight: 650;
}
.home-carousel {
  position: relative;
}
.home-slide {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #293646;
}
.home-slide > img {
  object-fit: cover;
}
.home-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(0 0 0 / 42%), rgb(0 0 0 / 5%));
  pointer-events: none;
}
.home-banner .home-slide {
  height: clamp(340px, 30vw, 500px);
}
.home-slide-copy {
  position: absolute;
  inset: auto 40px 70px;
  z-index: 1;
  color: #fff;
}
.home-banner .home-slide-copy {
  width: min(1200px, calc(100% - 64px));
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
}
.home-slide-copy h1 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 700;
}
.home-slide-copy h2 {
  font-size: 28px;
  max-width: 650px;
  margin: 0;
  line-height: 1.3;
}
.home-banner .home-slide-copy h2 {
  font-size: 17px;
  font-weight: 500;
  max-width: 540px;
}
.home-slide-copy a:hover {
  color: #fff;
}
.home-slide-copy p {
  font-size: 12px;
}
.home-slide-controls {
  position: absolute;
  bottom: 18px;
  right: max(24px, calc((100% - 1200px) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
}
.home-slide-controls button,
.home-rail-controls button {
  border: 1px solid currentColor;
  background: rgb(0 0 0 / 24%);
  color: #fff;
  min-width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0 10px;
}
.home-slide-controls button:first-child,
.home-slide-controls button:nth-child(3) {
  font-size: 26px;
}
.home-slide-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.home-slide-dots button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.home-slide-dots button::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #fff;
}
.home-slide-dots button[aria-pressed="true"]::after {
  background: #fff;
}
.home-news {
  margin: 38px 0 30px;
  display: flex;
  align-items: center;
  min-height: 46px;
  color: #fff;
  background: #293646;
  font-size: 13px;
}
.home-news strong {
  padding: 15px;
  background: #176b67;
  align-self: stretch;
  white-space: nowrap;
}
.home-news a {
  padding: 12px 16px;
}
.home-news a:hover {
  color: #fff;
}
.home-news a:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-news a:last-child {
  white-space: nowrap;
  font-size: 11px;
}
.home-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid #176b67;
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.home-section-bar h2 {
  font-size: 22px;
  margin: 0;
  color: #176b67;
}
.home-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.home-filters button {
  border: 0;
  background: none;
  padding: 6px 0;
  color: #52686c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.home-filters button[aria-pressed="true"] {
  color: #176b67;
  box-shadow: 0 2px #176b67;
}
.home-feature-grid {
  display: grid;
  grid-template-columns: 1fr 2.08fr;
  gap: 28px;
}
.home-feature-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: start;
}
.home-story-photo {
  display: block;
  overflow: hidden;
  background: #e9f3f0;
  aspect-ratio: 3/2;
}
.home-story-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mag-home-v2 .home-story-copy h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 7px 0 10px;
  letter-spacing: 0;
}
.home-story-copy .mag-kicker {
  font-size: 10px;
  margin: 0;
}
.home-story-copy .mag-date {
  font-size: 10px;
}
.home-story-copy {
  padding-top: 15px;
}
.home-story-dek {
  font-size: 13px;
  color: #52686c;
  line-height: 1.7;
}
.home-feature-grid > .home-story {
  position: relative;
  min-height: 350px;
}
.home-feature-grid > .home-story .home-story-photo {
  height: 100%;
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.home-feature-grid > .home-story .home-story-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 25%, rgb(0 0 0 / 75%));
}
.home-feature-grid > .home-story .home-story-copy {
  position: absolute;
  inset: auto 25px 25px;
  color: #fff;
}
.home-feature-grid > .home-story :is(.mag-kicker, .mag-date) {
  color: #fff;
}
.home-feature-grid > .home-story h3 {
  font-size: 20px;
}
.home-feature-grid > .home-story a:hover {
  color: #fff;
}
.home-feature-grid .home-story-dek {
  display: none;
}
.home-feature-small .home-story {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 14px;
}
.home-feature-small .home-story-copy {
  padding: 0;
}
.home-feature-small .home-story h3 {
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 4px 0 8px;
}
.home-topic-rail {
  position: relative;
  margin: 40px 0;
}
.home-rail-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 10px;
}
.home-topic-tile {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--home-radius);
}
.home-topic-tile img {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}
.home-topic-tile-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
}
.home-topic-tile-label span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 7px;
}
.home-rail-controls {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.home-rail-controls button {
  font-size: 24px;
}
.home-story-slider {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 12px;
  margin: 32px 0 60px;
}
.home-story-slider .home-slide {
  min-height: 460px;
  border-radius: var(--home-radius);
}
.home-story-slider .home-slide-shade {
  background: linear-gradient(transparent 25%, rgb(0 0 0 / 75%));
}
.home-slide-thumbs {
  display: grid;
  gap: 10px;
}
.home-slide-thumbs button {
  display: grid;
  grid-template-columns: 105px 1fr;
  align-items: center;
  text-align: left;
  gap: 12px;
  color: #153e48;
  padding: 6px;
  background: #fff;
  border: 1px solid #dce4df;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.45;
}
.home-slide-thumbs button[aria-pressed="true"] {
  border-color: #176b67;
  background: #e9f3f0;
}
.home-slide-thumbs img {
  width: 105px;
  height: 65px;
  object-fit: cover;
}
.home-topic-section {
  margin: 55px 0;
}
.home-topic-section header {
  text-align: center;
  margin-bottom: 30px;
}
.home-topic-section header h2 {
  font-size: 32px;
  margin: 0 0 12px;
}
.home-topic-section header p {
  font-size: 14px;
  color: #52686c;
}
.home-topic-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.home-topic-stories .home-story:nth-child(n + 3) {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
}
.home-topic-stories .home-story:nth-child(n + 3) .home-story-copy {
  padding: 0;
}
.home-topic-stories .home-story:nth-child(n + 3) .home-story-dek {
  display: none;
}
.home-topic-more {
  display: table;
  margin: 25px auto 0;
  font-size: 13px;
  border-bottom: 1px solid #176b67;
  padding: 6px 0;
}
@media (max-width: 1050px) {
  .home-section-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .home-feature-grid {
    grid-template-columns: 1fr 1.4fr;
  }
  .home-feature-small {
    gap: 18px;
  }
  .home-feature-small .home-story {
    display: block;
  }
  .home-feature-small .home-story-copy {
    padding-top: 8px;
  }
  .home-feature-small .home-story:nth-child(n + 5) {
    display: none;
  }
  .home-story-slider {
    grid-template-columns: 1.8fr 1fr;
  }
  .home-slide-thumbs button {
    grid-template-columns: 80px 1fr;
    font-size: 11px;
  }
  .home-slide-thumbs img {
    width: 80px;
  }
}
@media (max-width: 760px) {
  .magazine:has(.mag-home-v2) :is(.mag-masthead, .mag-nav-wrap, .mag-footer),
  .home-frame {
    width: calc(100% - 32px);
  }
  .magazine:has(.mag-home-v2) .mag-masthead {
    min-height: 78px;
  }
  .home-banner .home-slide {
    height: 350px;
  }
  .home-banner .home-slide-copy {
    width: calc(100% - 48px);
    top: 32px;
    transform: translateX(-50%);
  }
  .home-slide-copy h1 {
    font-size: 30px;
  }
  .home-banner .home-slide-copy h2 {
    font-size: 14px;
  }
  .home-slide-dots {
    left: 24px;
    bottom: 70px;
    transform: none;
  }
  .home-slide-controls {
    right: 16px;
  }
  .home-news {
    margin-top: 24px;
    font-size: 11px;
  }
  .home-news strong {
    padding: 12px 8px;
  }
  .home-news a:last-child {
    display: none;
  }
  .home-filters {
    gap: 8px 16px;
  }
  .home-feature-grid {
    display: block;
  }
  .home-feature-grid > .home-story {
    min-height: 340px;
    margin-bottom: 22px;
  }
  .home-feature-small {
    grid-template-columns: 1fr 1fr;
  }
  .home-topic-tile {
    flex-basis: 80%;
  }
  .home-story-slider {
    display: block;
    margin-bottom: 40px;
  }
  .home-story-slider .home-slide {
    min-height: 350px;
  }
  .home-slide-copy {
    inset: auto 24px 70px;
  }
  .home-slide-copy h2 {
    font-size: 23px;
  }
  .home-slide-thumbs {
    display: flex;
    overflow-x: auto;
    margin-top: 12px;
  }
  .home-slide-thumbs button {
    display: block;
    flex: 0 0 145px;
  }
  .home-slide-thumbs img {
    width: 100%;
    height: 85px;
    margin-bottom: 8px;
  }
  .home-topic-section header h2 {
    font-size: 28px;
  }
  .home-topic-stories {
    grid-template-columns: 1fr;
  }
  .home-topic-stories .home-story:nth-child(n + 3) {
    grid-template-columns: 120px 1fr;
  }
  .home-topic-stories h3 {
    font-size: 19px;
  }
}
.magazine {
  --mag-image-radius: 3px;
  --mag-ink: #153e48;
  --mag-muted: #52686c;
  --mag-sea: #176b67;
  --mag-rule: #dce4df;
  color: var(--mag-ink);
  background: #fffefa;
  min-height: 100vh;
}
.magazine * {
  box-sizing: border-box;
}
.magazine a {
  color: inherit;
  text-decoration: none;
}
.magazine a:hover {
  color: var(--mag-sea);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.magazine :focus-visible {
  outline: 3px solid var(--mag-sea);
  outline-offset: 4px;
}
.magazine h1,
.magazine h2,
.magazine h3 {
  font-family: "Bricolage Grotesque Variable", sans-serif;
  text-wrap: balance;
}
.mag-frame,
.mag-masthead,
.mag-nav-wrap,
.mag-footer {
  width: min(1440px, calc(100% - 96px));
  margin-inline: auto;
}
.mag-header {
  background: #ffffff;
  border-bottom: 1px solid var(--mag-rule);
}
.mag-masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 84px;
  gap: 20px;
}
.mag-masthead-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mag-masthead-note {
  font-size: 12px;
  color: var(--mag-muted);
}
.magazine .theme-switcher {
  min-height: 40px;
  padding: 6px 10px;
  border-color: var(--mag-rule);
  border-radius: var(--mag-image-radius);
  background: transparent;
  color: var(--mag-ink);
}
.magazine .theme-switcher:hover {
  background: color-mix(in srgb, var(--mag-sea) 8%, white);
  border-color: var(--mag-sea);
  transform: none;
}
.magazine .theme-switcher svg {
  color: var(--mag-sea);
}
.magazine .theme-switcher__copy small {
  color: var(--mag-muted);
  letter-spacing: 0;
  text-transform: none;
}
.mag-nav-wrap {
  border-top: 1px solid var(--mag-rule);
}
.mag-desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 52px;
  font-size: 14px;
  font-weight: 600;
}
.mag-desktop-nav a:last-child {
  margin-left: auto;
}
.mag-mobile-menu {
  display: none;
}
.mag-intro {
  padding: 32px 0 28px;
}
.mag-intro h1 {
  font-size: clamp(32px, 3.3vw, 54px);
  line-height: 1.15;
  margin: 10px 0 16px;
  letter-spacing: -0.035em;
}
.mag-intro > p:last-child {
  font-size: 17px;
  color: var(--mag-muted);
  margin: 0;
}
.mag-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--mag-sea);
  margin: 0 0 10px;
}
.mag-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--mag-rule);
}
.mag-section-heading h2 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.025em;
}
.mag-section-heading p {
  margin: 10px 0 0;
  color: var(--mag-muted);
  font-size: 14px;
}
.mag-section-heading > a {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}
.mag-lead-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px 36px;
}
.mag-lead-grid .mag-card--lead {
  grid-row: auto;
  display: block;
}
.mag-latest-side {
  display: grid;
  gap: 28px;
  align-content: start;
}
.mag-card--lead .mag-card-photo {
  aspect-ratio: 16 / 9;
}
.mag-lead-grid .mag-card:not(.mag-card--lead) {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 20px;
  align-items: start;
}
.mag-lead-grid .mag-card:not(.mag-card--lead) .mag-card-copy {
  padding-top: 0;
}
.mag-lead-grid .mag-card:not(.mag-card--lead) .mag-card-copy > p:last-child {
  font-size: 13px;
}
.mag-card {
  min-width: 0;
}
.mag-card-photo {
  border-radius: var(--mag-image-radius);
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e6ede9;
}
.mag-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 160ms ease;
}
.mag-card-photo:hover img {
  opacity: 0.92;
}
.mag-card-copy {
  padding: 17px 0 0;
}
.mag-card :is(h2, h3) {
  font-size: 23px;
  line-height: 1.32;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.mag-card--lead :is(h2, h3) {
  font-size: clamp(26px, 2.4vw, 36px);
}
.mag-card-copy > p:last-child {
  color: var(--mag-muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 12px 0 0;
}
.mag-date {
  display: block;
  font-size: 11px;
  color: var(--mag-muted);
  line-height: 1.6;
}
.mag-topic-section {
  margin-top: 64px;
}
.mag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}
.mag-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mag-grid--four :is(h2, h3) {
  font-size: 22px;
}
.mag-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 12px;
  color: var(--mag-muted);
}
.mag-search-recovery nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0;
}
.mag-search-recovery a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mag-article-layout {
  display: block;
}
.mag-reading-layout {
  margin-top: 32px;
}
.mag-reading-layout > * {
  min-width: 0;
}
.mag-reading-layout .r2-story-body > .r2-story-prose:first-child .r2-story-section:first-child {
  margin-top: 0;
}
.mag-index-layout,
.mag-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}
.mag-index-layout > *,
.mag-article-layout > * {
  min-width: 0;
}
.mag-frame.mag-index-layout {
  padding-top: 40px;
}
.mag-topic-intro {
  margin: 12px 0 36px;
}
.mag-topic-intro h1 {
  font-size: clamp(32px, 3.3vw, 48px);
  margin: 0 0 16px;
}
.mag-topic-intro p {
  color: var(--mag-muted);
  font-size: 16px;
  line-height: 1.8;
}
.mag-sidebar {
  border-left: 1px solid var(--mag-rule);
  padding: 12px 0 0 28px;
  font-size: 14px;
}
.mag-sidebar h2 {
  font-size: 22px;
  margin: 30px 0 18px;
}
.mag-sidebar nav {
  display: grid;
}
.mag-sidebar nav a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mag-rule);
}
.mag-sidebar p {
  color: var(--mag-muted);
  line-height: 1.8;
}
.mag-sidebar-note {
  margin-top: 36px;
}
.mag-sidebar-note__link {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
}
.mag-sidebar-note__photo {
  width: 88px;
  height: 60px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--mag-image-radius);
}
.mag-search label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 600;
}
.mag-search > div {
  display: flex;
  gap: 0;
}
.mag-search input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--mag-rule);
  background: white;
  color: var(--mag-ink);
  border-radius: 0;
  padding: 12px;
  font: inherit;
  font-size: 14px;
}
.mag-search button {
  border: 0;
  background: var(--mag-sea);
  color: white;
  padding: 12px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.mag-empty {
  padding: 40px 0;
  line-height: 1.8;
}
.mag-footer-shell {
  margin-top: 80px;
}
.mag-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--mag-rule);
  margin-top: 0;
  background: transparent;
  color: var(--mag-ink);
}
.mag-footer p,
.mag-footer span {
  font-size: 13px;
  color: var(--mag-muted);
  line-height: 1.8;
}
.mag-footer nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
}
.mag-toc {
  margin: 12px 0 28px;
  border: 1px solid var(--mag-rule);
  padding: 18px;
}
.mag-article-side {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.mag-toc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.mag-toc ol {
  padding-left: 20px;
  margin: 16px 0 0;
}
.mag-toc li {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 10px;
}
.mag-article-layout .r2-story {
  border-radius: 0;
  overflow: visible;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}
.mag-article-layout .r2-story-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: 0;
  background: #fffaf0;
  border-radius: var(--mag-image-radius);
}
.mag-article-layout .r2-story-hero__copy {
  order: 0;
  min-width: 0;
  padding: clamp(24px, 2.5vw, 40px);
  background: linear-gradient(145deg, #fff7de 0%, #fffaf0 55%, #f6e4cf 100%);
  border-radius: var(--mag-image-radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mag-article-layout .r2-story-hero__copy::after,
.mag-article-layout .r2-story-hero__media::after {
  display: none;
}
.mag-article-layout .r2-story-hero h1 {
  font-size: clamp(30px, 2.6vw, 42px);
  max-width: 28ch;
  margin: 12px 0 20px;
  color: var(--mag-ink);
}
.mag-article-layout .eyebrow {
  text-transform: none;
  letter-spacing: normal;
  color: var(--mag-sea);
  font-size: 12px;
}
.mag-article-layout .r2-story-hero__dek {
  font-size: 16px;
  line-height: 1.8;
  max-width: 72ch;
  margin: 0 0 22px;
  color: var(--mag-muted);
}
.mag-article-layout .r2-story-hero__meta {
  margin: 0;
  padding: 16px 0 0;
  border-color: var(--mag-rule);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--mag-muted);
  text-transform: none;
}
.mag-article-layout .r2-story-hero__media {
  order: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  background: none;
  overflow: visible;
  border-radius: 0;
}
.mag-article-layout .r2-story-hero__media img {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: none;
  object-fit: cover;
  transform: none;
  border-radius: var(--mag-image-radius);
}
.mag-article-layout .r2-story-hero__media figcaption {
  position: static;
  color: var(--mag-muted);
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.7;
  background: none;
  text-shadow: none;
}
@media (max-width: 1100px) {
  .mag-article-layout .r2-story-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .mag-article-layout .r2-story-hero__media img {
    min-height: 0;
    height: auto;
    max-height: 650px;
    object-fit: contain;
  }
}
.mag-article-layout .r2-story-body {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
.mag-article-layout .r2-story-section {
  display: block;
  padding: 0;
  margin: 38px auto 0;
  max-width: 800px;
  scroll-margin-top: 24px;
}
.mag-article-layout .r2-story-section__index {
  display: none;
}
.mag-article-layout .r2-story-section h2 {
  font-size: clamp(25px, 2.2vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--mag-ink);
  margin: 0 0 18px;
}
.mag-article-layout .r2-story-section p {
  font-size: 17px;
  line-height: 1.95;
  color: var(--mag-ink);
  margin: 0 0 22px;
}
.mag-article-layout .r2-inline-media {
  width: 100%;
  max-width: 800px;
  margin: 32px auto;
  padding: 0;
  border-radius: 0;
}
.mag-article-layout .r2-inline-media img {
  border-radius: var(--mag-image-radius);
  display: block;
  width: 100%;
  height: auto;
}
.mag-article-layout .r2-inline-media figcaption {
  width: 100%;
  color: var(--mag-muted);
  font-size: 12px;
  line-height: 1.7;
  padding: 12px 0 0;
}
.mag-article-layout .r2-related {
  margin-top: 48px;
  border-top: 1px solid var(--mag-rule);
  padding-top: 28px;
}
.mag-article-layout .r2-related h2 {
  color: var(--mag-ink);
  font-size: 27px;
}
.mag-article-layout .r2-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-inline: 0;
  padding: 0;
  overflow: visible;
  scroll-snap-type: none;
}
.mag-article-layout .r2-related-card {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  transform: none;
}
.mag-article-layout .r2-related-card__body {
  padding: 0;
}
.mag-article-layout .r2-related-card__media + .r2-related-card__body {
  padding-top: 16px;
}
.mag-article-layout :is(.r2-related-card__media, .r2-next-step__media) {
  border-radius: var(--mag-image-radius);
  overflow: hidden;
}
.mag-article-layout :is(.r2-related-card__media, .r2-next-step__media) img {
  border-radius: var(--mag-image-radius);
}
.mag-article-layout .r2-related-card__index {
  display: none;
}
.mag-article-layout .r2-related-card h3 {
  font-size: 23px;
}
.mag-article-layout .r2-related-card__body > p:not(.eyebrow) {
  color: var(--mag-muted);
  font-size: 14px;
}
.mag-article-layout .r2-next-step {
  margin: 32px 0;
  background: #f0f5f1;
  color: var(--mag-ink);
  padding: 26px;
  border: 0;
  border-radius: 0;
  min-height: 0;
}
.mag-article-layout .r2-next-step::before,
.mag-article-layout .r2-next-step::after {
  display: none;
}
.mag-article-layout .r2-next-step h2 {
  font-size: 27px;
  color: var(--mag-ink);
}
.mag-article-layout .r2-next-step__content {
  padding: 0;
}
.mag-article-layout .r2-next-step--media {
  display: grid;
  grid-template-columns: minmax(160px, 32%) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.mag-article-layout .r2-next-step__photo {
  position: relative;
  inset: auto;
  aspect-ratio: 3 / 2;
  align-self: start;
  overflow: hidden;
  border-radius: var(--mag-image-radius);
}
.mag-article-layout .r2-next-step p {
  color: var(--mag-muted);
}
.mag-article-layout .r2-next-step a {
  background: transparent;
  padding: 0;
  color: var(--mag-sea);
  border: 0;
}
.mag-article-layout .r2-next-step .r2-next-step__photo {
  display: block;
  margin-top: 0;
}
.mag-article-layout .r2-next-step .r2-next-step__title {
  display: inline;
  margin-top: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.mag-article-layout .r2-next-step .r2-next-step__title:hover {
  text-decoration: underline;
}
.mag-article-layout .r2-story-signature {
  color: var(--mag-ink);
  font-size: 14px;
  margin: 32px 0;
}
.mag-article-layout .r2-editorial-notes {
  margin: 32px 0;
  border-color: var(--mag-rule);
}
.mag-article-layout .editorial-notes__body {
  overflow-wrap: anywhere;
  color: var(--mag-muted);
  font-size: 13px;
}
@media (max-width: 1100px) {
  .mag-frame,
  .mag-masthead,
  .mag-nav-wrap,
  .mag-footer {
    width: calc(100% - 48px);
  }
  .mag-index-layout,
  .mag-reading-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
  }
  .mag-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mag-lead-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
  }
  .mag-lead-grid .mag-card:not(.mag-card--lead) {
    display: block;
  }
  .mag-lead-grid .mag-card:not(.mag-card--lead) .mag-card-copy {
    padding-top: 14px;
  }
  .mag-lead-grid .mag-card:not(.mag-card--lead) .mag-card-copy > p:last-child {
    display: none;
  }
  .mag-lead-grid .mag-card--lead {
    grid-row: auto;
  }
  .mag-lead-grid .mag-card:last-child {
    grid-column: auto;
  }
  .mag-desktop-nav {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .mag-frame,
  .mag-masthead,
  .mag-nav-wrap,
  .mag-footer {
    width: calc(100% - 32px);
  }
  .mag-masthead {
    min-height: 78px;
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .mag-masthead-actions {
    margin-left: auto;
  }
  .mag-masthead-note {
    max-width: 100px;
    text-align: right;
    font-size: 10px;
  }
  .mag-desktop-nav {
    display: none;
  }
  .mag-mobile-menu {
    display: block;
  }
  .mag-mobile-menu summary {
    padding: 16px 0;
    cursor: pointer;
    font-size: 14px;
  }
  .mag-mobile-menu nav {
    display: grid;
    padding-bottom: 16px;
  }
  .mag-mobile-menu nav a {
    padding: 13px 0;
    border-top: 1px solid var(--mag-rule);
    font-size: 14px;
  }
  .mag-intro {
    padding: 32px 0;
  }
  .mag-intro > p:last-child {
    font-size: 15px;
    line-height: 1.8;
  }
  .mag-lead-grid,
  .mag-grid,
  .mag-grid--four,
  .mag-index-layout,
  .mag-reading-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .mag-lead-grid .mag-card:last-child {
    grid-column: auto;
  }
  .mag-lead-grid .mag-card:not(.mag-card--lead) {
    display: grid;
    grid-template-columns: 38% 1fr;
    gap: 16px;
  }
  .mag-lead-grid .mag-card:not(.mag-card--lead) :is(h2, h3) {
    font-size: 19px;
  }
  .mag-lead-grid .mag-card:not(.mag-card--lead) .mag-card-copy {
    padding: 0;
  }
  .mag-section-heading {
    gap: 16px;
  }
  .mag-section-heading h2 {
    font-size: 25px;
  }
  .mag-section-heading > a {
    font-size: 11px;
  }
  .mag-section-heading p {
    font-size: 13px;
  }
  .mag-topic-section {
    margin-top: 44px;
  }
  .mag-sidebar {
    border-left: 0;
    border-top: 1px solid var(--mag-rule);
    padding: 16px 0 0;
  }
  .mag-article-side {
    grid-row: 1;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .mag-article-side .mag-sidebar {
    display: none;
  }
  .mag-toc {
    margin: 0;
    padding: 14px 16px;
  }
  .mag-article-layout .r2-story-hero h1 {
    font-size: 34px;
  }
  .mag-article-layout .r2-story-hero__dek {
    font-size: 16px;
  }
  .mag-article-layout .r2-story-section p {
    font-size: 16px;
    line-height: 1.9;
  }
  .mag-article-layout .r2-related__grid {
    grid-template-columns: 1fr;
  }
  .mag-article-layout .r2-next-step--media {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .mag-footer-shell {
    margin-top: 48px;
  }
  .mag-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .mag-footer > div {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .mag-masthead-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  .mag-masthead-note {
    max-width: none;
  }
  .magazine .theme-switcher {
    width: auto;
    height: auto;
    min-height: 40px;
    padding: 5px 9px;
  }
  .magazine .theme-switcher__copy {
    position: static;
    clip: auto;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
  }
}

/* PQB Hoàng Hôn keeps the shared magazine structure and applies the original warm identity. */
:root[data-pqb-theme="pqb-hoang-hon"] .magazine {
  --mag-ink: #07374a;
  --mag-muted: #46555b;
  --mag-sea: #a9442a;
  --mag-rule: #e8d7ca;
  --mag-footer-background: linear-gradient(120deg, #07374a, #07566a 72%, #5b537e);
  background: #fffaf0;
}
:root[data-pqb-theme="pqb-hoang-hon"] .magazine:has(.mag-home-v2) {
  background: #fffaf0;
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-header {
  background: #fff7ed;
}
:root[data-pqb-theme="pqb-hoang-hon"] .home-news {
  background: #07374a;
}
:root[data-pqb-theme="pqb-hoang-hon"] .home-news strong {
  background: #a9442a;
}
:root[data-pqb-theme="pqb-hoang-hon"] .home-section-bar {
  border-color: #d65a32;
}
:root[data-pqb-theme="pqb-hoang-hon"] .home-section-bar h2,
:root[data-pqb-theme="pqb-hoang-hon"] .home-filters button[aria-pressed="true"] {
  color: #a9442a;
}
:root[data-pqb-theme="pqb-hoang-hon"] .home-filters button[aria-pressed="true"] {
  box-shadow: 0 2px #a9442a;
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-topic-intro {
  padding: 24px 28px;
  border-top: 3px solid #d65a32;
  background: #ffefe2;
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-article-layout .r2-story-hero__copy {
  background: linear-gradient(145deg, #ffe6c9, #fffaf0 55%, #ffd5c7);
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-article-layout .r2-next-step {
  background: #ffe8dd;
}

/* PQB Giao Hòa: magazine restraint, ocean structure and measured sunset accents. */
:root[data-pqb-theme="pqb-giao-hoa"] .mag-desktop-nav {
  flex-wrap: wrap;
  justify-content: flex-start;
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-desktop-nav a:last-child {
  margin-left: 0;
}
:root[data-pqb-theme="pqb-giao-hoa"] .magazine {
  --mag-footer-background: #063c4a;
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-header {
  background: #fcfaf6;
}
:root[data-pqb-theme="pqb-giao-hoa"] .home-news {
  background: #07374a;
}
:root[data-pqb-theme="pqb-giao-hoa"] .home-news strong {
  background: #a9442a;
}
:root[data-pqb-theme="pqb-giao-hoa"] .home-section-bar {
  border-color: #d65a32;
}
:root[data-pqb-theme="pqb-giao-hoa"] .home-filters button[aria-pressed="true"] {
  color: var(--mag-topic-accent, #a9442a);
  box-shadow: 0 2px var(--mag-topic-accent, #a9442a);
}
:root[data-pqb-theme="pqb-giao-hoa"] .home-topic-section {
  padding-top: 24px;
  border-top: 3px solid var(--mag-topic-accent, #176b67);
}
:root[data-pqb-theme="pqb-giao-hoa"] .home-topic-section h2 {
  color: var(--mag-topic-accent, #176b67);
}
:root[data-pqb-theme="pqb-giao-hoa"] [data-topic="cam-nang"] {
  --mag-topic-accent: #176b67;
}
:root[data-pqb-theme="pqb-giao-hoa"] [data-topic="kham-pha"] {
  --mag-topic-accent: #185c9d;
}
:root[data-pqb-theme="pqb-giao-hoa"] [data-topic="am-thuc"] {
  --mag-topic-accent: #a9442a;
}
:root[data-pqb-theme="pqb-giao-hoa"] [data-topic="luu-tru"] {
  --mag-topic-accent: #805c15;
}
:root[data-pqb-theme="pqb-giao-hoa"] [data-topic="lich-trinh"] {
  --mag-topic-accent: #715080;
}
:root[data-pqb-theme="pqb-giao-hoa"] [data-topic="den-phu-quoc"] {
  --mag-topic-accent: #405a80;
}
:root[data-pqb-theme="pqb-giao-hoa"]
  :is(.mag-desktop-nav, .mag-mobile-menu nav, .mag-sidebar nav)
  a[data-topic],
:root[data-pqb-theme="pqb-giao-hoa"] .mag-card .mag-kicker {
  color: var(--mag-topic-accent);
}
:root[data-pqb-theme="pqb-giao-hoa"] .home-topic-tile-label {
  border-top: 3px solid var(--mag-topic-accent);
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-topic-intro {
  padding: 24px 28px;
  border-top: 3px solid var(--mag-topic-accent);
  background: color-mix(in srgb, var(--mag-topic-accent) 8%, #fffefa);
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-topic-intro h1 {
  color: var(--mag-topic-accent);
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-article-layout .r2-story-hero__copy {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--mag-topic-accent, #176b67) 12%, #fffefa),
    #fffaf0
  );
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-article-layout .eyebrow {
  color: var(--mag-topic-accent, #176b67);
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-article-layout .r2-next-step {
  background: #f7f1e8;
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-article-layout .r2-story-section p {
  text-align: justify;
  text-align-last: start;
}

:root[data-pqb-theme="pqb-hoang-hon"] .mag-footer,
:root[data-pqb-theme="pqb-giao-hoa"] .mag-footer {
  color: #fffaf0;
  border-top: 3px solid #f48c5f;
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-footer-shell,
:root[data-pqb-theme="pqb-giao-hoa"] .mag-footer-shell {
  background: var(--mag-footer-background);
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-footer :is(p, span),
:root[data-pqb-theme="pqb-giao-hoa"] .mag-footer :is(p, span) {
  color: #d7e7e4;
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-footer > div,
:root[data-pqb-theme="pqb-giao-hoa"] .mag-footer > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-footer > div p,
:root[data-pqb-theme="pqb-giao-hoa"] .mag-footer > div p {
  max-width: 340px;
  margin: 0;
  text-align: left;
}
:root[data-pqb-theme="pqb-hoang-hon"] .mag-footer a:hover,
:root[data-pqb-theme="pqb-giao-hoa"] .mag-footer a:hover {
  color: #ffd4ad;
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-footer {
  align-items: start;
}
:root[data-pqb-theme="pqb-giao-hoa"] .mag-footer > div p {
  width: 100%;
  text-align: justify;
  text-align-last: start;
}
@media (max-width: 760px) {
  :root[data-pqb-theme="pqb-giao-hoa"] .mag-footer > div p {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .magazine * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
