:root {
    color-scheme: light;
    --ink: #172026;
    --muted: #6f7880;
    --line: #dfe4e8;
    --paper: #ffffff;
    --accent: #cbb38b;
    --admin-bg: #f4f6f7;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); background: #f6f7f8; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; }

.kiosk-home {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #111;
}

.home-shell {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background-image: var(--home-bg);
    background-size: cover;
    background-position: center;
}

.home-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.18) 44%, rgba(0,0,0,.44)),
        linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.22) 48%, rgba(0,0,0,.62));
}

.home-header {
    position: absolute;
    top: clamp(34px, 5.4vh, 64px);
    left: clamp(42px, 5vw, 86px);
    right: clamp(42px, 5vw, 86px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    color: #fff;
}

.brand-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 220px; }
.brand-mark img { max-width: 190px; max-height: 96px; object-fit: contain; }
.brand-logo { font-size: clamp(46px, 5vw, 74px); line-height: .85; font-weight: 300; }
.brand-name { font-size: clamp(16px, 1.35vw, 23px); text-transform: uppercase; }

.home-title {
    width: min(780px, 58vw);
    text-align: right;
    text-shadow: 0 2px 18px rgba(0,0,0,.46);
}

.home-title h1 {
    margin: 0 0 24px;
    font-size: clamp(42px, 4.4vw, 72px);
    line-height: 1.03;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0;
}

.home-title p {
    margin: 0 0 0 auto;
    max-width: 670px;
    font-size: clamp(18px, 1.45vw, 26px);
    line-height: 1.45;
    color: rgba(255,255,255,.9);
}

.home-tabs {
    position: absolute;
    left: clamp(32px, 3.7vw, 72px);
    right: clamp(32px, 3.7vw, 72px);
    bottom: clamp(28px, 4.4vh, 58px);
}

.has-home-footer .home-tabs {
    bottom: 82px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    height: clamp(300px, 38vh, 410px);
    box-shadow: 0 24px 58px rgba(0,0,0,.26);
}

.section-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-items: flex-start;
    align-content: start;
    gap: clamp(12px, 1.45vh, 18px);
    min-width: 0;
    padding: clamp(34px, 4.4vh, 50px) clamp(26px, 3.3vw, 56px) clamp(28px, 3.6vh, 42px);
    color: #f6f2ea;
    background: var(--card-bg);
    overflow: hidden;
    transition: transform .18s ease, filter .18s ease;
}

.section-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 42%, rgba(0,0,0,.12));
    pointer-events: none;
}

.section-card:active { transform: scale(.985); filter: brightness(1.09); }
.section-icon { width: clamp(52px, 4.6vw, 78px); height: clamp(52px, 4.6vw, 78px); color: #e3cda7; }
.section-title { max-width: 94%; font-size: clamp(24px, 1.85vw, 34px); line-height: 1.12; font-weight: 400; }
.section-line { width: 48px; height: 2px; background: rgba(227,205,167,.95); }
.section-description {
    max-width: 96%;
    min-width: 0;
    font-size: clamp(15px, 1.05vw, 19px);
    line-height: 1.35;
    color: rgba(255,255,255,.76);
}

.home-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(42px, 5.2vw, 94px);
    color: #fff;
    background: rgba(13,15,16,.88);
    backdrop-filter: blur(14px);
}

.language-pill, .footer-actions, .footer-action {
    display: flex;
    align-items: center;
}

.language-pill { gap: 16px; font-size: 18px; min-height: 52px; }
.chevron { opacity: .75; font-size: 23px; transform: translateY(-2px); }
.footer-actions { gap: 34px; }
.footer-action { gap: 14px; min-height: 56px; padding: 0 10px; font-size: clamp(16px, 1.2vw, 20px); color: rgba(255,255,255,.9); }
.footer-divider { height: 34px; width: 1px; background: rgba(255,255,255,.55); }

.content-page { background: #eef1f2; }
.content-header {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 34px clamp(28px, 5vw, 72px);
    background: #121719;
    color: #fff;
}
.content-brand { display: block; margin-bottom: 8px; color: var(--accent); text-transform: uppercase; }
.content-header h1 { margin: 0; font-size: clamp(38px, 4.5vw, 66px); font-weight: 350; }
.content-header p { max-width: 900px; margin: 14px 0 0; color: rgba(255,255,255,.72); font-size: 22px; line-height: 1.35; }
.back-button, .open-pdf-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 6px;
    background: rgba(255,255,255,.08);
}
.content-shell { width: min(1180px, calc(100% - 56px)); margin: 34px auto 64px; }
.content-block {
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.content-block h2 { margin: 0 0 18px; font-size: 28px; }
.rich-text { font-size: 20px; line-height: 1.65; color: #263138; }
.rich-text p { margin: 0 0 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 18px; }
th { color: #354148; background: #f4f6f7; }
.document-list { display: grid; gap: 12px; }
.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    padding: 18px 22px;
    border: 1px solid #d9e0e3;
    border-radius: 8px;
    background: #f8fafb;
}
.document-item strong { display: block; font-size: 20px; }
.document-item small { display: block; margin-top: 4px; color: var(--muted); }

.pdf-page { height: 100vh; overflow: hidden; background: #202326; }
.pdf-toolbar {
    height: 72px;
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 160px;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    color: #fff;
    background: #111517;
}
.pdf-toolbar strong { overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.pdf-frame { display: block; width: 100%; height: calc(100vh - 72px); border: 0; background: #fff; }

.admin-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; background: var(--admin-bg); }
.admin-sidebar { padding: 28px 22px; color: #fff; background: #111719; }
.admin-logo { display: block; margin-bottom: 28px; font-size: 22px; font-weight: 700; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav a, .link-button { padding: 12px 10px; border: 0; border-radius: 6px; color: rgba(255,255,255,.86); background: transparent; text-align: left; cursor: pointer; }
.admin-sidebar nav a:hover, .link-button:hover { background: rgba(255,255,255,.08); }
.admin-sidebar form { margin-top: 26px; }
.admin-main { padding: 34px; }
.admin-heading { margin-bottom: 24px; }
.admin-heading h1 { margin: 0 0 6px; font-size: 34px; }
.admin-heading p { margin: 0; color: var(--muted); }
.row-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.notice { margin-bottom: 18px; padding: 14px 16px; border-radius: 6px; background: #e8f5ee; color: #135333; }
.notice-error { background: #fff0f0; color: #9d1f1f; }
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #1f6b67;
    cursor: pointer;
}
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat-card { padding: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.stat-card strong { display: block; font-size: 44px; }
.stat-card span { color: var(--muted); }
.admin-form {
    display: grid;
    gap: 18px;
    max-width: 820px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.admin-form label, .login-card label { display: grid; gap: 8px; font-weight: 600; }
.admin-form input, .admin-form textarea, .admin-form select, .login-card input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd7dc;
    border-radius: 6px;
    background: #fff;
}
.admin-form textarea { resize: vertical; }
.checkbox { display: flex !important; grid-template-columns: none; flex-direction: row; align-items: center; gap: 10px; }
.checkbox input { width: auto; min-height: auto; }
.field-help { margin: -6px 0 0; color: var(--muted); }
.admin-table { border: 1px solid var(--line); background: #fff; }
.admin-table th, .admin-table td { font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions a, .actions button { border: 0; padding: 0; color: #1f6b67; background: transparent; cursor: pointer; }
.login-page { display: grid; min-height: 100vh; place-items: center; background: #121719; }
.login-card { display: grid; gap: 18px; width: min(420px, calc(100% - 32px)); padding: 30px; border-radius: 8px; background: #fff; }
.login-card h1 { margin: 0; }

@media (max-width: 1400px) {
    .home-title h1 { font-size: clamp(38px, 4.2vw, 56px); }
    .has-home-footer .home-tabs { bottom: 76px; }
    .section-grid { height: clamp(280px, 39vh, 330px); }
    .section-card { gap: 12px; padding: 30px 30px 24px; }
    .section-icon { width: 58px; height: 58px; }
    .section-title { font-size: 28px; }
    .section-description { font-size: 16px; }
    .home-footer { height: 76px; }
}

@media (max-width: 980px) {
    .home-header { left: 24px; right: 24px; gap: 24px; }
    .home-title { width: 60vw; }
    .home-tabs { left: 18px; right: 18px; }
    .section-card { padding: 26px 20px; }
    .footer-actions { gap: 12px; }
    .content-header { grid-template-columns: 1fr; }
    .admin-page { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
}
