/* PHP site additions on top of vvip.css: server-rendered markup, account button, sign-in dialog. */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--charcoal); color: var(--linen); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; color: var(--linen); }

/* Language switch is now real links (one URL per language). */
.lang-pill a { padding: 6px 12px; border-radius: 999px; white-space: nowrap; color: var(--muted); }
.lang-pill a:hover { color: var(--ink); }
.lang-pill a[aria-current="true"] { background: var(--charcoal); color: var(--linen); }
.dropdown a[aria-current="true"] { background: #F4EFE6; }
.foot-col a[aria-current="true"] { color: var(--champ); }

/* Semantic elements used by the server templates */
.ch-desc, .ch-title { margin: 0; }
.today-list, .mistakes { list-style: none; margin: 0; padding: 0; }
.today-list { margin-top: 18px; }
.mistakes li { display: flex; gap: 16px; align-items: flex-start; }
.today h2.eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--gold); }
.dl-group-head h2 { font-size: inherit; font-weight: inherit; }
.tool-outline .stepper { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.tool-outline .stepper li { counter-increment: s; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); }
.tool-outline .stepper li::before { content: counter(s) '  '; color: var(--gold); }
.tool-outline ul { padding-left: 18px; color: var(--sec); line-height: 1.7; }

/* Account button */
.btn-account { background: #fff; border-color: var(--champ); color: var(--gold); padding: 10px 16px; font-size: 12px; }
.btn-account:hover { background: var(--tint); color: var(--ink); }
.btn-account.signed { border-color: #B9CBA9; color: #4F6B3C; background: #F3F7EE; }
.account .dropdown { width: 260px; }
.account-menu .acc-phone { padding: 10px 12px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--divider); margin-bottom: 4px; }
.account-menu .danger { color: var(--alert); }
.save-hint { display: block; margin-top: 10px; text-align: left; }
.m-menu button.btn { margin-top: 16px; }
@media (max-width: 1240px) { .hide-md { display: none; } }
@media (max-width: 1100px) { .header-end .btn-account, .header-end .account { display: none; } }

/* Shared form + dialog styles (also used outside the tool pages) */
.auth-modal .fld-label { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 14px 0 8px; }
.auth-modal .fld-err { font-size: 13px; color: var(--alert); font-weight: 500; margin-top: 8px; }
.auth-modal .in { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--outline); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.auth-modal .in:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,170,133,.25); }
.auth-modal .in-wrap { display: flex; align-items: stretch; }
.auth-modal .in-wrap .in { border-radius: 0 10px 10px 0; flex: 1; min-width: 0; }
.auth-modal .affix { display: flex; align-items: center; padding: 0 12px; background: var(--tint); border: 1px solid var(--outline); border-right: 0; border-radius: 10px 0 0 10px; font-size: 14px; font-weight: 600; color: var(--gold); }
.auth-modal .in.otp { font-family: var(--mono); font-size: 26px; letter-spacing: .4em; text-align: center; }
.auth-modal .link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--gold); cursor: pointer; }
.auth-modal .link-btn:hover { color: var(--ink); }
.auth-modal .link-btn:disabled { color: var(--faint); cursor: default; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; }
.btn-danger { background: var(--alert); color: #fff; }
.btn-danger:hover { background: #8E3A30; color: #fff; }
.chk-line { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: 14px; color: var(--sec); cursor: pointer; line-height: 1.5; }
.chk-line input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }

.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(32,32,32,.45); display: grid; place-items: center; padding: 20px; }
.modal { position: relative; background: #fff; border-radius: 16px; padding: 32px; max-width: 460px; width: 100%; box-shadow: var(--shadow-drop); display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 40px); overflow: auto; }
.modal h2 { font-size: 24px; letter-spacing: -.01em; font-weight: 600; margin: 0; }
.modal p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sec); }
.modal form { display: flex; flex-direction: column; }
.modal form > .btn { margin-top: 16px; }
.modal form > p { margin-top: 6px; }
.modal-x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 24px; color: var(--faint); border-radius: 8px; cursor: pointer; }
.modal-x:hover { background: var(--tint); color: var(--ink); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; background: var(--charcoal); color: var(--linen); padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-drop); max-width: calc(100% - 40px); }
@media (max-width: 760px) { .modal { padding: 26px 20px; } }
.save-hint { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--gold); cursor: pointer; }
.save-hint:hover { color: var(--ink); }

/* "Ask YK a question" — floating WhatsApp button on every page */
.ask-btn { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px; background: var(--charcoal); color: var(--champ); font-size: 15px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 16px 34px -14px rgba(32,32,32,.55), 0 0 0 1px rgba(196,170,133,.35) inset; transition: transform .2s, background .2s, color .2s; }
.ask-btn:hover { background: #3A3733; color: #E4CFAE; transform: translateY(-2px); }
.ask-btn svg { width: 22px; height: 22px; flex: none; color: #25D366; }
.ask-btn .ask-short { display: none; }
.ask-btn::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(196,170,133,.55); animation: askPulse 2.8s ease-out 3; pointer-events: none; }
@keyframes askPulse { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }
.site-footer { padding-bottom: 110px; }
@media (max-width: 760px) {
  .ask-btn { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 13px 18px 13px 15px; font-size: 14px; }
  .ask-btn .ask-long { display: none; }
  .ask-btn .ask-short { display: inline; }
}
.toast, #site-toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .ask-btn::after { animation: none; } }
@media print { .ask-btn { display: none; } }

/* Account menu: "My saved work" */
.account .dropdown { width: 300px; }
.acc-saved { border-bottom: 1px solid var(--divider); padding: 6px 0 8px; margin-bottom: 4px; }
.acc-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--gold); padding: 8px 12px 4px; }
.acc-saved a { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; color: var(--ink); }
.acc-saved a:hover { background: #F4EFE6; color: var(--ink); }
.acc-saved a b { font-size: 14px; font-weight: 600; }
.acc-saved a span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-none { margin: 0; padding: 6px 12px 8px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.tag.saved { background: #F3F7EE; border-color: #B9CBA9; color: #4F6B3C; }
.m-account { margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 6px 4px 10px; }
.m-account .acc-phone { padding: 10px 12px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--divider); }
.m-account .acc-saved a { border-bottom: 0; letter-spacing: 0; padding: 10px 12px; }
.m-account .link-btn { padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; color: var(--gold); cursor: pointer; }
