/* JiCHO Home Feed / Wall — desktop layout layer (26 Nov 2026, owner reference).
   Loaded after jicho.css. Everything here is inside one media query, so phones and an upright tablet
   keep the approved full-screen layout exactly as it is.
   Three zones on a computer screen:
     LEFT   the navigation rail: 🌍 All Africa · Following · Videos · Photos, the county badge of the
            person on screen, and the JiCHO County Awards card;
     CENTRE the active post in a framed, gold-lit card (the media shown whole over its own softened
            copy; creator, caption and actions inside the card);
     RIGHT  inside the card's right edge: sound, then two pictures at a time of the person on screen.
   home-feed.js edges() measures inside the card (the feed's own frame), so the media still get the
   largest clear window between the controls. */

#feedView .jf-awards{display:none}

@media (min-width:1024px) and (min-height:560px){
  #feedView{
    --dk-rail:272px;            /* the left rail */
    --dk-g:22px;                /* gaps around the card */
    --dk-max:1480px;            /* the card's widest */
    --dk-top:calc(var(--jf-head,64px) + 18px);
    --dk-side:max(var(--dk-g),calc((100% - var(--dk-rail) - var(--dk-max)) / 2));
    --jf-th-r:14px;             /* the slider's inset inside the card (home-feed.js edges() reads it) */
    background:radial-gradient(120% 90% at 62% 18%,#2a1145 0%,#160a28 46%,#08050f 100%)!important;
  }
  /* the left rail's panel */
  #feedView::before{content:"";position:absolute;z-index:1;left:0;top:var(--jf-head,64px);bottom:0;width:var(--dk-rail);
    background:linear-gradient(180deg,rgba(24,11,40,.92),rgba(10,6,20,.96));border-right:1px solid rgba(243,190,43,.26);
    box-shadow:inset -18px 0 40px -30px rgba(255,170,40,.35);pointer-events:none}

  /* the header: a solid JiCHO bar again on a computer (the feed no longer runs under it) */
  body.jf-mode .app>header{background:linear-gradient(180deg,#170a2a,#0c0718)!important;border-bottom:1px solid rgba(243,190,43,.38)!important;box-shadow:0 2px 18px rgba(0,0,0,.45),0 1px 14px rgba(255,170,40,.12)!important}

  /* CENTRE: the framed card */
  #feedView .jf-feed,#feedView.has-rail .jf-feed{
    top:var(--dk-top);bottom:var(--dk-g);
    left:calc(var(--dk-rail) + var(--dk-side));right:var(--dk-side);
    width:auto;transform:none;
    border:1.5px solid rgba(243,190,43,.78);border-radius:26px;
    box-shadow:0 0 0 1px rgba(255,214,120,.12),0 0 26px rgba(255,170,40,.26),0 26px 70px rgba(0,0,0,.6);
    background:#07040d;z-index:2}
  #feedView .jf-item{background:#07040d}
  /* inside the card: the post's own controls (item coordinates: the card's corners) */
  #feedView .jf-post-options,#feedView.has-rail .jf-post-options,#feedView:not(.has-rail) .jf-post-options{top:18px;right:78px;width:40px;height:40px}
  #feedView .jf-info{left:30px;right:auto;width:min(560px,44%);bottom:28px;max-height:calc(100% - 120px)}
  #feedView .jf-rail{right:148px;bottom:26px}
  #feedView .jf-shade{height:42%}
  /* Full screen (landscape videos): the picture's own top-left corner, never under the caption or the card edge */
  #feedView .jf-stage>.jfs-open{top:calc(var(--jf-wy,16px) + 12px);left:calc(var(--jf-wx,16px) + 12px);bottom:auto;transform:none}

  /* RIGHT: sound and the two pictures of the person on screen, inside the card's right edge */
  #feedView .jf-sound,#feedView.has-rail .jf-sound{top:calc(var(--dk-top) + 16px);right:calc(var(--dk-side) + 18px);z-index:8}
  #feedView .jf-thumbs{right:calc(var(--dk-side) + var(--jf-th-r));width:112px;z-index:7}
  #feedView .jf-th-step{width:56px;height:30px}
  #feedView .jf-th-step svg{width:28px;height:28px}
  #feedView .jf-thumbs .jf-th{width:100px;height:122px;border-radius:16px;border-width:2.5px}
  #feedView .jf-mine .jf-th-track,#feedView .jf-mine:not(.jf-th-tight) .jf-th-track{max-height:calc(2 * 122px + 12px);gap:12px;padding:4px 0}
  #feedView .jf-thumbs.jf-th-tight .jf-th{width:76px;height:92px}
  #feedView .jf-mine.jf-th-tight .jf-th-track{max-height:calc(2 * 92px + 10px)}

  /* LEFT: the navigation rail */
  #feedView .jf-top,#feedView.has-rail .jf-top{
    top:var(--dk-top);left:var(--dk-g);right:auto;width:calc(var(--dk-rail) - 2 * var(--dk-g));max-width:none;transform:none;
    flex-direction:column;align-items:stretch;gap:16px;z-index:5}
  #feedView .jf-top .jf-tabs{flex:none;width:100%}
  #feedView .jf-tabs button{min-height:54px;font-size:12px;font-weight:300;font-stretch:condensed}
  #feedView #jfPlace{min-height:56px;margin-bottom:6px;padding:8px 16px;border:2px solid #f3be2b!important;border-radius:18px;
    background:linear-gradient(180deg,rgba(60,30,10,.55),rgba(20,10,30,.85))!important;
    box-shadow:0 0 14px rgba(255,180,40,.45),inset 0 0 12px rgba(255,190,60,.18);font-size:12.6px;font-weight:300;font-stretch:condensed}
  #feedView .jf-mycounty{width:100%;margin:0;min-height:52px;justify-content:center;gap:8px;padding:6px 16px;border-radius:18px;font-size:11.9px;font-weight:300;font-stretch:condensed;
    box-shadow:0 0 14px rgba(255,180,40,.4)}

  /* the JiCHO County Awards card */
  #feedView .jf-awards:not([hidden]){pointer-events:auto;display:grid;justify-items:center;gap:4px;margin-top:6px;padding:18px 14px 16px;text-align:center;
    border:2px solid #f3be2b;border-radius:20px;background:radial-gradient(120% 80% at 50% 0%,rgba(120,60,10,.35),rgba(18,9,30,.92) 60%);
    box-shadow:0 0 18px rgba(255,170,40,.38),inset 0 0 16px rgba(255,190,60,.14);color:#fff}
  #feedView .jf-aw-crown{font-size:40px;line-height:1;filter:drop-shadow(0 0 10px rgba(255,200,60,.7))}
  #feedView .jf-aw-brand{font:900 30px/1.05 Inter,system-ui,sans-serif;letter-spacing:.01em;color:#fff;text-shadow:0 0 12px rgba(255,190,60,.45)}
  #feedView .jf-aw-t{font:900 23px/1.1 Inter,system-ui,sans-serif;background:linear-gradient(180deg,#ffe58a,#f3be2b 55%,#e07a10);-webkit-background-clip:text;background-clip:text;color:transparent}
  #feedView .jf-aw-s{font:600 15px/1.35 Inter,system-ui,sans-serif;color:#efe6ff;max-width:20ch}
  #feedView .jf-aw-go{margin-top:10px;min-height:44px;padding:8px 22px;border:0;border-radius:14px;cursor:pointer;
    background:linear-gradient(180deg,#ff9a1f,#f2600c);color:#fff;font:900 16px/1 Inter,system-ui,sans-serif;box-shadow:0 0 16px rgba(255,120,20,.55),0 4px 12px rgba(0,0,0,.4)}
  #feedView .jf-aw-go:hover{filter:brightness(1.08)}
  #feedView .jf-aw-go:focus-visible{outline:2px solid #fff;outline-offset:3px}
}

/* smaller computers and a sideways tablet: a narrower rail, smaller type */
@media (min-width:1024px) and (max-width:1279px) and (min-height:560px){
  #feedView{--dk-rail:232px;--dk-g:16px}
  #feedView .jf-tabs button{min-height:48px;font-size:17px}
  #feedView #jfPlace{font-size:18px;min-height:50px}
  #feedView .jf-mycounty{font-size:17px;min-height:46px}
  #feedView .jf-aw-brand{font-size:26px}
  #feedView .jf-aw-t{font-size:20px}
  #feedView .jf-aw-s{font-size:14px}
  #feedView .jf-info{left:22px;width:min(460px,46%)}
  #feedView .jf-rail{right:128px}
  #feedView .jf-thumbs{width:96px}
  #feedView .jf-thumbs .jf-th{width:84px;height:102px}
  #feedView .jf-mine .jf-th-track,#feedView .jf-mine:not(.jf-th-tight) .jf-th-track{max-height:calc(2 * 102px + 12px)}
}
/* a short computer screen: the awards card would crowd the rail */
@media (min-width:1024px) and (max-height:760px){
  #feedView .jf-aw-crown{font-size:30px}
  #feedView .jf-aw-brand{font-size:24px}
  #feedView .jf-awards:not([hidden]){padding:12px 12px 12px}
  #feedView .jf-aw-go{margin-top:6px;min-height:40px}
}
@media (min-width:1024px) and (max-height:680px){#feedView .jf-awards:not([hidden]){display:none}}
