/* ==========================================================
   PetSaju v6 — Home & shared refinements (ChatGPT 3단계, 2026-09-28)

   로드 순서:
   pet-v6.css → pet-v6-sub.css → pet-v6-home.css

   #loading / #result의 display를 지정하지 않습니다.
   기존 오버레이 .on 및 인증 표시 규칙을 유지합니다.
   ========================================================== */


/* 01. 기본 폭과 이전 레이아웃 정리 */

body.pv6 {
  min-width: 0;
  min-height: 100dvh;
}

body.pv6 .wrap {
  width: 100%;
  max-width: 1080px;
  min-width: 0;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* 이전 pet-playful.css의 PC 2열 페이지 배치를 해제 */
body.pv6 .wrap:has(> #form) {
  display: block;
}

/* 이전 하위 페이지 640px 제한을 덮어쓰기 */
body.pv6 .wrap:not(:has(> #form)) > :not(.topbar) {
  max-width: 760px;
}

body.pv6 .wrap:has(> #form) > #form,
body.pv6 .wrap:has(> #form) > #loading,
body.pv6 .wrap:has(> #form) > #result {
  width: 100%;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

body.pv6 .wrap:has(> #form) > #form {
  margin-top: 0;
}


/* 02. 상단바 — 모바일 2행 */

body.pv6 .wrap > .topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "menu brand brand account"
    "community community price language";
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 0;
  overflow: visible;
  border-bottom: 1px solid rgb(27 42 91 / 10%);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.pv6 .wrap > .topbar > * {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

body.pv6 .topbar #pnHbBtn {
  grid-area: menu;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 20px;
}

body.pv6 .topbar #tbPetHome {
  grid-area: brand;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  color: var(--pv6-navy);
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 800;
}

body.pv6 .topbar .pv6-brand-text {
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body.pv6 .topbar > a.tb-btn:not(#tbPetHome) {
  grid-area: community;
}

body.pv6 .topbar #tbPrice {
  grid-area: price;
}

body.pv6 .topbar #tbLangDd {
  grid-area: language;
}

/* 표시 여부는 기존 인증 JS가 결정 */
body.pv6 .topbar #tbLogin,
body.pv6 .topbar #tbDd {
  grid-area: account;
}

/*
  부자사주 링크는 드로어와 본문 연결 카드에서 제공.
  기존 inline display:inline-flex를 덮는 용도로만 important 사용.
*/
body.pv6 .topbar #tbHome {
  display: none !important;
}

body.pv6 .topbar button,
body.pv6 .topbar .tb-btn,
body.pv6 .topbar .tb-dd-trg {
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #CEDAEC;
  border-radius: 12px;
  color: var(--pv6-navy);
  background: #FFFFFF;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.pv6 .topbar > .tb-btn,
body.pv6 .topbar .tb-dd-trg {
  width: 100%;
}

body.pv6 .topbar .tb-dd-trg {
  justify-content: center;
  gap: 4px;
}

body.pv6 .topbar .tb-ic {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

/* 기존 모바일 라벨 숨김 규칙을 해제 */
body.pv6 .topbar .tb-tx {
  display: inline;
  min-width: 0;
  margin-left: 0;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.pv6 .topbar #tbLogin {
  border-color: #E8AC18;
  color: var(--pv6-navy);
  background: linear-gradient(180deg, #FFD84D, #F9B91B);
  font-weight: 800;
}

body.pv6 .topbar .tb-mail {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 메뉴의 display/.open 전환은 기존 구현 유지 */
body.pv6 .topbar .tb-dd-menu {
  right: 0;
  left: auto;
  width: 220px;
  min-width: 0;
  max-width: calc(100vw - 32px);
  padding: 6px;
  border: 1px solid var(--pv6-line);
  border-radius: 14px;
  color: var(--pv6-navy);
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgb(27 42 91 / 15%);
}

body.pv6 .topbar .tb-dd-menu .tb-dd-item {
  min-height: 44px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}


/* 03. 히어로·가격·사진 선택 안내 */

body.pv6 .wrap > .pv6-hero {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px 0;
}

body.pv6 .pv6-hero .pv6-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  grid-template-areas:
    "eyebrow eyebrow"
    "title art"
    "lead lead"
    "price price"
    "steps steps"
    "help help";
  gap: 8px 12px;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

body.pv6 .pv6-hero .pv5-h1 {
  min-width: 0;
  margin: 0;
  font-size: clamp(24px, 6.1vw, 28px);
  line-height: 1.32;
}

body.pv6 .pv6-hero .pv5-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

body.pv6 .pv6-hero .pv6-art {
  width: 100%;
  height: auto;
  min-width: 0;
  aspect-ratio: 1;
}

body.pv6 .pv6-hero-price {
  grid-area: price;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 8px;
  min-width: 0;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #E9D8AF;
  border-radius: 12px;
  color: var(--pv6-navy);
  background: #FFF9ED;
}

body.pv6 .pv6-hero-price p {
  flex: 1 1 190px;
  min-width: 0;
  margin: 0;
  padding: 8px 0;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-hero-price a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 6px 0;
  color: #344E83;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 단어를 자르지 않고 영역 안에서 가로 스크롤 */
body.pv6 .pv6-hero .pv5-steps {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #C0CEE3 transparent;
}

body.pv6 .pv6-hero .pv5-steps li {
  flex: 1 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 40px;
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

body.pv6 .pv6-hero .pv5-steps li > span {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

body.pv6 .pv6-upload-help {
  grid-area: help;
  margin: 0;
  color: var(--pv6-muted);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* disabled 속성과 기존 활성화 로직 유지 */
body.pv6 #form #go:disabled {
  border: 1px dashed #C9B78C;
  color: #655B43;
  background: #FFF7E4;
  box-shadow: none;
  opacity: 1;
  transform: none;
  cursor: not-allowed;
}


/* 04. 메인 추가 콘텐츠 공통 */

body.pv6 .pv6-home-content {
  width: 100%;
  min-width: 0;
  margin: 40px 0 0;
}

body.pv6 .pv6-section {
  min-width: 0;
  margin: 0 0 40px;
  scroll-margin-top: 20px;
}

body.pv6 .pv6-section-head {
  min-width: 0;
  margin: 0 0 18px;
}

body.pv6 .pv6-kicker {
  margin: 0 0 6px;
  color: #6750A6;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0;
}

body.pv6 .pv6-home-content h2,
body.pv6 .pv6-account-intro h2,
body.pv6 .pv6-community-start h2 {
  margin: 0 0 10px;
  color: var(--pv6-navy);
  font-size: clamp(22px, 5.6vw, 26px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-home-content h3 {
  margin: 0 0 10px;
  color: var(--pv6-navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-section-head > p:not(.pv6-kicker),
body.pv6 .pv6-info-card > p,
body.pv6 .pv6-price-card > p:not(.pv6-price),
body.pv6 .pv6-local > p,
body.pv6 .pv6-community-link > div > p:not(.pv6-kicker),
body.pv6 .pv6-account-intro > p,
body.pv6 .pv6-community-start > p:not(.pv6-kicker) {
  margin: 0;
  color: var(--pv6-muted);
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-two-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

body.pv6 .pv6-info-card,
body.pv6 .pv6-price-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--pv6-line);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: var(--pv6-shadow);
}

body.pv6 .pv6-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
  border-radius: 14px;
  background: #EDF4FF;
  font-size: 23px;
  line-height: 1;
}

body.pv6 .pv6-info-card--peach {
  border-color: #EDD9CB;
  background: #FFF5EF;
}

body.pv6 .pv6-info-card--peach .pv6-card-icon {
  background: #FFFFFF;
}

body.pv6 .pv6-list {
  margin: 16px 0 0;
  padding-inline-start: 20px;
  color: #435371;
  font-size: 13px;
  line-height: 1.85;
}

body.pv6 .pv6-list li {
  margin: 6px 0;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-list li::marker {
  color: var(--pv6-purple);
}

body.pv6 .pv6-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 9px;
  border: 1px solid #DCCDF5;
  border-radius: 8px;
  color: #63459D;
  background: #F4EEFF;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-badge--neutral {
  border-color: #D6DFEA;
  color: #56647E;
  background: #F1F5FA;
}

body.pv6 .pv6-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  max-width: 100%;
  margin: 18px 0 4px;
  padding: 13px 16px;
  border: 1px solid #E8AC18;
  border-radius: 15px;
  color: var(--pv6-navy);
  background: linear-gradient(180deg, #FFD84D, #F9B91B);
  box-shadow: 0 4px 0 #E09A00;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body.pv6 .pv6-action:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #E09A00;
}

body.pv6 .pv6-action--blue {
  border-color: #2F6BFF;
  color: #FFFFFF;
  background: #2F6BFF;
  box-shadow: 0 3px 0 #204FC7;
}

body.pv6 .pv6-action--blue:active {
  box-shadow: 0 1px 0 #204FC7;
}


/* 05. 예시 결과 */

body.pv6 .pv6-example {
  min-width: 0;
  padding: 20px;
  border: 1px solid #E3D9ED;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: var(--pv6-shadow);
}

body.pv6 .pv6-example-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin-bottom: 22px;
}

body.pv6 .pv6-example-profile > div:last-child {
  min-width: 0;
}

body.pv6 .pv6-example-photo {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #E6D8BE;
  border-radius: 20px;
  background: #FFF5E2;
}

body.pv6 .pv6-example-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  color: var(--pv6-muted);
  font-size: 10px;
}

body.pv6 .pv6-example-name {
  margin: 7px 0 2px;
  color: var(--pv6-navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-example-meta {
  margin: 0;
  color: var(--pv6-muted);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-example-reading {
  min-width: 0;
}

body.pv6 .pv6-example-reading h3 {
  margin: 22px 0 10px;
  padding-left: 11px;
  border-left: 3px solid #B4A0EF;
  font-size: 17px;
}

body.pv6 .pv6-example-reading h3:first-child {
  margin-top: 0;
}

body.pv6 .pv6-example-reading p {
  margin: 0;
  color: #43516B;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-example-notice {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid #E8EDF4;
  color: var(--pv6-muted);
  font-size: 11px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}


/* 06. 요금·보호자 서비스 */

body.pv6 .pv6-price-card {
  border-color: #E9DABC;
  background: #FFFBF2;
}

body.pv6 .pv6-price-card .pv6-price {
  margin: 10px 0;
  color: var(--pv6-navy);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-payment-note {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #E0E7F0;
  border-radius: 15px;
  background: #F5F8FC;
}

body.pv6 .pv6-payment-note p {
  margin: 0;
  color: #52617B;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-payment-note p + p {
  margin-top: 6px;
}

body.pv6 .pv6-owner {
  padding: 20px;
  border: 1px solid #E0D5F3;
  border-radius: 24px;
  background: #F7F2FF;
}

body.pv6 .pv6-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

body.pv6 .pv6-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 10px 6px;
  border: 1px solid #D5C8EA;
  border-radius: 12px;
  color: var(--pv6-navy);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}


/* 07. FAQ */

body.pv6 .pv6-faq-list {
  border: 1px solid var(--pv6-line);
  border-radius: 20px;
  background: #FFFFFF;
}

body.pv6 .pv6-faq-list details {
  margin: 0;
  border-bottom: 1px solid #E8EDF4;
}

body.pv6 .pv6-faq-list details:last-child {
  border-bottom: 0;
}

body.pv6 .pv6-faq-list summary {
  min-height: 56px;
  padding: 16px 18px;
  color: var(--pv6-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
  cursor: pointer;
}

body.pv6 .pv6-faq-list summary::marker {
  color: var(--pv6-purple);
}

body.pv6 .pv6-faq-answer {
  padding: 0 18px 18px;
}

body.pv6 .pv6-faq-answer p {
  margin: 0;
  color: var(--pv6-muted);
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-faq-answer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin-top: 6px;
  padding: 7px 0;
  color: #3159AA;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}


/* 08. 지역정보·커뮤니티 연결·면책 */

body.pv6 .pv6-local {
  padding: 20px;
  border: 1px dashed #BAC9DC;
  border-radius: 22px;
  background: #F5F9FD;
}

body.pv6 .pv6-local .pv6-badge {
  margin-bottom: 12px;
}

body.pv6 .pv6-local .pv6-small,
body.pv6 .pv6-community-start .pv6-small {
  margin-top: 12px;
  font-size: 12px;
}

body.pv6 .pv6-community-link {
  padding: 20px;
  border: 1px solid #EAD8C8;
  border-radius: 24px;
  background: #FFF3E9;
}

body.pv6 .pv6-disclaimer {
  margin: 0;
  padding: 4px 0 8px;
  color: var(--pv6-muted);
  font-size: 12px;
  line-height: 1.85;
  text-align: center;
  overflow-wrap: anywhere;
}


/* 09. 비로그인·로딩·빈 상태 */

body.pv6 .pv6-account-intro {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 0 auto 18px;
  padding: 22px 20px;
  border: 1px solid #E8D8BC;
  border-radius: 22px;
  background: linear-gradient(135deg, #FFFFFF, #FFF9ED);
}

body.pv6 .pv6-account-intro h2 {
  font-size: 21px;
}

body.pv6 .pv6-account-intro .pv6-card-icon {
  margin-bottom: 12px;
}

/* 새로 추가한 로그인 CTA의 hidden만 처리 */
body.pv6 [data-pv6-login][hidden] {
  display: none;
}

body.pv6 #content > .empty,
body.pv6 #content > .msg {
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  padding: 26px 20px;
  border: 1px solid var(--pv6-line);
  border-radius: 20px;
  color: var(--pv6-muted);
  background: #FFFFFF;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.85;
  text-align: center;
  overflow-wrap: anywhere;
}

/* 기존 잔액 페이지 로그인 이벤트 유지 */
body.pv6 #content #mbLogin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  max-width: 320px;
  margin: 16px auto 4px;
  padding: 12px 16px;
  border: 1px solid #E8AC18;
  border-radius: 14px;
  color: var(--pv6-navy);
  background: linear-gradient(180deg, #FFD84D, #F9B91B);
  box-shadow: 0 3px 0 #E09A00;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}


/* 10. 커뮤니티 초기 콘텐츠 */

body.pv6 .pv6-community-start {
  width: 100%;
  max-width: 760px;
  min-width: 0;
  margin: 0 auto 18px;
  padding: 20px;
  border: 1px solid #E2D9F3;
  border-radius: 22px;
  background: #F8F5FF;
}

body.pv6 .pv6-community-start h2 {
  font-size: 22px;
}

body.pv6 .pv6-topic-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

body.pv6 .pv6-topic-list li {
  min-width: 0;
  padding: 12px;
  border: 1px solid #E4DEEE;
  border-radius: 13px;
  background: #FFFFFF;
}

body.pv6 .pv6-topic-list strong {
  display: block;
  color: var(--pv6-navy);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.pv6 .pv6-topic-list span {
  display: block;
  margin-top: 4px;
  color: var(--pv6-muted);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.pv6 #list > .empty {
  min-width: 0;
  margin: 0 0 20px;
  padding: 28px 20px;
  border: 1px dashed #B7C7DC;
  border-radius: 20px;
  color: var(--pv6-muted);
  background: #F7FAFE;
  font-size: 14px;
  line-height: 1.85;
  text-align: center;
  overflow-wrap: anywhere;
}


/* 11. 스크립트 삽입 푸터 */

body.pv6 footer.pn-footer {
  width: 100%;
  max-width: none;
  margin: 40px 0 0;
  padding:
    28px
    max(16px, env(safe-area-inset-right, 0px))
    max(24px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  border: 0;
  border-top: 1px solid #DCE6F1;
  border-radius: 0;
  color: #52617B;
  background: #EDF5FC;
  text-align: left;
}

body.pv6 footer.pn-footer .fw {
  width: 100%;
  max-width: 1016px;
  min-width: 0;
  margin: 0 auto;
}

body.pv6 footer.pn-footer .fname {
  color: var(--pv6-navy);
  font-size: 19px;
  font-weight: 800;
}

body.pv6 footer.pn-footer .fdesc,
body.pv6 footer.pn-footer .finfo,
body.pv6 footer.pn-footer .fcopy {
  color: #52617B;
  overflow-wrap: anywhere;
}

body.pv6 footer.pn-footer .flinks {
  gap: 4px 14px;
  border-top-color: #D6E2EF;
}

body.pv6 footer.pn-footer .flinks a {
  min-height: 44px;
  color: #344F83;
}


/* 12. 접근성 보조 */

body.pv6 .pv6-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* 13. 모바일 언어별 제목 줄바꿈 */

@media (max-width: 959px) {
  body.pv6:lang(en) .pv6-hero .pv6-intro,
  body.pv6:lang(es) .pv6-hero .pv6-intro {
    grid-template-columns: minmax(0, 1fr) 64px;
    grid-template-areas:
      "eyebrow art"
      "title title"
      "lead lead"
      "price price"
      "steps steps"
      "help help";
  }

  body.pv6:lang(en) .pv6-hero .pv6-art,
  body.pv6:lang(es) .pv6-hero .pv6-art {
    width: 64px;
    justify-self: end;
  }

  body.pv6:lang(en) .pv6-hero .pv5-h1,
  body.pv6:lang(es) .pv6-hero .pv5-h1 {
    font-size: clamp(24px, 6vw, 28px);
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
  }

  body.pv6:lang(en) .pv6-hero .pv5-h1 br,
  body.pv6:lang(es) .pv6-hero .pv5-h1 br {
    display: none;
  }
}


/* 14. 태블릿·PC */

@media (min-width: 390px) and (max-width: 959px) {
  body.pv6 .pv6-hero .pv6-intro {
    grid-template-columns: minmax(0, 1fr) 100px;
  }

  body.pv6:lang(en) .pv6-hero .pv6-intro,
  body.pv6:lang(es) .pv6-hero .pv6-intro {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
}

@media (min-width: 768px) {
  body.pv6 .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }

  body.pv6 .pv6-home-content {
    margin-top: 56px;
  }

  body.pv6 .pv6-section {
    margin-bottom: 56px;
  }

  body.pv6 .pv6-two-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  body.pv6 .pv6-example {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0 32px;
    padding: 28px;
  }

  body.pv6 .pv6-example-profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin: 0;
  }

  body.pv6 .pv6-example-photo {
    flex-basis: auto;
    width: 180px;
    height: 180px;
    border-radius: 28px;
  }

  body.pv6 .pv6-example-notice {
    grid-column: 1 / -1;
  }

  body.pv6 .pv6-topic-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  body.pv6 .pv6-community-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    gap: 24px;
  }

  body.pv6 .pv6-community-link .pv6-action {
    margin: 0 0 4px;
  }

  body.pv6 footer.pn-footer {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 960px) {
  body.pv6 .wrap > .topbar {
    grid-template-columns:
      44px
      minmax(0, 1fr)
      repeat(3, minmax(0, 120px))
      minmax(0, 180px);
    grid-template-areas:
      "menu brand community price language account";
    gap: 8px;
    min-height: 68px;
    padding: 12px 0;
  }

  body.pv6 .topbar .tb-tx {
    font-size: 12px;
  }

  body.pv6 .topbar #tbPetHome {
    font-size: 20px;
  }

  body.pv6 .wrap > .pv6-hero {
    padding: 36px 0 30px;
  }

  body.pv6 .pv6-hero .pv6-intro {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas:
      "eyebrow art"
      "title art"
      "lead art"
      "price art"
      "steps art"
      "help art";
    align-items: start;
    gap: 12px 48px;
    max-width: none;
    margin: 0;
  }

  body.pv6 .pv6-hero .pv5-h1 {
    align-self: start;
    font-size: 42px;
    line-height: 1.3;
  }

  body.pv6 .pv6-hero .pv5-lead {
    max-width: 600px;
    font-size: 15px;
    line-height: 1.8;
  }

  body.pv6 .pv6-hero .pv6-art {
    align-self: center;
    width: 340px;
    height: 340px;
    background: #FFF9ED;
  }

  body.pv6 .pv6-hero .pv5-steps {
    max-width: 560px;
  }

  body.pv6 .pv6-hero .pv5-steps li {
    font-size: 12px;
  }

  body.pv6 .pv6-hero-price p,
  body.pv6 .pv6-hero-price a {
    font-size: 13px;
  }
}


/* 15. 모션 감소 */

@media (prefers-reduced-motion: reduce) {
  body.pv6 .pv6-action {
    transition: none;
  }

  body.pv6 .pv6-action:active {
    transform: none;
  }
}

/* 16. 외국어 상단바 보정 (커뮤니티 링크 없는 상단바) — 2026-09-28 Claude */
body.pv6 .wrap > .topbar:not(:has(> a.tb-btn[href*="community"])) {
  grid-template-areas:
    "menu brand brand account"
    "price price language language";
}
@media (max-width: 767px) {
  body.pv6 .topbar #tbPrice .tb-tx,
  body.pv6 .topbar .tb-dd-trg .tb-tx {
    white-space: nowrap;
    overflow-wrap: normal;
  }
  body.pv6 .topbar #tbLogin {
    white-space: nowrap;
    overflow-wrap: normal;
    font-size: 11px;
    padding-inline: 6px;
  }
}

/* 17. 내 잔액: 본문에 로그인 버튼(#mbLogin)이 있으면 안내 카드의 중복 로그인 버튼 숨김 — 2026-09-29 Claude */
body.pv6 #pv6-balance-intro:has(~ #content #mbLogin) [data-pv6-login] {
  display: none;
}
