/* ==========================================================================
   Launch  -  front-end skin (dark navy + electric blue)
   --------------------------------------------------------------------------
   This sheet is loaded ONLY by tmpl/header.tpl, i.e. it never reaches the
   administration (which loads css/admin.css + css/admin_premium.css).
   It works as a re-skin layer: the "Warm & Earthy" tokens declared in
   css/base.css are re-mapped to the Launch palette, so every sheet that
   reads var(--surface) / var(--ink) / var(--brand) ... instantly follows.
   Literal colours are overridden further down.

   Layout of this file
     1. tokens (dark = default, .ll-light = light variant)
     2. page shell
     3. top bar + brand + nav + tools
     4. hero
     5. content skin (cards, tables, forms, alerts, pagination)
     6. sidebar + footer
     7. responsive + motion
   ========================================================================== */

/* ----------------------------------------------------------- 1. tokens ----- */
:root {
	/* --- Launch palette --------------------------------------------------- */
	--ll-void:        #04070F;
	--ll-bg:          #060B18;
	--ll-bg-2:        #0A1120;
	--ll-panel:       #0E1526;
	--ll-panel-2:     #121A2E;
	--ll-panel-3:     #18223A;

	--ll-border:      #1E2A45;
	--ll-border-2:    #263353;
	--ll-border-3:    #33436B;

	--ll-ink:         #E8EEF9;
	--ll-ink-2:       #A9B6CE;
	--ll-ink-3:       #7688A8;

	--ll-brand:       #3B82F6;
	--ll-brand-2:     #60A5FA;
	--ll-brand-deep:  #3F79F5;   /* also used as link / border colour */
	--ll-brand-ink:   #BFD7FF;   /* readable blue text on dark */
	--ll-brand-soft:  rgba(59, 130, 246, .12);

	--ll-header-bg:   rgba(8, 13, 26, .88);
	--ll-nav-link:    #93A4C0;
	--ll-glow:        rgba(37, 99, 235, .45);
	--ll-hero-glow:   radial-gradient(60% 80% at 50% 0%, rgba(37, 99, 235, .22) 0%, rgba(4, 7, 15, 0) 70%);

	/* semantic - dark variants */
	--ll-ok-bg:       #0C2A1C;
	--ll-ok-ink:      #7BE0AA;
	--ll-ok-line:     #1C5A3C;
	--ll-warn-bg:     #2A2008;
	--ll-warn-ink:    #FFCF7A;
	--ll-warn-line:   #5A4415;
	--ll-danger-bg:   #2C1216;
	--ll-danger-ink:  #FF9C93;
	--ll-danger-line: #5E262C;
	--ll-info-bg:     #0B2333;
	--ll-info-ink:    #82CDF0;
	--ll-info-line:   #1D4A63;
	--ll-neutral-bg:  #16203A;
	--ll-neutral-ink: #9FB0CC;
	--ll-neutral-line:#27334F;

	/* --- re-map the base tokens ------------------------------------------ */
	--paper:       var(--ll-bg);
	--paper-tint:  var(--ll-bg-2);
	--surface:     var(--ll-panel);
	--surface-2:   var(--ll-panel-2);
	--surface-3:   var(--ll-panel-3);

	--line:        var(--ll-border);
	--line-2:      var(--ll-border-2);
	--line-strong: var(--ll-border-3);

	--ink:         var(--ll-ink);
	--ink-2:       var(--ll-ink-2);
	--ink-3:       var(--ll-ink-3);
	--ink-inv:     #FFFFFF;

	--brand:       var(--ll-brand);
	--brand-2:     var(--ll-brand-2);
	--brand-deep:  var(--ll-brand-deep);
	--brand-ink:   var(--ll-brand-ink);

	--ok:          #34D399;
	--ok-bg:       var(--ll-ok-bg);
	--warn:        #F5A623;
	--warn-bg:     var(--ll-warn-bg);
	--danger:      #F87171;
	--danger-bg:   var(--ll-danger-bg);
	--info:        #58B7E0;
	--info-bg:     var(--ll-info-bg);

	--grad-brand:      linear-gradient(135deg, #4C8DFF 0%, #2563EB 58%, #1D4ED8 100%);
	--grad-brand-soft: linear-gradient(135deg, #101A30 0%, #0D1526 100%);
	--grad-ink:        linear-gradient(135deg, #121C33 0%, #0B1222 100%);
	--grad-paper:      radial-gradient(120% 60% at 50% 0%, #0C1730 0%, #060B18 55%, #04070F 100%);

	--r-xs:   7px;
	--r-sm:   10px;
	--r-md:   14px;
	--r-lg:   20px;

	--sh-xs: 0 1px 2px rgba(2, 6, 16, .55);
	--sh-sm: 0 2px 8px rgba(2, 6, 16, .55);
	--sh-md: 0 12px 28px -10px rgba(2, 6, 16, .75), 0 0 0 1px rgba(59, 130, 246, .06);
	--sh-lg: 0 26px 60px -22px rgba(2, 6, 16, .85), 0 0 0 1px rgba(59, 130, 246, .08);

	--font-display: var(--font-sans);

	--shell-max:  1280px;
	--sidebar-w:  300px;
	--gutter:     24px;
}

/* light variant - switched by the top bar button (html.ll-light) */
html.ll-light {
	--ll-void:        #EDF1F9;
	--ll-bg:          #F4F7FD;
	--ll-bg-2:        #FFFFFF;
	--ll-panel:       #FFFFFF;
	--ll-panel-2:     #F7FAFF;
	--ll-panel-3:     #EEF3FC;

	--ll-border:      #DFE6F3;
	--ll-border-2:    #CBD5E9;
	--ll-border-3:    #AEBBDA;

	--ll-ink:         #0B1220;
	--ll-ink-2:       #3C4A63;
	--ll-ink-3:       #5C6B85;

	--ll-brand:       #2563EB;
	--ll-brand-2:     #3B82F6;
	--ll-brand-deep:  #1D4ED8;
	--ll-brand-ink:   #123A9B;
	--ll-brand-soft:  rgba(37, 99, 235, .10);

	--ll-header-bg:   rgba(255, 255, 255, .9);
	--ll-nav-link:    #4A5878;
	--ll-glow:        rgba(37, 99, 235, .22);
	--ll-hero-glow:   radial-gradient(60% 80% at 50% 0%, rgba(37, 99, 235, .12) 0%, rgba(255, 255, 255, 0) 70%);

	--ll-ok-bg:       #E8F7EF;
	--ll-ok-ink:      #0F6B41;
	--ll-ok-line:     #A9DCC2;
	--ll-warn-bg:     #FEF5E4;
	--ll-warn-ink:    #8A5800;
	--ll-warn-line:   #EBD3A1;
	--ll-danger-bg:   #FDECEA;
	--ll-danger-ink:  #9B2C22;
	--ll-danger-line: #EFBDB7;
	--ll-info-bg:     #E8F3FA;
	--ll-info-ink:    #14556F;
	--ll-info-line:   #B4D6E6;
	--ll-neutral-bg:  #F1F4FA;
	--ll-neutral-ink: #4A5878;
	--ll-neutral-line:#DCE3F0;

	--ink-inv:  #FFFFFF;

	--grad-brand:      linear-gradient(135deg, #4C8DFF 0%, #2563EB 58%, #1D4ED8 100%);
	--grad-brand-soft: linear-gradient(135deg, #FFFFFF 0%, #F1F5FE 100%);
	--grad-ink:        linear-gradient(135deg, #F6F9FF 0%, #EEF3FC 100%);
	--grad-paper:      radial-gradient(120% 60% at 50% 0%, #FFFFFF 0%, #F4F7FD 55%, #EDF1F9 100%);

	--sh-xs: 0 1px 2px rgba(16, 30, 60, .07);
	--sh-sm: 0 2px 8px rgba(16, 30, 60, .09);
	--sh-md: 0 12px 28px -12px rgba(16, 30, 60, .22), 0 0 0 1px rgba(37, 99, 235, .05);
	--sh-lg: 0 26px 60px -26px rgba(16, 30, 60, .30), 0 0 0 1px rgba(37, 99, 235, .07);
}

/* ------------------------------------------------------- 2. page shell ----- */
body {
	background-color: var(--ll-void);
	background-image: var(--grad-paper);
	color: var(--ll-ink);
}

.global_wrap {
	background: var(--ll-bg);
	border: 1px solid var(--ll-border);
	border-radius: var(--r-lg);
	margin: 18px auto;
	min-height: calc(100vh - 36px);
	box-shadow: 0 0 0 1px rgba(59, 130, 246, .07), 0 40px 120px -46px var(--ll-glow);
	/* clip keeps the rounded corners without creating a scroll container,
	   so the sticky top bar below keeps working */
	overflow: hidden;
	overflow: clip;
}

::selection {
	background: rgba(59, 130, 246, .35);
	color: var(--ll-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid rgba(59, 130, 246, .45);
	outline-offset: 2px;
}

::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: var(--ll-bg-2);
}

::-webkit-scrollbar-thumb {
	background: var(--ll-border-3);
	border: 3px solid var(--ll-bg-2);
	border-radius: var(--r-pill);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--ll-brand);
}

/* --------------------------------------------- 3. top bar / brand / nav --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	padding: 12px 22px;
	min-height: 66px;
	background: var(--ll-header-bg);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--ll-border);
}

/* The template keeps the brand + tools in .site-header__top and the nav as the
   next sibling. display:contents promotes both children up one level so the
   bar can render as a single row: brand | navigation | tools. */
.site-header__top {
	display: contents;
}

.brand {
	order: 1;
}

.site-header__tools {
	order: 3;
}

/* ------------------------------------------------------------------ brand -- */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	flex: 0 0 auto;
	color: var(--ll-ink);
	text-decoration: none;
}

.brand:hover {
	text-decoration: none;
	color: var(--ll-ink);
}

.brand__plate {
	display: none;
}

.brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .02em;
	color: #FFFFFF;
	text-transform: uppercase;
	background: var(--grad-brand);
	border-radius: 10px;
	box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.brand__name {
	font-family: var(--font-sans);
	font-size: 17.5px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--ll-ink);
	white-space: nowrap;
}

/* -------------------------------------------------------------- navigation -- */
.site-nav {
	order: 2;
	flex: 1 1 auto;
	background: transparent;
	border: 0;
	border-bottom: 0;
	padding: 0;
}

.site-nav ul.main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav ul.main > li > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--ll-nav-link);
	background: transparent;
	border: 0;
	border-radius: var(--r-sm);
	text-decoration: none;
	transition: color .15s var(--ease), background .15s var(--ease);
}

.site-nav ul.main > li > a:hover,
.site-nav ul.main > li.over > a,
.site-nav ul.main > li.is-open > a {
	color: var(--ll-ink);
	background: var(--ll-panel-2);
	text-decoration: none;
}

.site-nav ul.main > li.is-active > a {
	color: var(--ll-ink);
	background: var(--ll-brand-soft);
	border: 0;
}

/* the small template icons are not needed in the flat Launch bar */
.site-nav ul.main > li > a > svg {
	display: none;
}

.site-nav .has-children > a::after {
	width: 5px;
	height: 5px;
	margin-left: 1px;
	opacity: .7;
}

.site-nav ul.categories {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 220;
	min-width: 220px;
	max-width: 330px;
	margin: 0;
	padding: 8px;
	background: var(--ll-panel);
	border: 1px solid var(--ll-border-2);
	border-top: 1px solid var(--ll-border-2);
	border-radius: var(--r-md);
	box-shadow: var(--sh-md);
}

.site-nav ul.categories li a {
	display: block;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ll-ink-2);
	border-radius: var(--r-sm);
}

.site-nav ul.categories li a:hover {
	color: var(--ll-ink);
	background: var(--ll-panel-3);
	text-decoration: none;
}

/* ------------------------------------------------------------------ tools -- */
.site-header__tools {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex: 0 0 auto;
}

.ll-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-height: 38px;
	padding: 0;
	color: var(--ll-ink-2);
	background: var(--ll-panel-2);
	border: 1px solid var(--ll-border-2);
	border-radius: var(--r-sm);
	box-shadow: none;
	cursor: pointer;
	transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}

.ll-icon-btn:hover,
.ll-icon-btn[aria-expanded="true"] {
	color: var(--ll-ink);
	background: var(--ll-panel-3);
	border-color: var(--ll-border-3);
	filter: none;
	transform: none;
	box-shadow: none;
}

.ll-icon-btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ll-icon-btn .ll-icon-btn__moon {
	display: none;
}

html.ll-light .ll-icon-btn .ll-icon-btn__sun {
	display: none;
}

html.ll-light .ll-icon-btn .ll-icon-btn__moon {
	display: block;
}

/* buttons sitting in the top bar */
.site-header .btn,
.site-header input[type="submit"] {
	min-height: 38px;
	padding: 8px 16px;
	font-size: 13.5px;
	border-radius: var(--r-sm);
}

.site-header .btn:not(.btn-ghost):not(.secondary) {
	border-color: rgba(29, 78, 216, .9);
	box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .95), inset 0 1px 0 rgba(255, 255, 255, .28);
}

/* --------------------------------------------------------- search popover -- */
.site-search {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	background: var(--ll-panel);
	border-bottom: 1px solid var(--ll-border);
	box-shadow: var(--sh-md);
}

.site-header.is-search-open .site-search {
	display: flex;
}

.site-search .site-search__input,
.site-search input[type="text"] {
	flex: 1 1 auto;
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--ll-ink);
	background: var(--ll-panel-2);
	border: 1px solid var(--ll-border-2);
	border-radius: var(--r-sm);
	box-shadow: none;
}

.site-search .site-search__input:focus,
.site-search input[type="text"]:focus {
	background: var(--ll-panel-2);
	border-color: var(--ll-brand);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, .22);
	outline: none;
}

.site-search .site-search__btn,
.site-search input[type="submit"] {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	min-height: 40px;
	padding: 9px 18px;
	font-size: 13.5px;
	color: #FFFFFF;
	background: var(--grad-brand);
	border: 1px solid rgba(29, 78, 216, .9);
	border-radius: var(--r-sm);
}

.site-search .site-search__btn svg {
	width: 16px;
	height: 16px;
}

/* ------------------------------------------------------------- 4. hero ---- */
.ll-hero {
	position: relative;
	padding: 78px 24px 64px;
	text-align: center;
	background: var(--ll-hero-glow) no-repeat top center;
	border-bottom: 1px solid var(--ll-border);
}

.ll-hero__inner {
	max-width: 980px;
	margin: 0 auto;
}

.ll-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 28px;
	padding: 8px 17px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--ll-brand-2);
	background: var(--ll-brand-soft);
	border: 1px solid rgba(59, 130, 246, .3);
	border-radius: var(--r-pill);
}

html.ll-light .ll-pill {
	color: var(--ll-brand-deep);
}

.ll-pill svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ll-hero__title {
	margin: 0 0 22px;
	font-family: var(--font-sans);
	font-size: clamp(34px, 5.4vw, 66px);
	font-weight: 800;
	line-height: 1.07;
	letter-spacing: -.025em;
	color: var(--ll-ink);
}

.ll-hero__title .ll-accent {
	display: block;
	color: var(--ll-brand);
}

.ll-hero__lead {
	max-width: 690px;
	margin: 0 auto 34px;
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.62;
	color: var(--ll-ink-2);
}

.ll-hero__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 66px;
}

.ll-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 26px;
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -.005em;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .18s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}

.ll-btn svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ll-btn--primary {
	color: #FFFFFF;
	background: var(--grad-brand);
	border-color: rgba(29, 78, 216, .95);
	box-shadow: 0 16px 32px -16px rgba(37, 99, 235, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.ll-btn--primary:hover,
.ll-btn--primary:focus {
	color: #FFFFFF;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 20px 38px -16px rgba(37, 99, 235, 1), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.ll-btn--ghost {
	color: var(--ll-ink);
	background: var(--ll-panel-2);
	border-color: var(--ll-border-2);
	box-shadow: var(--sh-xs);
}

.ll-btn--ghost:hover,
.ll-btn--ghost:focus {
	color: var(--ll-ink);
	background: var(--ll-panel-3);
	border-color: var(--ll-border-3);
	text-decoration: none;
	transform: translateY(-1px);
}

/* ------------------------------------------------------------------ stats -- */
.ll-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	max-width: 900px;
	margin: 0 auto;
	padding: 38px 0 0;
	list-style: none;
	border-top: 1px solid var(--ll-border);
}

.ll-stats li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ll-stats svg {
	width: 30px;
	height: 30px;
	margin-bottom: 14px;
	fill: none;
	stroke: var(--ll-brand);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ll-stats b {
	display: block;
	margin-bottom: 6px;
	font-family: var(--font-sans);
	font-size: clamp(26px, 2.6vw, 34px);
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ll-ink);
}

.ll-stats span {
	display: block;
	font-size: 14.5px;
	color: var(--ll-ink-3);
}

/* anchors below the sticky bar must not hide under it */
.middle_wrap[id],
[id="listings"] {
	scroll-margin-top: 96px;
}

/* ------------------------------------------------- 5. content skin -------- */
a {
	color: var(--ll-brand-deep);
}

a:hover,
a:focus {
	color: var(--ll-brand-2);
}

/* ------------------------------------------------------- group heading bar -- */
.list .header {
	background: var(--grad-brand);
	border-color: rgba(29, 78, 216, .9);
	border-radius: var(--r-md);
	box-shadow: 0 14px 30px -20px rgba(37, 99, 235, .95);
}

.list .header h1 {
	font-family: var(--font-sans);
	color: #FFFFFF;
	letter-spacing: -.01em;
	text-shadow: 0 1px 2px rgba(2, 8, 23, .35);
}

.list .header a {
	color: #EAF2FF;
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .32);
}

.list .header a:hover {
	color: #0B1220;
	background: #FFFFFF;
}

/* ------------------------------------------------------------ program card -- */
.program {
	background: var(--ll-panel);
	border: 1px solid var(--ll-border);
	border-radius: 16px;
	box-shadow: var(--sh-xs);
	transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.program:hover {
	border-color: var(--ll-border-3);
	box-shadow: var(--sh-md);
}

.program .title {
	background: var(--ll-panel-2);
	border-bottom: 1px solid var(--ll-border);
	border-radius: 16px 16px 0 0;
}

.program .title a.name {
	color: var(--ll-ink);
	letter-spacing: -.01em;
}

.program .title a.name:hover {
	color: var(--ll-brand-2);
}

.program .title li a {
	color: var(--ll-ink-2);
	background: var(--ll-panel-3);
	border-color: var(--ll-border-2);
}

.program .title li a:hover {
	color: #FFFFFF;
	background: var(--grad-brand);
	border-color: rgba(29, 78, 216, .9);
}

.program .description {
	color: var(--ll-ink-2);
}

.program .new {
	color: #0B1220;
	background: linear-gradient(135deg, #FF9C93 0%, #F87171 100%);
}

.program .hot_wrap span {
	color: #2A1200;
	background: linear-gradient(135deg, #FFD07A 0%, #F5A623 100%);
	border-color: #C97B06;
}

.program .status1 {
	color: var(--ll-ok-ink);
	background: var(--ll-ok-bg);
	border-color: var(--ll-ok-line);
}

.program .status2 {
	color: var(--ll-neutral-ink);
	background: var(--ll-neutral-bg);
	border-color: var(--ll-neutral-line);
}

.program .status3 {
	color: var(--ll-warn-ink);
	background: var(--ll-warn-bg);
	border-color: var(--ll-warn-line);
}

.program .status4 {
	color: var(--ll-danger-ink);
	background: var(--ll-danger-bg);
	border-color: var(--ll-danger-line);
}

.program .status5 {
	color: var(--ll-neutral-ink);
	background: var(--ll-neutral-bg);
	border-color: var(--ll-neutral-line);
}

.program .adminnote {
	color: var(--ll-warn-ink);
	background: var(--ll-warn-bg);
	border: 1px solid var(--ll-warn-line);
	border-radius: var(--r-sm);
}

.program .upgrade a,
.program .max_rcb a,
.program .insurance a {
	color: var(--ll-brand-ink);
}

/* ------------------------------------------------------------- alerts ------ */
.error {
	background: var(--ll-danger-bg);
	border-color: var(--ll-danger-line);
	color: var(--ll-danger-ink);
}

.error::before {
	background: var(--danger);
	color: #0B1220;
}

.message {
	background: var(--ll-warn-bg);
	border-color: var(--ll-warn-line);
	color: var(--ll-warn-ink);
}

.message::before {
	background: var(--warn);
	color: #1A1200;
}

.ok {
	background: var(--ll-ok-bg);
	border-color: var(--ll-ok-line);
	color: var(--ll-ok-ink);
}

.ok::before {
	background: var(--ok);
	color: #04160D;
}

ul.error {
	background: var(--ll-danger-bg);
	border: 1px solid var(--ll-danger-line);
	border-radius: var(--r-sm);
}

ul.error li {
	color: var(--ll-danger-ink);
}

/* ------------------------------------------------------------- badges ------ */
.badge-neutral {
	color: var(--ll-neutral-ink);
	background: var(--ll-neutral-bg);
	border-color: var(--ll-neutral-line);
}

.badge-ok {
	color: var(--ll-ok-ink);
	background: var(--ll-ok-bg);
	border-color: var(--ll-ok-line);
}

.badge-warn {
	color: var(--ll-warn-ink);
	background: var(--ll-warn-bg);
	border-color: var(--ll-warn-line);
}

.badge-danger {
	color: var(--ll-danger-ink);
	background: var(--ll-danger-bg);
	border-color: var(--ll-danger-line);
}

.badge-info {
	color: var(--ll-info-ink);
	background: var(--ll-info-bg);
	border-color: var(--ll-info-line);
}

.card-head {
	background: var(--grad-ink);
	border-bottom-color: var(--ll-border);
}

.card-head a {
	color: var(--ll-brand-ink);
}

/* --------------------------------------------------------- pagination ------ */
.pages a,
.pages b {
	color: var(--ll-ink-2);
	background: var(--ll-panel-2);
	border-color: var(--ll-border-2);
}

.pages a:hover {
	color: var(--ll-ink);
	background: var(--ll-panel-3);
	border-color: var(--ll-brand);
}

.pages b {
	color: #FFFFFF;
	background: var(--grad-brand);
	border-color: rgba(29, 78, 216, .9);
}

/* ---------------------------------------------------- forms, inputs ------- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	color: var(--ll-ink);
	background: var(--ll-panel-2);
	border-color: var(--ll-border-2);
	box-shadow: inset 0 1px 2px rgba(2, 6, 16, .35);
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="search"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
textarea:hover,
select:hover {
	border-color: var(--ll-border-3);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
	background: var(--ll-panel-2);
	border-color: var(--ll-brand);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, .22);
}

input::placeholder,
textarea::placeholder {
	color: var(--ll-ink-3);
}

/* the native dropdown list must never inherit an invisible ink */
select option,
select optgroup {
	color: var(--ll-ink);
	background: var(--ll-panel-2);
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--ll-brand);
}

/* ------------------------------------------- 6. sidebar / footer / ads ---- */
.sidebar > h2 {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ll-ink-2);
	background: var(--ll-bg-2);
	border: 1px solid var(--ll-border);
	border-left: 3px solid var(--ll-brand);
	border-radius: var(--r-sm);
}

/* the leading dot keeps the flat brand fill */
.sidebar > h2::before {
	background-color: var(--ll-brand);
}

/* The `background` shorthand that used to sit here also reset background-image,
   which is what actually paints the per-widget glyph declared in
   css/sidebar.css.  Every card therefore rendered a solid blue square instead
   of an icon - and the widgets that have no :has() glyph rule at all showed a
   bare blue block.  Tint the colour only, never the image. */
.sidebar > h2::after {
	background-color: transparent;
	opacity: .8;
}

/* those glyphs are drawn in cream (#F2E1C8) for the dark title bar; on the
   light variant the bar is white, so flip them to a dark ink */
html.ll-light .sidebar > h2::after {
	filter: invert(1);
	opacity: .75;
}

.sidebar > div {
	background: var(--ll-panel);
	border: 1px solid var(--ll-border);
	border-radius: var(--r-md);
	box-shadow: none;
}

.sidebar > div.banner {
	background: var(--ll-panel);
	border-color: var(--ll-border);
}

.sidebar .articles > ul > li {
	border-bottom: 1px solid var(--ll-border);
}

.sidebar .articles a.title {
	color: var(--ll-ink-2);
}

.sidebar .articles a.title:hover {
	color: var(--ll-brand-2);
}

.sidebar .articles .date {
	color: var(--ll-ink-3);
}

.sidebar .articles .text {
	color: var(--ll-ink-3);
}

.sidebar .login table.form th {
	color: var(--ll-ink-2);
}

/* ------------------------------------------------------------------ footer -- */
.footer {
	background: var(--ll-bg-2);
	border-top: 1px solid var(--ll-border);
	color: var(--ll-ink-3);
}

.footer .disclimer {
	color: var(--ll-ink-3);
	border-color: var(--ll-border);
}

.footer .disclimer b,
.footer .disclimer b::before {
	color: var(--ll-ink-2);
	background: var(--ll-brand);
}

.footer .disclimer b::before {
	background: transparent;
}

.footer .copyright {
	color: var(--ll-ink-3);
	border-color: var(--ll-border);
}

.footer .copyright a,
.footer .copyright a:visited {
	color: var(--ll-brand-ink);
}

.footer .copyright a:hover {
	color: #FFFFFF;
}

.to-top {
	color: var(--ll-ink-2);
	background: var(--ll-panel-2);
	border: 1px solid var(--ll-border-2);
	box-shadow: var(--sh-sm);
}

.to-top:hover,
.to-top:active {
	color: #FFFFFF;
	background: var(--grad-brand);
	border-color: rgba(29, 78, 216, .9);
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
}

/* fixed 125x125 creatives pinned to the corners - kept, but toned down so they
   do not fight with the design (and hidden on narrow screens below) */
body > div[style*="position: fixed"] {
	border-radius: var(--r-sm);
	overflow: hidden;
	box-shadow: var(--sh-md);
	opacity: .92;
	transition: opacity .18s var(--ease);
}

body > div[style*="position: fixed"]:hover {
	opacity: 1;
}

/* empty ad slots should never leave a gap */
.ad-zone:empty {
	display: none;
}

/* ------------------------------------------------------------ directory -- */
.directory .link {
	background: var(--ll-panel);
	border-color: var(--ll-border);
}

.directory .link:hover {
	border-color: var(--ll-border-3);
	background: var(--ll-panel-2);
}

.directory > .subs a {
	background: var(--ll-panel-2);
	border-color: var(--ll-border-2);
	color: var(--ll-ink-2);
}

.directory > .subs a:hover {
	color: var(--ll-ink);
	border-color: var(--ll-brand);
}

.directory .list .header h1 a,
.directory .list .header h1 a:hover {
	color: #FFFFFF;
}

/* ---------------------------------------- 7. responsive / small screens --- */
@media (max-width: 1200px) {
	.site-nav ul.main > li > a {
		padding: 9px 9px;
		font-size: 13.5px;
	}

	/* the pinned 125x125 creatives would cover the hero content */
	body > div[style*="position: fixed"] {
		display: none;
	}
}

@media (max-width: 1000px) {
	.global_wrap {
		margin: 0;
		border: 0;
		border-radius: 0;
		min-height: 100vh;
	}

	.site-header {
		padding: 10px 16px;
		min-height: 62px;
		gap: 12px;
	}

	/* the bar becomes a drawer panel under the header */
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 10px;
		background: var(--ll-panel);
		border-bottom: 1px solid var(--ll-border);
		box-shadow: var(--sh-md);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul.main {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.site-nav ul.main > li {
		border-bottom: 1px solid var(--ll-border);
	}

	.site-nav ul.main > li:last-child {
		border-bottom: 0;
	}

	.site-nav ul.main > li > a {
		width: 100%;
		justify-content: flex-start;
		padding: 12px;
		font-size: 14.5px;
	}

	.site-nav ul.main > li > a > svg {
		display: block;
	}

	.site-nav .has-children > a::after {
		margin-left: auto;
	}

	.site-nav ul.categories {
		position: static;
		display: none;
		min-width: 0;
		max-width: none;
		margin: 0 0 10px;
		background: var(--ll-panel-2);
		border: 1px solid var(--ll-border);
		border-radius: var(--r-sm);
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav li.is-open > ul.categories {
		display: block;
	}

	.site-nav ul.categories li a {
		color: var(--ll-ink-2);
	}

	.site-nav ul.categories li a:hover {
		color: var(--ll-ink);
		background: var(--ll-panel-3);
	}

	.nav-toggle {
		display: inline-flex;
	}

	.site-search {
		padding: 12px 16px;
	}

	.ll-hero {
		padding: 54px 18px 46px;
	}

	.ll-hero__cta {
		margin-bottom: 48px;
	}

	.ll-stats {
		gap: 20px;
		padding-top: 30px;
	}

	.ll-stats svg {
		width: 26px;
		height: 26px;
		margin-bottom: 10px;
	}
}

@media (max-width: 760px) {
	.ll-hero {
		padding: 42px 16px 38px;
	}

	.ll-pill {
		margin-bottom: 22px;
		padding: 7px 14px;
		font-size: 12.5px;
	}

	.ll-hero__title {
		font-size: clamp(30px, 8.4vw, 40px);
	}

	.ll-hero__lead {
		margin-bottom: 26px;
		font-size: 15.5px;
	}

	.ll-hero__cta {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-bottom: 40px;
	}

	.ll-btn {
		width: 100%;
	}

	.ll-stats {
		grid-template-columns: 1fr;
		gap: 26px;
		padding-top: 28px;
	}
}

@media (max-width: 620px) {
	.site-header {
		padding: 10px 14px;
		gap: 10px;
	}

	.brand__mark {
		width: 30px;
		height: 30px;
		font-size: 12.5px;
		border-radius: 9px;
	}

	.brand__name {
		font-size: 16px;
		max-width: 46vw;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.site-header .btn {
		min-height: 36px;
		padding: 7px 12px;
		font-size: 12.5px;
	}

	.ll-icon-btn {
		width: 36px;
		height: 36px;
	}

	.site-search {
		padding: 12px 14px;
		flex-wrap: wrap;
	}

	.site-search .site-search__btn,
	.site-search input[type="submit"] {
		width: 100%;
	}
}

@media (max-width: 460px) {
	.site-header .btn-ghost {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ll-btn,
	.ll-icon-btn,
	.program {
		transition: none;
	}
}
