/* Map legacy .yg-* site components onto the handoff design tokens */
.ygd-legacy .yg { color: var(--fg); font-family: var(--body); }
.ygd-legacy .yg-wrap { max-width: 1100px; margin: 0 auto; padding-inline: 0; }
.ygd-legacy .yg-pagehead {
  padding: 8px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.ygd-legacy .yg-pagehead h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 8px;
}
.ygd-legacy .yg-pagehead p { color: var(--mist); margin: 0; max-width: 40rem; }
.ygd-legacy .yg-section { padding: 12px 0 28px; }
.ygd-legacy .yg-panel,
.ygd-legacy .yg-box,
.ygd-legacy .yg-card,
.ygd-legacy details {
  background: var(--em);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  color: var(--fg);
}
.ygd-legacy details { margin-bottom: 10px; }
.ygd-legacy details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.ygd-legacy details p { color: var(--mist); margin: 10px 0 0; line-height: 1.55; }
.ygd-legacy .yg-field,
.ygd-legacy .yg-fields label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.ygd-legacy input,
.ygd-legacy textarea,
.ygd-legacy select {
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--fg);
  padding: 12px 14px;
  font: inherit;
  box-sizing: border-box;
}
html[data-theme="light"] .ygd-legacy input,
html[data-theme="light"] .ygd-legacy textarea,
html[data-theme="light"] .ygd-legacy select {
  background: #fff;
  color: #12251e;
}
.ygd-legacy .yg-btn,
.ygd-legacy .btn,
.ygd-legacy button.yg-btn--teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.ygd-legacy .yg-btn--teal,
.ygd-legacy .btn-gold,
.ygd-legacy button[type="submit"].yg-btn {
  background: var(--foil, linear-gradient(110deg,#a77a26,#f3d98b,#a77a26));
  color: #1a1408;
}
.ygd-legacy a { color: var(--teal); }
.ygd-legacy .yg-prose { color: var(--mist); line-height: 1.55; }
.ygd-legacy .yg-tours-intro h1,
.ygd-legacy .yg-tours-board__head h2 {
  font-family: var(--serif);
  font-weight: 500;
}
.ygd-legacy .yg-tours-tabs button,
.ygd-legacy .yg-chip {
  background: var(--em);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 999px;
  padding: 8px 14px;
}
.ygd-legacy .yg-tours-tabs button.is-on {
  border-color: var(--gold);
  color: var(--gold);
}
.ygd-legacy .yg-tour-card,
.ygd-legacy [class*="tour-card"],
.ygd-legacy .yg-tours-card {
  background: var(--em);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.ygd-legacy .yg-footer { display: none; }
.ygd-legacy .yg-chrome { display: none; }
.ygd-legacy .yg-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--em2, #0f3a2f);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 80;
  border: 1px solid var(--line);
}
.ygd-legacy table { width: 100%; border-collapse: collapse; }
.ygd-legacy th, .ygd-legacy td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: start;
  color: var(--mist);
}
.ygd-legacy th { color: var(--fg); }
/* Hide nested old chrome if a view still includes it */
.ygd-page .yg-topbar { display: none !important; }
.ygd-page > .yg-chrome { display: none !important; }

/* ===== New pages (Contact / Support / About / Rules) — brand design ===== */
/* Fix: native select dropdown must stay readable in dark & light themes */
.ygd-legacy select { color-scheme: dark; background-color: var(--em2); color: var(--fg); }
.ygd-legacy select option { background-color: #0f3a2f; color: #f6efe2; }
html[data-theme="light"] .ygd-legacy select { color-scheme: light; background-color: #fff; color: #12251e; }
html[data-theme="light"] .ygd-legacy select option { background-color: #ffffff; color: #12251e; }

.yp-hero { position: relative; overflow: hidden; border-radius: 26px; isolation: isolate; color: #f6efe2; margin-bottom: 26px; }
.yp-hero img.yp-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.yp-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,16,13,.92) 20%, rgba(6,16,13,.62) 55%, rgba(6,16,13,.25)); }
.yp-hero__in { padding: clamp(28px, 5vw, 54px); max-width: 640px; }
.yp-kick { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2vw, 21px); color: var(--gold2); display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.yp-kick::after { content: ""; height: 1px; width: 52px; background: var(--gold); }
.yp-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 54px); line-height: 1.04; margin: 0 0 12px; color: #f6efe2; }
.yp-hero p { color: rgba(246,239,226,.82); margin: 0; max-width: 52ch; }
.yp-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.yp-chip { border: 1px solid rgba(217,178,90,.45); background: rgba(6,16,13,.45); backdrop-filter: blur(6px); color: #f6efe2; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.yp-chip b { color: var(--gold2); }

.yp-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .yp-grid { grid-template-columns: 1fr; } }
.yp-card { background: linear-gradient(180deg, var(--em2), var(--em)); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3vw, 30px); color: var(--fg); box-shadow: 0 24px 50px -28px rgba(0,0,0,.55); }
.yp-card h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.yp-card h3 { margin: 18px 0 6px; font-size: 17px; }
.yp-card p { color: var(--mist); line-height: 1.6; margin: 0 0 10px; }
.yp-card a { color: var(--teal); }

.yp-contactrow { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.yp-contactrow:last-of-type { border-bottom: 0; }
.yp-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--teal-bg); color: var(--teal); border: 1px solid var(--line); }
.yp-ico svg { width: 20px; height: 20px; }
.yp-contactrow small { display: block; color: var(--mist2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.yp-contactrow strong, .yp-contactrow a { color: var(--fg); font-size: 16px; text-decoration: none; word-break: break-all; }
.yp-contactrow a:hover { color: var(--teal); }

.yp-note { display: flex; gap: 12px; background: rgba(217,178,90,.1); border: 1px solid rgba(217,178,90,.4); border-radius: 16px; padding: 14px 16px; margin-top: 16px; }
.yp-note svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--gold); margin-top: 2px; }
.yp-note p { margin: 0; font-size: 14px; color: var(--mist); }
.yp-note strong { color: var(--fg); }

.yp-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 900px) { .yp-topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .yp-topics { grid-template-columns: 1fr; } }
.yp-topic { position: relative; background: linear-gradient(180deg, var(--em2), var(--em)); border: 1px solid var(--line); border-radius: 18px; padding: 20px; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.yp-topic::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--foil); opacity: .85; }
.yp-topic:hover { transform: translateY(-3px); border-color: rgba(217,178,90,.55); }
.yp-topic .yp-ico { margin-bottom: 12px; }
.yp-topic h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
.yp-topic p { color: var(--mist); font-size: 14px; line-height: 1.55; margin: 0 0 14px; }
.yp-topic a { color: var(--teal); font-weight: 700; text-decoration: none; font-size: 14px; }
.yp-topic a:hover { text-decoration: underline; }

.yp-form { display: grid; gap: 14px; }
.yp-form .yp-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .yp-form .yp-row2 { grid-template-columns: 1fr; } }
.yp-field { display: grid; gap: 7px; margin: 0 !important; }
.yp-field > span { font-size: 13px; font-weight: 700; color: var(--fg); letter-spacing: .01em; }
.yp-field input, .yp-field textarea, .yp-field select { margin-top: 0; border-radius: 14px; padding: 13px 15px; background: rgba(var(--fg-rgb), .05); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.yp-field textarea { min-height: 130px; resize: vertical; }
.yp-field input:focus, .yp-field textarea:focus, .yp-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,178,90,.22); }
.yp-field select { appearance: none; -webkit-appearance: none; padding-inline-end: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23d9b25a' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
html[dir="rtl"] .yp-field select { background-position: left 15px center; }
.yp-submit { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--foil); background-size: 200% 100%; color: #2a1a04; font-weight: 800; font-size: 16px; cursor: pointer; box-shadow: 0 14px 34px -14px rgba(217,178,90,.8); transition: background-position .5s, transform .15s; }
.yp-submit:hover { background-position: 100% 0; transform: translateY(-1px); }
.yp-submit:disabled { opacity: .65; transform: none; cursor: wait; }
.yp-form__msg { min-height: 20px; margin: 0; font-size: 14px; font-weight: 600; }
.yp-form__msg.is-err, .yg-form__msg.is-err { color: #ff8a70; }
.yp-form__msg.is-ok, .yg-form__msg.is-ok { color: var(--teal); }
html[data-theme="light"] .yp-form__msg.is-err, html[data-theme="light"] .yg-form__msg.is-err { color: #b3341c; }

/* Success panel: hidden until the form is actually sent */
.yp-success { display: none; text-align: center; padding: 18px 6px 8px; }
.yp-success.is-on { display: block; animation: ypPop .35s ease; }
@keyframes ypPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.yp-success__check { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--teal-bg); border: 1px solid rgba(63,219,230,.5); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.yp-success__check svg { width: 30px; height: 30px; }
.yp-success small { display: block; color: var(--mist2); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; font-size: 12px; }
.yp-success strong { display: block; font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); color: var(--gold2); margin: 6px 0 8px; letter-spacing: .02em; }
html[data-theme="light"] .yp-success strong { color: var(--gold); }
.yp-success p { color: var(--mist); margin: 0; }

.yp-spec { display: grid; gap: 0; margin: 6px 0 4px; }
.yp-spec > div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.yp-spec > div:last-child { border-bottom: 0; }
.yp-spec dt { color: var(--mist2); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }
.yp-spec dd { margin: 0; color: var(--fg); font-weight: 600; text-align: end; }
.yp-photo { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 220px; position: relative; }
.yp-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.yp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.yp-stat { background: rgba(var(--fg-rgb), .05); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.yp-stat b { display: block; font-family: var(--cond); font-size: 26px; letter-spacing: .02em; color: var(--gold2); line-height: 1.1; }
html[data-theme="light"] .yp-stat b { color: var(--gold); }
.yp-stat span { font-size: 12px; color: var(--mist2); font-weight: 600; }
