/* The file checker (zigzag.diy/tools/file-checker/): the share page's look (share.css), with
   a place to drop a file, and lists of what was checked and fixed. */

.fix .result[hidden] { display: none; }
.fix { padding-top: 56px; }
/* The page's header: back once a file is in (the title is the page until then). */
.share-page header.top[hidden] { display: none; }
.share-page header.top:not([hidden]) ~ .fix { padding-top: 12px; }
.fix .perks { padding: 4px 14px; border-radius: 999px; background: #e7f6ec; color: #17733a; }
.fix .intro { max-width: 600px; margin: 0 auto 32px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.fix .intro[hidden] { display: none; }
/* The one heading bigger than the page's text: what this page is. */
.fix .fix-art { display: block; height: 112px; margin-bottom: 8px; }
.fix .intro h1 { font-size: 38px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
.fix .powered { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fix .powered .wordmark canvas { height: 17px !important; width: auto !important; } /* (the script sizes it for the header) */
.fix .intro .drop { margin-top: 12px; width: 100%; justify-content: center; }
.fix .drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  padding: 28px 24px; border: 1px dashed var(--line); border-radius: 6px; cursor: pointer;
}
.fix .drop:hover, .fix .drop.over { border-color: #000; }
.fix .drop:focus-within { outline: 2px solid #000; outline-offset: 2px; }
.fix .status { text-align: center; margin-bottom: 24px; }
.fix .status:empty { display: none; }
/* After a file: its result beside its name, and Check another file under the threads. */
.fix .again .another { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--dim); cursor: pointer; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.fix .again .another svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fix .again .another:hover, .fix .again .another:focus { background: none; color: #000; }

/* What was checked, fixed, and is left: a mark, then the sentence. */
.fix .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fix .checks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.fix .checks li::before { content: ""; width: 14px; height: 14px; margin-top: .3em; border-radius: 50%; }
.fix .checks li.ok::before { background: #1a7f37 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3.5 7.2 2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fix .checks li.warn::before { background: #b35900 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 3.6v4.2' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='7' cy='10.3' r='1' fill='%23fff'/%3E%3C/svg%3E") center / 14px no-repeat; }

.fix .facts dd strong { font-weight: inherit; overflow-wrap: anywhere; }
.fix .saves a { cursor: pointer; }

/* Do more in ZigZag: the AI assistant, and the download, on the logo's light blue. */
.fix .more { max-width: 640px; display: grid; gap: 14px; margin-top: 40px; padding: 24px; border-radius: 10px; background: rgba(var(--thread-rgb), .16); }
.fix .more h2 { margin: 0; color: inherit; font-weight: 600; }
.fix .more .remaining[hidden] { display: none; }
.fix .get-row .get { flex-wrap: wrap; }
.fix .get-row .tagline { display: none; }

/* What it checks, formats and questions: plain text below the tool, for people and search. */
.fix .about { max-width: 640px; margin: 72px auto 0; display: grid; gap: 12px; }
/* With a file in: in line with the results' left column (share.css: 1fr, 56px gap, 320px). */
.fix.checked .about { max-width: none; margin: 72px calc(320px + 56px) 0 0; }
.fix .about h2 { margin: 16px 0 0; color: inherit; font-weight: 600; }
.fix .about ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.fix .about .formats div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.fix .about .formats dd, .fix .about .faq dd { color: var(--dim); }
.fix .about .faq { display: grid; gap: 14px; }
.fix .about .faq dd { margin-top: 2px; }

/* One column: the player, what was found, then what ZigZag could do. */
@media (max-width: 900px) {
  .fix .main-col { display: contents; }
  .fix .player-slot { order: 1; }
  .fix .details { order: 2; }
  .fix .more { order: 3; margin-top: 16px; }
  .fix.checked .about { margin-right: 0; }
}
