/* Phone Number Search (Story 3480).
   Phone-first: one box, big rows, real touch targets. Pinned chrome -- .ps-main is
   the ONLY scroller, so the icon band, the black header, the search box and the
   status line never scroll off. Shell height is 100dvh (100vh fallback first)
   because on a phone 100vh is the URL-bar-expanded height. */

body { background: #F2F2F4; margin: 0; }

.ps-shell {
    display: flex; flex-direction: column;
    height: 100vh; height: 100dvh;
    overflow: hidden;
}

#lwIconBand, .ct-header, .ps-box, .ps-status { flex: 0 0 auto; }
.ps-main { flex: 1; overflow: auto; }

/* ---- header (shared .ct-header convention) ---- */
.ct-header {
    background: #3C3C3C; color: #fff;
    padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
}
.ct-header h1 { margin: 0; font-size: 14pt; font-weight: 600; flex: 1; }
.ct-header a, .ct-header button {
    background: transparent; color: #fff;
    border: 1px solid #6A6A6A; border-radius: 3px;
    padding: 4px 12px; cursor: pointer;
    font: inherit; text-decoration: none;
}
.ct-header button:hover { background: #5A5A5A; }

/* ---- the box ---- */
.ps-box {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: #fff; border-bottom: 1px solid #DDDDE0;
}
.ps-input {
    flex: 1 1 auto; width: 100%;
    padding: 12px 14px;
    font-size: 13pt;
    border: 1px solid #C4C4CC; border-radius: 6px;
    background: #FBFBFD;
}
.ps-input:focus { outline: none; border-color: #3C3C3C; background: #fff; }
.ps-clear {
    flex: 0 0 auto;
    padding: 10px 14px; font-size: 10pt;
    background: #fff; color: #3C3C3C;
    border: 1px solid #C4C4CC; border-radius: 6px; cursor: pointer;
}
.ps-clear:hover { background: #F0F0F4; }

/* ---- results ---- */
.ps-main { padding: 8px 0 24px 0; }

.ps-card {
    background: #fff;
    border-bottom: 1px solid #E6E6EA;
    padding: 12px 16px;
}
.ps-card-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; cursor: pointer; user-select: none; }

/* Story 5757: each card folds to its number line; Fold All sits beside Clear. */
.ps-chev { color: #6A6A72; font-size: 10pt; display: inline-block; transition: transform .15s; }
.ps-card:not(.collapsed) .ps-chev { transform: rotate(90deg); }
.ps-card.collapsed .ps-card-body { display: none; }
.ps-foldall[hidden] { display: none; }
.ps-number {
    font-size: 14pt; font-weight: 700; color: #1A1A1A;
    text-decoration: none;
}
.ps-number mark { background: #FFEFA8; color: inherit; padding: 0 1px; }
.ps-type {
    font-size: 8.5pt; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #fff; background: #6A6A72;
    padding: 2px 7px; border-radius: 3px;
}
.ps-label { font-size: 10.5pt; color: #5A5A5A; overflow-wrap: anywhere; }
.ps-label mark { background: #FFEFA8; color: inherit; padding: 0 1px; }
.ps-notes { margin-top: 4px; font-size: 10pt; color: #4A4A52; overflow-wrap: anywhere; }

.ps-owners { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ps-owner {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    font-size: 11.5pt;
}
.ps-owner a { color: #0A66C2; text-decoration: none; overflow-wrap: anywhere; }
.ps-owner a:hover { text-decoration: underline; }
.ps-owner-type {
    font-size: 8.5pt; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #5A5A5A; background: #EDEDF1;
    padding: 2px 7px; border-radius: 3px;
}
.ps-unowned { font-size: 10.5pt; color: #8A8A92; }

.ps-verbs { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.ps-verb {
    padding: 8px 12px; font-size: 10pt;
    background: #F6F6F9; color: #3C3C3C;
    border: 1px solid #D6D6DC; border-radius: 4px; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.ps-verb:hover { background: #ECECF2; }

.ps-empty { padding: 18px 16px; color: #5A5A5A; font-size: 11pt; }

.ps-more { padding: 14px 16px; }
.ps-more button {
    width: 100%; padding: 12px;
    font-size: 11pt; font: inherit;
    background: #fff; color: #3C3C3C;
    border: 1px solid #C4C4CC; border-radius: 6px; cursor: pointer;
}
.ps-more button:hover { background: #F5F5F8; }

/* ---- status line ---- */
.ps-status {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: #EDEDF1; border-top: 1px solid #DDDDE0;
    font-size: 9.5pt; color: #5A5A5A;
}
.ps-status span { flex: 1 1 auto; }
