/* Khayal UI icons (/brand/icons/ui.svg): one outline system, the stroke set here so every icon on the site is drawn the same */
.ic{display:inline-block;flex:none;width:1.4em;height:1.4em;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:square;stroke-linejoin:miter;vertical-align:-.36em}
/* The stage switch: two tabs, the pressed one in its stage's colours. Content Stage = the paper of the brand; Entertainment Stage = its own direction (html.th-*). */
html:not([data-stage="entertainment"]) .stage-ent{display:none!important}
html[data-stage="entertainment"] .stage-content{display:none!important}
.kst{display:flex;flex-wrap:wrap;gap:8px}
.kst button{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:10px;padding:12px 16px 11px;border:1px solid rgba(241,239,233,.26);color:rgba(241,239,233,.7);
  font:700 12px/1 "IBM Plex Mono",ui-monospace,Menlo,monospace;letter-spacing:.14em;text-transform:uppercase;transition:background .3s,color .3s,border-color .3s,box-shadow .3s}
.kst button img{display:block;height:14px;width:auto;opacity:.75;transition:filter .3s,opacity .3s}
.kst button .ic{width:20px;height:20px;vertical-align:0}
.kst button .kt{display:inline-flex;align-items:center;gap:10px}
.kst button:hover{color:#F1EFE9;border-color:#F1EFE9}
.kst button:focus-visible{outline:2px solid #F1EFE9;outline-offset:3px}
.kst button[aria-pressed="true"]{cursor:default;opacity:1}
.kst button[aria-pressed="true"] img{opacity:1}
.kst button[data-stage="content"][aria-pressed="true"]{background:#F1EFE9;border-color:#F1EFE9;color:#0c0c0c}
.kst button[data-stage="content"][aria-pressed="true"] img{filter:brightness(0)}
/* the Entertainment tab carries its direction: the day's colours for Sunset → Night, a tube for Neon, a flood for Poster */
.kst button[data-stage="entertainment"]{--g:linear-gradient(90deg,#FFB13D,#FF5E57 30%,#FF3D8B 50%,#9B5CFF 75%,#33B5FF)}
.kst button[data-stage="entertainment"]:not([aria-pressed="true"]){border-image:var(--g) 1}
.th-sunset .kst button[data-stage="entertainment"][aria-pressed="true"]{background:var(--g);border-color:transparent;color:#0c0c0c}
.th-sunset .kst button[data-stage="entertainment"][aria-pressed="true"] img{filter:brightness(0)}
.th-neon .kst button[data-stage="entertainment"]{--g:linear-gradient(90deg,#FF2E88,#00E5FF,#FFE600,#39FF7A)}
.th-neon .kst button[data-stage="entertainment"][aria-pressed="true"]{background:#07060A;color:#FF2E88;border:1.5px solid #FF2E88;box-shadow:0 0 14px rgba(255,46,136,.6),inset 0 0 10px rgba(255,46,136,.3);text-shadow:0 0 8px #FF2E88}
.th-poster .kst button[data-stage="entertainment"]{--g:linear-gradient(90deg,#FFD23F,#3DDCFF,#FF6FB5,#FF8A3D)}
.th-poster .kst button[data-stage="entertainment"][aria-pressed="true"]{background:#0c0c0c;color:#FFD23F;border-color:#0c0c0c}
/* on a light page (Poster) the idle tab turns dark */
.kst.on-light button:not([aria-pressed="true"]){border-color:rgba(12,12,12,.35);color:rgba(12,12,12,.75)}
.kst.on-light button:not([aria-pressed="true"]) img{filter:brightness(0)}
@media (max-width:620px){
  .kst{gap:6px}
  .kst button{flex:1 1 0;min-width:0;flex-direction:column;align-items:flex-start;gap:7px;padding:10px 11px 9px;font-size:10.5px;letter-spacing:.1em}
  .kst button img{height:12px}
  .kst button .ic{width:22px;height:22px}
  .kst button .kt{flex-direction:column;align-items:flex-start;gap:6px}
}
@media (prefers-reduced-motion:reduce){.kst button{transition:none}}

/* the menus: an icon on every link (Amr, 6 Nov 16:40) */
.mi{display:inline-flex;align-items:center;gap:7px}
.mi .ic{width:17px;height:17px;vertical-align:0}
/* buttons: the icon leads the words */
a>.ic:first-child,.t>.ic:first-child{margin-right:.6em}
.go .t>.ic{width:1.15em;height:1.15em;vertical-align:-.16em}

/* 12-hour times (Amr, 6 Nov 23:34): the AM/PM rides small beside the big hour and never wraps */
b:has(>.ap){white-space:nowrap}
.ap{font-style:normal;font-size:.5em;letter-spacing:.06em;margin-left:.22em;vertical-align:baseline}
