/* PubPress - shared base styles */

:root {
    --brand-color: #0366d6;
    --brand-color-rgb: 3, 102, 214;
    --brand-color-dark: #024fa9;
    --brand-color-darker: #013b7e;
    --brand-color-soft: #eef5fd;
    --brand-text-color: #ffffff;
    --avatar-frame-color: #111111;
    --success-color: #1f7a45;
    --danger-color: #c0392b;
    --warning-color: #c97b00;
    --neutral-0: #ffffff;
    --neutral-50: #fafafa;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-500: #6b7280;
    --neutral-700: #1f2937;
    --neutral-900: #111111;
    --border-color: #d7dbe0;
    --text-color: #111111;
    --muted-text: #5c6670;
    --surface-shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
    --surface-shadow-soft: 0 10px 25px rgba(17, 17, 17, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

a.brand-color,
a.has-brand-color {
    color: inherit !important;
}

img {
    display: block;
    max-width: 100%;
}

.article-author-link {
    color: inherit;
    text-decoration: none;
}

.article-author-link:hover,
.article-author-link:focus-visible {
    text-decoration: underline;
}

.article-image {
    display: block;
    max-width: 100%;
}

.article-richtext ul,
.article-richtext ol,
.article-richtext li {
    margin: 0 0 1rem 1.5rem;
}

.article-richtext ol li,
.article-richtext ul li {
    margin:0;
}

.article-richtext a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-style: double;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    border-color: var(--brand-color);
    background: var(--brand-color);
    color: var(--brand-text-color);
}

.btn-secondary {
    border-color: #111;
    background: #fff;
    color: #111;
}

.btn-danger {
    border-color: var(--danger-color);
    background: var(--danger-color);
    color: #fff;
}

.btn-success {
    border-color: var(--success-color);
    background: var(--success-color);
    color: #fff;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-left: 4px solid;
    background: #fff;
}

.alert-success {
    border-color: var(--success-color);
    background: #edf8f1;
}

.alert-error,
.alert-danger {
    border-color: var(--danger-color);
    background: #fff1f0;
}

.alert-warning {
    border-color: var(--warning-color);
    background: #fff6e6;
}

.alert-info {
    border-color: var(--brand-color);
    background: var(--brand-color-soft);
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(var(--brand-color-rgb), 0.12);
}

textarea {
    resize: vertical;
    min-height: 170px;
}

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.card-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.15;
}
