/* Taiwan DMC Connect — global readable typography v4
   Public partner pages and itinerary guides only. */

html {
  font-size: 20px !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: 20px !important;
  line-height: 1.7 !important;
}

p, li, dd { line-height: 1.7 !important; }

/* Navigation, controls and calls to action */
.back, .brand, .btn, .guide, .textlink,
.collection-primary a, .collection-links a,
.collection-picker select, .collection-picker button,
.filter label, .filter select, .filter button,
.day-links a, .route-tab, .sticky a, .sticky-quote a,
select, button, input, textarea {
  font-size: 18px !important;
}

/* Labels and secondary information */
.eyebrow, .kicker, .section-kicker, .meta,
.route-pill, .seasonal-tag, .seasonal-route-tag,
.restaurant-number, .outline-tag, .plan-tag, .day-badge,
.day-body .route, .option .tag, .fee-box > strong, .updated,
.card .number, .pill, .departure-context {
  font-size: 17px !important;
  line-height: 1.5 !important;
}

.fact small, .collection-picker label, .steps b,
.schedule dt, .stop-list li::before, .day-gallery figcaption {
  font-size: 16px !important;
  line-height: 1.45 !important;
}

.fact strong, .chip, .route-strip a, .jump a,
.stop-meta, .highlights span, .suggested-time, .price-range,
.route-status, .mini div {
  font-size: 18px !important;
  line-height: 1.55 !important;
}

/* Main reading text */
.summary, .heading p, .hero .lead, .hero p.summary,
.lead, .intro, .intro-copy, .section-copy, .trip, .stops,
.card p, .wide-card p, .plan-card p, .plan-card li,
.signature-body li, .info-card p, .info-card li,
.stop-body p, .restaurant-card p, .restaurant-intro,
.prepare-card p, .group-heading p, .half-option p,
.faq details p, .enquiry p, .glance p, .day-body > p,
.stop-list span, .info p, .info li, .fee-box li,
.tdmc-partner-contact p, .request p {
  font-size: 20px !important;
  line-height: 1.7 !important;
}

.schedule-note, .admission, .restaurant-note, .fee-note,
.notice, .rule p, .plan-note, .selected-plan,
.signature-overnight, .pending, .note, .disclaimer,
.fee-box small, .route, .schedule dd {
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.checklist, .checklist li, summary, details p,
.steps strong, .steps p {
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.comparison caption { font-size: 20px !important; }
.comparison th { font-size: 16px !important; line-height: 1.45 !important; }
.comparison td { font-size: 18px !important; line-height: 1.6 !important; }

.card h2, .plan-card h2, .plan-card h3,
.signature-card h3, .card h3, .place h3 {
  line-height: 1.2 !important;
}

.card h2, .plan-card h3 { font-size: 30px !important; }
.card h3, .place h3 { font-size: 25px !important; }

.tdmc-partner-contact p { color: #425d66 !important; }
.tdmc-contact-buttons a, .tdmc-contact-sample {
  font-size: 18px !important;
  line-height: 1.45 !important;
}

.trust span, footer, .footer {
  font-size: 17px !important;
  line-height: 1.6 !important;
}

/* Tour Notes */
body > main > nav a { font-size: 18px !important; }
body > main > section p, body > main > section li {
  font-size: 20px !important;
  line-height: 1.72 !important;
}
body > main > section h3 { font-size: 22px !important; line-height: 1.4 !important; }

@media (max-width: 600px) {
  html, body { font-size: 18px !important; }

  .summary, .heading p, .hero .lead, .hero p.summary,
  .lead, .intro, .intro-copy, .section-copy, .trip, .stops,
  .card p, .wide-card p, .plan-card p, .plan-card li,
  .info-card p, .info-card li, .stop-body p,
  .restaurant-card p, .prepare-card p, .day-body > p,
  .stop-list span, .info p, .info li,
  .tdmc-partner-contact p, .request p,
  body > main > section p, body > main > section li {
    font-size: 18px !important;
  }

  .sticky a, .sticky-quote a,
  .collection-primary a, .collection-links a,
  .collection-picker select, .collection-picker button,
  .btn, .guide, select, button {
    font-size: 17px !important;
  }
}


/* TDMC_MOBILE_LAYOUT_V1 */
@media (max-width:600px) {
  html:has(.quick-facts) {
    font-size:16px !important;
  }
  body:has(.quick-facts) {
    font-size:16px !important;
  }
  .page:has(.quick-facts) h1 {
    font-size:clamp(28px,8vw,40px) !important;
    line-height:1.12 !important;
  }
  .page:has(.quick-facts) h2 {
    font-size:30px !important;
    line-height:1.2 !important;
  }
  .page:has(.quick-facts) h3 {
    font-size:25px !important;
    line-height:1.25 !important;
  }
  .page:has(.quick-facts) p,
  .page:has(.quick-facts) li {
    font-size:16px !important;
    line-height:1.65 !important;
  }
  .page .eyebrow,
  .page .kicker,
  .page .section-kicker,
  .page .stop-meta {
    font-size:12px !important;
    letter-spacing:.08em !important;
    line-height:1.5 !important;
  }
  .page .hero-content {
    padding:28px 20px !important;
    min-width:0;
  }
  .page .quick-facts {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:8px !important;
    width:100%;
    max-width:100% !important;
  }
  .page .quick-facts .fact {
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-width:0;
    padding:12px 14px !important;
  }
  .page .fact small {
    font-size:12px !important;
    line-height:1.4 !important;
  }
  .page .fact strong {
    margin:0 !important;
    font-size:16px !important;
    line-height:1.4 !important;
    text-align:right;
  }
  .page .intro,
  .page .timeline,
  .page .details-section,
  .page .comfort,
  .page .prepare {
    padding-left:18px !important;
    padding-right:18px !important;
  }
  .page .stops {
    padding-left:20px !important;
  }
  .page .stop-body {
    padding:18px !important;
    min-width:0;
  }
  .page .suggested-time,
  .page .highlights span,
  .page .route-strip a,
  .page .schedule-note,
  .page .fee-note {
    font-size:14px !important;
    line-height:1.5 !important;
  }
  .page .suggested-time {
    max-width:100%;
    width:auto !important;
    padding:8px 12px !important;
    border-radius:12px !important;
    white-space:normal;
  }
  body:has(.quick-facts) .sticky {
    padding:6px !important;
    gap:6px !important;
    border-radius:14px !important;
  }
  body:has(.quick-facts) .sticky a {
    font-size:14px !important;
    line-height:1.3 !important;
    padding:10px 8px !important;
    min-height:44px;
  }
}


/* TDMC_MOBILE_TIMELINE_V2 */
@media (max-width:600px) {
  .page .timeline {
    padding-left:16px !important;
    padding-right:16px !important;
  }
  .page .stops,
  .page .stop {
    padding-left:0 !important;
    margin-left:0 !important;
    min-width:0;
  }
  .page .stops::before,
  .page .stop > .dot {
    display:none !important;
  }
  .page .stop-card {
    width:100%;
    min-width:0;
    box-sizing:border-box;
  }
  .page .stop-body {
    padding:18px !important;
  }
  .page .suggested-time {
    display:flex !important;
    width:fit-content !important;
    max-width:100% !important;
    box-sizing:border-box;
    white-space:normal !important;
    overflow-wrap:anywhere;
    min-width:0;
  }
}


/* TDMC_MOBILE_REVIEW_V3 */
@media (max-width:600px) {
  html:has(.grid > .card),
  html:has(.page .facts) {
    font-size:16px !important;
  }
  body:has(.grid > .card),
  body:has(.page .facts) {
    font-size:16px !important;
  }
  body:has(.grid > .card) .wrap {
    padding-left:16px;
    padding-right:16px;
  }
  .grid > .card { padding:20px !important; }
  .grid > .card h2 {
    font-size:25px !important;
    line-height:1.2 !important;
  }
  .grid > .card p,
  .grid > .card .stops,
  .grid > .card .stops li {
    font-size:16px !important;
    line-height:1.55 !important;
  }
  .grid > .card .meta {
    font-size:13px !important;
    margin-bottom:8px;
  }
  .grid > .card .stops li { margin-bottom:5px; }
  .grid > .card .guide { font-size:16px !important; }

  .page .admission,
  .page .notice,
  .page .schedule-note,
  .page .fee-note,
  .page details p {
    font-size:16px !important;
    line-height:1.6 !important;
  }
  .page .quick-facts .fact,
  .page .facts .fact {
    min-height:0 !important;
    padding:12px 14px !important;
  }

  .page:has(.facts) h1 {
    font-size:clamp(28px,8vw,40px) !important;
    line-height:1.12 !important;
  }
  .page:has(.facts) h2 {
    font-size:30px !important;
    line-height:1.2 !important;
  }
  .page:has(.facts) p,
  .page:has(.facts) li {
    font-size:16px !important;
    line-height:1.65 !important;
  }
  .page .facts {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:8px !important;
    max-width:100% !important;
  }
  .page .facts .fact {
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-width:0;
  }
  .page .facts .fact strong {
    margin:0 !important;
    text-align:right;
    overflow-wrap:anywhere;
  }
}


/* TDMC_COMPACT_FACTS_V4 */
@media (max-width:600px) {
  .page .hero .quick-facts,
  .page .hero .facts {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:0 !important;
    padding:4px 14px !important;
    background:rgba(255,255,255,.10) !important;
    border:1px solid rgba(255,255,255,.25) !important;
    border-radius:16px !important;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-sizing:border-box;
  }

  .page .hero .quick-facts > .fact,
  .page .hero .facts > .fact {
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-width:0;
    min-height:0 !important;
    margin:0 !important;
    padding:11px 0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  .page .hero .quick-facts > .fact + .fact,
  .page .hero .facts > .fact + .fact {
    border-top:1px solid rgba(255,255,255,.18) !important;
  }

  .page .hero .fact small {
    font-size:11px !important;
    line-height:1.4 !important;
    letter-spacing:.06em !important;
  }

  .page .hero .fact strong {
    margin:0 !important;
    font-size:15px !important;
    line-height:1.4 !important;
    text-align:right;
    overflow-wrap:anywhere;
  }
}

/* TDMC_MOBILE_SCHEDULE_NOTE_ALIGNMENT */
@media (max-width: 600px) {
  .page .timeline .schedule-note {
    margin-inline-start: 0 !important;
  }
}

/* TDMC_ALL_GUIDES_NOTE_ALIGNMENT_20261108 */
.page .timeline p.schedule-note,.page .timeline div.schedule-note{
 box-sizing:border-box!important;display:block!important;width:100%!important;max-width:none!important;
 margin:20px 0 24px!important;margin-inline:0!important;padding:14px 16px!important;
 font-size:14px!important;line-height:1.6!important;letter-spacing:normal!important;text-align:left!important;
 border-radius:12px!important;overflow-wrap:break-word;
}
.page .timeline .schedule-note strong{font-size:inherit!important;line-height:inherit!important}
