/* phpdevelopers.ca — app.css
   Brand palette based on the existing phpdevelopers.ca identity:
   steel blue #4A6F8C, gold accent #CB9A31, Verdana typography. */

:root {
    --color-bg: #ffffff;
    --color-surface: #f3f6f9;
    --color-text: #2c3e50;
    --color-heading: #4A6F8C;
    --color-muted: #5f7285;
    --color-primary: #4A6F8C;
    --color-primary-dark: #3b5a73;
    --color-primary-deep: #2f4a61;
    --color-accent: #CB9A31;
    --color-accent-dark: #b3871f;
    --color-accent-light: #F0B275;
    --color-on-accent: #2b2308;
    --color-border: #d7e0e8;
    --color-focus: #CB9A31;
    --font-sans: Verdana, Geneva, "Segoe UI", Arial, sans-serif;
    --container-max: 1100px;
    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(58, 90, 115, 0.08);
    --shadow-md: 0 6px 18px rgba(58, 90, 115, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin: 0 0 0.75rem;
    color: var(--color-heading);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p {
    margin: 0 0 1rem;
}

.muted { color: var(--color-muted); }

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 100;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
    color: #fff;
    text-decoration: none;
}

/* Header */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-heading);
}

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

.brand-logo {
    height: 66px;
    width: auto;
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--color-muted);
    font-weight: 400;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
    background: var(--color-surface);
}

.site-nav a.active {
    color: var(--color-accent-dark);
    background: rgba(203, 154, 49, 0.1);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(203, 154, 49, 0.55);
    outline-offset: 2px;
}

/* Main */
.site-main {
    min-height: 60vh;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 100%);
    padding: 5rem 0 4.5rem;
    text-align: center;
}

/* Subtle dot pattern */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(74, 111, 140, 0.10) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 65%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .accent {
    color: var(--color-accent-dark);
}

.lede {
    font-size: 1.15rem;
    color: var(--color-muted);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2.25rem 0 1.25rem;
}

.hero-note {
    color: var(--color-muted);
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

/* Section headings */
.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-head .kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin: 0 0 0.5rem;
}

.section-head h2 {
    font-size: 1.9rem;
}

.section-head p {
    color: var(--color-muted);
    max-width: 62ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* Step numbers */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
    background: var(--color-accent);
    color: var(--color-on-accent);
    box-shadow: 0 2px 6px rgba(203, 154, 49, 0.35);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: var(--color-on-accent);
    box-shadow: 0 4px 12px rgba(203, 154, 49, 0.4);
}

.btn-secondary {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(74, 111, 140, 0.08);
    color: var(--color-primary-dark);
}

.btn-ghost {
    background: var(--color-bg);
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-ghost:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover { background: #bb2d3b; }

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.15rem;
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
    padding: 3.5rem 0;
    margin-top: 4rem;
    text-align: center;
}

.cta-band h2 {
    color: #ffffff;
    font-size: 1.9rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 58ch;
    margin: 0 auto 1.75rem;
}

.cta-band .btn-primary {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--color-surface);
}

.page-head {
    background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 100%);
    padding: 3.25rem 0;
    text-align: center;
}

.page-head h1 {
    font-size: 2.1rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card h2, .card h3 {
    font-size: 1.15rem;
}

/* Service detail lists inside cards */
.svc-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.svc-list li {
    position: relative;
    padding: 0.22rem 0 0.22rem 1.4rem;
    font-size: 0.95rem;
}

.svc-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent-dark);
    font-weight: 700;
}

/* Technology chips */
.tech-strip {
    margin-top: 2.5rem;
    text-align: center;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.chip {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Icon badges on cards */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    color: var(--color-accent-dark);
    background: rgba(203, 154, 49, 0.14);
    margin-bottom: 1rem;
}

.cards-icons .card {
    text-align: left;
}

/* Split layout (text + illustration) */
.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.split-body .section-head {
    text-align: left;
    margin-bottom: 1.5rem;
}

.split-body .section-head p {
    margin-left: 0;
}

.split-art svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(58, 90, 115, 0.14));
}

/* Check list */
.check-list {
    list-style: none;
    padding: 0;
    max-width: 60ch;
    margin: 1.5rem auto;
}

.check-list li {
    padding: 0.4rem 0 0.4rem 1.75rem;
    position: relative;
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent-dark);
    font-weight: 700;
}

/* CTA box */
.cta-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}

/* Footer */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
    color: var(--color-muted);
}

.footer-nav a + a {
    margin-left: 1rem;
}

/* Responsive */
@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .site-nav {
        width: 100%;
        overflow-x: auto;
    }

    .site-nav ul {
        flex-wrap: wrap;
    }

    .hero { padding: 3rem 0; }

    .split { grid-template-columns: 1fr; gap: 2rem; }

    h1 { font-size: 1.75rem; }
}

/* ================= Forms ================= */

.form-group {
    margin-bottom: 1.25rem;
}

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

.form-input {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.15s ease;
}

.form-input:focus {
    border-color: var(--color-primary);
}

textarea.form-input {
    resize: vertical;
}

.form-hint {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.form-hint-list {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.4rem 1rem;
    margin: 0.5rem 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    cursor: pointer;
}

.check-item input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--color-primary);
}

.radio-stack {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.4rem 0;
}

.radio-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    margin-top: 0.25rem;
    accent-color: var(--color-primary);
}

.form-actions {
    margin-top: 1.25rem;
}

/* Honeypot — visually hidden but present for bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alerts */
.alert {
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin: 1rem 0;
}

.alert ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.alert-error { background: #fdf0f1; border-color: #f5c2c7; color: #842029; }
.alert-success { background: #effaf3; border-color: #bfe8cd; color: #146c43; }
.alert-warning { background: #fff8e5; border-color: #ffe08a; color: #664d03; }

/* ================= Wizard ================= */

.wizard-wrap {
    padding: 2.5rem 0 4rem;
}

.wizard-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.wizard-form h1 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.wizard-progress {
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

.wizard-progress ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.wizard-progress li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.wizard-progress .step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
}

.wizard-progress li.step-completed {
    color: var(--color-text);
}

.wizard-progress li.step-completed .step-dot {
    background: var(--color-accent);
}

.wizard-progress li.step-current {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(74, 111, 140, 0.08);
    font-weight: 600;
}

.wizard-progress li.step-current .step-dot {
    background: var(--color-accent);
}

.wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.wizard-nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .wizard-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .wizard-nav-right {
        justify-content: flex-end;
    }
}

/* Reveal panels */
.reveal {
    padding: 1rem;
    background: var(--color-surface);
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* Dynamic rows */
.dynamic-row {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--color-bg);
}

.dynamic-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .dynamic-row-fields { grid-template-columns: 1fr; }
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.875rem;
}

/* Feature rows */
.feature-list {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-row {
    border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-check {
    padding: 0.6rem 0.9rem;
}

.feature-detail {
    padding: 0.6rem 0.9rem 0.9rem;
    background: var(--color-surface);
}

.feature-detail-fields {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.75rem;
    align-items: end;
}

@media (max-width: 640px) {
    .feature-detail-fields { grid-template-columns: 1fr; }
}

/* Toast */
.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    background: var(--color-text);
    color: #fff;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 100;
    font-size: 0.9rem;
}

.toast.show {
    opacity: 1;
}

/* ================= Specification ================= */

.spec-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--color-bg);
}

.spec-head {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.spec-head h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.spec-meta {
    margin: 0.15rem 0;
}

.spec-section {
    margin-bottom: 1.5rem;
}

.spec-section h2 {
    font-size: 1.15rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--color-border);
}

.spec-section ol, .spec-section ul {
    padding-left: 1.4rem;
}

.spec-priority {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.spec-detail {
    color: var(--color-muted);
    margin: 0.25rem 0 0.5rem;
}

.spec-edit-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.spec-edit-bar .form-label {
    margin: 0;
}

.success-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: var(--color-surface);
    margin-bottom: 1rem;
}

/* ================= Admin ================= */

.admin-body {
    background: var(--color-surface);
}

.container.narrow {
    max-width: 480px;
}

.admin-flash {
    padding-top: 1rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.table-wrap {
    overflow-x: auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.data-table th {
    background: var(--color-surface);
    font-weight: 600;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr.clickable-row {
    cursor: pointer;
}

.data-table tbody tr.clickable-row:hover {
    background: rgba(74, 111, 140, 0.06);
}

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
}

.status-badge.status-sent {
    background: #effaf3;
    border-color: #bfe8cd;
    color: #146c43;
}

.status-badge.status-failed {
    background: #fdf0f1;
    border-color: #f5c2c7;
    color: #842029;
}

.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.filter-bar .form-group {
    margin-bottom: 0;
}

.filter-bar .form-group-submit {
    margin-left: auto;
}

.pagination {
    display: flex;
    gap: 0.4rem;
    margin: 1.25rem 0;
}

.pagination a {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
}

.pagination a.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .admin-grid { grid-template-columns: 1fr; }
}

.panel {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.panel h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.detail-list {
    margin: 0;
}

.detail-list dt {
    color: var(--color-muted);
    font-size: 0.8rem;
    margin-top: 0.6rem;
}

.detail-list dd {
    margin: 0 0 0.25rem;
    word-break: break-word;
}

.note-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
}

.note-list li {
    border-top: 1px solid var(--color-border);
    padding: 0.6rem 0;
}

.note-list p {
    margin: 0 0 0.2rem;
}

/* Attached files list */
.file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.file-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.file-list li:last-child {
    border-bottom: none;
}

/* Questionnaire answers */
.qa-details {
    margin-top: 0.5rem;
}

.qa-details summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--color-primary);
}

.qa-list {
    margin: 0.75rem 0 0;
}

.qa-list dt {
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.2rem;
}

.qa-list dd {
    margin: 0.35rem 0 0;
}

.qa-fields {
    margin: 0.25rem 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.qa-fields li {
    margin: 0.2rem 0;
}

.inline-form {
    display: inline;
}

.link-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    color: var(--color-muted);
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}

.link-btn:hover {
    color: var(--color-text);
    background: var(--color-surface);
    border-radius: var(--radius);
}