/* The vault enhancement is scoped to the trial release and recovery controls. */
/* Reuse Ghost's content class inside the monthly section, including its spacing. */
.gh-content > .vault-month { min-width: 0; }
.page-template .vault-month > :first-child { margin-top: 0; }
.page-template .vault-month > :last-child { margin-bottom: 0; }
.vault-month [data-vault-legacy-bindings] { display: none; }
.vault-opening-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 16px; background: var(--color-lighter-gray); border: 1px solid var(--color-light-gray); border-radius: 5px; }
.gh-content > .vault-opening-note[id] { margin-top: 28px; }
.vault-password-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 1.5rem; }
.vault-password-line > span:first-child { flex-basis: 100%; font-weight: 600; }
.vault-opening-note .vault-opening-tip { align-self: center; }
.gh-content .vault-opening-tip p { margin: 0 0 6px; font-size: 1.4rem; line-height: 1.6; }
.gh-content .vault-opening-tip a { color: inherit; font-size: 1.4rem; text-underline-offset: 4px; }
.vault-password code { padding: 0; background: none; font-size: 1.5rem; font-family: ui-monospace, monospace; overflow-wrap: anywhere; user-select: all; }
.vault-password button, .vault-file-feedback button, .vault-help button {
    min-height: 40px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 5px;
    font: inherit; font-size: 1.4rem; color: inherit; background: transparent; cursor: pointer;
}
.vault-password .vault-copy-status:empty { display: none; }
.vault-copy-status { display: block; margin-top: 8px; font-size: 1.35rem; }
.vault-download-list .vault-compact-file {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 18px;
    margin: 0; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    scroll-margin-top: 100px;
}
.vault-download-link { display: inline-flex; align-items: center; min-height: 38px; font-size: 1.6rem; font-weight: 600; text-underline-offset: 4px; }
.vault-download-link::before { content: '↓'; margin-right: 9px; }
.vault-file-meta { font-size: 1.3rem; line-height: 1.6; opacity: .75; }
.vault-legacy-file { scroll-margin-top: 100px; }
.vault-opening-note :focus-visible, [data-vault-file] :focus-visible, .vault-help :focus-visible { outline: 3px solid var(--ghost-accent-color, currentColor); outline-offset: 4px; }
.vault-file-feedback { grid-column: 1 / -1; width: 100%; box-sizing: border-box; padding: 14px 16px; margin: 8px 0 6px; border-left: 3px solid var(--ghost-accent-color, currentColor); background: color-mix(in srgb, currentColor 4%, transparent); text-align: left; font-size: 1.5rem; line-height: 1.6; }
.gh-content .vault-file-feedback p { margin: 0; font-size: 1.5rem; }
.vault-legacy-file:has([data-vault-feedback]:not([hidden])) { flex-wrap: wrap; }
.vault-file-feedback[hidden], .vault-help [hidden] { display: none !important; }
.vault-feedback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.vault-feedback-actions a { text-underline-offset: 3px; }
[data-vault-file] [aria-disabled="true"], [data-vault-file] button:disabled { opacity: .6; cursor: progress; }
.vault-help { max-width: 800px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) max(24px, 3vw) 64px; }
.vault-help .vault-back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.55rem; font-weight: 600; text-underline-offset: 4px; }
.vault-help .vault-guide-location { margin: 22px 0 10px; font-size: 1.35rem; font-weight: 650; letter-spacing: .025em; }
.vault-help h1 { margin: 0 0 18px; font-size: clamp(3.2rem, 5vw, 4.8rem); line-height: 1.15; }
.vault-help p, .vault-help li { font-size: 1.65rem; line-height: 1.7; }
.vault-help p { margin: 0 0 14px; }
.vault-help > section { margin: 36px 0 0; }
.vault-help h2 { margin: 0 0 18px; font-size: 2.3rem; line-height: 1.35; }
.vault-help h3 { margin: 0 0 8px; font-size: 1.8rem; line-height: 1.4; }
.vault-help .vault-selected { padding: 18px 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.vault-help .vault-selected h2 { font-size: 1.8rem; margin-bottom: 8px; }
.vault-help .vault-selected p { font-size: 1.4rem; overflow-wrap: anywhere; }
.vault-help .vault-selected p:last-child { margin-bottom: 0; }
.vault-help .vault-steps { list-style: none; counter-reset: opening-step; padding: 0; margin: 0 0 28px; }
.vault-help .vault-steps > li { counter-increment: opening-step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; margin: 0; padding: 0 0 26px; }
.vault-help .vault-steps > li:last-child { padding-bottom: 0; }
.vault-help .vault-steps > li::before { content: counter(opening-step); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-size: 1.45rem; font-weight: 600; }
.vault-help .vault-steps p:last-child { margin-bottom: 0; }
.vault-help .vault-example-path { padding: 10px 12px; margin-top: 12px; border-radius: 4px; background: color-mix(in srgb, currentColor 5%, transparent); font-size: 1.3rem; overflow-wrap: anywhere; }
.vault-help details { margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.vault-help summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; margin: 0; list-style: none; font-size: 1.7rem; line-height: 1.5; font-weight: 650; cursor: pointer; }
.vault-help summary::-webkit-details-marker { display: none; }
.vault-help summary::after { content: '+'; flex-shrink: 0; font-size: 2rem; font-weight: 400; }
.vault-help details[open] > summary::after { content: '−'; }
.vault-help .vault-detail-body { padding: 0 0 24px; }
.vault-help .vault-detail-body > :last-child { margin-bottom: 0; }
.vault-help select, .vault-help textarea { width: 100%; box-sizing: border-box; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 6px; padding: 12px; background: var(--background-color, transparent); color: inherit; font: inherit; font-size: 1.6rem; }
.vault-help label { display: block; margin: 20px 0 8px; font-size: 1.5rem; font-weight: 600; }
.vault-help textarea { min-height: 100px; }
.gh-content .vault-help .gh-button, .vault-help .gh-button { min-height: 44px; padding: 10px 18px; font-size: 1.5rem; text-decoration: none; color: var(--color-white); }
.vault-help .vault-guide-footer { margin-top: 44px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.vault-help-details { width: 100%; box-sizing: border-box; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.3rem; padding: 14px; margin-top: 14px; }
@media (max-width: 600px) {
    .vault-opening-note { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .vault-download-list .vault-compact-file { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 9px 0; }
    .vault-file-meta { padding-left: 22px; }
    .vault-help { padding-left: 24px; padding-right: 24px; }
}

.vault-help .vault-practice-preview { font-size: 1.3rem; color: var(--color-secondary-text); }
.vault-help .vault-practice-status { margin: 14px 0 0; font-size: 1.45rem; }
.vault-help .vault-practice-status:empty { display: none; }
.vault-help .vault-practice-password { padding: 12px 14px; margin-bottom: 16px; background: var(--color-lighter-gray); border-radius: 4px; }
.vault-help .vault-practice-password p { margin: 8px 0 0; font-size: 1.4rem; }
.vault-practice-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vault-practice-images figure { margin: 0; min-width: 0; }
.vault-practice-images img { width: 100%; height: auto; border-radius: 4px; }
.vault-practice-images figcaption { margin-top: 8px; font-size: 1.25rem; overflow-wrap: anywhere; }
.vault-help [id], .vault-help [data-vault-troubleshooting] { scroll-margin-top: 96px; }

.vault-help.vault-help-embedded { max-width: none; margin: 0; padding: 0 0 40px; }
.vault-help .vault-practice-password button { margin-left: 10px; }
