:root {
    --text-strong: rgb(15 23 42);
    --text-body: rgb(51 65 85);
    --text-soft: rgb(100 116 139);
}

html,
body {
    font-family: "Inter", "Plus Jakarta Sans", "Manrope", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0;
    color: inherit;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 1.6rem + 1.2vw, 3.4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.55rem, 1.3rem + 0.7vw, 2.1rem);
    font-weight: 650;
}

h3 {
    font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.35rem);
    font-weight: 600;
}

/* Normalize Tailwind heading scale across the whole app (public + private) */
.text-4xl {
    font-size: clamp(2rem, 1.7rem + 1.05vw, 3rem) !important;
    line-height: 1.12 !important;
}

.text-3xl {
    font-size: clamp(1.72rem, 1.5rem + 0.72vw, 2.35rem) !important;
    line-height: 1.18 !important;
}

.text-2xl {
    font-size: clamp(1.38rem, 1.24rem + 0.48vw, 1.85rem) !important;
    line-height: 1.24 !important;
}

.text-xl {
    font-size: clamp(1.18rem, 1.1rem + 0.24vw, 1.38rem) !important;
    line-height: 1.3 !important;
}

.text-lg {
    font-size: clamp(1.04rem, 1.01rem + 0.14vw, 1.14rem) !important;
    line-height: 1.55 !important;
}

.text-base {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
}

.text-sm {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.tracking-tight {
    letter-spacing: -0.01em !important;
}

p,
li,
small,
label,
input,
select,
textarea,
button,
a {
    letter-spacing: 0;
}

strong {
    color: var(--text-strong);
}

.text-white strong,
.text-white\/95 strong {
    color: inherit;
}

.font-black {
    font-weight: 650 !important;
}

.font-bold {
    font-weight: 600 !important;
}

.nav-link {
    color: rgb(30 41 59);
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    color: rgb(4 120 87);
}

.account-link {
    display: block;
    padding: 0.875rem 1.25rem;
    color: rgb(30 41 59);
    font-weight: 500;
}

.account-link:hover {
    background: rgb(245 245 244);
    color: rgb(4 120 87);
}

.hero-gradient {
    background:
        radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.16), transparent 26rem),
        linear-gradient(135deg, #168457 0%, #19a1bf 55%, #35aef3 100%);
}

.commerce-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #138a63, #22a7d8);
}

.leaflet-container {
    font: inherit;
}

.form-field {
    display: grid;
    gap: 0.55rem;
    font-weight: 600;
    color: var(--text-strong);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgb(214 226 220);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.95rem 1rem;
    font-weight: 450;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgb(5 150 105);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-field small {
    color: var(--text-soft);
    font-weight: 450;
}

.role-card {
    cursor: pointer;
    border: 2px solid rgb(214 226 220);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    color: rgb(16 52 43);
}

.role-card.is-active {
    border-color: rgb(245 181 0);
    background: rgb(255 248 220);
}

.admin-stat {
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgb(229 229 229);
    border-radius: 0.9rem;
    background: #fff;
    padding: 1.2rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.admin-stat span {
    color: rgb(100 116 139);
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-stat strong {
    color: var(--text-strong);
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 0.65rem;
    padding: 0.75rem 0.85rem;
    color: rgb(71 85 105);
    font-weight: 550;
}

.admin-nav-link:hover,
.admin-nav-link.is-active {
    background: rgb(232 246 239);
    color: rgb(4 120 87);
}

.admin-nav-link strong {
    min-width: 1.5rem;
    border-radius: 999px;
    background: rgb(14 165 233);
    padding: 0.12rem 0.45rem;
    color: white;
    font-size: 0.75rem;
    text-align: center;
}

.admin-action,
.admin-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.1rem;
    border: 1px solid rgb(229 229 229);
    border-radius: 0.55rem;
    background: #fff;
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-action:hover {
    border-color: rgb(5 150 105);
}

.admin-delete {
    border-color: transparent;
    color: rgb(220 38 38);
}
