html.cloud-auth-pending body {
  visibility: hidden;
}

/* Subtle ownership watermark shown across every language edition. */
body::before {
  content: "Fulgur Arc Interactive Limited";
  position: fixed;
  z-index: 90;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: 88vw;
  transform: translate(-50%, -50%) rotate(-24deg);
  pointer-events: none;
  user-select: none;
  color: #15324f;
  opacity: 0.055;
  font: 700 clamp(1.55rem, 4vw, 3.4rem)/1.1 "Geist Brief", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.055em;
  text-align: center;
  white-space: nowrap;
}

@media (width <= 760px) {
  body::before {
    font-size: clamp(1.2rem, 6vw, 2rem);
    white-space: normal;
  }
}

.language-en,
.language-es,
.language-pt {
  font-family: "Geist Brief", "Segoe UI Variable", "Segoe UI", Arial, system-ui, sans-serif;
}

@font-face {
  font-family: "Geist Brief";
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.language-zh {
  font-family: "Noto Sans SC Web", "Microsoft YaHei", system-ui, sans-serif;
  font-weight: 500;
}

.language-ja {
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}

.language-ko {
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}

/* Long translated cover titles must wrap instead of being clipped by the card. */
.language-en .cover-copy h1,
.language-es .cover-copy h1,
.language-ko .cover-copy h1,
.language-ja .cover-copy h1,
.language-pt .cover-copy h1 {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: wrap;
  font-size: clamp(1.5rem, 2.15vw, 1.95rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.language-en .cover-copy h1 .title-line,
.language-es .cover-copy h1 .title-line,
.language-ko .cover-copy h1 .title-line,
.language-ja .cover-copy h1 .title-line,
.language-pt .cover-copy h1 .title-line {
  display: block;
  white-space: nowrap;
}

.language-es .cover-copy h1,
.language-pt .cover-copy h1 {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.language-ko .cover-copy h1,
.language-ja .cover-copy h1 {
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
}

.language-en .message-panel .goal,
.language-es .message-panel .goal,
.language-pt .message-panel .goal,
.language-en .outro-callout,
.language-es .outro-callout,
.language-pt .outro-callout,
.language-en .checklist-intro,
.language-es .checklist-intro,
.language-pt .checklist-intro {
  font-weight: 500;
}

.language-en .key-emphasis,
.language-es .key-emphasis,
.language-pt .key-emphasis,
.language-en .cover-copy h1,
.language-es .cover-copy h1,
.language-pt .cover-copy h1,
.language-en .section-heading h2,
.language-es .section-heading h2,
.language-pt .section-heading h2 {
  font-weight: 700;
}

@media (width <= 760px) {
  .language-en .cover-copy h1 .title-line,
  .language-es .cover-copy h1 .title-line,
  .language-ko .cover-copy h1 .title-line,
  .language-ja .cover-copy h1 .title-line,
  .language-pt .cover-copy h1 .title-line {
    white-space: normal;
  }
}

.language-tabs {
  display: flex !important;
  width: auto !important;
  height: auto !important;
  max-width: min(100%, 660px);
  flex-wrap: wrap;
  gap: 3px;
}

.brief-language-tab {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font: 600 13px/1.1 system-ui, sans-serif;
  min-height: 30px;
  padding: 7px 10px;
  white-space: nowrap;
}

.brief-language-tab:hover {
  color: #18212f;
}

.brief-language-tab[data-state="active"] {
  background: #fff;
  color: #18212f;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
}

.brief-language-tab:focus-visible {
  outline: 3px solid rgba(41, 126, 174, 0.24);
  outline-offset: 1px;
}

[data-edit-id][contenteditable="true"] {
  border-radius: 4px;
  outline: 2px dashed rgba(34, 114, 160, 0.35);
  outline-offset: 3px;
}

@font-face {
  font-family: "Noto Sans SC Web";
  src: url("/fonts/noto-sans-sc-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC Web";
  src: url("/fonts/noto-sans-sc-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

.language-zh .message-panel .goal,
.language-zh .talking-table .table-row > strong,
.language-zh .outro-callout,
.language-zh .checklist-intro {
  font-weight: 500;
}

.language-zh .key-emphasis,
.language-zh .brief-pill,
.language-zh .meta-label,
.language-zh .advantages-inline-title,
.language-zh .advantage-pill,
.language-zh .section-heading > span,
.language-zh .section-heading h2,
.language-zh .brief-section > h3,
.language-zh .note-card h3,
.language-zh .table-head,
.language-zh .timeline-head,
.language-zh .comparison-banner,
.language-zh .checklist-column h3 {
  font-weight: 700;
}

.cloud-auth-pending .toolbar > button:not(.cloud-login),
.cloud-viewer .toolbar > button:not(.cloud-login) {
  display: none !important;
}

.cloud-login {
  border: 1px solid #d7dbe1;
  border-radius: 8px;
  background: #fff;
  color: #222;
  min-height: 36px;
  padding: 0 14px;
  font: 600 14px/1 system-ui, sans-serif;
  cursor: pointer;
}

.cloud-sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #176b42;
  background: #eaf8f0;
  border: 1px solid #bce7cd;
  border-radius: 999px;
  padding: 7px 10px;
  font: 600 12px/1 system-ui, sans-serif;
  white-space: nowrap;
}

.cloud-sync-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f9d60;
}

.cloud-toast {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(90vw, 520px);
  border-radius: 10px;
  background: #19202a;
  color: white;
  padding: 11px 15px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  font: 600 14px/1.45 system-ui, sans-serif;
}

.cloud-toast[data-type="error"] {
  background: #9f2430;
}

/* Keep both language editions as one continuous brief instead of five cards. */
.brief {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(#fff 0%, #fefefe 100%);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
  box-shadow: 0 20px 50px #1f2b3a13;
}

.brief-page {
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.brief-page + .brief-page {
  margin-top: 1.55rem;
}

.page-number {
  display: none !important;
}

@media print {
  .brief {
    overflow: visible;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .brief-page {
    break-inside: auto !important;
    break-after: auto !important;
    page-break-inside: auto !important;
    page-break-after: auto !important;
  }
}

@media (max-width: 720px) {
  .brief {
    border-radius: 14px;
    padding: 1rem;
  }

  .cloud-sync-chip {
    display: none;
  }

  .toolbar {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }

  .language-tabs {
    max-width: 100%;
  }

  .brief-language-tab {
    font-size: 12px;
    padding-inline: 8px;
  }
}

.v33-material-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.9rem 0 1rem;
  border: 1px solid #d7e2eb;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.85rem 1rem;
  color: #344054;
}

.v33-material-card[hidden] {
  display: none;
}

.v33-material-card > div > strong,
.v33-material-card > div > span {
  display: block;
}

.v33-material-card > div {
  flex: 1 1 0;
  min-width: 0;
}

.v33-material-card > div > strong {
  margin-bottom: 0.2rem;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: normal;
  word-break: keep-all;
}

.v33-material-card > div > span {
  font-size: 0.9rem;
  line-height: 1.65;
}

.v33-material-card .key-emphasis {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.v33-material-status {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid #e4b13c;
  background: #fff7df;
  padding: 0.45rem 0.7rem;
  color: #8a5a00;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.v33-material-status:hover {
  border-color: #c58a00;
  background: #ffedb7;
}

@media (max-width: 900px) {
  .v33-material-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .v33-material-status {
    align-self: flex-start;
  }
}
.aside-note {
  display: none !important;
}

.content-external-link {
  cursor: pointer;
}

.meta-value.content-external-link {
  color: #0b6496;
  text-decoration: underline;
  text-decoration-color: #78afd0;
  text-underline-offset: 3px;
}

.demo-url.content-external-link {
  transition: border-color 150ms ease, background-color 150ms ease;
}

.demo-url.content-external-link:hover {
  border-color: #68a7cc;
  background: #f8fcff;
}

.content-external-link:focus-visible {
  outline: 3px solid rgba(41, 126, 174, 0.28);
  outline-offset: 3px;
}

.price-comparison-reference {
  width: min(100%, 820px);
  background: #fff;
  border-color: #d7dfe8;
}

.price-comparison-reference figcaption {
  border-top: 1px solid #d7dfe8;
  color: #647185;
  background: #f8fafc;
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.tone-guidance-card {
  margin-bottom: 1rem;
  border: 1px solid #d7e2eb;
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  background: linear-gradient(145deg, #fffdf8, #f7fafc);
  padding: 1.15rem 1.25rem;
  color: #344054;
  font-size: 0.9rem;
  line-height: 1.7;
}

.tone-guidance-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
}

.tone-intro,
.tone-examples-label,
.tone-footer {
  display: block;
}

.tone-opening-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(0, 1fr);
  gap: 0.8rem;
  margin: 0.8rem 0;
  border-radius: 10px;
  background: #fff5df;
  padding: 0.75rem 0.85rem;
}

.tone-opening-row strong {
  color: #9b6200;
}

.tone-examples-label {
  margin-top: 0.85rem;
  color: var(--navy);
  font-weight: 800;
}

.tone-examples {
  margin: 0.4rem 0 0.8rem 1.25rem;
  padding: 0;
}

.tone-examples li + li {
  margin-top: 0.3rem;
}

.tone-footer {
  color: #5f6d7c;
}

@media (max-width: 720px) {
  .tone-opening-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* V3.3 Chinese review: separate four benefits into clear, scannable groups. */
.v33-benefits {
  margin: 0.45rem 0 1.4rem;
}

.v33-benefit-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.v33-benefit-group {
  overflow: hidden;
  border: 1px solid #d9e1ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(30, 48, 70, 0.06);
}

.v33-benefit-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.72rem 0.85rem;
  background: #fff4d8;
  color: #805400;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.v33-benefit-group-heading strong {
  font-size: 0.92rem;
}

.v33-benefit-group-longterm .v33-benefit-group-heading {
  background: #eaf5fb;
  color: #165879;
}

.v33-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem;
}

.v33-benefit-card {
  position: relative;
  display: flex;
  min-height: 168px;
  flex-direction: column;
  gap: 0.38rem;
  border: 1px solid #e1e7ed;
  border-radius: 12px;
  background: #fbfcfd;
  padding: 0.8rem;
}

.v33-benefit-number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #122b45;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.v33-benefit-card > strong {
  color: #25384c;
  font-size: 0.9rem;
  line-height: 1.35;
}

.v33-benefit-card > b {
  margin-top: auto;
  color: #bf7100;
  font-size: 1.16rem;
  line-height: 1.25;
}

.v33-benefit-group-longterm .v33-benefit-card > b {
  color: #0870a0;
}

.v33-benefit-card > span:last-child {
  color: #667589;
  font-size: 0.84rem;
  line-height: 1.55;
}

.v33-benefit-note {
  margin: 0.75rem 0 0;
  border-left: 4px solid #d28b00;
  border-radius: 8px;
  background: #fff9eb;
  padding: 0.7rem 0.85rem;
  color: #6e510f;
  font-size: 0.8rem;
  line-height: 1.55;
}

html[data-v33-draft="true"] .timeline-head,
html[data-v33-draft="true"] .timeline-row {
  grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1.15fr) minmax(170px, 0.82fr);
}

html[data-v33-draft="true"] .timeline-row > span,
html[data-v33-draft="true"] .timeline-row > strong {
  line-height: 1.65;
}

html[data-v33-draft="true"] .timeline-row > span {
  color: #42536a;
}

html[data-v33-draft="true"] .timeline-row > span br {
  content: "";
}

@media (max-width: 720px) {
  .v33-benefit-grid {
    grid-template-columns: 1fr;
  }

  .v33-benefit-card {
    min-height: 0;
  }
}
