@font-face {
  font-family: "URWGothic";
  src: url("../fonts/URWGothic-Book.dbff42425d3d.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Regular.7637dfac7457.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, a {
    font-family: "URWGothic", sans-serif;
}

body {
    color: #231f20;
    background-color: #a40404;
    /*background-color: #41a0c9;*/
    font-family: "Roboto", sans-serif;
    line-height: 1.25;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-grid {
    display: grid;
    flex: 1 0 auto;
    min-height: 0;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-rows: 200px minmax(0, 1fr);
}

.site-grid-tile {
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}

.site-grid-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #a40404;
    width: 200px;
    height: 200px;
}

.site-banner-image {
    width: 225px;
    height: 225px;
    display: block;
    margin: 0;
    overflow: visible;
    position: relative;
    z-index: 10;
    top: 20px;
    left: 20px;
}

.site-grid-top-right {
    position: relative;
    background-color: #a40404;
    min-height: 200px;
    padding: 2em 2em 2em 4em;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.column_1 {
    flex: 1 1 auto;
    min-width: 0;
}

.column_2 {
    flex: 0 0 auto;
}

.site-grid-tile.site-grid-top-right h1 {
    font-size: 3em;
    line-height: 1;
    text-shadow:
        0 0 4px rgba(223, 156, 62, 0.9),
        0 0 10px rgba(223, 156, 62, 0.6),
        0 0 18px rgba(223, 156, 62, 0.3);
}
.site-grid-tile.site-grid-top-right h4,
.site-tagline {
    font-size: 1.5em;
    font-weight: bolder;
    line-height: 1;
    text-shadow:
        0 0 3px rgba(223, 156, 62, 0.9),
        0 0 4px rgba(223, 156, 62, 0.6),
        0 0 6px rgba(223, 156, 62, 0.3);
}

a {
    font-weight: bolder;
    line-height: 1;
    text-shadow:
        0 0 3px rgba(238, 238, 238, 0.9),
        0 0 4px rgba(238, 238, 238, 0.6),
        0 0 6px rgba(238, 238, 238, 0.3);
}

.site-grid-left-column {
    background-color: #a40404;
    max-width: 200px;
}

.site-grid-main {
    /*background-color: #E8C6BF;*/
    background-color: #eee;
    padding: 4em 4em 4em 4.5rem;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.menu {
    font-family: "Lora", serif;
    margin: 3em 1em 8px 1em;
    padding: 1em;
}

.menu a {
    text-shadow: #c1c1c1 4px 4px 8px;
}

.menu ul {
    list-style-type: none;
    padding: 8px;
    margin: 8px;
    background-color: white;
    border-radius: 12px;
}

.menu li {
    margin: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle {
    display: none;
}

.user-menu,
.user-menu a
{
    font-family: "Lora", serif;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-family: "Lora", serif;
    font-size: 1em;
    font-weight: normal;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.user-dropdown-toggle:hover,
.user-dropdown-toggle:focus-visible {
    background: none;
    box-shadow: none;
    transform: none;
}

.user-dropdown-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    transition: transform 0.15s ease;
}

.user-dropdown.open .user-dropdown-caret {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin: 0.5em 0 0 0;
    padding: 0.4em 0;
    min-width: 160px;
    list-style: none;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(35, 31, 32, 0.3);
    z-index: 20;
}

.user-dropdown.open .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu li {
    margin: 0;
}

.user-dropdown-menu a {
    display: block;
    padding: 0.5em 1em;
    font-family: "Lora", serif;
    color: #231f20;
    text-shadow: none;
    white-space: nowrap;
}

.user-dropdown-menu a:hover {
    background-color: rgba(164, 4, 4, 0.08);
}

/* Compact layout: column_2 floats top-right of its section, the nav
   collapses into a floating circular button bottom-left, and main
   content takes the full width. */
@media (max-width: 999px) {
    .site-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .site-grid-logo {
        display: none;
    }

    .column_1 {
        padding-right: 0.5em;
    }

    .column_2 {
        position: absolute;
        top: 1em;
        right: 1em;
    }

    .site-grid-left-column {
        position: fixed;
        left: 1em;
        bottom: 1em;
        top: auto;
        z-index: 40;
        max-width: none;
        width: 56px;
        height: 56px;
        overflow: hidden;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
        transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease;
    }

    .site-grid-left-column.open {
        width: 220px;
        height: auto;
        max-height: 70vh;
        border-radius: 16px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        padding: 0;
        flex: 0 0 auto;
        background: none;
        border: none;
        box-shadow: none;
        cursor: pointer;
    }

    .menu-toggle-icon {
        display: inline-block;
        width: 22px;
        height: 16px;
        position: relative;
    }

    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #fff;
        box-shadow: 0 7px 0 #fff;
    }

    .menu-toggle-icon::before {
        top: 0;
    }

    .menu-toggle-icon::after {
        bottom: 0;
    }

    .menu-panel {
        display: none;
        max-height: calc(70vh - 56px);
        overflow-y: auto;
    }

    .site-grid-left-column.open .menu-panel {
        display: block;
    }

    .site-grid-main {
        grid-column: 1 / -1;
        border-radius: 0;
    }
}

footer {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding: 1em;
    text-align: center;
}

button,
input[type="submit"],
input[type="button"] {
    font-family: "URWGothic", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: #a40404;
    border: none;
    border-radius: 4px;
    padding: 0.75em 1.6em;
    cursor: pointer;
    transition: background 0.15s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #820303;
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
    background: #6b0202;
}

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
    outline: 3px solid rgba(164, 4, 4, 0.4);
    outline-offset: 2px;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
    font-family: "URWGothic", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: #a40404;
    border: none;
    border-radius: 4px;
    padding: 0.4em 1em;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-right: 0.75em;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
    background: #820303;
}

input[type="file"]::file-selector-button:active,
input[type="file"]::-webkit-file-upload-button:active {
    background: #6b0202;
}

.blog-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.blog-gallery-item {
    text-align: center;
}

/* Rich text image formats, registered in base/image_formats.py */
.richtext-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(35, 31, 32, 0.12);
}

.richtext-image.left {
    float: left;
    margin: 0.25em 1.5em 1em 0;
}

.richtext-image.right {
    float: right;
    margin: 0.25em 0 1em 1.5em;
}

.richtext-image.full-width {
    display: block;
    width: 100%;
    margin: 1.5em 0;
}

.richtext-image.thumbnail,
.richtext-image.smaller,
.richtext-image.small,
.richtext-image.medium {
    display: block;
    margin: 1.5em auto;
}

.richtext-image.left-aligned {
    float: left;
    margin: 0.25em 1.5em 1em 0;
}

.richtext-image.right-aligned {
    float: right;
    margin: 0.25em 0 1em 1.5em;
}

.tags a button {
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    color: #000;
    background: #e8e0d4;
    padding: 0.4em 0.9em;
}

.tags a button:hover {
    background: #dcd2c2;
}

.tags a button:active {
    background: #cfc3ae;
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    font-family: "Lora", serif;
    font-size: 1rem;
    color: #231f20;
    background-color: #fff8f4;
    border: 1px solid rgba(164, 4, 4, 0.35);
    border-radius: 4px;
    padding: 0.85em 1em;
    box-shadow:
        0 3px 8px rgba(35, 31, 32, 0.12),
        inset 0 1px 2px rgba(35, 31, 32, 0.08);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23231f20' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    padding-right: 40px;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: rgba(35, 31, 32, 0.55);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="url"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
textarea:hover,
select:hover {
    border-color: rgba(164, 4, 4, 0.6);
    background-color: #fffdfb;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #df9c3e;
    background-color: #fff;
    box-shadow:
        0 0 0 3px rgba(223, 156, 62, 0.28),
        0 4px 12px rgba(35, 31, 32, 0.16),
        inset 0 1px 2px rgba(35, 31, 32, 0.08);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="search"]:disabled,
input[type="url"]:disabled,
input[type="tel"]:disabled,
input[type="number"]:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #eee;
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

.account-menu {
    display: none;
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    font-family: "Lora", serif;
    color: #231f20;
    background-color: rgba(255, 248, 244, 0.75);
    border: 1px solid rgba(164, 4, 4, 0.16);
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(35, 31, 32, 0.08);
}

.account-menu strong {
    display: inline;
    margin-right: 0.6rem;
    font-family: "URWGothic", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: #a40404;
}

.account-menu ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.account-menu li {
    margin: 0;
}

.account-menu li:not(:last-child)::after {
    content: "·";
    margin-left: 0.75rem;
    color: rgba(164, 4, 4, 0.45);
}

.account-menu a {
    color: #8f0303;
    font-family: "Lora", serif;
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 0.2em;
    text-shadow: none;
    transition:
        color 0.15s ease,
        text-decoration-color 0.15s ease;
}

.account-menu a:hover {
    color: #c55218;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.account-menu a:focus-visible {
    outline: 2px solid rgba(223, 156, 62, 0.65);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Form styling for better alignment and appearance */
form {
    max-width: 600px;
    margin: 0 auto;
}

form p {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

form p[hidden] {
    display: none;
}

form label {
    font-family: "URWGothic", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #231f20;
    margin-bottom: 0.25rem;
    display: block;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    max-width: none;
}

/* Help text styling */
.helptext {
    font-family: "Lora", serif;
    font-size: 0.85rem;
    color: rgba(35, 31, 32, 0.75);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Password requirements list */
form ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

form ul li {
    font-family: "Lora", serif;
    font-size: 0.85rem;
    color: rgba(35, 31, 32, 0.75);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

/* Submit button styling */
form button[type="submit"] {
    margin-top: 2rem;
    width: 100%;
    max-width: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Search form: full width, not centered */
.search-form {
    display: flex;
    align-items: stretch;
    gap: 0.75em;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 1.5em 0 2em;
}

.search-form input[type="text"] {
    flex: 1 1 auto;
    max-width: none;
}

.search-form input[type="submit"] {
    flex: 0 0 auto;
}

/* Social auth provider list */
.provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.provider-list li {
    margin: 0;
}

.provider-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: "URWGothic", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    background: #a40404;
    border: none;
    border-radius: 4px;
    padding: 0.75em 1.6em;
    text-decoration: none;
    transition: background 0.15s ease;
    text-shadow: none;
}

.provider-btn:hover {
    background: #820303;
}

.provider-btn:active {
    background: #6b0202;
}

.provider-btn:focus-visible {
    outline: 3px solid rgba(164, 4, 4, 0.4);
    outline-offset: 2px;
}

.provider-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* Google's brand guidelines call for a white button with a grey border */
.provider-btn.provider-btn-google {
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
}

.provider-btn.provider-btn-google:hover {
    background: #f7f8f8;
}

.provider-btn.provider-btn-google:active {
    background: #f1f3f4;
}

.provider-btn.provider-btn-google:focus-visible {
    outline-color: rgba(66, 133, 244, 0.4);
}

/* Apple's brand guidelines call for a black "Sign in with Apple" button */
.provider-btn.provider-btn-apple {
    background: #000;
    color: #fff;
    border: none;
}

.provider-btn.provider-btn-apple:hover {
    background: #1a1a1a;
}

.provider-btn.provider-btn-apple:active {
    background: #333;
}

.provider-btn.provider-btn-apple:focus-visible {
    outline-color: rgba(255, 255, 255, 0.5);
}

/* Alternative grid-based layout for wider screens */
@media (min-width: 768px) {
    .form-grid {
        display: grid;
        grid-template-columns: 150px 1fr;
        gap: 1rem;
        align-items: start;
        margin-bottom: 1.5rem;
    }

    .form-grid label {
        margin-bottom: 0;
        padding-top: 0.85em;
        text-align: right;
    }

    .form-grid .input-wrapper {
        display: flex;
        flex-direction: column;
    }

    .form-grid .helptext,
    .form-grid ul {
        margin-left: 0;
    }
}

/* ── Comments ── */

.comment-section {
    margin-top: 2.5rem;
    border-top: 2px solid rgba(164, 4, 4, 0.25);
    padding-top: 1.5rem;
}

.comment-section-heading {
    font-family: "URWGothic", sans-serif;
    color: #a40404;
    margin-bottom: 1.25rem;
}

.comment {
    background: rgba(255, 248, 244, 0.75);
    border: 1px solid rgba(164, 4, 4, 0.16);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
}

.comment--reply {
    margin-left: 2rem;
    background: rgba(255, 252, 250, 0.6);
}

.comment--draft {
    border-style: dashed;
    opacity: 0.85;
}

.comment--pending {
    border-color: rgba(164, 4, 4, 0.4);
    background: rgba(255, 244, 244, 0.75);
}

.comment-meta {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.comment-author {
    font-family: "URWGothic", sans-serif;
    font-weight: bold;
    color: #a40404;
}

.comment-date {
    color: #666;
}

.comment-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-family: "URWGothic", sans-serif;
    letter-spacing: 0.03em;
}

.comment-status--draft {
    background: #e8e8e8;
    color: #555;
}

.comment-status--pending {
    background: rgba(164, 4, 4, 0.12);
    color: #a40404;
}

.comment-body {
    font-family: "Lora", serif;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.comment-action-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    max-width: none;
}

.comment-replies {
    margin-top: 0.75rem;
}

.reply-form,
.edit-form {
    margin-top: 0.75rem;
}

.edit-form-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.comment-actions .btn,
.edit-form-actions .btn {
    display: inline-block;
    width: auto;
    max-width: none;
    margin: 0;
}

.reply-form textarea,
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.75rem;
    font-family: "Lora", serif;
    font-size: 0.95rem;
    border: 1px solid rgba(164, 4, 4, 0.3);
    border-radius: 6px;
    background: rgba(255, 252, 250, 0.9);
    color: #231f20;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.comment-form-wrapper {
    margin-top: 2rem;
}

.comment-form-wrapper h3 {
    font-family: "URWGothic", sans-serif;
    color: #a40404;
    margin-bottom: 0.75rem;
}

.comment-empty,
.comment-login-prompt {
    font-family: "Lora", serif;
    color: #555;
    font-style: italic;
}

.comment-login-prompt a {
    color: #a40404;
}

.btn {
    display: inline-block;
    box-sizing: border-box;
    padding: 0.35rem 0.85rem;
    border: none;
    border-radius: 5px;
    font-family: "URWGothic", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.btn-submit {
    background: #a40404;
    color: #fff;
}

.btn-submit:hover {
    background: #820303;
}

.btn-approve {
    background: #2e7d32;
    color: #fff;
}

.btn-approve:hover {
    background: #1b5e20;
}

.btn-reject {
    background: #b71c1c;
    color: #fff;
}

.btn-reject:hover {
    background: #7f0000;
}

.btn-reply,
.btn-edit,
.btn-publish {
    background: transparent;
    color: #a40404;
    border: 1px solid rgba(164, 4, 4, 0.4);
}

.btn-reply:hover,
.btn-edit:hover,
.btn-publish:hover {
    background: rgba(164, 4, 4, 0.08);
}

/* Account settings page */
.account-tabs {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    border-bottom: 1px solid rgba(35, 31, 32, 0.2);
}

.account-tab {
    font-family: "URWGothic", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(35, 31, 32, 0.6);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.6em 0.2em;
    margin-bottom: -1px;
    cursor: pointer;
}

.account-tab:hover {
    background: none;
    color: #231f20;
}

.account-tab[aria-selected="true"] {
    color: #a40404;
    border-bottom-color: #a40404;
}

.account-settings {
    max-width: 600px;
    margin: 0 auto;
}

.messages {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    padding: 0.75em 1em;
    list-style: none;
    background: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.4);
    border-radius: 4px;
    font-family: "Lora", serif;
}

.messages li {
    margin: 0;
}

.contact-cooldown-notice {
    max-width: 420px;
    margin: 0 0 1.5rem;
    padding: 0.75em 1em;
    background: rgba(223, 156, 62, 0.12);
    border: 1px solid rgba(223, 156, 62, 0.5);
    border-radius: 4px;
    font-family: "Lora", serif;
}

.account-field-static {
    margin-bottom: 1.5rem;
}

.account-field-static label {
    font-family: "URWGothic", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #231f20;
    display: block;
    margin-bottom: 0.25rem;
}

.account-field-static p {
    font-family: "Lora", serif;
    margin: 0;
}

.profile-picture-group {
    border: 1px solid rgba(35, 31, 32, 0.25);
    border-radius: 4px;
    padding: 1.25rem;
    margin: 0 0 1.5rem;
}

.profile-picture-group legend {
    font-family: "URWGothic", sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #231f20;
    padding: 0 0.5em;
}

.profile-picture-columns {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.profile-picture-preview {
    flex: 0 0 auto;
    width: 120px;
}

.profile-picture-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

.profile-picture-preview .no-avatar {
    font-family: "Lora", serif;
    font-size: 0.85rem;
    color: rgba(35, 31, 32, 0.6);
    margin: 0;
}

.profile-picture-fields {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avatar-filename {
    font-family: "Lora", serif;
    font-size: 0.9rem;
    word-break: break-all;
}

.avatar-clear {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.avatar-clear input[type="checkbox"] {
    width: auto;
}

.avatar-selected-hint {
    font-family: "Lora", serif;
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(35, 31, 32, 0.75);
    margin: 0;
}

input[type="submit"].is-dirty {
    background: #6b21a8;
}

input[type="submit"].is-dirty:hover {
    background: #581c87;
}

input[type="submit"].is-dirty:active {
    background: #4a1772;
}

input[type="submit"].is-dirty:focus-visible {
    outline-color: rgba(107, 33, 168, 0.4);
}

.password-reset-form {
    margin-top: 2rem;
}

.password-reset-form button[type="submit"] {
    margin-left: 0;
    margin-right: 0;
}

.contact-form input[type="text"] {
    max-width: 420px;
}

.contact-form-buttons {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* The [type] attribute selector matches the specificity of the site-wide
   "form button[type='submit']" rule (which sets margin-top/width/display
   for standalone centered buttons), so it can be fully overridden here. */
.contact-form-buttons button[type] {
    margin: 0;
    width: 110px;
    max-width: none;
    display: inline-block;
}

.contact-form-buttons button[type="submit"] {
    border: 1px solid transparent;
}

.contact-form-buttons button[type="reset"] {
    background: #fff;
    color: #a40404;
    border: 1px solid rgba(164, 4, 4, 0.4);
}

.contact-form-buttons button[type="reset"]:hover {
    background: rgba(164, 4, 4, 0.08);
}

.intro {
    font-style: italic;
}