/* ==========================================================================
   Tabuk PharmaEdge — tebzone-tabuk.css
   The few TebZone rules that belong to this site and not to the shared
   stylesheet.

   assets/css/tebzone.css is deployed byte-identical to every partner site:
   it reads this theme's tokens by name into its own --tz-* set and styles the
   account chip, the auth card, the catalogue and the course material. Nothing
   partner-specific may go in it, or the next copy from another site silently
   reverts it. This file is where those things go instead — the same role
   tebzone-dark.css plays on the Saja site.

   Load order on every page that uses TebZone:
       theme.css  →  tebzone.css  →  this  →  the page's own sheet
   It reads the --tz-* tokens tebzone.css publishes, so it must come after it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. The library anchor

   The shared modules send a learner to `index.html#library` in four places —
   the account menu's "My courses", the sign-in button for a visitor who is
   already signed in, and the player's "browse" button. This site calls that
   section "Courses" and its own navigation points at `#courses`, which is
   used by the header, the footer and both subprogram pages, so renaming it
   was not an option.

   `<span id="library">` sits immediately before the section as the alias.
   It is empty and out of flow, so it changes nothing on the page; the
   scroll-margin is what keeps the sticky header off the section heading when
   a cold page load jumps straight to it, which native anchor scrolling does
   not account for on its own.
   -------------------------------------------------------------------------- */
#library {
  display: block;
  scroll-margin-top: calc(var(--header-h, 86px) + 18px);
}

/* --------------------------------------------------------------------------
   2. The subprogram card's "ready to watch" badge

   Dropped onto this site's OWN subprogram card by
   assets/js/tebzone-programs.js — `.course-card` > `.course-media`, built by
   assets/js/courses.js and styled in program.css. It is not a `.tz-card`
   from the shared catalogue, so it has no business in the shared sheet,
   which is where the previous generation of this site kept it.

   Values carried over unchanged, so the badge looks exactly as it did.
   -------------------------------------------------------------------------- */
.tz-live-flag {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--tz-r-full, 999px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tz-accent, #5aaa42);
  backdrop-filter: blur(4px);
}

/* `.tz-linked` is set on the card alongside the badge. It carries no styling
   of its own and is kept as a hook: it is what a stylesheet or a script would
   test to tell a card that reached its TebZone row from one that did not. */

/* --------------------------------------------------------------------------
   3. No price flag on a catalogue card

   The shared catalogue card paints a `.tz-card-flag` over the thumbnail:
   "Enrolled" for a course the visitor already has, and otherwise "Free" for
   any course priced 0. All four of this organisation's courses are priced 0,
   so every card on the home page carried a "Free" ribbon — which reads as a
   discount on a programme that has never been sold, and which Tabuk asked
   to have taken off the cards.

   It is turned off here, in THIS SITE's sheet, rather than in
   assets/css/tebzone.css or assets/js/tebzone-courses.js: both of those are
   deployed byte-identical to every partner site, and a partner with a priced
   catalogue needs the flag. `assets/css/tebzone-tabuk.css` is loaded only by
   this site's own pages, so the portal's copy of the catalogue is untouched.

   The "Enrolled" state cannot occur here anyway — this deployment has no
   signed-in state at all, the account layer having moved to the portal — so
   the one selector takes the price flag and nothing else with it.
   -------------------------------------------------------------------------- */
.tz-catalog .tz-card-flag {
  display: none !important;
}
