/* AdmissionBridge Public Portal */

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

:root {
    --c-primary:     #3b82f6;
    --c-primary-h:   #2563eb;
    --c-primary-bg:  #eff6ff;
    --c-bg:          #f8fafc;
    --c-surface:     #ffffff;
    --c-border:      #e2e8f0;
    --c-text:        #0f172a;
    --c-text-muted:  #64748b;
    --c-success:     #22c55e;
    --c-success-bg:  #f0fdf4;
    --c-warning:     #f59e0b;
    --c-warning-bg:  #fffbeb;
    --c-danger:      #ef4444;
    --c-danger-bg:   #fef2f2;
    --radius:        8px;
    --radius-lg:     12px;
    --shadow-sm:     0 1px 2px rgba(0,0,0,.06);
    --shadow:        0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -4px rgba(0,0,0,.10);
    --max-w:         680px;
}

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Top bar ────────────────────────────────────────────────────────────── */

.pub-topbar {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pub-topbar-inner {
    width: 100%;
    max-width: var(--max-w);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text);
    text-decoration: none;
}
.pub-brand span { color: var(--c-primary); }

.pub-topbar-links {
    display: flex;
    gap: 16px;
}

.pub-topbar-links a {
    font-size: 13px;
    color: var(--c-text-muted);
    text-decoration: none;
    font-weight: 500;
}
.pub-topbar-links a:hover { color: var(--c-primary); }

/* ── Main container ─────────────────────────────────────────────────────── */

.pub-main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */

.pub-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
}

.pub-card-header {
    margin-bottom: 24px;
}

.pub-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 6px;
}

.pub-card-desc {
    font-size: 14px;
    color: var(--c-text-muted);
    line-height: 1.5;
}

/* ── Step indicator ─────────────────────────────────────────────────────── */

.pub-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 8px;
    overflow-x: auto;
}

.pub-step {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.pub-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--c-border);
    color: var(--c-text-muted);
    flex-shrink: 0;
}

.pub-step-label {
    font-size: 13px;
    color: var(--c-text-muted);
    font-weight: 500;
}

.pub-step.active .pub-step-num {
    background: var(--c-primary);
    color: #fff;
}
.pub-step.active .pub-step-label {
    color: var(--c-text);
    font-weight: 600;
}

.pub-step.done .pub-step-num {
    background: var(--c-success);
    color: #fff;
}
.pub-step.done .pub-step-label {
    color: var(--c-success);
}

/* Clickable completed steps (Learner/Parent → read-only review). */
.pub-step-link {
    text-decoration: none;
    cursor: pointer;
}
.pub-step-link:hover .pub-step-label { text-decoration: underline; }

.pub-step-line {
    width: 32px;
    height: 2px;
    background: var(--c-border);
    flex-shrink: 0;
    margin: 0 4px;
}
.pub-step-line.done { background: var(--c-success); }

/* ── Form fields ────────────────────────────────────────────────────────── */

.pub-field {
    margin-bottom: 20px;
}

.pub-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
}

.pub-label .req {
    color: var(--c-danger);
    margin-left: 2px;
}

.pub-input,
.pub-select,
.pub-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    color: var(--c-text);
    transition: border-color .15s, box-shadow .15s;
}

.pub-input:focus,
.pub-select:focus,
.pub-textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.pub-input.is-invalid,
.pub-select.is-invalid,
.pub-textarea.is-invalid {
    border-color: var(--c-danger);
}

.pub-textarea {
    resize: vertical;
    min-height: 80px;
}

.pub-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.pub-hint {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 4px;
}

.pub-error {
    font-size: 12px;
    color: var(--c-danger);
    margin-top: 4px;
}

.pub-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Checkbox / consent ─────────────────────────────────────────────────── */

.pub-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pub-checkbox-wrap input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--c-primary);
    flex-shrink: 0;
}

.pub-checkbox-wrap label {
    font-size: 14px;
    color: var(--c-text);
    line-height: 1.5;
}

/* ── ID type toggle ─────────────────────────────────────────────────────── */

.pub-id-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pub-id-toggle label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: var(--c-surface);
    color: var(--c-text-muted);
    border-right: 1px solid var(--c-border);
    transition: background .15s, color .15s;
}
.pub-id-toggle label:last-child { border-right: none; }
.pub-id-toggle input { display: none; }
.pub-id-toggle input:checked + label {
    background: var(--c-primary);
    color: #fff;
}

/* ── File upload zone ───────────────────────────────────────────────────── */

.pub-upload-zone {
    border: 2px dashed var(--c-border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    position: relative;
}
.pub-upload-zone:hover {
    border-color: var(--c-primary);
    background: var(--c-primary-bg);
}
.pub-upload-zone.is-invalid {
    border-color: var(--c-danger);
}

.pub-upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.pub-upload-icon {
    margin-bottom: 8px;
    color: var(--c-text-muted);
}

.pub-upload-text {
    font-size: 14px;
    color: var(--c-text-muted);
}
.pub-upload-text strong { color: var(--c-primary); }

.pub-upload-hint {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 4px;
}

.pub-upload-preview {
    margin-top: 12px;
    font-size: 13px;
    color: var(--c-success);
    font-weight: 500;
}

/* Upload button row — right-aligned and auto-width so it no longer spans the
   full card. Stays right-aligned on mobile (parents said the full-width
   button was too wide). Only the no-JS fallback button uses this now. */
.pub-upload-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

/* Auto-submit uploading state — set on the form while it posts. Dim the zone,
   block re-selection, and show the "Uploading …" filename in the preview. */
form.is-uploading .pub-upload-zone {
    opacity: .6;
    pointer-events: none;
}
form.is-uploading .pub-upload-preview {
    color: var(--c-text-muted);
}
form.is-uploading .pub-upload-preview::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
    border: 2px solid var(--c-border);
    border-top-color: var(--c-primary);
    border-radius: 50%;
    animation: pub-spin .6s linear infinite;
}
@keyframes pub-spin { to { transform: rotate(360deg); } }

/* "Review submitted details" row — labeled links back to the read-only
   Learner / Parent steps (discoverable on mobile where step labels hide). */
.pub-review-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0 0 18px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 13px;
}
.pub-review-links span { color: var(--c-text-muted); font-weight: 500; }
.pub-review-links a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--c-primary);
    font-weight: 600;
    text-decoration: none;
}
.pub-review-links a::before {
    content: "";
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/><circle cx='12' cy='12' r='3'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/><circle cx='12' cy='12' r='3'/></svg>") center/contain no-repeat;
    flex-shrink: 0;
}
.pub-review-links a:hover { text-decoration: underline; }

/* Back link at the top of wizard cards. */
.pub-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-muted);
    text-decoration: none;
    margin-bottom: 14px;
}
.pub-back-link:hover { color: var(--c-primary); }

/* ── Document list (documents page) ────────────────────────────────────── */

.pub-doc-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pub-doc-item {
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
}

.pub-doc-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.pub-doc-type {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

.pub-doc-req,
.pub-doc-opt {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}
.pub-doc-req { background: var(--c-danger-bg); color: var(--c-danger); }
.pub-doc-opt { background: #f1f5f9; color: var(--c-text-muted); }

.pub-doc-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
/* "Uploaded" (pending review) reads as done-for-the-parent, so light green
   rather than amber — amber implied the upload hadn't gone through. */
.pub-doc-status.pending { background: var(--c-success-bg); color: var(--c-success); }
.pub-doc-status.verified { background: var(--c-success-bg); color: var(--c-success); }
.pub-doc-status.rejected { background: var(--c-danger-bg); color: var(--c-danger); }
.pub-doc-status.missing { background: #f1f5f9; color: var(--c-text-muted); }

.pub-doc-file {
    font-size: 13px;
    color: var(--c-text-muted);
}

/* Uploaded-document preview card — image thumbnail or PDF badge + filename. */
.pub-doc-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: #fafbfc;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.pub-doc-preview:hover {
    border-color: var(--c-primary);
    background: var(--c-primary-bg);
}
.pub-doc-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #e2e8f0;
}
.pub-doc-fileicon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--c-danger-bg);
    color: var(--c-danger);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}
.pub-doc-preview-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pub-doc-filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pub-doc-preview-hint {
    font-size: 12px;
    color: var(--c-primary);
    font-weight: 500;
}

.pub-doc-locked {
    margin-top: 10px;
    font-size: 12px;
    color: var(--c-success);
    font-weight: 500;
}

/* Preview + inline Edit button row (Edit sits on the far right). */
.pub-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}
.pub-doc-row .pub-doc-preview {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}
.pub-doc-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    white-space: nowrap;
    background: none;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.pub-doc-edit-btn:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

.pub-doc-rejection {
    font-size: 13px;
    color: var(--c-danger);
    margin-top: 6px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.pub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
}

.pub-btn-primary {
    background: var(--c-primary);
    color: #fff;
}
.pub-btn-primary:hover {
    background: var(--c-primary-h);
}
.pub-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Styled file picker (parent portal) ─────────────────────────────────────
   Browsers don't allow us to style native <input type="file"> directly, so
   we hide it inside a <label> and lay out two styled spans:
     [ Choose file ] [ filename / "No file chosen" ]
   The whole label is clickable — the hidden input still receives focus and
   keyboard events, so accessibility is preserved.

   The filename span is updated by the global change listener in
   public/layout.blade.php whenever the input changes.
──────────────────────────────────────────────────────────────────────────── */
.pub-file-picker {
    display: inline-flex;
    align-items: stretch;
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    position: relative;
}
.pub-file-picker:hover { border-color: var(--c-primary, #2563eb); }
.pub-file-picker:focus-within {
    border-color: var(--c-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    outline: none;
}
.pub-file-picker input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.pub-file-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    background: #f1f5f9;
    color: #475569;
    font-size: .875rem;
    font-weight: 600;
    border-right: 1px solid #cbd5e1;
    flex-shrink: 0;
    user-select: none;
}
.pub-file-picker:hover .pub-file-picker-btn {
    background: #e2e8f0;
    color: #0f172a;
}
.pub-file-picker-name {
    display: inline-flex;
    align-items: center;
    padding: .55rem .85rem;
    color: #94a3b8;
    font-size: .875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.pub-file-picker[data-has-file="true"] .pub-file-picker-name {
    color: #0f172a;
    font-weight: 500;
}

.pub-btn-secondary {
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
}
.pub-btn-secondary:hover {
    background: #f1f5f9;
}

.pub-btn-full {
    width: 100%;
}

.pub-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

/* ── Alert boxes ────────────────────────────────────────────────────────── */

.pub-alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}
.pub-alert-danger {
    background: var(--c-danger-bg);
    color: var(--c-danger);
    border: 1px solid #fecaca;
}
.pub-alert-success {
    background: var(--c-success-bg);
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.pub-alert-warning {
    background: var(--c-warning-bg);
    color: #92400e;
    border: 1px solid #fde68a;
}
.pub-alert-info {
    background: var(--c-primary-bg);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ── Info grid (payment ref, confirmation) ──────────────────────────────── */

.pub-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pub-info-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
}
.pub-info-item:nth-child(odd) {
    border-right: 1px solid var(--c-border);
}
.pub-info-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.pub-info-label {
    font-size: 12px;
    color: var(--c-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.pub-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    margin-top: 2px;
}

/* ── Status badge (status tracker) ──────────────────────────────────────── */

.pub-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}
.pub-status-badge.submitted     { background: #dbeafe; color: #1d4ed8; }
.pub-status-badge.payment_pending { background: var(--c-warning-bg); color: #92400e; }
.pub-status-badge.fee_paid      { background: var(--c-success-bg); color: #15803d; }
.pub-status-badge.assessment_scheduled { background: #f3e8ff; color: #7c3aed; }
.pub-status-badge.assessment_complete  { background: #dbeafe; color: #1d4ed8; }
.pub-status-badge.accepted      { background: var(--c-success-bg); color: #15803d; }
.pub-status-badge.enrolled      { background: var(--c-success-bg); color: #15803d; }
.pub-status-badge.waitlisted    { background: var(--c-warning-bg); color: #92400e; }
.pub-status-badge.declined      { background: var(--c-danger-bg); color: #b91c1c; }
.pub-status-badge.withdrawn     { background: #f1f5f9; color: var(--c-text-muted); }
.pub-status-badge.draft         { background: #f1f5f9; color: var(--c-text-muted); }

/* ── Section titles ─────────────────────────────────────────────────────── */

.pub-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

/* ── Status tracker timeline ────────────────────────────────────────────── */

.pub-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
}

.pub-timeline-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
}

.pub-timeline-item:last-child { padding-bottom: 0; }

.pub-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-border);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}
.pub-timeline-item:not(:last-child) .pub-timeline-dot::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 5px;
    width: 2px;
    height: calc(100% + 8px);
    background: var(--c-border);
}
.pub-timeline-dot.active { background: var(--c-primary); }
.pub-timeline-dot.done   { background: var(--c-success); }

.pub-timeline-content {
    flex: 1;
}

.pub-timeline-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
}

.pub-timeline-desc {
    font-size: 13px;
    color: var(--c-text-muted);
    margin-top: 2px;
}

/* ── Expandable detail toggle ──────────────────────────────────────────── */

.pub-detail-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--c-primary-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-primary);
    margin-bottom: 0;
    transition: background .15s;
    user-select: none;
}
.pub-detail-toggle:hover { background: #dbeafe; }

.pub-detail-panel {
    border: 1px solid var(--c-border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 20px 16px;
    margin-bottom: 24px;
    background: var(--c-surface);
}

.pub-detail-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--c-border);
}
.pub-detail-section-title:not(:first-child) { margin-top: 16px; }

/* ── Document re-upload ────────────────────────────────────────────────── */

.pub-reupload-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--c-border);
}

.pub-btn-link {
    background: none;
    border: none;
    color: var(--c-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}
.pub-btn-link:hover { color: var(--c-primary-h); text-decoration: underline; }

.pub-reupload-form {
    margin-top: 12px;
    padding: 14px;
    background: #fafbfc;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

.pub-btn-sm {
    font-size: 13px;
    padding: 8px 16px;
}

/* ── Comment thread ────────────────────────────────────────────────────── */

.pub-comments-section {
    margin-bottom: 24px;
}

.pub-comments-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.pub-comment {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 14px;
}

.pub-comment-parent {
    background: var(--c-primary-bg);
    border: 1px solid #bfdbfe;
    margin-left: 0;
    margin-right: 40px;
}

.pub-comment-admin {
    background: #f8fafc;
    border: 1px solid var(--c-border);
    margin-left: 40px;
    margin-right: 0;
}

.pub-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.pub-comment-author {
    font-weight: 600;
    font-size: 13px;
    color: var(--c-text);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pub-comment-time {
    font-size: 12px;
    color: var(--c-text-muted);
}

.pub-comment-body {
    color: var(--c-text);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.pub-comments-empty {
    font-size: 14px;
    color: var(--c-text-muted);
    text-align: center;
    padding: 20px 0;
}

.pub-comment-form {
    padding: 14px;
    background: #fafbfc;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}

/* ── Alert variants ────────────────────────────────────────────────────── */

.pub-alert-success {
    background: var(--c-success-bg);
    border: 1px solid #bbf7d0;
    color: #166534;
}

.pub-alert-danger {
    background: var(--c-danger-bg);
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.pub-footer {
    text-align: center;
    padding: 24px 20px;
    font-size: 13px;
    color: var(--c-text-muted);
    border-top: 1px solid var(--c-border);
    margin-top: 40px;
}

/* ── Verified badge ─────────────────────────────────────────────────────── */
.pub-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 99px;
    padding: 1px 7px;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: .02em;
}

.pub-input-locked {
    background: #f8fafc;
    color: var(--c-text-muted);
    cursor: not-allowed;
}

/* ── Auth form fields (login page uses legacy Bootstrap-style classes) ──── */

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    color: var(--c-text);
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.form-control.is-invalid { border-color: var(--c-danger); }

.invalid-feedback {
    font-size: 12px;
    color: var(--c-danger);
    margin-top: 4px;
    display: block;
}

/* ── Picker list (dashboard, status picker) ─────────────────────────────── */

.pub-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.pub-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    transition: background .15s, border-color .15s;
}
a.pub-picker-row:hover { background: var(--c-primary-bg); border-color: var(--c-primary); }

.pub-picker-row-main {
    flex: 1;
    min-width: 0;
}

.pub-picker-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
}

.pub-picker-row-meta {
    font-size: 13px;
    color: var(--c-text-muted);
    margin-top: 2px;
    /* `overflow-wrap: anywhere` is the modern standard; `word-break: break-word`
       is a non-standard legacy alias kept here for older browsers. The
       combination lets us break long unbreakable strings (application numbers
       like AB-JOHNORR123-2027-0048) at any character to fit the container —
       but ONLY when the container has too-little width. The container width
       is governed by the .pub-picker-row-inner flex rules below. */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pub-picker-row-action {
    flex-shrink: 0;
}

/* Inner flex used inside .pub-picker-row when the card stacks a tracker
   partial below the main row (parent dashboard "Submitted applications"
   cards). On mobile (≤600px) the main + action columns wrap so the action
   button stacks below the meta — preventing the meta column from being
   squeezed to a single character of width. */
.pub-picker-row-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* ── Payment page ───────────────────────────────────────────────────────── */

.pub-payment-netcash {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #2563eb;
    border-radius: 12px;
    background: #eff6ff;
}

.pub-payment-netcash-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pub-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #9ca3af;
}

.pub-or-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.pub-payment-eft {
    margin-bottom: 20px;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.pub-payment-eft-header {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pub-eft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
}

/* ── Confirmation outstanding items ─────────────────────────────────────── */

.pub-outstanding-box {
    margin-top: 28px;
    text-align: left;
    border: 1.5px solid #f59e0b;
    border-radius: 12px;
    overflow: hidden;
}

.pub-outstanding-header {
    background: #fef3c7;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pub-outstanding-subtitle {
    font-size: 12px;
    color: #b45309;
    margin-left: auto;
}

.pub-outstanding-body {
    background: #fff;
}

.pub-outstanding-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
}

.pub-outstanding-item--border {
    border-bottom: 1px solid #f3f4f6;
}

.pub-outstanding-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pub-outstanding-info {
    flex: 1;
    min-width: 0;
}

.pub-outstanding-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.pub-outstanding-info-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.pub-outstanding-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.pub-all-complete {
    margin-top: 24px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ── Parent dashboard phone nudge ───────────────────────────────────────── */

.pub-phone-nudge {
    background: #fff8e1;
    border: 1px solid #f59e0b;
    color: #92400e;
    margin-bottom: 1rem;
    border-radius: 6px;
    padding: .85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* ── Landing page card rows ─────────────────────────────────────────────── */

.pub-landing-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pub-landing-card-action {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

/* Shown in place of the Apply button once applications close. Reads as a
   status, not a disabled control — there is nothing to click. */
.pub-landing-card-closed {
    display: inline-flex;
    align-items: center;
    font-size: .875rem;
    font-weight: 600;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: .5rem .9rem;
    white-space: nowrap;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    /* Layout */
    .pub-main { padding: 16px 12px 48px; }
    .pub-card { padding: 20px 16px; }

    /* Form fields */
    .pub-field-row { grid-template-columns: 1fr; gap: 0; }
    /* Prevent iOS auto-zoom on input focus (requires font-size >= 16px) */
    .pub-input,
    .pub-select,
    .pub-textarea,
    .form-control { font-size: 16px; }

    /* Info grid: single column */
    .pub-info-grid { grid-template-columns: 1fr; }
    .pub-info-item:nth-child(odd) { border-right: none; }
    .pub-info-item { border-bottom: 1px solid var(--c-border); }
    .pub-info-item:last-child { border-bottom: none; }
    .pub-info-value { word-break: break-word; }

    /* Buttons */
    .pub-btn { min-height: 48px; font-size: 15px; }
    .pub-btn-group { flex-direction: column; align-items: stretch; }

    /* Step indicator — stack each dot over its label (like the dashboard
       progress tracker) so ALL step names stay legible on mobile. The
       connector is drawn as a pseudo-element between dots; the inline
       .pub-step-line divs are hidden. */
    .pub-steps { padding: 0; gap: 0; }
    .pub-step {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        gap: 5px;
        position: relative;
        text-align: center;
    }
    .pub-step-num { position: relative; z-index: 1; }
    .pub-step-label {
        display: block;
        font-size: 10px;
        line-height: 1.15;
        max-width: 68px;
    }
    .pub-step-line { display: none; }
    .pub-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 16px;
        left: 50%;
        width: 100%;
        height: 2px;
        background: var(--c-border);
        z-index: 0;
    }
    .pub-step.done::after { background: var(--c-success); }

    /* Top bar */
    .pub-topbar { padding: 0 12px; }
    .pub-topbar-links { gap: 10px; }
    .pub-topbar-links a { font-size: 12px; }

    /* Comment indentation: reduce on narrow screens */
    .pub-comment-admin  { margin-left: 12px; }
    .pub-comment-parent { margin-right: 12px; }

    /* Picker rows: stack action below content */
    .pub-picker-row { flex-wrap: wrap; }
    .pub-picker-row-inner { flex-wrap: wrap; }
    .pub-picker-row-action { width: 100%; }
    .pub-picker-row-action .pub-btn { width: 100%; }

    /* EFT banking details: single column */
    .pub-eft-grid { grid-template-columns: 1fr; }

    /* Outstanding items: wrap action row below info on narrow screens */
    .pub-outstanding-subtitle { margin-left: 0; width: 100%; margin-top: 4px; }
    .pub-outstanding-item { flex-wrap: wrap; }
    .pub-outstanding-actions { width: 100%; margin-top: 8px; }
    .pub-outstanding-actions .pub-btn { flex: 1; min-width: 0; }
    .pub-outstanding-actions form { flex: 1; min-width: 0; }
    .pub-outstanding-actions form .pub-btn { width: 100%; }

    /* All-complete banner */
    .pub-all-complete { align-items: flex-start; }

    /* Phone nudge: stack verify button below text */
    .pub-phone-nudge { flex-direction: column; align-items: flex-start; }
    .pub-phone-nudge .pub-btn { width: 100%; text-align: center; box-sizing: border-box; }

    /* Landing page cards: stack content and button */
    .pub-landing-card-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .pub-landing-card-action { width: 100%; }
    .pub-landing-card-action .pub-btn { width: 100%; }
    /* Match the button it replaces: full width, centred, not squeezed. */
    .pub-landing-card-closed {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }
}

/* ── Phase C1.5 Track C — Parent progress tracker ─────────────────────────
   Compact 5-dot strip rendered under each submitted application on the
   parent dashboard. Variants:
     .pub-progress              base (inline)
     .pub-progress--card        adds padding + card background
     .pub-progress-dot--done    completed
     .pub-progress-dot--current in-progress / scheduled
     .pub-progress-dot--action  parent-action required (yellow)
     .pub-progress-dot--offer   placement offered (green outline)
     .pub-progress-dot--waitlist
     .pub-progress-dot--decline
     .pub-progress-dot--withdraw
     .pub-progress-dot--pending future step
   ────────────────────────────────────────────────────────────────────── */
.pub-progress {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-top: .65rem;
}
.pub-progress--card {
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 10px;
}
.pub-progress-dots {
    display: flex;
    align-items: flex-start;
    gap: 0;
}
/* Each step is a column: dot on top, short label under it. */
.pub-progress-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    text-align: center;
}
/* Connector line drawn from this dot's centre to the next, behind the dots. */
.pub-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.pub-progress-step-label {
    font-size: 10px;
    line-height: 1.15;
    color: #64748b;
    max-width: 68px;
}
.pub-progress-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 99px;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.pub-progress-dot--done {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.pub-progress-dot--current {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.pub-progress-dot--action {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}
.pub-progress-dot--offer {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.pub-progress-dot--waitlist {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}
.pub-progress-dot--decline {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}
.pub-progress-dot--withdraw {
    background: #94a3b8;
    border-color: #94a3b8;
    color: #fff;
}
.pub-progress-dot--focused {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.pub-progress-dot-number {
    font-variant-numeric: tabular-nums;
}
.pub-progress-caption {
    font-size: 12.5px;
    color: var(--c-text, #1e293b);
    line-height: 1.4;
}
.pub-progress-caption-label {
    color: var(--c-text-muted, #64748b);
}

/* Phase C1.5 Track C — full vertical tracker (application detail page). */
.pub-progress-full {
    background: #fff;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 12px;
    padding: 1.1rem 1.25rem 1rem;
    margin-bottom: 1.25rem;
}
.pub-progress-full-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .9rem;
    flex-wrap: wrap;
}
.pub-progress-full-title {
    font-size: .92rem;
    font-weight: 700;
    color: var(--c-text, #111827);
    letter-spacing: .02em;
}
.pub-progress-full-summary {
    font-size: .82rem;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 2px 10px;
}
.pub-progress-full-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.pub-progress-full-step {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .55rem .55rem .55rem .4rem;
    border-radius: 8px;
    transition: background .12s;
}
.pub-progress-full-step--focused {
    background: rgba(37, 99, 235, .06);
}
.pub-progress-full-step-marker {
    margin-top: 2px;
}
.pub-progress-full-step-marker.pub-progress-dot {
    width: 24px;
    height: 24px;
}
.pub-progress-full-step-marker.pub-progress-dot:not(:last-child)::after {
    display: none; /* no connector lines in the vertical layout */
}
.pub-progress-full-step-body {
    flex: 1;
}
.pub-progress-full-step-title {
    font-size: .88rem;
    font-weight: 600;
    color: var(--c-text, #111827);
}
.pub-progress-full-step-label {
    font-size: .82rem;
    color: var(--c-text-muted, #64748b);
    margin-top: 1px;
}
.pub-progress-full-step-detail {
    font-size: .8rem;
    color: var(--c-text-muted, #64748b);
    margin-top: 4px;
    line-height: 1.45;
}
.pub-progress-full-step-when {
    font-size: .72rem;
    color: #94a3b8;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.pub-progress-full-timeline {
    border-top: 1px solid var(--c-border, #e5e7eb);
    margin-top: 1rem;
    padding-top: .85rem;
}
.pub-progress-full-timeline-title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--c-text-muted, #64748b);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .55rem;
}
.pub-progress-full-timeline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.pub-progress-full-timeline-list li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}
.pub-progress-full-timeline-when {
    font-size: .74rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding-top: 2px;
    min-width: 78px;
}
.pub-progress-full-timeline-summary {
    flex: 1;
    font-size: .82rem;
    color: var(--c-text, #111827);
    line-height: 1.45;
}
.pub-progress-full-timeline-reason {
    font-size: .78rem;
    color: var(--c-text-muted, #64748b);
    margin-top: 2px;
}

/* ── School of Specialisation notice ─────────────────────────────────────
   Rendered by resources/views/public/_sos-notice.blade.php on the landing
   page, the apply steps, the payment step, the parent application view and
   the dedicated /placement-test page. Three variants share one shell so the
   notice reads consistently wherever a parent meets it.
   Mobile rules live in the @media block at the foot of this file.          */

.pub-sos {
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    background: #f5f9ff;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 0 0 20px;
}

.pub-sos-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.pub-sos-icon {
    color: #2563eb;
    flex-shrink: 0;
    line-height: 0;
    padding-top: 2px;
}

.pub-sos-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    line-height: 1.35;
}

/* Focus area ("Engineering") reads as a qualifier, not a second heading. */
.pub-sos-focus {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    vertical-align: middle;
    white-space: nowrap;
}

.pub-sos-intro {
    font-size: .9rem;
    color: #1e40af;
    margin: 0;
    line-height: 1.55;
}

.pub-sos-text {
    font-size: .875rem;
    color: #1e3a8a;
    margin: 10px 0 0;
    line-height: 1.55;
}

.pub-sos-points {
    margin: 14px 0 0;
    display: grid;
    gap: 12px;
}

.pub-sos-point dt {
    font-size: .8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 2px;
}

.pub-sos-point dd {
    margin: 0;
    font-size: .875rem;
    color: #334155;
    line-height: 1.55;
}

.pub-sos-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: .82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    /* Comfortable tap target on touch devices without inflating the layout. */
    min-height: 32px;
}

.pub-sos-link:hover,
.pub-sos-link:focus-visible {
    text-decoration: underline;
}

/* Screen-reader-only. Content is announced but never painted — used for the
   "opens in a new tab" hint on external links, where the icon already tells
   sighted users what the text would. */
.pub-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;
}

/* Compact: sits inside pages that already carry a lot of chrome. */
.pub-sos-compact {
    padding: 12px 14px;
    margin-bottom: 16px;
}

.pub-sos-compact .pub-sos-title { font-size: .9rem; }
.pub-sos-compact .pub-sos-intro { font-size: .84rem; }

@media (max-width: 600px) {
    .pub-sos {
        padding: 14px 14px;
        border-left-width: 3px;
        margin-bottom: 16px;
    }
    .pub-sos-head { gap: 8px; }
    .pub-sos-title { font-size: .95rem; }
    /* Stop the pill forcing a horizontal overflow on narrow screens: let it
       wrap onto its own line under the heading instead. */
    .pub-sos-focus {
        display: block;
        margin: 6px 0 0;
        width: fit-content;
        white-space: normal;
    }
    .pub-sos-intro,
    .pub-sos-point dd { font-size: .875rem; }
    .pub-sos-points { gap: 14px; }
    /* Full-width tap target, and the parenthetical drops out to save a line. */
    .pub-sos-link {
        min-height: 44px;
        align-items: center;
    }
}

/* ── Placement-test explainer page ───────────────────────────────────────── */

.pub-sos-page {
    max-width: 680px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.pub-sos-page-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .35rem;
    line-height: 1.25;
}

.pub-sos-page-sub {
    font-size: .95rem;
    color: #666;
    margin: 0 0 1.75rem;
    line-height: 1.55;
}

.pub-sos-page-h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 .9rem;
}

.pub-sos-steps {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: .85rem;
}

.pub-sos-steps li {
    font-size: .9rem;
    color: #334155;
    line-height: 1.6;
}

.pub-sos-steps strong { color: #1a1a1a; }

.pub-sos-page-actions { margin-top: 1.5rem; }

@media (max-width: 600px) {
    .pub-sos-page { margin: 1.5rem auto; }
    .pub-sos-page-title { font-size: 1.4rem; }
    .pub-sos-page-sub { font-size: .9rem; margin-bottom: 1.25rem; }
    .pub-sos-steps { padding-left: 1rem; }
}
