/* Shared colors and typography across public Korean and English pages. */
:root {
  --se-paper: #faf9f3;
  --se-green: #173e35;
  --se-text: #2d3c34;
  --se-muted: #526458;
  --se-line: #cdd5c7;
  --se-focus: #3e6a50;
  --se-font: "DM Sans", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --bg: var(--se-paper);
  --paper: var(--se-paper);
  --ink: var(--se-green);
  --body: var(--se-text);
  --text: var(--se-text);
  --muted: var(--se-muted);
  --line: var(--se-line);
  --font: var(--se-font);
}

body {
  background-color: var(--se-paper);
  color: var(--se-text);
  font-family: var(--se-font);
  font-size: 15px;
  line-height: 1.6;
  word-break: normal;
}

:where(button, input, select, textarea) { font-family: var(--se-font); }
:where(main) :where(h1, h2, h3) { overflow-wrap: anywhere; }
:lang(ko) :where(h1, h2, h3) { word-break: keep-all; }

.site-header { background: var(--se-paper); }
.site-header .desktop-nav .nav-link { min-width: 44px; min-height: 44px; }
.site-header .nav-link:not(.active) { color: var(--se-muted); }
a.se-language-switch {
  min-width: 44px;
  min-height: 44px;
  color: var(--se-green);
  font-family: var(--se-font);
  font-size: 13px;
}
:is(.site-header,.landing-header-actions) :is(.header-share,.se-share-trigger):not([hidden]) {
  min-width: 44px;
  min-height: 44px;
}
:is(.site-header,.masthead) .brand { min-height: 44px; }

#guide .opening p { font-size: 16px; }
#guide :is(.district-intro,.shops p) { font-size: 15px; }
#guide :is(.guide-hero figcaption,.shops address,.shops .selection-type,.related-walk span) {
  color: var(--se-muted);
  font-size: 13px;
}

/* Existing components apply class selectors rather than inherited colors. */
:is(
  .lead,
  .guide-lead,
  .detail-dialog .detail-description,
  .faq-answer,
  .guide-tip-body,
  .guide-phrases > p,
  .guide-invite p,
  .guide-before li,
  .visit-info-body,
  .route-utilities-body,
  .itinerary-empty p,
  .se-assistant-bubble
) {
  font-size: 15px;
  line-height: 1.7;
  color: var(--se-text);
}
:is(
  .detail-info small,
  .detail-note,
  .faq-heading > p,
  .faq-heading h2 > span,
  .faq-answer .faq-note,
  .faq-foot,
  .guide-tip-body .guide-small-note,
  .guide-tip-body .guide-editor-label,
  .guide-preference-preview > span,
  .guide-phrase small,
  .guide-references,
  .visit-info small,
  .route-utilities small,
  .visit-map-note,
  .itinerary-heading p,
  .itinerary-eyebrow,
  .itinerary-line-note,
  .itinerary-missing,
  .itinerary-local-note,
  .itinerary-provider-note,
  .itinerary-order-note,
  .itinerary-stop-info > p,
  .itinerary-leg-heading > span,
  .itinerary-leg-description,
  .se-assistant-heading p,
  .se-assistant-tools,
  .se-assistant-welcome p,
  .se-assistant-result small,
  .se-assistant-message-label,
  .se-assistant-status,
  .se-assistant-privacy,
  .photo-gallery .gallery-help,
  .photo-gallery .gallery-heading small
) {
  font-size: 13px;
  color: var(--se-muted);
  line-height: 1.6;
}
#discover :is(.feed-info,.card-topline,.card-description) { color: var(--se-muted); }
#discover #search::placeholder { color: var(--se-muted); opacity: 1; }
.p0-home #home .hero-description { color: var(--se-muted); }
.itinerary-stop-actions [data-itinerary-remove] { color: #69423a; }
.se-assistant.is-short .se-assistant-privacy { font-size: 12px; }

:is(
  .guide-inline, .guide-area-list button, .guide-phrase button, .guide-preference-options button,
  .faq-link, .faq-source-link, .guide-invite .secondary-btn, .map-chooser .map-choice,
  .se-assistant-close, .se-assistant-send, .se-assistant-prompts button, .se-assistant-mobile-entry
):not([hidden]) { min-height: 44px; }
:is(.faq-link,.faq-source-link,.guide-before a,.guide-references a) { color: var(--se-green); }
.guide-before a:not([hidden]) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.map-chooser .map-chooser-fallback a { min-height: 44px; }
:is(.guide-close,.se-assistant-close,.se-assistant-send):not([hidden]) { min-width: 44px; }

:is(
  .site-header .nav-link, .site-header .se-language-switch, .site-header .header-share,
  .mobile-nav button, .mobile-nav a, .primary-btn, .secondary-btn, .faq-item summary,
  .faq-link, .faq-source-link, .guide-inline, .guide-tip summary, .guide-phrase button,
  .se-assistant-prompts button, .se-assistant-send, .map-chooser .map-choice
):focus-visible {
  outline: 2px solid var(--se-focus);
  outline-offset: 3px;
}
:is(.mobile-nav,.map-chooser,.travel-guide-dialog,.se-assistant) [hidden] { display: none; }

@media (max-width: 800px) {
  .mobile-nav {
    background: var(--se-paper);
    border-color: var(--se-line);
  }
  .mobile-nav :is(button,a) {
    min-height: 48px;
    min-width: 44px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    color: var(--se-muted);
  }
  .mobile-nav :is(button,a):is(.active,[aria-current="page"]) { color: var(--se-green); }
  .mobile-nav :is(button,a) span:not([data-icon]) { overflow-wrap: anywhere; }
  .mobile-nav .saved-count { font-size: 12px; }
  .guide-inline,.detail-dialog button[data-copy-address],.detail-dialog button[data-navigate-place] { min-height: 44px; }
  #guide :is(.source,.mall-link) { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
