/* 2026-11 pass against Google Material Design and Apple Human Interface Guidelines
   (minimum text size, 44px tap targets). Loaded last so same-specificity rules win. */

/* ---- 1. No running text under 12px (Material: 12px Latin / 13px CJK; Apple: 11px) ---- */
.eyebrow,
.hero-copy-inner .eyebrow,
.service-tag,
.inner-service-tag,
.aside-label,
.office-label,
.role-kicker,
.hero-caption,
.hero-facts dt,
.hero-facts dd,
.hero-role-card li span,
.hero-role-card li strong,
.company-details dt,
.inner-company-details dt,
.footer-nav-group > span,
.footer-bottom,
.mobile-nav-label,
.process-marker small,
.property-card-top span,
.operations-symbol span,
.representative-card figcaption span,
.office-facts small,
.send-list li span:first-child,
.decision-grid li span,
.journey-badge span,
.form-submit-row p,
.contact-form-success-eyebrow,
.screening-decision-grid li span,
.screening-decision-grid li strong,
.screening-card-label,
.screening-hero-card li span,
.proof-grid span,
.inner-hero-note > span,
.inner-hero-note li span,
.inner-hero-index,
.accountability-grid article > span,
.screening-boundary-list article > span,
.screening-output-list li > span,
.portal-index,
.section-photo figcaption,
.portal-photo figcaption {
  font-size: 0.75rem;
}

.header .lang-btn,
.lang-btn {
  font-size: 0.75rem;
}

/* Logo wordmark subtitle: keep it small but not below Apple's 11px floor */
.brand-copy span {
  font-size: 0.69rem;
}

@media (max-width: 768px) {
  .hero-copy-inner .eyebrow,
  .hero-facts dt,
  .hero-facts dd,
  .role-kicker,
  .hero-caption,
  .hero-role-card li strong,
  .journey-badge span,
  .header .lang-btn {
    font-size: 0.75rem;
  }

  .brand-copy span {
    font-size: 0.69rem;
  }
}

/* ---- 2. Tap targets of at least 44px (Apple 44pt / Material 48dp), without changing the look ---- */
.lang-btn {
  position: relative;
}

.lang-btn::after {
  position: absolute;
  inset: -8px -9px;
  content: '';
}

.header-cta {
  min-height: 44px;
  box-sizing: border-box;
}

.menu-toggle {
  min-width: 44px;
  min-height: 44px;
}

.text-link {
  padding-block: 12px;
  margin-block: -12px;
}

.footer-nav-group a {
  display: inline-block;
  padding-block: 7px;
  margin-block: -7px;
}

.footer-bottom a {
  display: inline-block;
  padding-block: 13px;
  margin-block: -13px;
}

.direct-contact a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-drawer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand {
  min-height: 44px;
  align-items: center;
}

.proof-grid strong {
  font-size: 0.75rem;
}

/* Narrow form column (tablet width): stack the privacy note above the submit button */
@media (max-width: 1120px) {
  .form-submit-row {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .form-submit-row p {
    max-width: none;
  }

  .form-submit-row .button {
    width: 100%;
  }
}

/* Footer columns at tablet width: no clipped email address */
.footer-nav-group a {
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) and (min-width: 769px) {
  .footer-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
    gap: 2.5rem;
  }
}

/* Privacy policy page on the inner template */
.privacy-section {
  padding-top: calc(var(--header-height) + 5rem);
}

html[lang] .privacy-section h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 7.5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: anywhere;
}

.privacy-established {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.privacy-sections h2 {
  margin-top: 2.4rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.privacy-sections p {
  margin-top: 0.7rem;
  line-height: 1.9;
}

.privacy-contact {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  font-style: normal;
  line-height: 1.7;
}

.privacy-contact a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 3. Line length: keep body copy at a readable measure (Material: ~60 characters) ---- */
.lead-copy,
.intro-transparency,
.statement-lead,
.statement-copy p,
.screening-intro-copy p,
.faq-list p,
.company-intro-copy {
  max-width: 62ch;
}

html[lang='ja'] :is(.lead-copy, .intro-transparency, .statement-lead, .statement-copy p, .screening-intro-copy p, .faq-list p, .company-intro-copy),
html[lang^='zh'] :is(.lead-copy, .intro-transparency, .statement-lead, .statement-copy p, .screening-intro-copy p, .faq-list p, .company-intro-copy) {
  max-width: 40em;
}

/* ---- 4. Chinese pages use Chinese glyph forms (not the Japanese font first) ---- */
html[lang='zh-CN'] {
  --font-sans: 'DM Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Newsreader', 'Noto Serif SC', 'Songti SC', serif;
}

html[lang='zh-TW'] {
  --font-sans: 'DM Sans', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-serif: 'Newsreader', 'Noto Serif TC', 'Songti TC', serif;
}

/* ---- 5. Colour contrast: small gold numbers and badges reach 4.5:1 (WCAG AA) ---- */
:root {
  --terracotta: #7a6236;
  --gold-deep: #765e2c;
}

/* ---- 6. Footer links on touch screens: one 44px row each instead of overlapping hit areas ---- */
@media (pointer: coarse) {
  .footer-nav-group a {
    padding-block: 11px;
    margin-block: 0;
  }
}

/* ---- 3. Reading sizes on phones (2026-11-23 review): body text at 16px, notes at 13px, footer links 44px tall ---- */
@media (max-width: 720px) {
  .faq-list details > p,
  .screening-topic-card > p,
  .screening-process-list p,
  .screening-hero-lead,
  .accountability-grid article > p,
  .inner-service-row > p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .services-section .service-row > p {
    font-size: 0.95rem;
  }

  .market-source,
  .form-submit-row > p {
    font-size: 0.8125rem;
  }

  .footer-nav-group a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

/* ---- 4. Contrast (2026-11-24 review, medium): small numbers and notes reach WCAG AA (4.5:1) ---- */
.send-list li span:first-child,
.inner-hero-note li span,
.screening-hero-card li span,
.office-facts small {
  color: rgba(255, 255, 255, 0.72);
}

.screening-decision-grid li span,
.inner-company-details dd span,
.company-details dd span,
.footer-brand > p,
.channel-arrow {
  color: rgba(255, 255, 255, 0.74);
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.market-section .market-value .market-unit {
  color: #7a6236;
}

/* ---- 5. Line length (2026-11-24 review, medium): notes and source lines stay near 40 characters a line ---- */
.guide-note,
.inner-cta-section p,
.market-section .market-source {
  max-width: 40em;
}

:lang(en) .guide-note,
:lang(en) .inner-cta-section p,
:lang(en) .market-section .market-source {
  max-width: 66ch;
}

/* ---- 6. Homepage property types on phones (2026-11-24 review, medium): 2 x 2 instead of four full-width photos ---- */
@media (max-width: 640px) {
  .property-section .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .property-section .property-card .card-photo {
    margin-bottom: 10px;
  }

  .property-section .property-card-top {
    margin-bottom: 0.3rem;
  }

  .property-section .property-card h3 {
    font-size: 1rem;
    line-height: 1.45;
  }
}

/* ---- 7. Forms (2026-11-24 review, medium): say which fields are required ---- */
.form-group:has(> :is(input, select, textarea)[required]) > label::after {
  content: "Required";
  display: inline-block;
  margin-left: 0.6em;
  padding: 0.05em 0.5em;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  vertical-align: 0.1em;
  opacity: 0.85;
}

:lang(ja) .form-group:has(> :is(input, select, textarea)[required]) > label::after {
  content: "必須";
}

:lang(zh) .form-group:has(> :is(input, select, textarea)[required]) > label::after {
  content: "必填";
}

/* ---- 8. Homepage portal card (2026-11-24): the "P / 01" column is hidden, so the heading no longer sits in that narrow column ---- */
@media (min-width: 1121px) {
  .portal-section .portal-card {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (min-width: 769px) and (max-width: 1120px) {
  .portal-section .portal-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .portal-section .portal-actions {
    grid-column: 1;
  }
}

/* ---- 9. Guide call to action on phones (2026-11-24): the heading takes three lines, not five ---- */
@media (max-width: 640px) {
  .guide-cta .inner-cta-card h2 {
    font-size: 1.75rem;
    line-height: 1.4;
  }
}

html[lang='ja'] .guide-cta .inner-cta-card h2 {
  word-break: auto-phrase;
}

.inner-cta-section .inner-cta-card div > p:not(.eyebrow) {
  max-width: 38em;
}

:lang(en) .inner-cta-section .inner-cta-card div > p:not(.eyebrow) {
  max-width: 66ch;
}

/* ---- 10. Homepage: hotels for sale (2026-11-24), up to three summary cards from the off-market page ---- */
.deal-preview-section {
  padding-block: clamp(64px, 9vw, 120px);
  background: var(--paper, #f2f3f4);
}

.deal-preview-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.deal-preview-head h2 {
  margin-top: 0.4rem;
}

.deal-preview-lead {
  margin-top: 1rem;
  color: var(--muted, #555);
  line-height: 1.8;
}

.deal-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deal-preview-card a {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.55rem;
  padding: 26px 24px;
  color: var(--ink, #1f2826);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line, #dfe2e1);
  transition: border-color 0.2s ease;
}

.deal-preview-card a:hover,
.deal-preview-card a:focus-visible {
  border-color: var(--forest, #163c32);
}

.deal-preview-id {
  color: #7a6236;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.deal-preview-title {
  font-family: var(--font-serif, serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.deal-preview-price {
  font-size: 1.1rem;
  font-weight: 700;
}

.deal-preview-facts {
  color: var(--muted, #555);
  font-size: 0.92rem;
  line-height: 1.75;
}

.deal-preview-more {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--forest, #163c32);
  font-size: 0.9rem;
}

.deal-preview-button {
  margin-top: 32px;
}

@media (max-width: 960px) {
  .deal-preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- 11. Narrow desktops (2026-11-24): the menu gained "Hotels for sale"; keep it on one line ---- */
@media (min-width: 1121px) and (max-width: 1260px) {
  .header .nav-list {
    gap: 1.1rem;
  }
}
