/* Letterbay (the word finder) on the web iOS kit in page mode (/ioskit/page.css): the controls, the word tiles and the
   generated pages' text. Loaded after ios.css and page.css. */
:root { --pg-w: 860px; --tile: #fff8ec; --tile-ink: #3b2a12; --tile-edge: rgba(122, 79, 18, .18); --blank: #e8590c; --mean: #5e5ce6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tile: #2c2620; --tile-ink: #f6ead8; --tile-edge: rgba(255, 220, 170, .14); --blank: #ff9a4d; --mean: #8e8cff; } }
:root[data-theme="dark"] { --tile: #2c2620; --tile-ink: #f6ead8; --tile-edge: rgba(255, 220, 170, .14); --blank: #ff9a4d; --mean: #8e8cff; }
html { scrollbar-gutter: stable; }
main { display: flow-root; padding-top: calc(var(--sat) + 60px); }
.pg-bar { height: calc(var(--sat) + 60px); box-sizing: border-box; margin-top: calc(-1 * (var(--sat) + 60px)); }
html.touch .pg-app .seg, html.touch .pg-app .wf-w { min-height: 0; }

/* ---------- the controls ---------- */
.wf-ctl { display: flex; flex-direction: column; gap: 10px; }
.wf-mode { height: 36px; border-radius: 18px; }
.wf-mode .seg { font-size: 15px; }
.wf-mode::before, .wf-mode::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; }
.wf-mode::before { top: -4px; } .wf-mode::after { bottom: -4px; }
.wf-box { display: flex; align-items: center; gap: 6px; height: 56px; padding: 0 6px 0 14px; border-radius: 16px; background: var(--row); box-shadow: 0 0 0 .5px var(--hairline), 0 2px 10px rgba(0, 0, 0, .04); }
.wf-box:focus-within { box-shadow: 0 0 0 2px var(--tint); }
.wf-glass { width: 20px; height: 20px; flex: none; color: var(--text2); }
.wf-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 700 22px/1 var(--rounded); letter-spacing: .08em; text-transform: uppercase; -webkit-appearance: none; appearance: none; padding: 0; }
.wf-box input::placeholder { color: var(--text3); font-weight: 500; font-size: 17px; letter-spacing: 0; text-transform: none; }
.wf-key { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--fill2); color: var(--text); font: 700 20px/1 var(--rounded); }
.wf-key:active { background: var(--fill); }
.wf-clear { background: none; color: var(--text2); font-size: 26px; font-weight: 400; }
.wf-clear[hidden] { display: none; }
.wf-filters { border-radius: 12px; background: var(--row); overflow: hidden; }
.wf-filters summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 500; color: var(--tint); }
.wf-filters summary::-webkit-details-marker { display: none; }
.wf-filters summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid var(--text3); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.wf-filters[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.wf-fc { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--tint); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-sizing: border-box; }
.wf-fc:empty { display: none; }
.wf-filters .group-rows { border-radius: 0; box-shadow: none; background: none; margin: 0; }
.wf-filters .group-rows > .row:first-child::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.wf-f { min-height: 48px; cursor: text; }
.wf-f .lc-label { flex: 0 1 auto; min-width: 0; padding-right: 8px; }
.wf-f .lc-label small { display: block; font-size: 12px; color: var(--text2); }
.wf-f input { flex: 1 1 auto; min-width: 0; width: 6em; text-align: right; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.wf-ctl[data-mode="letters"] [data-only="pattern"] { display: none; }
.picker-row { position: relative; }
.picker-select { -webkit-appearance: none; appearance: none; }
.wf-active { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-top: -2px; }
.wf-active[hidden] { display: none; }
.wf-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 13px; border-radius: 17px; background: color-mix(in srgb, var(--tint) 13%, transparent); color: var(--tint); font-weight: 600; font-size: 14px; }
@supports not (background: color-mix(in srgb, red 10%, blue)) { .wf-pill { background: var(--fill2); } }
.wf-pill span { font-size: 18px; font-weight: 400; line-height: 1; opacity: .75; }
.wf-pill::after { content: ""; position: absolute; inset: -5px 0; }
.wf-common .toggle-text small { display: block; font-size: 12px; color: var(--text2); }

/* ---------- results ---------- */
.wf-res { padding: 14px 0 24px; min-height: 240px; }
.wf-sum { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 6px; }
.wf-sum p { flex: 1 1 200px; margin: 0; font-size: 15px; color: var(--text2); }
.wf-sum b { color: var(--text); font-size: 17px; }
.wf-acts { display: flex; gap: 8px; }
.wf-act { height: 36px; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--fill2); color: var(--tint); font-weight: 600; font-size: 15px; position: relative; }
.wf-act::after { content: ""; position: absolute; inset: -5px -3px; }
.wf-g { margin: 9px 0 0; padding-bottom: 5px; }
.wf-g + .wf-g { content-visibility: auto; contain-intrinsic-size: auto 320px; }
.wf-gh { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 700 17px/1.3 var(--sys); color: var(--text); }
.wf-n { font-size: 13px; font-weight: 600; color: var(--text2); }
.wf-ws { display: flex; flex-wrap: wrap; gap: 10px 6px; margin: 0; padding: 0; list-style: none; }
.wf-ws li { display: block; margin: 0; padding: 0; }
.wf-w { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 10px; border-radius: 9px; background: var(--tile); color: var(--tile-ink); box-shadow: 0 0 0 .5px var(--tile-edge), 0 1.5px 0 var(--tile-edge); font: 650 15px/1 var(--rounded); letter-spacing: .07em; text-transform: uppercase; font-variant-numeric: tabular-nums; cursor: pointer; }
.wf-w::after { content: ""; position: absolute; inset: -5px 0; }
.wf-w { z-index: 1; }
.wf-w:active { transform: translateY(1px); }
.wf-w.r { background: transparent; color: var(--text2); box-shadow: 0 0 0 1px var(--fill); font-weight: 500; }
.wf-w i { font-style: normal; color: var(--blank); }
.wf-w.m::before { content: ""; position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: var(--mean); }
.wf-more { margin: 10px 0 0; min-height: 44px; padding: 0 16px; border-radius: 22px; background: var(--fill2); color: var(--tint); font-weight: 600; font-size: 15px; }
.wf-empty, .wf-none { padding: 18px 4px; color: var(--text2); font-size: 15px; line-height: 21px; }
.wf-empty p, .wf-none p { margin: 0 0 6px; }
.wf-empty-t, .wf-none-t { font-size: 17px; font-weight: 600; color: var(--text); }
.wf-try { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
:root:root .wf-ex { min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--row); color: var(--tint); font-weight: 600; font-size: 15px; box-shadow: 0 0 0 .5px var(--hairline); }
.wf-key-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 13px; color: var(--text2); }
.wf-key-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- the text under the app (the hub and the generated pages) ---------- */
.pg-read .wf-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; padding: 0; list-style: none; }
.pg-read .wf-links li { margin: 0; }
.pg-read .wf-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--row); text-decoration: none; font-weight: 500; box-shadow: 0 0 0 .5px var(--hairline); }
.pg-read .wf-plain { columns: 3 9em; column-gap: 18px; margin: 6px 0 16px; padding: 0; list-style: none; font: 600 15px/1.7 var(--rounded); letter-spacing: .05em; text-transform: uppercase; }
.pg-read .crumbs ol { display: flex; flex-wrap: wrap; gap: 0 6px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 13px; color: var(--text2); }
.pg-read .crumbs li + li::before { content: "›"; margin-right: 6px; }
@media print { .pg-bar, .wf-ctl, .wf-acts, .wf-more, .pg-tools { display: none !important; } }
