/* gospel.to mobile apps page (/mobile): Mobile Apps Spec 1b, "Four-up +
   index". A title row, four featured cards (each app's first screenshot), then
   the filters in a sidebar beside the list, sorted and shown 15 rows at a
   time. Loads on top of app.css, home1a.css and browse-dark.css (tokens,
   header, footer). */

.mo{width:min(var(--max),100% - 128px);margin:0 auto;padding:48px 0 120px}
.mo p{margin:0}
.mo .wa-dot{margin:0 6px;color:rgba(244,243,239,.3)}
.mo .wa-tile{display:grid;place-items:center;font-family:var(--serif);font-weight:300;line-height:1;user-select:none}
/* a gold star, drawn once here for every row and card */
.mo-star{flex:none;display:inline-block;width:14px;height:14px;background:oklch(0.85 0.12 88);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.85 5.95 6.55.85-4.8 4.55 1.2 6.5L12 17.3l-5.8 3.15 1.2-6.5-4.8-4.55 6.55-.85z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.85 5.95 6.55.85-4.8 4.55 1.2 6.5L12 17.3l-5.8 3.15 1.2-6.5-4.8-4.55 6.55-.85z'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---------- title row: the breadcrumb, and the title 14px under it ---------- */
.mo-bc{font-size:14px;line-height:1.4;color:rgba(244,243,239,.6);text-transform:lowercase}
.mo-bc a{color:inherit;transition:color .2s}
.mo-bc a:hover{color:var(--ink)}
.mo-bc span{margin:0 8px}
.mo-h1{margin:14px 0 0;font-family:var(--serif);font-weight:300;font-size:72px;line-height:.95;letter-spacing:-.04em;color:var(--ink)}

/* ---------- on load: the breadcrumb, the title and the four cards rise into
   place, each after its --rd delay (RISE_JS adds .in). The first page of a
   visit only: later pages open at once (app.css). 1%, not 0: see home1a.css.
   On a touch screen, without the blur and with a shorter rise. A card's hover
   rise is on transform, so it never waits for the entrance. ---------- */
.mo .anim-rise{opacity:.01;translate:0 40px;filter:blur(12px);
  transition:opacity 1.4s var(--ease) var(--rd,0ms),translate 1.8s var(--ease) var(--rd,0ms),filter 1.4s var(--ease) var(--rd,0ms)}
.mo .anim-rise.in{opacity:1;translate:0 0;filter:none}
.mo-card.anim-rise{transition:opacity 1.4s var(--ease) var(--rd,0ms),translate 1.8s var(--ease) var(--rd,0ms),filter 1.4s var(--ease) var(--rd,0ms),transform .5s var(--ease)}
.gt-again .mo-card.anim-rise{transition:transform .5s var(--ease)!important}
@media (hover:none) and (pointer:coarse){
  .mo .anim-rise{translate:0 24px;filter:none;transition:opacity .9s var(--ease) var(--rd,0ms),translate 1.1s var(--ease) var(--rd,0ms)}
  .mo-card.anim-rise{transition:opacity .9s var(--ease) var(--rd,0ms),translate 1.1s var(--ease) var(--rd,0ms),transform .5s var(--ease)}
}

/* ---------- featured: four cards, 20px apart; a 9:16 screenshot over a 100px info area ---------- */
.mo-feat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:36px}
.mo-card{position:relative;display:flex;flex-direction:column;min-width:0;border-radius:24px;background:#111113;overflow:hidden;isolation:isolate;transition:transform .5s var(--ease)}
.mo-card::after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);pointer-events:none}
.mo-card:hover{transform:translateY(-4px)}
/* the first screenshot fills the card's width, cropped to 9:16 from the top so a store screenshot's headline always shows */
.mo-shot{position:relative;display:block;aspect-ratio:273/485;overflow:hidden;background:#18181b}
.mo-shot img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.mo-info{display:block;padding:16px 18px 18px}
.mo-label{display:block;font-size:11px;font-weight:600;line-height:14px;letter-spacing:.14em;text-transform:uppercase;color:rgba(244,243,239,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mo-app{display:flex;align-items:center;gap:12px;min-width:0;margin-top:12px}
.mo-cic{flex:none;display:block;width:40px;height:40px;border-radius:10px;object-fit:cover;outline:1px solid rgba(255,255,255,.1);outline-offset:-1px}
.mo-cic.wa-tile{display:grid;font-size:22px}
.mo-ct{display:flex;flex-direction:column;gap:3px;min-width:0}
.mo-cname{font-size:16px;font-weight:600;line-height:1.25;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mo-cmeta{display:flex;align-items:center;font-size:13px;line-height:1.3;color:rgba(244,243,239,.64);white-space:nowrap}
.mo-crate{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:var(--ink)}
.mo-crate .mo-star{width:12px;height:12px}
.mo-dot{margin:0 6px;color:rgba(244,243,239,.3)}

/* ---------- browse: a 232px sidebar, 56px, then the list ---------- */
.mo-browse{display:grid;grid-template-columns:232px minmax(0,1fr);gap:56px;align-items:start;margin-top:88px}
/* the sidebar sticks 24px under the header while the list scrolls; its groups 28px apart */
.mo-side{position:sticky;top:96px;display:flex;flex-direction:column;gap:28px;
  /* taller than the window, it scrolls on its own, so every filter stays in reach (with room for the focus rings) */
  max-height:calc(100vh - 120px);overflow-y:auto;margin:-4px;padding:4px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}
.mo-search{position:relative;margin:0}
.mo-search svg{position:absolute;left:14px;top:14px;color:rgba(244,243,239,.56);pointer-events:none}
.mo-search input{display:block;width:100%;height:44px;margin:0;padding:0 14px 0 40px;border:0;border-radius:12px;background:#111113;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);
  font-family:var(--sans);font-size:14px;color:var(--ink);transition:box-shadow .2s}
@media (pointer:coarse){ .mo-search input{font-size:16px} }   /* 16px, so a phone does not zoom in on it */
.mo-search input::placeholder{color:rgba(244,243,239,.45)}
.mo-search input:focus{box-shadow:inset 0 0 0 1px rgba(255,255,255,.26)}
.mo .mo-gh{margin:0 0 10px;font-size:11px;font-weight:600;line-height:1.3;letter-spacing:.16em;text-transform:uppercase;color:rgba(244,243,239,.56)}
/* Category: 38px options with their totals */
.mo-opts{display:flex;flex-direction:column;gap:2px}
.mo-opt{display:flex;align-items:center;justify-content:space-between;gap:12px;height:38px;margin:0;padding:0 12px;border:0;border-radius:10px;background:transparent;
  font-family:var(--sans);font-size:15px;font-weight:500;line-height:1;color:rgba(244,243,239,.72);text-align:left;cursor:pointer;transition:background-color .2s,color .2s}
.mo-opt:hover{background:rgba(255,255,255,.045);color:var(--ink)}
.mo-opt[aria-pressed="true"]{background:rgba(255,255,255,.09);color:var(--ink)}
.mo-c{flex:none;font-size:13px;font-weight:400;color:rgba(244,243,239,.56)}
/* Price and Works on: chips, 34px, 6px apart, wrapping */
.mo-chips{display:flex;flex-wrap:wrap;gap:6px}
.mo-chip{height:34px;margin:0;padding:0 12px;border:0;border-radius:999px;background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  font-family:var(--sans);font-size:14px;font-weight:500;line-height:1;color:rgba(244,243,239,.8);white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s,box-shadow .2s}
.mo-chip:hover{color:var(--ink);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.mo-chip[aria-pressed="true"]{background:var(--ink);color:#0a0a0a;box-shadow:none}
/* Uses AI: a switch, 40 x 24 */
.mo-aiw{display:flex;align-items:center;justify-content:space-between;gap:12px;height:38px;padding:0 12px}
.mo-ai-l{font-size:15px;font-weight:500;color:rgba(244,243,239,.72);cursor:pointer;user-select:none}
.mo-sw{position:relative;flex:none;width:40px;height:24px;margin:0;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.08);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);cursor:pointer;transition:background-color .25s,box-shadow .25s}
.mo-sw i{position:absolute;left:4px;top:4px;width:16px;height:16px;border-radius:50%;background:var(--ink);transition:translate .3s var(--ease),background-color .25s}
.mo-sw[aria-checked="true"]{background:var(--ink);box-shadow:none}
.mo-sw[aria-checked="true"] i{translate:16px 0;background:#0a0a0a}

/* ---------- the list: heading and count at the left, the sort at the right ---------- */
.mo-lhead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:20px}
.mo-lh{margin:0;font-family:var(--serif);font-weight:300;font-size:40px;line-height:1;letter-spacing:-.03em;color:var(--ink)}
.mo .mo-lcount{margin-top:10px;font-size:14px;line-height:1.4;color:rgba(244,243,239,.6)}
.mo-sort{display:inline-flex;gap:2px;padding:4px;border-radius:999px;background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px rgba(255,255,255,.1)}
.mo-so{height:34px;margin:0;padding:0 14px;border:0;border-radius:999px;background:transparent;font-family:var(--sans);font-size:14px;font-weight:500;line-height:1;
  color:rgba(244,243,239,.8);white-space:nowrap;cursor:pointer;transition:background-color .2s,color .2s}
.mo-so:hover{color:var(--ink)}
.mo-so[aria-pressed="true"]{background:var(--ink);color:#0a0a0a}
/* the rows reach 12px past the list on both sides, so the icons line up with
   the heading while the hover fill has room; the rules stay the list's width */
.mo-rows{list-style:none;margin:0 -12px;padding:0}
.mo-rows::after{content:"";display:block;height:1px;margin:0 12px;background:rgba(255,255,255,.08)}
.mo-li[hidden],.mo-rows[hidden],.mo-more[hidden]{display:none}
.mo-row{position:relative;display:grid;grid-template-columns:52px 230px minmax(0,1fr) 64px 96px;gap:24px;align-items:center;padding:16px 12px;border-radius:12px;transition:background-color .25s}
.mo-row::before{content:"";position:absolute;left:12px;right:12px;top:0;height:1px;background:rgba(255,255,255,.08)}
.mo-row:hover{background:rgba(255,255,255,.035)}
.mo-ic{display:block;width:52px;height:52px;border-radius:12px;object-fit:cover;outline:1px solid rgba(255,255,255,.1);outline-offset:-1px}
.mo-ic.wa-tile{display:grid;font-size:26px}
.mo-nm{display:flex;flex-direction:column;gap:3px;min-width:0}
.mo-nl{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.mo-n{font-size:16px;font-weight:600;line-height:1.3;letter-spacing:-.005em;color:var(--ink)}
.mo-b{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:999px;font-size:10.5px;font-weight:700;line-height:1}
.mo-b-new{background:var(--ink);color:#0a0a0a;text-transform:uppercase;letter-spacing:.08em}
.mo-b-ai{background:oklch(0.36 0.06 85);color:oklch(0.9 0.12 90);letter-spacing:.06em}
/* under the name: maker and category under All, "by" and the maker inside a category */
.mo-mk{font-size:14px;line-height:1.35;color:rgba(244,243,239,.58)}
.mo-mk-cat,.mo-in-cat .mo-mk-all{display:none}
.mo-in-cat .mo-mk-cat{display:inline}
.mo-ds{display:flex;flex-direction:column;gap:4px;min-width:0}
.mo-d{font-size:15px;line-height:1.45;color:rgba(244,243,239,.76)}
.mo-pl{font-size:13px;line-height:1.4;color:rgba(244,243,239,.56)}
/* the rating, and its count 2px below */
.mo-rt{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.mo-rv{display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:600;line-height:1.3;color:var(--ink)}
.mo-rc{font-size:12.5px;line-height:1.3;color:rgba(244,243,239,.56)}
.mo-rt-none{font-size:14px;font-weight:600;color:rgba(244,243,239,.4)}
.mo-pr{font-size:14px;font-weight:500;line-height:1.3;color:rgba(244,243,239,.88);text-align:right}
/* Show more: "Showing 15 of 45" at the left, the button at the right, 24px under the last row */
.mo-more{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}
.mo .mo-shown{font-size:14px;line-height:1.4;color:rgba(244,243,239,.6)}
.mo-morebtn,.mo-clear{flex:none;height:44px;margin:0;padding:0 20px;border:0;border-radius:999px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
  font-family:var(--sans);font-size:15px;font-weight:500;color:var(--ink);cursor:pointer;transition:background-color .2s}
.mo-morebtn:hover,.mo-clear:hover{background:rgba(255,255,255,.1)}
.mo-empty{padding:56px 12px 24px;text-align:center}
.mo-empty p{font-size:17px;line-height:1.5;color:rgba(244,243,239,.72)}
.mo-clear{margin-top:18px;font-weight:600}

/* reduced motion: the cards do not rise; the colors still change */
@media (prefers-reduced-motion:reduce){
  .mo .anim-rise{opacity:1;translate:none;filter:none;transition:none}
  .mo-card,.mo-card:hover,.mo-card.anim-rise,.gt-again .mo-card.anim-rise{transition:none!important;transform:none}
}

/* ---------- narrower windows ---------- */
@media (max-width:1199px){
  /* a row in two lines: the description under the name */
  .mo-row{grid-template-columns:52px minmax(0,1fr) 64px 92px;grid-template-areas:"ic nm rt pr" ". ds ds ds";row-gap:6px;align-items:start}
  .mo-ic{grid-area:ic}.mo-nm{grid-area:nm;align-self:center}.mo-ds{grid-area:ds}.mo-rt{grid-area:rt;align-self:center}.mo-pr{grid-area:pr;align-self:center}
}
@media (max-width:1000px){
  .mo{width:calc(100% - 80px)}
  .mo-h1{font-size:60px}
  .mo-browse{grid-template-columns:200px minmax(0,1fr);gap:40px;margin-top:72px}
}
/* tablets: the cards become a row to swipe through */
@media (max-width:900px){
  .mo-feat{display:flex;gap:16px;margin:36px -40px 0;padding:0 40px 6px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 40px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .mo-feat::-webkit-scrollbar{display:none}
  .mo-card{flex:0 0 240px;scroll-snap-align:start}
  .mo-card:hover{transform:none}
}
/* tablets and phones: the filters sit above the list, each group a row */
@media (max-width:820px){
  .mo-browse{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:56px}
  .mo-side{position:static;gap:18px;max-height:none;overflow:visible}
  .mo-opts{flex-direction:row;gap:8px;margin:0 -40px;padding:0 40px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .mo-opts::-webkit-scrollbar{display:none}
  .mo-opt{flex:none;gap:10px;padding:0 14px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
  .mo-opt[aria-pressed="true"]{box-shadow:none}
  .mo-aiw{justify-content:flex-start;gap:14px;padding:0}
}
@media (max-width:720px){
  .mo{width:calc(100% - 40px);padding:32px 0 88px}
  .mo-h1{font-size:48px}
  .mo-feat{margin:28px -20px 0;padding:0 20px 6px;scroll-padding:0 20px;gap:12px}
  .mo-card{flex-basis:min(64vw,260px)}
  .mo-opts{margin:0 -20px;padding:0 20px}
  /* chips, options and the sort grow to 44px for a finger */
  .mo-opt,.mo-chip,.mo-so,.mo-aiw{height:44px}
  .mo-chip{padding:0 14px}
  .mo-lh{font-size:34px}
  .mo-lhead{align-items:flex-start;flex-direction:column}
  .mo-sort{align-self:stretch;justify-content:space-between}
  .mo-so{flex:1 1 auto;padding:0 10px}
  /* a row: the price and rating at the right of the name, the description under it */
  .mo-rows{margin:0 -8px}
  .mo-rows::after{margin:0 8px}
  .mo-row{grid-template-columns:52px minmax(0,1fr) auto;grid-template-areas:"ic nm pr" "ic nm rt" ". ds ds";gap:4px 14px;padding:14px 8px}
  .mo-row::before{left:8px;right:8px}
  .mo-nm{align-self:start}
  .mo-rt,.mo-pr{justify-self:end;align-self:start}
  .mo-rt{flex-direction:row;align-items:center;gap:6px}
  .mo-ds{margin-top:6px}
  .mo-more{flex-wrap:wrap}
}
