/* The Federalists: the site's look (owner-approved mock-ups 2026-11-14). ONLY tokens (tokens.css): no colour, font or size
   written here. Responsive: computer (feed + right column), tablet (<=1000px: one column), phone (<=720px: the app screen,
   5-icon tab bar with the centre +, the header scrolls away). */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--tf-c-bg);color:var(--tf-c-text);font:var(--tf-w-regular) var(--tf-fs-body)/1.45 var(--tf-font);font-optical-sizing:auto}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
a{color:inherit;text-decoration:none}
img{max-width:100%}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--tf-c-text);outline-offset:2px;border-radius:6px}
svg.i{width:var(--tf-icon);height:var(--tf-icon);fill:none;stroke:currentColor;stroke-width:var(--tf-icon-stroke);stroke-linecap:round;stroke-linejoin:round;flex:none}
.ver{width:18px;height:18px;flex:none;display:inline-block;vertical-align:-3px}
.wrap{max-width:var(--tf-l-max);margin:0 auto;padding-left:max(var(--tf-l-gutter),env(safe-area-inset-left,0px));padding-right:max(var(--tf-l-gutter),env(safe-area-inset-right,0px))}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--tf-s-2);height:40px;padding:0 18px;border-radius:var(--tf-r-btn);font:var(--tf-w-semibold) var(--tf-fs-body)/1 var(--tf-font);white-space:nowrap;transition:background .15s,color .15s}
.btn svg{width:18px;height:18px}
.btn-p{background:var(--tf-c-action);color:var(--tf-c-on-action)}
.btn-p:hover{background:var(--tf-c-action-press)}
.btn-s{background:var(--tf-c-surface);color:var(--tf-c-text)}
.btn-s:hover{background:var(--tf-c-line)}
.btn-soft{background:var(--tf-c-action-soft);color:var(--tf-c-action)}
.btn-soft:hover{background:var(--tf-c-action);color:var(--tf-c-on-action)}
.btn-sm{height:32px;padding:0 14px;font-size:var(--tf-fs-md);border-radius:var(--tf-r-sm)}
.btn-block{width:100%}
.btn[disabled]{opacity:.45;cursor:default}

/* avatars: a plain round photo with a thin line; the coloured ring is for stories only */
.av{position:relative;display:block;border-radius:50%;flex:none}
.av img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;border:1px solid var(--tf-c-line)}
.story .av{background:var(--tf-ring);padding:3px}
.story .av img{border:3px solid var(--tf-c-bg)}

/* header */
.top{position:sticky;top:0;z-index:20;background:var(--tf-c-bg);border-bottom:1px solid var(--tf-c-line)}
.top .wrap{display:flex;align-items:center;gap:var(--tf-s-5);height:var(--tf-l-top)}
.logo{display:flex;align-items:center;gap:10px;font:var(--tf-w-bold) var(--tf-fs-h3)/1 var(--tf-font);letter-spacing:-.01em;white-space:nowrap}
.logo .mk{width:30px;height:30px;border-radius:50%;background:var(--tf-ring);display:grid;place-items:center;flex:none}
.logo .mk::after{content:"";width:18px;height:18px;border-radius:50%;background:var(--tf-c-bg);box-shadow:inset 0 0 0 5px var(--tf-c-text)}
.search{flex:1;max-width:280px;display:flex;align-items:center;gap:var(--tf-s-2);background:var(--tf-c-surface);border-radius:var(--tf-r-pill);padding:0 14px;height:40px;color:var(--tf-c-text-2)}
.search svg{width:18px;height:18px}
.search input{flex:1;min-width:0;border:0;background:none;outline:none;font-size:var(--tf-fs-body)}
.nav{display:flex;gap:var(--tf-s-1);margin-left:auto}
.nav a{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:var(--tf-r-btn);font:var(--tf-w-semibold) var(--tf-fs-body)/1 var(--tf-font);color:var(--tf-c-text-2)}
.nav a:hover{background:var(--tf-c-surface);color:var(--tf-c-text)}
.nav a.on{color:var(--tf-c-text)}
.nav svg{width:20px;height:20px}
/* the language menu (Controllers/LangController.cs writes the _culture cookie and reloads the page) */
.langm{position:relative}
.globe{display:flex;cursor:pointer;list-style:none;font:var(--tf-w-medium) var(--tf-fs-sm)/1 var(--tf-font);align-items:center;gap:var(--tf-s-1);height:34px;padding:0 var(--tf-s-1);border-radius:var(--tf-r-pill);color:var(--tf-c-text-2)}
.globe svg{width:18px;height:18px}
.globe::-webkit-details-marker{display:none}
.globe:hover,.langm[open] .globe{background:var(--tf-c-surface)}
.langp{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:160px;padding:6px;border:1px solid var(--tf-c-line);border-radius:12px;background:var(--tf-c-bg);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.langp a{display:block;padding:10px 12px;border-radius:8px;color:var(--tf-c-text);font-weight:var(--tf-w-medium)}
.langp a:hover{background:var(--tf-c-surface)}
.langp a[aria-checked=true]{font-weight:var(--tf-w-bold)}
.langp a[aria-checked=true]::after{content:" ✓";color:var(--tf-c-action)}
.langh{margin:6px 12px 2px;padding-top:8px;border-top:1px solid var(--tf-c-line);font-size:var(--tf-fs-sm);font-weight:var(--tf-w-semibold);color:var(--tf-c-text-2)}
.me-top{width:38px;height:38px}
/* the bell (/notifications): its number of unread notifications, from js/site.js */
.bell{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;color:var(--tf-c-text)}
.bell:hover,.bell.on{background:var(--tf-c-surface)}
.bell .i{width:22px;height:22px}
.bell-n{position:absolute;top:1px;right:0;min-width:18px;height:18px;padding:0 5px;border:2px solid var(--tf-c-bg);border-radius:999px;background:var(--tf-c-action);color:var(--tf-c-on-action);font-size:10px;font-weight:var(--tf-w-bold);line-height:14px;text-align:center}
.mk{width:30px;height:30px;border-radius:50%;background:var(--tf-ring);display:grid;place-items:center;flex:none}
.mk::after{content:"";width:18px;height:18px;border-radius:50%;background:var(--tf-c-bg);box-shadow:inset 0 0 0 5px var(--tf-c-text)}
.hd-act{display:flex;align-items:center;gap:var(--tf-s-2)}

/* page: feed + right column */
.page{display:grid;grid-template-columns:minmax(0,1fr) var(--tf-l-side);gap:var(--tf-s-7);padding-block:var(--tf-s-6) 96px}
.page.full{grid-template-columns:minmax(0,1fr)}
.main{min-width:0}
.side{align-self:start;display:grid;gap:var(--tf-s-4);position:sticky;top:calc(var(--tf-l-top) + var(--tf-s-6))}
.card{border:1px solid var(--tf-c-line);border-radius:var(--tf-r-card);padding:18px}
.card h3{margin:0 0 var(--tf-s-1);font:var(--tf-w-semibold) var(--tf-fs-lg)/22px var(--tf-font)}
.card p{margin:0;color:var(--tf-c-text-2);font-size:var(--tf-fs-base);line-height:20px}
.foot{font:var(--tf-w-medium) var(--tf-fs-sm)/18px var(--tf-font);color:var(--tf-c-text-2);padding:0 var(--tf-s-1)}
.foot a:hover{color:var(--tf-c-text)}
.lang select{width:100%;height:40px;padding:0 12px;border:1px solid var(--tf-c-line);border-radius:var(--tf-r-btn);background:var(--tf-c-bg);font:var(--tf-w-medium) var(--tf-fs-base)/1 var(--tf-font);cursor:pointer}
.m-only{display:none!important}

/* the phone tab bar: 5 icons, the red + in the centre */
.tabbar{display:none}
.tabbar a{display:grid;justify-items:center;gap:2px;font:var(--tf-w-semibold) 10px/1 var(--tf-font);color:var(--tf-c-text-2);padding:2px 6px;min-width:56px}
.tabbar a.on{color:var(--tf-c-text)}
.tabbar svg.i{width:21px;height:21px}
.tabbar .plus{display:grid;place-items:center;width:46px;height:30px;border-radius:var(--tf-r-btn);background:var(--tf-c-action);color:var(--tf-c-on-action);align-self:center}
.tabbar .plus svg{width:20px;height:20px;stroke-width:2.6}

/* sheets: a centred window on computers, a bottom sheet on phones */
.sheet-bg{position:fixed;inset:0;z-index:50;background:var(--tf-c-media-scrim-soft);display:flex;align-items:center;justify-content:center;padding:var(--tf-s-4)}
.sheet{width:min(520px,100%);max-height:calc(100% - 32px);overflow:auto;background:var(--tf-c-bg);border-radius:20px;padding:14px 18px 20px}
.grab{width:40px;height:5px;border-radius:var(--tf-r-pill);background:var(--tf-c-line);margin:0 auto var(--tf-s-2);display:none}
.sheet-h{display:flex;align-items:center;justify-content:space-between;gap:var(--tf-s-3)}
.sheet-h h2{margin:0;font:var(--tf-w-bold) 20px/26px var(--tf-font)}
.sheet .x{width:36px;height:36px;border-radius:50%;background:var(--tf-c-surface);font:var(--tf-w-regular) var(--tf-fs-h1)/1 var(--tf-font)}
.opts{display:grid;gap:var(--tf-s-1);margin-top:var(--tf-s-2)}
.opt{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:var(--tf-s-3);align-items:center;text-align:left;padding:10px;border-radius:14px}
.opt:hover{background:var(--tf-c-surface)}
.opt b{font:var(--tf-w-semibold) var(--tf-fs-body)/20px var(--tf-font);grid-column:2}
.opt small{grid-column:2;font:var(--tf-w-regular) var(--tf-fs-md)/18px var(--tf-font);color:var(--tf-c-text-2)}
.oi{grid-row:span 2;width:44px;height:44px;border-radius:var(--tf-r-md);display:grid;place-items:center;color:var(--tf-c-on-action)}
.o-red{background:var(--tf-c-ring-red)} .o-green{background:var(--tf-c-ring-green)} .o-yellow{background:var(--tf-c-ring-yellow);color:var(--tf-c-text)} .o-ink{background:var(--tf-c-text)}
.sheet-sub{margin:14px 10px 0;font:var(--tf-w-semibold) var(--tf-fs-sm)/1 var(--tf-font);letter-spacing:.06em;text-transform:uppercase;color:var(--tf-c-text-2)}

/* forms */
.field{display:grid;gap:6px;margin-top:var(--tf-s-3)}
.field label{font:var(--tf-w-semibold) var(--tf-fs-md)/1 var(--tf-font);color:var(--tf-c-text-2)}
.input{height:44px;border:1px solid var(--tf-c-line);border-radius:var(--tf-r-btn);padding:0 14px;background:var(--tf-c-bg);outline:none;width:100%}
.input:focus{border-color:var(--tf-c-text)}
.err{color:var(--tf-c-danger);font-size:var(--tf-fs-md);margin:var(--tf-s-2) 0 0}
.toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);z-index:80;background:var(--tf-c-text);color:var(--tf-c-bg);padding:12px 18px;border-radius:var(--tf-r-md);font-weight:var(--tf-w-semibold)}

/* the one arrow style (red, 75 %) */
.arr{width:36px;height:36px;border-radius:50%;background:var(--tf-c-action);color:var(--tf-c-on-action);opacity:.75;display:grid;place-items:center}
.arr:hover{opacity:.95}
.arr svg{width:18px;height:18px;stroke-width:2.6}
.arr[disabled]{opacity:.25;cursor:default}

/* tablet: one column, the right column's content moves into the feed */
@media (max-width:1000px){
  .page{grid-template-columns:minmax(0,var(--tf-l-feed));justify-content:center}
  .page.full{grid-template-columns:minmax(0,1fr)}
  .side{display:none}
  .m-only{display:grid!important}
  .search{display:none}
}
/* phone = the app screen */
@media (max-width:720px){
  .nav{display:none}
  .top{position:static}
  .top .wrap{height:var(--tf-l-top-phone);justify-content:space-between;gap:6px}
  .top .btn{height:34px;padding:0 10px;font-size:var(--tf-fs-sm)}
  .logo{font-size:var(--tf-fs-lg)}
  .logo .mk{width:26px;height:26px}
  .langm{margin-left:auto}
  .top [data-login],.globe span{display:none}
  .logo{min-width:0}
  .page{padding-block:var(--tf-s-3) 90px}
  .tabbar{display:flex;justify-content:space-around;align-items:center;position:fixed;left:0;right:0;bottom:0;z-index:30;background:var(--tf-c-bg);border-top:1px solid var(--tf-c-line);padding:3px max(10px,env(safe-area-inset-right,0px)) calc(3px + env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px))}
  .sheet-bg{align-items:flex-end;padding:0}
  .sheet{border-radius:var(--tf-r-sheet) var(--tf-r-sheet) 0 0;max-height:85%;width:100%}
  .grab{display:block}
  .arr{width:32px;height:32px}
  svg.i{width:var(--tf-icon-phone);height:var(--tf-icon-phone)}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* sign-in window */
.si-p{margin:var(--tf-s-1) 0 0;color:var(--tf-c-text-2);font-size:var(--tf-fs-base)}
.si-go{margin-top:var(--tf-s-4);height:44px}
.si-alt{margin:var(--tf-s-4) 0 0;text-align:center;font-size:var(--tf-fs-base);color:var(--tf-c-text-2)}
.si-alt a{color:var(--tf-c-action);font-weight:var(--tf-w-semibold)}

/* Maaya Pay window */
.sheet.mpay{width:min(560px,100%);height:min(92vh,860px);display:flex;flex-direction:column}
#mpay-box{flex:1;min-height:0;display:flex;margin:var(--tf-s-2) calc(-1 * 18px) -20px}
#mpay-box iframe{flex:1;width:100%;border:0;background:var(--tf-c-bg)}
.mpay-wait{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--tf-c-text-2)}
#mpay-box .err{padding:0 18px}
.spin{width:18px;height:18px;border-radius:50%;border:2px solid var(--tf-c-line);border-top-color:var(--tf-c-action);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (max-width:720px){.sheet.mpay{height:92%}}

/* MYC gift window */
.giftw{width:min(560px,100%)}
.gbal{display:flex;align-items:center;justify-content:space-between;margin:var(--tf-s-3) 0;padding:var(--tf-s-2) var(--tf-s-3);border-radius:var(--tf-r-md);background:var(--tf-c-surface)}
.gbal span{display:flex;align-items:center;gap:6px;color:var(--tf-c-text-2)}
.gbal img{width:20px;height:20px}
.gbal b{color:var(--tf-c-text);font-size:var(--tf-fs-lg)}
.ggrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--tf-s-2);max-height:46vh;overflow:auto;padding:2px}
.gift{display:grid;justify-items:center;gap:var(--tf-s-1);padding:var(--tf-s-2) var(--tf-s-1);border-radius:var(--tf-r-md);border:1.5px solid transparent;text-align:center}
.gift:hover{background:var(--tf-c-surface)}
.gift[aria-pressed="true"]{border-color:var(--tf-c-action);background:var(--tf-c-action-soft)}
.gift > img,.gift .gi{width:48px;height:48px;object-fit:contain;font-size:36px;line-height:48px}
.gn{font-size:var(--tf-fs-sm);line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gp{display:flex;align-items:center;gap:3px;font:var(--tf-w-semibold) var(--tf-fs-sm)/1 var(--tf-font)}
.gp img{width:14px;height:14px}
.gsend{display:flex;align-items:center;justify-content:space-between;gap:var(--tf-s-3);margin-top:var(--tf-s-4)}
.gq{display:flex;align-items:center;gap:var(--tf-s-2);font-size:var(--tf-fs-base);color:var(--tf-c-text-2)}
.gq input{width:72px;height:40px;border:1px solid var(--tf-c-line);border-radius:var(--tf-r-btn);padding:0 10px;font-size:var(--tf-fs-body)}
@media (max-width:720px){.ggrid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* the composer */
.composer{display:grid;gap:var(--tf-s-3)}
.cp-who{display:flex;align-items:center;gap:10px}
.cp-who .av{width:36px;height:36px}
.cp-text{border:1px solid var(--tf-c-line);border-radius:var(--tf-r-card);padding:var(--tf-s-3) 14px}
.cp-text textarea{width:100%;border:0;outline:0;resize:vertical;background:transparent;font-size:var(--tf-fs-lg);line-height:1.45;min-height:96px}
.cp-text.on-color{display:grid;place-items:center;min-height:200px;border-color:transparent}
.cp-text.on-color textarea{text-align:center;font:var(--tf-w-bold) var(--tf-fs-h2)/1.3 var(--tf-font)}
.cp-colors{display:flex;gap:var(--tf-s-2)}
.cp-colors button{width:32px;height:32px;border-radius:50%;border:2px solid var(--tf-c-line);background:var(--tf-c-bg)}
.cp-colors button[data-bg="--tf-c-ring-red"]{background:var(--tf-c-ring-red)}.cp-colors button[data-bg="--tf-c-ring-green"]{background:var(--tf-c-ring-green)}.cp-colors button[data-bg="--tf-c-ring-yellow"]{background:var(--tf-c-ring-yellow)}.cp-colors button[data-bg="--tf-c-action"]{background:var(--tf-c-action)}.cp-colors button[data-bg="--tf-c-text"]{background:var(--tf-c-text)}
.cp-colors button[aria-checked="true"]{box-shadow:0 0 0 2px var(--tf-c-bg),0 0 0 4px var(--tf-c-text)}
.cp-media{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.cp-media:empty{display:none}
.cp-th{position:relative;aspect-ratio:1/1;border-radius:var(--tf-r-btn);overflow:hidden;background:var(--tf-c-surface)}
.cp-th.vid{grid-column:span 2;aspect-ratio:16/9}
.cp-th img,.cp-th video{width:100%;height:100%;object-fit:cover;display:block}
.cp-th button{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;background:var(--tf-c-media-scrim);color:var(--tf-c-on-media);line-height:1}
.cp-tools{display:flex;align-items:center;gap:var(--tf-s-2);flex-wrap:wrap}
.cp-tools button{display:flex;align-items:center;gap:6px;height:36px;padding:0 var(--tf-s-3);border-radius:var(--tf-r-pill);background:var(--tf-c-surface);font:var(--tf-w-semibold) var(--tf-fs-md)/1 var(--tf-font)}
.cp-tools svg{width:18px;height:18px}
.cp-loc{display:flex;align-items:center;gap:6px;height:36px;padding:0 var(--tf-s-3);border-radius:var(--tf-r-pill);background:var(--tf-c-surface);flex:1;min-width:140px}
.cp-loc svg{width:16px;height:16px;color:var(--tf-c-text-2)}
.cp-loc input{border:0;outline:0;background:transparent;min-width:0;flex:1;font-size:var(--tf-fs-md)}
.opt[disabled]{opacity:.55;cursor:default}
.soon{font-style:normal;font-size:var(--tf-fs-xs);padding:2px 6px;border-radius:var(--tf-r-pill);background:var(--tf-c-surface);color:var(--tf-c-text-2);margin-left:var(--tf-s-1);vertical-align:2px}

/* the 404 / error page (Views/Shared/Error.cshtml) */
.err-page{display:grid;justify-items:center;text-align:center;gap:var(--tf-s-3);padding-block:var(--tf-s-7)}
.err-code{font:var(--tf-w-bold) 72px/1 var(--tf-font);color:var(--tf-c-action);letter-spacing:-.02em}
.err-page h1{margin:0;font:var(--tf-w-bold) var(--tf-fs-h1)/1.2 var(--tf-font)}
.err-page p{margin:0;color:var(--tf-c-text-2);font-size:var(--tf-fs-lg)}
.err-row{display:flex;gap:var(--tf-s-2);flex-wrap:wrap;justify-content:center;margin-top:var(--tf-s-3)}

/* the post's ⋯ menu (Views/Shared/_PostMenu.cshtml, js/postmenu.js) */
.btn-danger{background:var(--tf-c-danger);color:var(--tf-c-on-action)}
.btn-danger:hover{filter:brightness(.92)}
.sheet.pm{padding:var(--tf-s-2) var(--tf-s-2) var(--tf-s-3)}
.pm-list{display:grid}
.pm-list > button,.pm-list > a{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:0 var(--tf-s-4);border-radius:var(--tf-r-md);font:var(--tf-w-semibold) var(--tf-fs-body)/1.2 var(--tf-font);text-align:left}
.pm-list > button:hover,.pm-list > a:hover{background:var(--tf-c-surface)}
.pm-list > [hidden]{display:none}
.pm-list .danger{color:var(--tf-c-danger)}
.pm-list .pm-cancel{justify-content:center;margin-top:var(--tf-s-1);border-top:1px solid var(--tf-c-line);border-radius:0;color:var(--tf-c-text-2)}
.pm-ta{height:auto;min-height:140px;margin-top:var(--tf-s-3);padding:10px 14px;line-height:1.45;resize:vertical}
.pm-row{display:flex;justify-content:flex-end;gap:var(--tf-s-2);margin-top:var(--tf-s-4)}
.pm-p{margin:var(--tf-s-2) 0 0;color:var(--tf-c-text-2);font-size:var(--tf-fs-md)}
.pm-reasons{display:grid;margin-top:var(--tf-s-2)}
.pm-reasons label{display:flex;align-items:center;gap:var(--tf-s-3);min-height:48px;padding:0 var(--tf-s-2);border-radius:var(--tf-r-md);font-size:var(--tf-fs-body);cursor:pointer}
.pm-reasons label:hover{background:var(--tf-c-surface)}
.pm-reasons input{width:20px;height:20px;accent-color:var(--tf-c-action)}
.sheet.pm-confirm{width:min(400px,100%);padding:var(--tf-s-5)}
.pm-confirm h2{margin:0;font:var(--tf-w-bold) 20px/26px var(--tf-font)}
.pm-confirm p{margin:var(--tf-s-2) 0 0;color:var(--tf-c-text-2)}

/* the notice before the sign-up (#newacc) */
.sheet.na{width:min(440px,100%)}
.na-p{margin:var(--tf-s-3) 0 0;color:var(--tf-c-text-2);font-size:var(--tf-fs-body);line-height:1.5}
.na-row{display:flex;justify-content:flex-end;gap:var(--tf-s-2);margin-top:var(--tf-s-5)}
