/* Pixel Tickets theme for BookStack. Same look as the bot's /wiki help centre: near-black, red accent,
   big text and big tap targets. Everything here is scoped to .pt-* or body.pt-guest (not signed in),
   so staff keep the normal BookStack screens. */
:root{--pt-bg:#09090b;--pt-panel:#111113;--pt-panel-2:#17171a;--pt-line:#232328;--pt-line-2:#2e2e34;--pt-text:#f2f2f4;--pt-muted:#9a9aa4;--pt-accent:#e5484d;--pt-accent-soft:rgba(229,72,77,.14)}
html:not(.dark-mode){--pt-bg:#f6f6f7;--pt-panel:#fff;--pt-panel-2:#fafafa;--pt-line:#e4e4e7;--pt-line-2:#d4d4d8;--pt-text:#18181b;--pt-muted:#5f5f69}

/* Header: dark bar like the /wiki, for everyone */
header#header{background:#09090b!important;border-bottom:1px solid #232328;box-shadow:none}
header#header .logo-text{font-weight:700}
html.dark-mode,html.dark-mode body,html.dark-mode #main-content,html.dark-mode .tri-layout-container{background-color:var(--pt-bg)}
html.dark-mode .card{background-color:var(--pt-panel)}

/* ---------- Home and device pages ---------- */
.pt-wrap h1,.pt-wrap h2{color:var(--pt-text)!important}
.pt-wrap{max-width:880px;margin:0 auto;padding:0 18px 40px;color:var(--pt-text);font-size:18px;line-height:1.55}
.pt-wrap a:focus-visible,.pt-wrap button:focus-visible,.pt-wrap input:focus-visible{outline:3px solid var(--pt-accent);outline-offset:2px}
.pt-hero{padding:34px 0 6px}.pt-hero h1{font-size:32px;line-height:1.2;margin:0 0 8px;font-weight:700;letter-spacing:-.01em}.pt-hero p{color:var(--pt-muted);margin:0 0 20px}
.pt-sec{font-size:22px;font-weight:700;margin:34px 0 14px}
.pt-search{display:flex;gap:8px;margin:0}
.pt-search input{flex:1;min-width:0;font:inherit;font-size:18px;padding:14px 16px;border-radius:14px;border:2px solid var(--pt-line-2);background:var(--pt-panel);color:var(--pt-text);height:auto}
.pt-search input:focus{border-color:var(--pt-accent);outline:none}
.pt-search button{font:inherit;font-weight:700;font-size:18px;padding:0 22px;border-radius:14px;border:0;background:var(--pt-accent);color:#fff;cursor:pointer}
.pt-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pt-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;min-height:150px;padding:18px 12px;border-radius:18px;background:var(--pt-panel);border:2px solid var(--pt-line);color:var(--pt-text)!important;text-decoration:none!important}
.pt-tile:hover,.pt-tile:focus-visible{border-color:var(--pt-accent);background:var(--pt-panel-2)}
.pt-tile svg,.pt-task svg,.pt-devhead svg{color:var(--pt-accent);flex:none}
.pt-tile b{font-size:19px}.pt-tile small{color:var(--pt-muted);font-size:14px;line-height:1.35}
.pt-tasks{display:grid;gap:12px}
.pt-task{display:flex;align-items:center;gap:16px;padding:16px 18px;border-radius:16px;background:var(--pt-panel);border:2px solid var(--pt-line);color:var(--pt-text)!important;text-decoration:none!important;min-height:76px}
.pt-task:hover,.pt-task:focus-visible{border-color:var(--pt-accent)}
.pt-task svg{width:40px;height:40px}.pt-task b{display:block;font-size:19px;line-height:1.3}.pt-task small{display:block;color:var(--pt-muted);font-size:15px;line-height:1.4}
.pt-go{margin-left:auto;font-size:26px;color:var(--pt-muted)}
.pt-crumbs{font-size:15px;color:var(--pt-muted);margin:22px 0 10px}.pt-crumbs a{color:var(--pt-muted)}
.pt-devhead{display:flex;align-items:center;gap:16px;margin-bottom:4px}.pt-devhead h1{font-size:30px;line-height:1.2;margin:0;font-weight:700}.pt-devhead p{margin:4px 0 0;color:var(--pt-muted)}
.pt-empty{color:var(--pt-muted);padding:18px;border:2px dashed var(--pt-line-2);border-radius:16px;text-align:center}
.pt-stuck{margin:34px 0 10px;padding:22px;border-radius:18px;background:var(--pt-accent-soft);border:2px solid rgba(229,72,77,.4);text-align:center}
.pt-stuck b{display:block;font-size:22px;margin-bottom:6px}.pt-stuck p{margin:0 0 16px}
.pt-bigbtn{display:inline-block;background:var(--pt-accent);color:#fff!important;text-decoration:none!important;font-weight:700;font-size:19px;padding:16px 28px;border-radius:14px;min-width:240px}
.pt-staff{margin-top:30px;font-size:14px;color:var(--pt-muted);border-top:1px solid var(--pt-line);padding-top:14px}
@media(max-width:640px){.pt-wrap{font-size:17px}.pt-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.pt-tile{min-height:132px}.pt-hero h1{font-size:27px}.pt-devhead h1{font-size:26px}.pt-bigbtn{display:block;min-width:0}.pt-search button{padding:0 16px}}

/* ---------- Visitors who aren't signed in: no clutter, bigger text ---------- */
/* Header: just the name and the search box (staff sign in at /login) */
body.pt-guest header#header .header-links,
body.pt-guest header#header .mobile-menu-toggle{display:none!important}
/* Book, page and search screens: hide side panels (tags, activity, details, export), tabs and toggles */
body.pt-guest .tri-layout-left,
body.pt-guest .tri-layout-right,
body.pt-guest .tri-layout-sides,
body.pt-guest .tri-layout-mobile-tabs,
body.pt-guest .comments-container,
body.pt-guest #page-navigation,
body.pt-guest .page-content .tag-box,
body.pt-guest .entity-list-item-meta,
body.pt-guest #search-system .grid > div:first-child,
body.pt-guest .entity-item-tags,
body.pt-guest .tag-box,
body.pt-guest .dark-mode-toggle{display:none!important}
body.pt-guest .tri-layout-container{display:block!important}
body.pt-guest .tri-layout-middle{max-width:900px;margin:0 auto;padding-left:16px;padding-right:16px}
body.pt-guest .tri-layout-middle-contents{max-width:none}
body.pt-guest .page-content{font-size:19px;line-height:1.65}
body.pt-guest .page-content h1{font-size:2rem}
body.pt-guest .page-content ol li,body.pt-guest .page-content ul li{margin:.45em 0}
body.pt-guest .page-content a{font-weight:600}
body.pt-guest .page-content p a[href]:only-child{display:inline-block}
body.pt-guest .breadcrumbs{font-size:15px}
body.pt-guest .entity-list-item{padding:14px 12px}
body.pt-guest .entity-list-item .entity-list-item-name{font-size:19px}
body.pt-guest .entity-list-item .entity-item-snippet p{font-size:15px}
body.pt-guest .card,body.pt-guest .content-wrap.card{border-radius:18px}
body.pt-guest #search-system .grid{display:block}
body.pt-guest #search-system{max-width:900px}
body.pt-guest .entity-list-item:hover{background-color:var(--pt-panel-2)}
body.pt-guest .page-content h1,body.pt-guest .content-wrap h1{color:var(--pt-text)}
body.pt-guest .tri-layout-container,body.pt-guest .tri-layout-middle{background:transparent!important}
