/* assets/site.css — shared styles for v10 pages (loaded after style4.css) */

:root { --brand: #4400ff; --brand-dark: #2e00b3; --ink: #1d1d2b; --muted: #5a5a6e; --line: #e4e4ee; --soft: #f5f6fc; }
body { color: var(--ink); }
/* style4.css colors EVERY element purple (* { color: #4105f5 }). On the new pages, text
   takes its normal dark color instead, and only links are purple. */
body * { color: inherit; }
body a { color: var(--brand); }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 5000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #ffb400; outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { box-shadow: 0 1px 0 var(--line); }
.site-header .nav.container { max-width: 1240px; padding: 14px 24px; gap: 12px; }
.site-header .logo { font-size: .95rem; order: 1; flex-shrink: 0; }
.site-header .navbar { order: 2; gap: 2px; align-items: center; margin-left: auto; }
.site-header .navbar a { padding: 8px 10px; font-size: .86rem; letter-spacing: .02em; white-space: nowrap; }
.site-header .navbar a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-header .navbar .nav-login { border: 1.5px solid var(--brand); border-radius: 8px; }
.site-header .lang-pick { order: 3; position: relative; }
.site-header .menu-open { order: 4; }
.site-header .menu-toggle, .site-header .menu-open, .site-header .menu-close-item, .site-header .menu-backdrop { display: none; }

.lang-pick summary { list-style: none; cursor: pointer; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
    font-size: .88rem; color: var(--brand); white-space: nowrap; user-select: none; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick ul { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; min-width: 160px; z-index: 1200; }
.lang-pick a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: .95rem; }
.lang-pick a:hover, .lang-pick a[aria-current] { background: var(--soft); color: var(--brand); }

@media (max-width: 1100px) {
    .site-header .nav.container { padding: 12px 14px; }
    .site-header .logo { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }
    .site-header .lang-pick { margin-left: auto; }
    .site-header .lang-pick summary { padding: 6px 8px; font-size: .82rem; }
    .site-header .menu-open { display: block; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 4px 6px; color: var(--brand); }
    .site-header .navbar { position: fixed; top: 0; right: -290px; width: 280px; height: 100vh; background: #fff; margin: 0;
        flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; gap: 10px; display: flex; visibility: hidden;
        transition: right .25s ease, visibility 0s linear .25s; box-shadow: -4px 0 18px rgba(0,0,0,.15); z-index: 1001; overflow-y: auto; }
    .site-header .navbar li { width: 100%; }
    .site-header .navbar a { font-size: 1.05rem; display: block; padding: 8px 4px; }
    .site-header .navbar .nav-login { text-align: center; margin-top: 6px; }
    .site-header .menu-close-item { display: block; align-self: flex-end; width: auto !important; }
    .site-header .menu-close { font-size: 1.6rem; cursor: pointer; color: #333; }
    .site-header .menu-toggle:checked ~ .navbar { right: 0; visibility: visible; transition: right .25s ease; }
    .site-header .menu-toggle:checked ~ .menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1000; }
}
@media (max-width: 420px) { .site-header .logo { font-size: .7rem; letter-spacing: -.01em; } }

/* ---------- general page layout ---------- */
.page { padding: 96px 16px 56px; max-width: 1100px; margin: 0 auto; }
.page.narrow { max-width: 760px; }
.page h1 { font-size: 2rem; line-height: 1.2; margin-bottom: .5rem; color: var(--ink); }
.page h2 { font-size: 1.35rem; margin: 1.8rem 0 .6rem; color: var(--ink); }
.page p, .page li { line-height: 1.6; }
.page .lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; margin-bottom: 1.2rem; }
.page a { color: var(--brand); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; }
.card.soft { background: var(--soft); border-color: transparent; }
.btn-primary, .btn-secondary { display: inline-block; padding: .78rem 1.35rem; border-radius: 10px; font-weight: 700; font-size: 1rem;
    cursor: pointer; border: 2px solid var(--brand); text-align: center; line-height: 1.2; }
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand) !important; }
.notice { border-radius: 10px; padding: .8rem 1rem; margin: 1rem 0; line-height: 1.5; }
.notice.ok { background: #eaf7ee; color: #1f5a33; border: 1px solid #bfe3cb; }
.notice.err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }
.notice.info { background: #fff8e6; color: #4a3b00; border: 1px solid #f0d58a; }
.mt-note { font-size: .75em; color: var(--muted); font-weight: 400; }

/* forms */
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { font-weight: 600; display: flex; flex-direction: column; gap: .35rem; font-size: .98rem; }
.form label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form select, .form textarea {
    padding: .75rem .85rem; border: 1px solid #c9c9d6; border-radius: 9px; font-size: 1rem; background: #fff; color: var(--ink); width: 100%; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } .page { padding-top: 84px; } .page h1 { font-size: 1.6rem; } }
.auth-card { max-width: 440px; margin: 0 auto; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); cursor: pointer; font-weight: 600; }

/* save (heart) button on cards */
.save-btn { position: absolute; top: 10px; left: 10px; z-index: 4; width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; font-size: 1.25rem; line-height: 1;
    color: #888; display: flex; align-items: center; justify-content: center; }
.save-btn[aria-pressed="true"] { color: #e0245e; }
.save-btn:hover { transform: scale(1.06); }
.badge.verified { background: #e6f4ff; color: #0b5394; }
.badge.closed { background: #eee; color: #555; }

/* footer */
.site-footer { background: #11112a; color: #d8d8e8; margin-top: 2rem; }
.site-footer .footer-inner { max-width: 1100px; margin: 0 auto; padding: 2.2rem 16px 1rem; display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 1.6rem; }
.site-footer strong { color: #fff; }
.site-footer p { line-height: 1.55; font-size: .92rem; margin-top: .4rem; color: #d8d8e8; }
.site-footer a { color: #c9c2ff; }
.site-footer nav { display: flex; flex-direction: column; gap: .45rem; }
.site-footer .foot-small { font-size: .8rem; color: #a9a9c0; }
.site-footer .copyright-line { text-align: center; font-size: .8rem; color: #8d8da8; padding: .8rem 0 1.2rem; }
@media (max-width: 760px) { .site-footer .footer-inner { grid-template-columns: 1fr; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d1d2b; color: #fff; padding: .7rem 1.1rem;
    border-radius: 10px; z-index: 4000; font-size: .95rem; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.toast a { color: #c9c2ff; font-weight: 700; }

/* Larger text option */
html.large-text body { zoom: 1.15; }
.site-header .text-size { order: 3; border: 1px solid var(--line); background: #fff; color: var(--brand); border-radius: 8px; padding: 5px 9px;
    font-weight: 800; cursor: pointer; font-size: .95rem; line-height: 1; }
.site-header .text-size sup { font-size: .65em; }
.site-header .text-size[aria-pressed="true"] { background: var(--brand); color: #fff; }
.site-header .lang-pick { order: 4; }
.site-header .menu-open { order: 5; }
@media (max-width: 1100px) { .site-header .text-size { margin-left: auto; } .site-header .lang-pick { margin-left: 0; } }

/* Accessibility: links inside text are underlined (not just colored), and grey text is dark enough */
.home-note a, .source-note a, .hint a, .crumbs a, .page p a, .find-page .lead a, .rent-note a, .fl-note a { text-decoration: underline; text-underline-offset: 2px; }
.rent-note, .updated { color: #5f5f6e !important; }
