/* /id, the passport photo checker's front door: the document finder, the three steps, every document by country and the link rows. */
.id-front .tl-lede { max-width: 58ch; }
.id-front a:focus-visible, .id-find-clear:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

/* The finder: one box, then the most used documents one tap away. */
.id-find { max-width: 680px; margin: 28px 0 0; }
.id-find-label { display: block; margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; color: var(--ink); }
.id-find-box { position: relative; }
.id-find-icon {
    position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none;
    stroke: var(--ink-4); stroke-width: 1.7; stroke-linecap: round; pointer-events: none;
}
.id-find-input {
    display: block; width: 100%; min-width: 0; min-height: 56px; padding: 14px 52px 14px 48px; border: 1px solid var(--ink);
    border-radius: 10px; background: var(--wall); font: inherit; font-size: 17px; line-height: 1.3; color: var(--ink);
    box-shadow: 0 1px 2px rgba(15, 14, 13, 0.05), 0 10px 26px rgba(15, 14, 13, 0.07);
    text-overflow: ellipsis; -webkit-appearance: none; appearance: none;
}
.id-find-input::placeholder { color: var(--ink-4); opacity: 1; }
.id-find-input::-webkit-search-cancel-button, .id-find-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.id-find-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-line); }
.id-find-clear {
    position: absolute; right: 8px; top: 50%; display: flex; align-items: center; justify-content: center; width: 40px;
    height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2);
    cursor: pointer;
}
.id-find-clear:hover { background: var(--rule-soft); color: var(--ink); }
.id-find-clear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.id-find-status { margin: 10px 0 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-4); }
.id-find-status:empty { margin: 0; }

.id-chips { margin: 18px 0 0; }
.id-chips-label {
    display: block; margin: 0 0 9px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--ink-4);
}
.id-chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tl-page a.id-chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border: 1px solid var(--rule-2);
    border-radius: 999px; background: var(--wall); font-size: 14.5px; font-weight: 500; line-height: 1.2; color: var(--ink);
    transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.tl-page a.id-chip:hover { border-color: var(--ink); background: var(--wall-2); color: var(--ink); }
.tl-page a.id-chip:focus-visible { border-radius: 999px; }

.id-trust { max-width: 680px; margin: 24px 0 0; }
.id-trust .tl-device { margin: 0; }
.id-trust .tl-note { margin-top: 6px; }
.id-held { margin-top: 24px; }

/* How it works: three steps side by side, and the one line on what is free. */
.id-how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin: 22px 0 0; padding: 0; }
.id-how-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.id-how-name { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.id-how-text { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.id-how-offer { max-width: 72ch; margin: 26px 0 0; padding: 13px 16px; border-radius: var(--card-radius-sm); background: var(--wall-2); font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.tl-page .id-how-offer a { font-weight: 600; white-space: nowrap; }

/* Every document, by country: one line each. */
.id-docs, #id-pass { scroll-margin-top: 16px; }
.id-docs-head .tl-note { max-width: 72ch; }
.id-find-none { margin-top: 20px; }
.id-country { margin-top: 34px; }
.id-country-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.tl-page a.id-country-hub { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.id-doc-list.tl-index { margin-top: 10px; }
.id-doc-list .id-doc {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 24px; padding: 11px 0;
    font-size: 15.5px; line-height: 1.45;
}
.tl-page .id-doc a { font-weight: 500; border-bottom-color: transparent; }
.tl-page .id-doc a:hover { border-bottom-color: var(--red); }
.id-doc-what { display: block; font-size: 13px; line-height: 1.45; color: var(--ink-4); }
.id-doc-meta { font-size: 13px; line-height: 1.45; color: var(--ink-4); text-align: right; white-space: nowrap; }
.id-doc-size { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* While something is typed, the matching documents come straight under the box. */
.id-front.is-finding .id-chips, .id-front.is-finding .id-trust, .id-front.is-finding .id-held,
.id-front.is-finding .id-works, .id-front.is-finding .id-docs-head { display: none; }
.id-front.is-finding .id-docs { margin-top: 4px; padding-top: 0; border-top: 0; }
.id-front.is-finding .id-country { margin-top: 26px; }

/* More from WinPhoto ID: each kind of page on its own row. */
.id-more-rows { margin: 18px 0 0; border-top: 1px solid var(--rule); }
.id-more-row {
    display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 2px 20px; margin: 0; padding: 12px 0;
    border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.85; color: var(--ink-2);
}
.id-more-row .tl-more-label { margin: 0; }

@media (max-width: 720px) {
    .id-how-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .id-how-steps li { flex-direction: row; }
}
@media (max-width: 640px) {
    .id-find { margin-top: 22px; }
    .id-chips { margin-top: 16px; }
    .id-front .tl-lede { font-size: 16px; }
    .id-find { scroll-margin-top: 12px; }
    .id-chip-list { gap: 6px; }
    .tl-page a.id-chip { min-height: 38px; padding: 7px 12px; font-size: 13.5px; }
    .id-doc-list .id-doc { grid-template-columns: minmax(0, 1fr); }
    .id-doc-meta { text-align: left; white-space: normal; }
    .id-more-row { grid-template-columns: minmax(0, 1fr); padding: 13px 0; }
}
