
html[data-theme="light"],
:root {
    --primary: #79aec8;
    --secondary: #417690;
    --accent: #417893;
    --primary-fg: #fff;

    --body-fg: #333;
    --body-bg: #fff;
    --body-quiet-color: #666;
    --body-medium-color: #000;
    --body-loud-color: #000;

    --header-color: #ffc;
    --header-branding-color: #F5DD5D;
    --header-bg: var(--secondary);
    --header-link-color: var(--primary-fg);

    --breadcrumbs-fg: #c4dce8;
    --breadcrumbs-link-fg: var(--body-bg);
    --breadcrumbs-bg: #264b5d;

    --link-fg: #417893;
    --link-hover-color: #036;
    --link-selected-fg: var(--secondary);

    --hairline-color: #e8e8e8;
    --border-color: #ccc;

    --error-fg: #ba2121;

    --message-success-bg: #dfd;
    --message-warning-bg: #ffc;
    --message-error-bg: #ffefef;

    --darkened-bg: #f8f8f8; /* A bit darker than --body-bg */
    --selected-bg: #e4e4e4; /* E.g. selected table cells */
    --selected-row: #ffc;

    --button-fg: #fff;
    --button-bg: var(--secondary);
    --button-hover-bg: #205067;
    --default-button-bg: var(--button-hover-bg);
    --default-button-hover-bg: var(--button-bg);
    --close-button-bg: #747474;
    --close-button-hover-bg: #333;
    --delete-button-bg: #ba2121;
    --delete-button-hover-bg: #a41515;

    --object-tools-fg: var(--button-fg);
    --object-tools-bg: var(--close-button-bg);
    --object-tools-hover-bg: var(--close-button-hover-bg);

    --font-family-primary: "Segoe UI",
    system-ui,
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
    --font-family-monospace: ui-monospace,
    Menlo,
    Monaco,
    "Cascadia Mono",
    "Segoe UI Mono",
    "Roboto Mono",
    "Oxygen Mono",
    "Ubuntu Monospace",
    "Source Code Pro",
    "Fira Mono",
    "Droid Sans Mono",
    "Courier New",
    monospace,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";

    color-scheme: light;
}


/* Global variables. */
:root {
    /* Set sans-serif & mono fonts */
    --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
    "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
    "Helvetica Neue", sans-serif;
    --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
    --standard-border-radius: 5px;
    --border-width: 1px;

    /* Default (light) theme */
    --bg: #fff;
    --accent-bg: #f5f7ff;
    --text: #212121;
    --text-light: #585858;
    --border: #898EA4;
    --accent: #0d47a1;
    --accent-hover: #1266e2;
    --accent-text: var(--bg);
    --code: #d81b60;
    --preformatted: #444;
    --marked: #ffdd33;
    --disabled: #efefef;
}


/* Sticky footer layout */

.site-footer {
    margin-top: 5rem !important; /* pushes footer to bottom when possible */
}


.text-danger {
    color: #dc3545; /* red */
}

.text-danger.small,
.small.text-danger {
    font-size: 0.95rem;
}


/* THEME SWITCH */
.theme-toggle {
    cursor: pointer;
    border: none;
    padding: 0;
    background: transparent;
    vertical-align: middle;
    margin-inline-start: 5px;
    margin-top: -1px;
}

.theme-toggle svg {
    vertical-align: middle;
    height: 1.5rem;
    width: 1.5rem;
    display: none;
}

body {
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    font-family: var(--font-family-primary);
    color: var(--body-fg);
    background: var(--body-bg);
}

/* LINKS */

a:link, a:visited {
    color: var(--link-fg);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

a:focus, a:hover {
    color: var(--link-hover-color);
}

a:focus {
    text-decoration: underline;
}

a img {
    border: none;
}

a.section:link, a.section:visited {
    color: var(--header-link-color);
    text-decoration: none;
}

a.section:focus, a.section:hover {
    text-decoration: underline;
}

/* GLOBAL DEFAULTS */

p, ol, ul, dl {
    margin: .2em 0 .8em 0;
}

p {
    padding: 0;
    line-height: 140%;
}

h1, h2, h3, h4, h5 {
    font-weight: bold;
}

h1 {
    margin: 0 0 20px;
    font-weight: 300;
    font-size: 1.25rem;
}

h2 {
    font-size: 1rem;
    margin: 1em 0 .5em 0;
}

h2.subhead {
    font-weight: normal;
    margin-top: 0;
}

h3 {
    font-size: 0.875rem;
    margin: .8em 0 .3em 0;
    color: var(--body-medium-color);
    font-weight: bold;
}

h4 {
    font-size: 0.75rem;
    margin: 1em 0 .8em 0;
    padding-bottom: 3px;
    color: var(--body-medium-color);
}

h5 {
    font-size: 0.625rem;
    margin: 1.5em 0 .5em 0;
    color: var(--body-quiet-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

ul > li {
    list-style-type: square;
    padding: 1px 0;
}

li ul {
    margin-bottom: 0;
}


dt {
    font-weight: bold;
    margin-top: 4px;
}

dd {
    margin-left: 0;
}

form {
    margin: 0;
    padding: 0;
}

fieldset {
    margin: 0;
    min-width: 0;
    padding: 0;
    border: none;
    border-top: 1px solid var(--hairline-color);
}

details summary {
    cursor: pointer;
}

blockquote {
    font-size: 0.6875rem;
    color: #777;
    margin-left: 2px;
    padding-left: 10px;
    border-left: 5px solid #ddd;
}

code, pre {
    font-family: var(--font-family-monospace);
    color: var(--body-quiet-color);
    font-size: 0.75rem;
    overflow-x: auto;
}

pre.literal-block {
    margin: 10px;
    background: var(--darkened-bg);
    padding: 6px 8px;
}

code strong {
    color: #930;
}

hr {
    clear: both;
    color: var(--hairline-color);
    background-color: var(--hairline-color);
    height: 1px;
    border: none;
    margin: 0;
    padding: 0;
    line-height: 1px;
}

/* TEXT STYLES & MODIFIERS */

.small {
    font-size: 0.6875rem;
}

.mini {
    font-size: 0.625rem;
}

.help, p.help, form p.help, div.help, form div.help, div.help li {
    font-size: 0.6875rem;
    color: var(--body-quiet-color);
}

div.help ul {
    margin-bottom: 0;
}

.help-tooltip {
    cursor: help;
}

p img, h1 img, h2 img, h3 img, h4 img, td img {
    vertical-align: middle;
}

.quiet, a.quiet:link, a.quiet:visited {
    color: var(--body-quiet-color);
    font-weight: normal;
}

.clear {
    clear: both;
}

.nowrap {
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

/*
Minifiers remove the default (text) "type" attribute from "input" HTML tags.
Add input:not([type]) to make the CSS stylesheet work the same.
*/
input:not([type]), input[type=text], input[type=password], input[type=email],
input[type=url], input[type=number], input[type=tel], textarea, select,
.vTextField {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 6px;
    margin-top: 0;
    color: var(--body-fg);
    background-color: var(--body-bg);
}

/*
Minifiers remove the default (text) "type" attribute from "input" HTML tags.
Add input:not([type]) to make the CSS stylesheet work the same.
*/
input:not([type]):focus, input[type=text]:focus, input[type=password]:focus,
input[type=email]:focus, input[type=url]:focus, input[type=number]:focus,
input[type=tel]:focus, textarea:focus, select:focus, .vTextField:focus {
    border-color: var(--body-quiet-color);
}

select {
    height: 1.875rem;
}

select[multiple] {
    /* Allow HTML size attribute to override the height in the rule above. */
    height: auto;
    min-height: 150px;
}

/* FORM BUTTONS */

.button, input[type=submit], input[type=button], .submit-row input, a.button {
    background: var(--button-bg);
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    color: var(--button-fg);
    cursor: pointer;
    transition: background 0.15s;
}

a.button {
    padding: 4px 5px;
}

.button:active, input[type=submit]:active, input[type=button]:active,
.button:focus, input[type=submit]:focus, input[type=button]:focus,
.button:hover, input[type=submit]:hover, input[type=button]:hover {
    background: var(--button-hover-bg);
}

.button[disabled], input[type=submit][disabled], input[type=button][disabled] {
    opacity: 0.4;
}

.button.default, input[type=submit].default, .submit-row input.default {
    border: none;
    font-weight: 400;
    background: var(--default-button-bg);
}

.button.default:active, input[type=submit].default:active,
.button.default:focus, input[type=submit].default:focus,
.button.default:hover, input[type=submit].default:hover {
    background: var(--default-button-hover-bg);
}

.button[disabled].default,
input[type=submit][disabled].default,
input[type=button][disabled].default {
    opacity: 0.4;
}

/* MESSAGES & ERRORS */

ul.messagelist {
    padding: 0;
    margin: 0;
}

ul.messagelist li {
    display: block;
    font-weight: 400;
    font-size: 0.8125rem;
    padding: 10px 10px 10px 65px;
    margin: 0 0 10px 0;
    background-size: 16px auto;
    color: var(--body-fg);
    word-break: break-word;
}

ul.messagelist li.warning {
    background-size: 14px auto;
}

ul.messagelist li.error {
    background-size: 16px auto;
}

.errornote {
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    padding: 10px 12px;
    margin: 0 0 10px 0;
    color: var(--error-fg);
    border: 1px solid var(--error-fg);
    border-radius: 4px;
    background-color: var(--body-bg);
    background-position: 5px 12px;
    overflow-wrap: break-word;
}

ul.errorlist {
    margin: 0 0 4px;
    padding: 0;
    color: var(--error-fg);
    background: var(--body-bg);
}

ul.errorlist li {
    font-size: 0.8125rem;
    display: block;
    margin-bottom: 4px;
    overflow-wrap: break-word;
}

ul.errorlist li:first-child {
    margin-top: 0;
}

ul.errorlist li a {
    color: inherit;
    text-decoration: underline;
}

td ul.errorlist {
    margin: 0;
    padding: 0;
}

td ul.errorlist li {
    margin: 0;
}

.form-row.errors {
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--hairline-color);
    background: none;
}

.form-row.errors ul.errorlist li {
    padding-left: 0;
}

.errors input, .errors select, .errors textarea,
td ul.errorlist + input, td ul.errorlist + select, td ul.errorlist + textarea {
    border: 1px solid var(--error-fg);
}

.description {
    font-size: 0.75rem;
    padding: 5px 0 0 12px;
}

/* HEADER */

#header {
    width: auto;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background: var(--header-bg);
    color: var(--header-color);
}

#header a:link, #header a:visited, #logout-form button {
    color: var(--header-link-color);
}

#header a:focus, #header a:hover {
    text-decoration: underline;
}

@media (forced-colors: active) {
    #header {
        border-bottom: 1px solid;
    }
}

#branding {
    display: flex;
}

#site-name {
    padding: 0;
    margin: 0;
    margin-inline-end: 20px;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--header-branding-color);
}

#site-name a:link, #site-name a:visited {
    color: var(--header-branding-color);
}

#branding h2 {
    padding: 0 10px;
    font-size: 0.875rem;
    margin: -8px 0 8px 0;
    font-weight: normal;
    color: var(--header-color);
}

#branding a:hover {
    text-decoration: none;
}

#logout-form {
    display: inline;
}

#logout-form button {
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-family-primary);
}

#user-tools {
    float: right;
    margin: 0 0 0 20px;
    text-align: right;
}

#user-tools, #logout-form button {
    padding: 0;
    font-weight: 300;
    font-size: 0.6875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#user-tools a, #logout-form button {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

#user-tools a:focus, #user-tools a:hover,
#logout-form button:active, #logout-form button:hover {
    text-decoration: none;
    border-bottom: 0;
}

#logout-form button:active, #logout-form button:hover {
    margin-bottom: 1px;
}

.base-svgs {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    color: var(--body-fg);
    background-color: var(--body-bg);
}

/*
Fully hide screen reader text so we only show the one matching the current
theme.
*/
.theme-toggle .visually-hidden {
    display: none;
}

html[data-theme="auto"] .theme-toggle .theme-label-when-auto {
    display: block;
}

html[data-theme="dark"] .theme-toggle .theme-label-when-dark {
    display: block;
}

html[data-theme="light"] .theme-toggle .theme-label-when-light {
    display: block;
}

/* ICONS */
.theme-toggle svg.theme-icon-when-auto,
.theme-toggle svg.theme-icon-when-dark,
.theme-toggle svg.theme-icon-when-light {
    fill: var(--header-link-color);
    color: var(--header-bg);
}

html[data-theme="auto"] .theme-toggle svg.theme-icon-when-auto {
    display: block;
}

html[data-theme="dark"] .theme-toggle svg.theme-icon-when-dark {
    display: block;
}

html[data-theme="light"] .theme-toggle svg.theme-icon-when-light {
    display: block;
}

/* that was dark mode */


/* Reset box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Reset default appearance */
textarea,
select,
input,
progress {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

html {
    /* Set the font globally */
    font-family: var(--sans-font);
    scroll-behavior: smooth;
}

/* Make the body a nice central block */
body {
    color: var(--text);
    background-color: var(--bg);
    font-size: 1.15rem;
    line-height: 1.5;
    display: grid;
    grid-template-columns: 1fr min(45rem, 90%) 1fr;
    margin: 0;
}

body > * {
    grid-column: 2;
}

/* Pages that opt in (e.g. team/home.html) get a wider center column on big
   screens; below ~49rem this is the same min(…, 90%) as the default. */
body.wide-page {
    grid-template-columns: 1fr min(80rem, 90%) 1fr;
}

/* Make the header bg full width, but the content inline with body */
body > header {
    background-color: var(--accent-bg);
    border-bottom: var(--border-width) solid var(--border);
    text-align: center;
    padding: 0 0.5rem 2rem 0.5rem;
    grid-column: 1 / -1;
}

body > header > *:only-child {
    margin-block-start: 2rem;
}

body > header h1 {
    max-width: 1200px;
    margin: 1rem auto;
}

body > header p {
    max-width: 40rem;
    margin: 1rem auto;
}

/* Add a little padding to ensure spacing is correct between content and header nav */
main {
    padding-top: 1.5rem;
}

body > footer {
    margin-top: 4rem;
    padding: 2rem 1rem 1.5rem 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    border-top: var(--border-width) solid var(--border);
}

/* Format headers */
h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.6rem;
    margin-top: 3rem;
}

h3 {
    font-size: 2rem;
    margin-top: 3rem;
}

h4 {
    font-size: 1.44rem;
}

h5 {
    font-size: 1.15rem;
}

h6 {
    font-size: 0.96rem;
}


/* Prevent long strings from overflowing container */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Fix line height when title wraps */
h1,
h2,
h3 {
    line-height: 1.1;
}

/* Reduce header size on mobile */
@media only screen and (max-width: 720px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.1rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

/* Format links & buttons */
a,
a:visited {
    color: var(--accent);
}

a:hover {
    text-decoration: none;
}

button,
.button,
a.button, /* extra specificity to override a */
input[type="submit"],
input[type="reset"],
input[type="button"] {
    border: var(--border-width) solid var(--accent);
    background-color: var(--accent);
    color: var(--accent-text);
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    line-height: normal;
}

.button[aria-disabled="true"],
input:disabled,
textarea:disabled,
select:disabled,
button[disabled] {
    cursor: not-allowed;
    background-color: var(--disabled);
    border-color: var(--disabled);
    color: var(--text-light);
}

input[type="range"] {
    padding: 0;
}

/* Set the cursor to '?' on an abbreviation and style the abbreviation to show that there is more information underneath */
abbr[title] {
    cursor: help;
    text-decoration-line: underline;
    text-decoration-style: dotted;
}

button:enabled:hover,
.button:not([aria-disabled="true"]):hover,
input[type="submit"]:enabled:hover,
input[type="reset"]:enabled:hover,
input[type="button"]:enabled:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    cursor: pointer;
}

.button:focus-visible,
button:focus-visible:where(:enabled),
input:enabled:focus-visible:where(
  [type="submit"],
  [type="reset"],
  [type="button"]
) {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

/* Format navigation */
header nav {
    font-size: 1rem;
    line-height: 2;
    padding: 1rem 0 0 0;
}

/* Use flexbox to allow items to wrap, as needed */
header nav ul,
header nav ol {
    align-content: space-around;
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* List items are inline elements, make them behave more like blocks */
header nav ul li,
header nav ol li {
    display: inline-block;
}

header nav a,
header nav a:visited {
    margin: 0 0.5rem 1rem 0.5rem;
    border: var(--border-width) solid var(--border);
    border-radius: var(--standard-border-radius);
    color: var(--text);
    display: inline-block;
    padding: 0.1rem 1rem;
    text-decoration: none;
}

header nav a:hover,
header nav a.current,
header nav a[aria-current="page"],
header nav a[aria-current="true"] {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--accent);
    cursor: pointer;
}

/* Reduce nav side on mobile */
@media only screen and (max-width: 720px) {
    header nav a {
        border: none;
        padding: 0;
        text-decoration: underline;
        line-height: 1;
    }

    header nav a.current {
        background: none;
    }
}

/* Consolidate box styling */
aside, details, pre, progress {
    background-color: var(--accent-bg);
    border: var(--border-width) solid var(--border);
    border-radius: var(--standard-border-radius);
    margin-bottom: 1rem;
}

aside {
    font-size: 1rem;
    width: 30%;
    padding: 0 15px;
    margin-inline-start: 15px;
    float: right;
}

*[dir="rtl"] aside {
    float: left;
}

/* Make aside full-width on mobile */
@media only screen and (max-width: 720px) {
    aside {
        width: 100%;
        float: none;
        margin-inline-start: 0;
    }
}

article, fieldset, dialog {
    border: var(--border-width) solid var(--border);
    padding: 1rem;
    border-radius: var(--standard-border-radius);
    margin-bottom: 1rem;
}

/* Stack multiple pending steps inside a single fieldset (e.g. the
   "what's left" panel on the apply wizard) with a visible separator. */
.wizard-step + .wizard-step {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hairline-color);
}

.wizard-step-label {
    font-weight: bold;
}

.wizard-step-label .text-muted {
    font-weight: normal;
}

article h2:first-child,
section h2:first-child,
article h3:first-child,
section h3:first-child {
    margin-top: 1rem;
}

section {
    border-top: var(--border-width) solid var(--border);
    border-bottom: var(--border-width) solid var(--border);
    padding: 2rem 1rem;
    margin: 3rem 0;
}

/* Don't double separators when chaining sections */
section + section,
section:first-child {
    border-top: 0;
    padding-top: 0;
}

section + section {
    margin-top: 0;
}

section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

details {
    padding: 0.7rem 1rem;
}

summary {
    cursor: pointer;
    font-weight: bold;
    padding: 0.7rem 1rem;
    margin: -0.7rem -1rem;
    word-break: break-all;
}

details[open] > summary + * {
    margin-top: 0;
}

details[open] > summary {
    margin-bottom: 0.5rem;
}

details[open] > :last-child {
    margin-bottom: 0;
}

/* Format tables */
table {
    border-collapse: collapse;
    margin: 1.5rem 0;
}

figure > table {
    width: max-content;
    margin: 0;
}

td,
th {
    border: var(--border-width) solid var(--border);
    text-align: start;
    padding: 0.5rem;
}

th {
    background-color: var(--accent-bg);
    font-weight: bold;
}

tr:nth-child(even) {
    /* Set every other cell slightly darker. Improves readability. */
    background-color: var(--accent-bg);
}

table caption {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Format forms */
textarea,
select,
input,
button,
.button {
    font-size: inherit;
    font-family: inherit;
    padding: 0.5em;
    margin-bottom: 0.5rem;
    border-radius: var(--standard-border-radius);
    box-shadow: none;
    max-width: 100%;
    display: inline-block;
}

textarea,
select,
input {
    color: var(--text);
    background-color: var(--bg);
    border: var(--border-width) solid var(--border);
}

label {
    display: block;
}

/* Django's Textarea widget defaults to cols="40", which otherwise caps
   these at a narrow browser-default width regardless of the container. */
textarea {
    width: 100%;
}

/* Text-like inputs default to a narrow browser size (~20 characters).
   Widen them so most fields don't need a per-field width override.
   Deliberately excludes number/date/file/color/checkbox/radio, which
   should stay compact. */
input:not([type]), input[type=text], input[type=email], input[type=tel],
input[type=url], input[type=password] {
    width: 100%;
    max-width: 30rem;
}

/* Add arrow to drop-down */
select:not([multiple]) {
    background-image: linear-gradient(45deg, transparent 49%, var(--text) 51%),
    linear-gradient(135deg, var(--text) 51%, transparent 49%);
    background-position: calc(100% - 15px), calc(100% - 10px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-inline-end: 25px;
}

*[dir="rtl"] select:not([multiple]) {
    background-position: 10px, 15px;
}

/* checkbox and radio button style */
input[type="checkbox"],
input[type="radio"] {
    vertical-align: middle;
    position: relative;
    width: min-content;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
    display: inline-block;
}

input[type="radio"] {
    border-radius: 100%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--accent);
}

input[type="checkbox"]:checked::after {
    /* Creates a rectangle with colored right and bottom borders which is rotated to look like a check mark */
    content: " ";
    width: 0.2em;
    height: 0.4em;
    border-radius: 0;
    position: absolute;
    top: 0.04em;
    left: 0.18em;
    background-color: transparent;
    border-right: solid var(--bg) 0.08em;
    border-bottom: solid var(--bg) 0.08em;
    font-size: 1.8em;
    transform: rotate(45deg);
}

input[type="radio"]:checked::after {
    /* creates a colored circle for the checked radio button  */
    content: " ";
    width: 0.3em;
    height: 0.3em;
    border-radius: 100%;
    position: absolute;
    top: 0.125em;
    background-color: var(--bg);
    left: 0.125em;
    font-size: 1.8em;
}

/* Makes input fields wider on smaller screens */
@media only screen and (max-width: 720px) {
    textarea,
    select,
    input {
        width: 100%;
    }
}

/* Set a height for color input */
input[type="color"] {
    height: 2.5rem;
    padding: 0.2rem;
}

/* do not show border around file selector button */
input[type="file"] {
    border: 0;
}

/* Misc body elements */
hr {
    border: none;
    height: var(--border-width);
    background: var(--border);
    margin: 1rem auto;
}

mark {
    padding: 2px 5px;
    border-radius: var(--standard-border-radius);
    background-color: var(--marked);
    color: black;
}

mark a {
    color: #0d47a1;
}

img,
video {
    max-width: 100%;
    height: auto;
    border-radius: var(--standard-border-radius);
}

figure {
    margin: 0;
    display: block;
    overflow-x: auto;
}

figure > img,
figure > picture > img {
    display: block;
    margin-inline: auto;
}

figcaption {
    position: sticky;
    left: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-block: 1rem;
}

blockquote {
    margin-inline-start: 2rem;
    margin-inline-end: 0;
    margin-block: 2rem;
    padding: 0.4rem 0.8rem;
    border-inline-start: 0.35rem solid var(--accent);
    color: var(--text-light);
    font-style: italic;
}

cite {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: normal;
}

dt {
    color: var(--text-light);
}

/* Use mono font for code elements */
code,
pre,
pre span,
kbd,
samp {
    font-family: var(--mono-font);
    color: var(--code);
}

kbd {
    color: var(--preformatted);
    border: var(--border-width) solid var(--preformatted);
    border-bottom: 3px solid var(--preformatted);
    border-radius: var(--standard-border-radius);
    padding: 0.1rem 0.4rem;
}

pre {
    padding: 1rem 1.4rem;
    max-width: 100%;
    overflow: auto;
    color: var(--preformatted);
}

/* Fix embedded code within pre */
pre code {
    color: var(--preformatted);
    background: none;
    margin: 0;
    padding: 0;
}

/* Progress bars */
/* Declarations are repeated because you */
/* cannot combine vendor-specific selectors */
progress {
    width: 100%;
}

progress:indeterminate {
    background-color: var(--accent-bg);
}

progress::-webkit-progress-bar {
    border-radius: var(--standard-border-radius);
    background-color: var(--accent-bg);
}

progress::-webkit-progress-value {
    border-radius: var(--standard-border-radius);
    background-color: var(--accent);
}

progress::-moz-progress-bar {
    border-radius: var(--standard-border-radius);
    background-color: var(--accent);
    transition-property: width;
    transition-duration: 0.3s;
}

progress:indeterminate::-moz-progress-bar {
    background-color: var(--accent-bg);
}

dialog {
    background-color: var(--bg);
    max-width: 40rem;
    margin: auto;
}

dialog::backdrop {
    background-color: var(--bg);
    opacity: 0.8;
}

@media only screen and (max-width: 720px) {
    dialog {
        max-width: calc(100vw - 2rem);
    }
}

/* Superscript & Subscript */
/* Prevent scripts from affecting line-height. */
sup, sub {
    vertical-align: baseline;
    position: relative;
}

sup {
    top: -0.4em;
}

sub {
    top: 0.3em;
}

/* Classes for notices */
.notice {
    background: var(--accent-bg);
    border: var(--border-width) solid var(--border);
    border-radius: var(--standard-border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

/* Policy View */
.policy-content > :first-child {
    margin-top: 0;
}

.policy-container {
    margin-top: 0;
    display: flex;
    justify-content: center;
    padding: 1rem 0rem 2rem 0rem;
}

.policy-title {
    margin: 0.25rem 0 0.5rem;
    line-height: 1.2;
    font-weight: 600;
}

.policy-card {
    width: 100%;
    max-width: 900px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.policy-content {
    margin: 2rem 1rem 1rem 1rem;
    max-height: 60vh;
    overflow: auto;
}

.policy-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: .5rem .9rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: inherit;
    line-height: normal;
    transition: background-color .15s, border-color .15s;
}

/*
 * The `a.` qualified selectors below match the specificity of the
 * `a:link`/`a:visited`/`a:focus`/`a:hover` rules above (element + one
 * pseudo-class each), which otherwise win the `color` cascade over a
 * bare `.btn-*` class and silently override these buttons' text color
 * when the button is a link rather than a <button>.
 */
.btn-primary,
a.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.btn-primary:hover,
.btn-primary:focus,
a.btn-primary:hover,
a.btn-primary:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-text);
}

.btn-secondary,
a.btn-secondary {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus,
a.btn-secondary:hover,
a.btn-secondary:focus {
    background-color: var(--accent-bg);
    border-color: var(--text-light);
    color: var(--text);
}

.btn-warning,
a.btn-warning {
    background-color: #eb9316;
    border-color: #eb9316;
    color: #1a1a1a;
}

.btn-warning:hover,
.btn-warning:focus,
a.btn-warning:hover,
a.btn-warning:focus {
    background-color: #cc7d0e;
    border-color: #cc7d0e;
    color: #1a1a1a;
}

.btn-danger,
a.btn-danger {
    background-color: var(--delete-button-bg);
    border-color: var(--delete-button-bg);
    color: #fff;
}

.btn-danger:hover,
.btn-danger:focus,
a.btn-danger:hover,
a.btn-danger:focus {
    background-color: var(--delete-button-hover-bg);
    border-color: var(--delete-button-hover-bg);
    color: #fff;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Site messages (login/logout confirmations, form results, etc.) */
.messages {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.messages > li {
    list-style-type: none;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--darkened-bg);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.06);
}

.messages li.success {
    background: var(--message-success-bg);
    border-color: #b7e3b7;
}

.messages li.warning {
    background: var(--message-warning-bg);
    border-color: #e3d98f;
}

.messages li.error {
    background: var(--message-error-bg);
    border-color: #e3b7b7;
    color: var(--error-fg);
}

/* Project View */
.project-content > :first-child {
    margin-top: 0;
}

.project-container {
    margin-top: 0;
    justify-content: center;
    padding: 1rem 0rem 2rem 0rem;
}

.project-title {
    margin: 0.25rem 0 0.5rem;
    line-height: 1.2;
    font-weight: 600;
}

.project-card {
    width: 100%;
    max-width: 900px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
}

.project-card-top-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 0; /* keep it compact */
    min-height: 0; /* neutralize any inherited min-height */
}

.project-card-top-row > :last-child {
    margin-left: auto; /* pushes actions to the right */
    display: inline-flex;
    gap: .5rem;
}

/* Remove default heading margins so they don't balloon the row */
.project-card-top-row .project-title,
.project-card-top-row h1,
.project-card-top-row h2,
.project-card-top-row h3,
.project-card-top-row h4,
.project-card-top-row h5,
.project-card-top-row h6 {
    margin: 0;
    line-height: 1.25;
}

/* Keep action links/buttons from forcing a tall row */
.project-card-top-row a,
.project-card-top-row button {
    margin: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    height: auto; /* avoid fixed/tall buttons */
}

/* If something elsewhere set a large min-height, ensure it's overridden */
.project-card-top-row {
    min-height: unset;
    min-height: 0;
}


.project-content {
    margin: 2rem 1rem 1rem 1rem;
    max-height: 60vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

li.text-muted,
.text-muted {
    color: var(--body-quiet-color) !important;
}

/* Card-per-asset layout: each Theme Camp/Mutant Vehicle/Art Installation
   gets its own card; its Support Camp and Art Grant(s) nest inside as
   sub-sections instead of repeating the asset's name as separate
   top-level entries. See _project_asset_cards.html. Mirrors the admin
   project view's identical layout. */
.asset-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0 0.5rem 0;
}

.asset-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.asset-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding-bottom: .75rem;
    margin-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}

.asset-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.asset-card-actions {
    display: inline-flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.asset-subsection {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-bg);
    border-radius: 0 6px 6px 0;
}

.asset-subsection + .asset-subsection {
    margin-top: .75rem;
}

.asset-subsection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.asset-subsection-header h5 {
    margin: 0;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--body-quiet-color);
}

.asset-subsection-summary {
    margin: .35rem 0 .5rem;
    color: var(--body-quiet-color);
    font-size: .95rem;
}

/* Team voters' at-a-glance asset details (apply/_asset_review_details.html) */
.asset-review {
    margin-bottom: .75rem;
}

.asset-review-facts {
    margin: 0 0 .5rem;
    color: var(--body-quiet-color);
    font-size: .95rem;
}

.asset-review-text + .asset-review-text {
    margin-top: .4rem;
}

.asset-review-body {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.asset-review-body.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.asset-review-label {
    font-weight: 600;
}

.asset-review-more {
    background: none;
    border: 0;
    padding: 0;
    color: var(--link-fg);
    font-size: .9rem;
    cursor: pointer;
}

.asset-review-more:hover {
    text-decoration: underline;
}

.btn-sm {
    padding: .3rem .7rem;
    font-size: .85rem;
}

/* The thumbnails/plain-list partial adds its own 2rem left indent, meant
   for the old flat bullet list -- redundant now the card/sub-section
   boundary already provides the grouping. */
.asset-card .attachment-thumbs,
.asset-card .indent {
    margin-left: 0;
}


/* Team voting page: each project starts collapsed to one summary line;
   expanding it reveals the full card-per-asset detail + vote form. The
   toggle button already shows the project title, so hide the redundant
   one _project_asset_cards.html renders inside the expanded body. */
[x-cloak] {
    display: none !important;
}

.team-vote-entry .vote-entry-body .project-card-top-row {
    display: none;
}

/* Row 1: chevron | name | user | score badge. Row 2: the asset/flag-icon
   summary under name+user, so long icon lists never squeeze the user
   column and every row's columns line up. */
.vote-entry-toggle {
    display: grid;
    grid-template-columns: 1.25rem minmax(10rem, 2fr) minmax(6rem, 1fr) 3.5rem;
    align-items: center;
    gap: .2rem .75rem;
    width: 100%;
    padding: .6rem 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: var(--text);
}

.vote-entry-toggle:hover {
    background-color: var(--accent-bg) !important;
}

.vote-entry-chevron {
    color: var(--body-quiet-color);
}

.vote-entry-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vote-entry-user {
    color: var(--body-quiet-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vote-entry-assets {
    grid-column: 2 / 4;
    grid-row: 2;
    color: var(--body-quiet-color);
    font-size: .9rem;
}

.vote-entry-toggle .vote-score-badge {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
}

.vote-score-badge {
    flex: 0 0 auto;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: var(--accent-bg);
    color: var(--body-quiet-color);
    font-size: .85rem;
    font-weight: 600;
}

.vote-entry-body {
    padding: 1rem 0 1.5rem;
}

/* Other voters' scores/comments, shown above this voter's own vote form. */
.other-votes {
    margin: 1.25rem 0 1rem;
    padding: .75rem 1rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-bg);
    border-radius: 0 6px 6px 0;
}

.other-votes h5 {
    margin: 0 0 .5rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--body-quiet-color);
}

.other-votes p {
    margin: 0;
}

.other-vote-row {
    display: grid;
    grid-template-columns: minmax(6rem, 10rem) 3.5rem 1fr;
    align-items: baseline;
    gap: .75rem;
    padding: .35rem 0;
}

.other-vote-row + .other-vote-row {
    border-top: 1px solid var(--border);
}

.other-vote-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.other-vote-row .vote-score-badge {
    justify-self: start;
    background: var(--body-bg);
}

.other-vote-comment {
    overflow-wrap: anywhere;
}

/* Phone: name + score on one line, comment underneath. */
@media (max-width: 600px) {
    .other-vote-row {
        grid-template-columns: auto auto 1fr;
    }

    .other-vote-comment {
        grid-column: 1 / -1;
    }
}

/* FAQ "Your account" links (templates/apply/faq.html) */
.faq-account-links {
    margin: 0;
}

.faq-account-links dt {
    font-weight: 600;
    margin-top: .75rem;
}

.faq-account-links dt:first-child {
    margin-top: 0;
}

.faq-account-links dd {
    margin: .25rem 0 0;
    color: var(--body-quiet-color);
}

/* allauth pages (templates/allauth/elements/*.html) */
.allauth-form p {
    margin: 0 0 1rem;
}

.allauth-form label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
}

.allauth-form input[type="radio"] + label,
.allauth-form input[type="checkbox"] + label {
    display: inline;
    font-weight: normal;
}

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

.allauth-form .helptext,
.allauth-form p > span {
    display: block;
    color: var(--body-quiet-color);
    font-size: .9rem;
    margin-top: .25rem;
}

.allauth-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .5rem 0 1rem;
}

/* Email addresses page (templates/account/email.html) */
.email-address-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.email-address-list > li {
    list-style: none;
    margin: 0;
}

.email-address-list li + li {
    border-top: 1px solid var(--hairline-color);
}

.email-address-list label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .75rem 1rem;
    cursor: pointer;
}

.email-address-list label:hover {
    background: var(--darkened-bg);
}

.email-address-list input[type="radio"] {
    margin: 0;
}

.email-address {
    font-weight: 600;
    word-break: break-all;
}

.email-badge {
    padding: .1rem .5rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.email-badge-primary {
    background: var(--secondary);
    color: var(--primary-fg);
}

.email-badge-verified {
    background: var(--message-success-bg);
    color: #2e6b2e;
}

.email-badge-unverified {
    background: var(--message-warning-bg);
    color: #7a5d00;
}

.email-address-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.email-add-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.email-add-row input[type="email"] {
    flex: 1 1 16rem;
    min-width: 0;
}

/* Expanded project overview inside Team sections: the card's own title
   just repeats the row it expanded from. */
.team-project-overview .project-card-top-row {
    display: none;
}

.review-row-toggle {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    padding: 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

/* Keep Details / Approve / Deny on one line on wide screens -- the text
   columns wrap instead. */
.review-row-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .35rem;
}

/* <button>s get a form-spacing margin-bottom (see "Format forms") that the
   Details <a> doesn't, which made Details stretch taller than Approve/Deny. */
.review-row-actions .btn {
    margin: 0;
}

/* Not enough width for the buttons side by side: stack them, equal width,
   rather than hide them off the edge behind .table-scroll. */
@media (max-width: 1100px) {
    .review-row-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

.review-row-actions form {
    display: contents;
}

/* "Saving… / Saved ✓" after an in-place Team save (team/_inline_save_js.html). */
.inline-save-status {
    margin-left: .5rem;
    font-size: .85rem;
    color: var(--body-quiet-color);
    white-space: nowrap;
}

.vote-form .inline-save-status {
    font-size: 1rem;
}

/* Errors get their own line so they can't hide at the end of the help text. */
.inline-save-status.inline-save-error {
    display: block;
    margin: .5rem 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--error-fg);
    white-space: normal;
}

/* Pending / Approved / Denied badge -- see apply/_review_status_badge.html. */
.review-status {
    padding: .1rem .5rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}

.asset-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: -.25rem 0 .5rem;
}

.review-status-pending {
    background: var(--message-warning-bg);
    color: #7a5d00;
}

.review-status-approved {
    background: var(--message-success-bg);
    color: #2e6b2e;
}

.review-status-denied {
    background: var(--message-error-bg);
    color: #a32020;
}

/* Project-level Rework / Resubmitted badges and notice on the Team page --
   team/_rework_badge.html, team/_rework_notice.html. */
.review-status-rework {
    background: var(--message-warning-bg);
    color: #7a5d00;
}

.review-status-resubmitted {
    background: var(--accent-bg);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.rework-notice {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-left: 3px solid #d9a400;
    background: var(--message-warning-bg);
    border-radius: 0 6px 6px 0;
}

.rework-notice-note {
    margin-top: .4rem;
}

.review-table td.review-row-detail {
    background: var(--darkened-bg);
    padding: .75rem 1rem;
}

/* Collapsed "Decided" lists on the Team page. */
.team-decided > summary {
    cursor: pointer;
    color: var(--text-light);
    margin-bottom: .5rem;
}

.approval-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.table-scroll {
    overflow-x: auto;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
}

.review-table th,
.review-table td {
    padding: .4rem .5rem;
    border-bottom: 1px solid var(--hairline-color);
    text-align: left;
    vertical-align: middle;
}

.review-table .num {
    text-align: right;
    white-space: nowrap;
}

/* The grant's "of $X total cost" line may wrap; the amount itself doesn't. */
.review-table .num .text-muted {
    white-space: normal;
}

.review-table tfoot th {
    border-bottom: none;
    border-top: 2px solid var(--border-color);
}

/* Tablets: tighter cells so the actions column still fits. */
@media (max-width: 800px) {
    .review-table th,
    .review-table td {
        padding: .4rem .3rem;
    }
}

.team-debug {
    font-size: .9rem;
    color: var(--body-quiet-color);
}

.team-debug-alert {
    color: var(--body-fg);
    font-weight: 600;
}

.team-debug-list {
    margin: 0;
    padding-left: 1.25rem;
}

.team-project-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .7rem;
    margin: .5rem 0 1rem;
}

.team-project-filters-label {
    color: var(--body-quiet-color);
}

.team-project-filters .checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.team-project-filters .checkbox-row input {
    margin: 0;
}

/* "Show / hide other voters' votes" toggle under the Team page filters. */
.team-votes-toggle {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .7rem;
    margin: 0 0 1rem;
    color: var(--body-quiet-color);
}

/* One votable asset's block inside a project's vote form. */
.asset-vote {
    padding: .75rem 0;
    border-top: 1px solid var(--hairline-color);
}

.asset-vote h5 {
    margin: 0 0 .25rem;
}

.vote-scale-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin: .5rem 0;
}

.vote-scale-inline .radio-row {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    white-space: nowrap;
}

.vote-scale-inline .vote-scale-endpoint {
    color: var(--body-quiet-color);
    font-size: .9rem;
}

/* Optional helpers if you wrap multiple actions */
.project-content .cta-row {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

.project-content .cta-right {
    align-self: flex-end; /* apply to any single element you want right-aligned */
    margin-left: auto;
    white-space: nowrap;
}

/* Consistent lists inside project cards */
.project-content ul,
.project-content ol {
    margin: .25rem 0 .75rem 0;
    padding-left: 0;
    color: var(--body-medium-color);
}

.project-content li {
    font-size: 1.1rem;
    margin: .25rem 0 .75rem 0;
    color: var(--body-medium-color);
}

/* First link grows, delete stays on the right */
.project-content ul li > a:first-child {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis; /* prevent wrapping if the name is long */
}

/* Keep markers proportional */
.project-content ul li::marker,
.project-content ol li::marker {
    color: var(--accent);
    font-size: .5em;
}

.project-content ul li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.project-content ul li::marker {
    content: none; /* safety: ensures no marker even if a UA injects one */
}

/* Inline image-attachment thumbnails on the applicant's own project view */
.attachment-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: .5rem 0 .75rem 2rem;
}

.attachment-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    width: 160px;
    text-decoration: none;
    color: var(--body-medium-color);
    font-size: .8rem;
}

.attachment-thumb img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f5f5f5;
}

.attachment-thumb:hover img {
    border-color: var(--accent);
}

.attachment-thumb-caption {
    text-align: center;
    line-height: 1.2;
}

.attachment-thumb-size {
    display: block;
    color: #999;
    font-size: .75rem;
}


/* Avoid extra gaps when a list is the first/last inside the card */
.project-content > ul:first-child,
.project-content > ol:first-child {
    margin-top: 0;
}

.project-content > ul:last-child,
.project-content > ol:last-child {
    margin-bottom: 0;
}

/* Links inside list items: align with overall link styling */
.project-content li a {
    color: var(--link-fg);
    text-decoration: none;
}

.project-content li a:hover {
    text-decoration: underline;
}

/* .project-content li a above (class+element+element) outranks the plain
   a.button rule (element+class) that's supposed to give button-styled
   links their light text -- without this, a "View" button in a project
   list ends up rendering link-blue text on a blue button background. */
.project-content li a.button {
    color: var(--accent-text);
    /* Default inline-block baseline alignment makes the button's box
       poke slightly above its text line, which .project-content's
       overflow:auto then clips -- shaving the flat off the top rounded
       corners on whichever row happens to sit at the scroll boundary
       (typically the first one). */
    vertical-align: middle;
}

.project-content li a.button:hover {
    text-decoration: none;
}


.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

select {
    height: auto;
    line-height: normal; /* undo overly-tight global line-height */
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box; /* safer sizing */
}


/* Error summary (alert) */
.alert {
    display: block;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color, #ccc);
    border-left-width: 4px;
    border-radius: 4px;
    background-color: var(--body-bg, #fff);
    color: var(--body-fg, #333);
}

.alert-danger {
    --_danger: var(--error-fg, #ba2121);
    border-color: var(--border-color, #ccc);
    border-left-color: var(--_danger);
    /* subtle tinted background */
    background-color: rgba(186, 33, 33, 0.06);
}

.alert-info {
    border-left-color: var(--accent, #417893);
    background-color: var(--accent-bg, #f5f7ff);
}

.alert-heading {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--_danger, var(--error-fg, #ba2121));
}

.alert ul {
    margin: 0.25rem 0 0 0;
    padding-left: 1.25rem;
}

.alert li + li {
    margin-top: 0.125rem;
}

.alert a {
    color: var(--link-fg, #417893);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.alert a:hover,
.alert a:focus {
    color: var(--link-hover-color, #036);
    text-decoration-thickness: 2px;
}


/* Improve jump-to-field behavior when clicking the error links */
input, select, textarea, [contenteditable="true"] {
    scroll-margin-top: 72px; /* adjust if you have a fixed/sticky header */
}

/* Inline field error */
.error {
    display: flex;
    align-items: flex-start;
    color: var(--error-fg, #ba2121);
    font-size: 0.875rem; /* small */
    margin-bottom: 1rem;
}

.project-container {
    display: flex;
    flex-direction: column;
}

.project-container .project-card {
    order: 1;
}

.project-container .project-card.is-filled {
    order: 0;
}

.inline-field {
    display: inline-flex; /* lay out label and input in one line */
    align-items: baseline;
    gap: .5rem;
    white-space: nowrap; /* prevent wrapping */
}

/* if your inputs have .form-control (e.g., Bootstrap), override block/full-width */
.inline-field .form-control {
    display: inline-block;
    width: auto;
}


.fire-safety-list {
    margin: 0 0 1rem 1.25rem; /* push list away from the left edge */
    padding-left: 1rem; /* ensure bullets and text align nicely */
    list-style: disc outside; /* standard bullets */
    font-size: 1rem; /* increase overall list font size */
    line-height: 1.5;
}

.fire-safety-list li {
    margin-bottom: 0.5rem; /* breathing room between items */
    font-size: 1rem; /* increase overall list font size */
    line-height: 1.5;

}

.indent {
  margin-left: 2rem; /* or padding-left */
}

/* css */
/* Read-only form visual tweaks: keep the exact layout, remove the "disabled greyed-out" look */
.readonly-form [disabled],
.readonly-form .readonly-field {
  color: inherit !important;
  -webkit-text-fill-color: inherit; /* Safari keeps color for disabled inputs */
  opacity: 1;
}

/* Keep backgrounds consistent with your form theme (adjust as needed) */
.readonly-form input[disabled],
.readonly-form textarea[disabled],
.readonly-form select[disabled] {
  background-color: #fff; /* or your normal control bg */
  border-color: #ddd;     /* or your normal control border */
  cursor: default;
}

/* Prevent interaction while preserving layout */
.readonly-form fieldset,
.readonly-form .form-group,
.readonly-form input,
.readonly-form textarea,
.readonly-form select,
.readonly-form label,
.readonly-form .btn,
.readonly-form [role="button"] {
  pointer-events: none;
}

/* But allow links inside help text or existing file links to be clickable if you want */
.readonly-form .allow-click,
.readonly-form a {
  pointer-events: auto;
}

/* Long answers must stay scrollable; still disabled, so they can't be edited */
.readonly-form textarea {
  pointer-events: auto;
}

/* Optional: style checkboxes/radios to not look "disabled" */
.readonly-form input[type="checkbox"][disabled],
.readonly-form input[type="radio"][disabled] {
  filter: none;
  opacity: 1;
}

/* Keep specific links clickable in read-only contexts */
.ro-allow-click,
.ro-allow-click * {
  pointer-events: auto !important;
}

/* If you’re also disabling focus with a broad selector somewhere,
   ensure these links remain keyboard-focusable */
.ro-allow-click {
  /* Optional, for better focus visibility */
  outline-offset: 2px;
}

/* Team page: applicant contact card summary at the top of an expanded project */
.team-contact-card {
    margin: 0.5rem 0 1rem;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-bg, transparent);
}
