/* =====================================================================
   Public Applicant Portal — realm-specific skin
   Governu Timor-Leste · IGEADI National OHS Licensing System

   Loaded ONLY on the public applicant portal (see layouts/app.php), on
   top of app.css + glass.css. Staff back-office and the training-provider
   portal never load this file, so they are completely unaffected.

   Design direction: the back-office is a dense, all-day internal tool —
   flat lists, tight rows, minimal chrome. The public portal is a citizen
   walking up to a government service once in a while: it should read as
   welcoming and unhurried rather than administrative. Same institutional
   palette (ink / paper / state red / gold) so it's still recognisably
   THE OHS — warmer in wash and rhythm, not a different brand.
   ===================================================================== */

body.lms-realm-public {
  --pp-wash-a: #fbf4e2;
  --pp-wash-b: #f7f6f2;
  --pp-ring: rgba(199, 154, 30, .35);
  background:
    radial-gradient(1100px 480px at 12% -8%, var(--pp-wash-a), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, #f7e9df, transparent 55%),
    var(--paper);
}

/* ---------------------------------------------------------------------
   Masthead — a gold hairline under the state-red border, and a soft
   sheen, so it reads a touch less severe than the back-office header.
   --------------------------------------------------------------------- */
body.lms-realm-public .lms-mast {
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 1px 0 var(--state) inset;
  background-image: linear-gradient(180deg, rgba(255,255,255,.05), transparent 60%),
                     linear-gradient(120deg, var(--ink) 0%, #1b2430 100%);
}

/* ---------------------------------------------------------------------
   Sidebar — rounded chips with an icon badge, generous spacing, sits on
   its own soft card rather than a flat flush list.
   --------------------------------------------------------------------- */
body.lms-realm-public .lms-side {
  border-right: 0;
  background: transparent;
  padding-top: 6px;
}
body.lms-realm-public .lms-side__label {
  padding-left: 14px;
  color: var(--ink-2);
}
body.lms-realm-public nav[aria-label="Sections"] {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow);
}
body.lms-realm-public .lms-nav {
  border-radius: 999px;
  padding: 9px 12px 9px 8px;
  margin-bottom: 3px;
  gap: 11px;
  font-weight: 600;
}
body.lms-realm-public .lms-nav svg {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--paper);
  color: var(--state);
  opacity: 1;
  transition: background .15s, color .15s;
}
body.lms-realm-public .lms-nav:hover { background: var(--pp-wash-a); }
body.lms-realm-public .lms-nav:hover svg { background: #fff; }
body.lms-realm-public .lms-nav.is-active {
  background: linear-gradient(135deg, var(--state), var(--state-dk));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(181,18,27,.55);
}
body.lms-realm-public .lms-nav.is-active svg { background: rgba(255,255,255,.22); color: #fff; }
body.lms-realm-public .lms-modid { display: none; } /* module codes read as internal jargon here */

body.lms-realm-public .lms-side .text-ink-3 {
  margin-top: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------
   Page header — a welcome banner instead of a plain title-and-rule strip.
   --------------------------------------------------------------------- */
body.lms-realm-public .lms-ph {
  border-bottom: 0;
  background: linear-gradient(135deg, #fff 0%, var(--pp-wash-a) 130%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
body.lms-realm-public .lms-ph::after {
  content: "";
  position: absolute; right: -40px; top: -60px; width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pp-ring), transparent 70%);
}
body.lms-realm-public .lms-ph__eyebrow { color: var(--gold); }
body.lms-realm-public .lms-ph h2 { font-size: 28px; }

/* ---------------------------------------------------------------------
   Cards & service tiles — slightly rounder, warmer hover, and an icon
   badge on the "Available services" links instead of a bare glyph.
   --------------------------------------------------------------------- */
body.lms-realm-public .lms-card { border-radius: var(--radius-lg); }
body.lms-realm-public a.lms-card:hover {
  border-color: var(--pp-ring);
  transform: translateY(-1px);
}
body.lms-realm-public a.lms-card .lms-card__b > .text-state {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pp-wash-a);
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  body.lms-realm-public a.lms-card:hover { transform: none; }
}
