/*
Theme Name: Hype5it Programme
Theme URI: https://hype5it.com/
Author: Hype5it
Description: Classic theme for the hype5it.com sales website, built from the owner-approved Programme 1.2 design with the B-02 corrections. The main pages (home, Hype5 Theater, Hype5 Stage, assisted migration, Help, About, and Pricing for administrators) are hard-coded templates; no blocks, page builder or theme options. Purchases, licences, accounts and enquiries belong to the separate Hype5it Core plugin; the theme presents Core’s customer portal (/account/, including a customer’s choice between several organisations since Core 0.7.0 and, since Core 0.9.0, the members of the organisation worked with and, since Core 0.10.0, an owner’s request to add one), the header’s account link and Core’s enquiry form in the Programme design.
Version: 0.9.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: hype5it-programme
*/

/*
 * The Programme design lives in assets/css/programme.css (Programme 1.2 style.css) and assets/css/page-*.css.
 * This file only adds what WordPress needs around it: the admin bar, WordPress's own classes, and the fallback page,
 * post and 404 templates. It uses the Programme tokens and adds no new visual direction.
 */

/* Logged-in users: keep the sticky header (and the sub-navigation stuck under it, --bar-h) below the admin bar. */
.admin-bar{--bar-h:32px} .admin-bar .site-header{top:32px}
@media screen and (max-width:782px){.admin-bar{--bar-h:46px} .admin-bar .site-header{top:46px}}
@media screen and (max-width:600px){.admin-bar{--bar-h:0px} .admin-bar .site-header{top:0}}

/* Account link (B-06): "Sign in" / "My account", shown only while Hype5it Core's portal answers. Beside the buttons
   on large screens, the last item of the menu on small ones. Beside the buttons it is a compact icon (0.4.2) named by
   its label, which also shows as a tooltip on hover and keyboard focus (Esc hides it; site.js); a ring marks the
   current page. In the menu it stays a text item. Colours follow the header's state through the tokens. */
.nav-actions .nav-account{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin-right:4px;border-radius:50%;color:inherit}
.nav-actions .nav-account svg{display:block;width:22px;height:22px}
.nav-actions .nav-account:hover{box-shadow:inset 0 0 0 1px currentColor}
.nav-actions .nav-account[aria-current="page"]{box-shadow:inset 0 0 0 2px currentColor}
.nav-actions .nav-account:focus-visible{border-radius:50%}
.nav-actions .nav-tip{position:absolute;top:100%;left:50%;margin-top:8px;transform:translateX(-50%);padding:6px 10px;border-radius:var(--r-s);background:var(--ink);color:var(--paper);font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity var(--t-fast) var(--ease)}
.nav-actions .nav-tip::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:8px}
.nav-actions .nav-account:is(:hover,:focus-visible) .nav-tip{opacity:1;pointer-events:auto}
.nav-actions .nav-account.tip-off .nav-tip{opacity:0;pointer-events:none}
@media (prefers-reduced-motion:reduce){.nav-actions .nav-tip{transition:none}}
.nav-list .nav-account-item{display:none}
/* Up to 0.4.3 the header left out "See the demo" at 1025–1199 px (seven navigation items; a Demo item led to the same
   place). Since 0.4.4 the navigation has five items and no Demo item, so the button stays from 1025 px. */
@media (max-width:1024px){
  .nav-actions .nav-account{display:none}
  .site-header.open .nav-list .nav-account-item{display:block}
}

/* Enquiry form with Hype5it Core (B-06): the staff test-mode note (the Programme's placeholder box), the sending state. */
.form-mode{border:1px dashed var(--ink-3);border-radius:var(--r-s);padding:12px 14px;font-size:13px;color:var(--ink-2);background:var(--paper);margin:0 0 20px}
.form[aria-busy="true"] .btn{opacity:.55;cursor:progress}
/* The thank-you panel on phones: its button may wrap, so it stays on a 320 px screen. */
@media (max-width:700px){.success-panel{padding:24px 20px} .success-panel .btn{white-space:normal;line-height:1.3}}

/* Request by email (B-08A), in the form card while Core's real form is not open: the thank-you panel's list. */
.email-enquiry ul{margin:12px 0 24px;padding-left:20px;color:var(--ink-2);font-size:15.5px}
.email-enquiry li{margin:6px 0}
@media (max-width:700px){.email-enquiry .btn{white-space:normal;line-height:1.3}}

/* A product feature without a screenshot yet (B-08A): the text at the reading width of the other features. */
.feature.text-only{grid-template-columns:minmax(0,760px)}

/* Footer: a pending item that is deliberately not a link. */
.site-footer li.pending{color:var(--ink-3)}
/* The operator line (B-08B) on the right of the legal line keeps to one line beside the longer demo statement. */
.site-footer .legal span:last-child{white-space:nowrap}

/* WordPress classes */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.screen-reader-text:focus{background:var(--ink);color:var(--paper);clip:auto!important;clip-path:none;display:block;height:auto;left:8px;top:8px;padding:10px 14px;width:auto;z-index:100000;border-radius:var(--r-s)}
.alignleft{float:left;margin:0 24px 16px 0}
.alignright{float:right;margin:0 0 16px 24px}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption,.gallery-caption{max-width:100%;font-size:var(--fs-caption);color:var(--ink-3)}
.wp-caption-text{margin-top:8px}

/* Fallback page, post and 404 templates */
.entry-head{padding:var(--section-s) 0 32px;border-bottom:1px solid var(--rule)}
.entry-head h1{font-size:var(--fs-display-2);margin-top:12px}
.entry-head .lede{margin:20px 0 0}
.entry-content{max-width:760px;padding:40px 0 var(--section)}
.entry-content > *{max-width:100%}
.entry-content h2{font-size:var(--fs-h3);margin:1.6em 0 .5em}
.entry-content h3{font-size:var(--fs-h4);margin:1.4em 0 .5em}
.entry-content h4{margin:1.2em 0 .4em}
.entry-content a{color:var(--teal-ink);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.entry-content ul,.entry-content ol{padding-left:1.3em;margin:0 0 1em}
.entry-content blockquote{margin:1.5em 0;padding-left:20px;border-left:2px solid var(--ink);font-family:var(--serif);font-size:var(--fs-h4);line-height:1.3}
.entry-content img{border-radius:var(--r-s)}
.entry-content table{border-collapse:collapse;width:100%}
.entry-content th,.entry-content td{border-bottom:1px solid var(--rule);padding:10px 12px;text-align:left}
.entry-list{list-style:none;margin:0;padding:24px 0 var(--section);display:grid;gap:0}
.entry-list li{border-bottom:1px solid var(--rule);padding:24px 0}
.entry-list h2{font-size:var(--fs-h3)}
.entry-list p{margin:8px 0 0;color:var(--ink-2)}
.pagination-links{padding-bottom:var(--section);display:flex;gap:16px}
.not-found{padding:var(--section) 0}
.not-found h1{font-size:var(--fs-display-2);margin:12px 0 20px}
.not-found .ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
