:root {
	--navy-950: #071a2d;
	--navy-900: #0b2940;
	--navy-800: #124767;
	--navy-700: #176b85;
	--ocean: #078eae;
	--ocean-light: #55d3db;
	--coral: #f4517a;
	--gold: #f2bd66;
	--paper: #f3fbfc;
	--white: #ffffff;
	--ink: #172033;
	--muted: #687386;
	--line: #dfe5e9;
	--success: #16815f;
	--danger: #b9384c;
	--shadow: 0 18px 48px rgba(7, 16, 31, .12);
	--radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
	min-height: 100vh;
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 15px/1.65 "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--ocean); text-decoration: none; }
a:hover { color: #0d6d7c; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 1000; padding: 10px 16px; background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(7, 26, 45, .97);
	border-bottom: 1px solid rgba(255,255,255,.08);
	backdrop-filter: blur(12px);
}
.header-inner { max-width: 1440px; height: 76px; margin: auto; padding: 0 30px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; margin-right: auto; }
.brand:hover { color: white; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: linear-gradient(145deg, #ff6b92, #ee3e70); color: white; font-weight: 800; letter-spacing: -.06em; box-shadow: 0 0 0 5px rgba(244,81,122,.13); }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-family: Georgia, serif; font-size: 19px; letter-spacing: .01em; }
.brand-copy small { margin-top: 4px; color: #9db2c7; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.quick-nav { display: flex; align-items: center; gap: 6px; }
.quick-nav a { padding: 9px 13px; border-radius: 9px; color: #d9e6ef; font-size: 14px; font-weight: 600; }
.quick-nav a:hover { background: rgba(255,255,255,.08); color: white; }
.menu-toggle, .sidebar-close { display: none; border: 0; background: transparent; color: white; cursor: pointer; }

.page-shell { max-width: 1440px; min-height: calc(100vh - 76px); margin: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.site-sidebar { padding: 28px 18px 44px; background: linear-gradient(180deg, #0a2941, #0d3852); color: #d9eef4; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 12px; color: #6f8ba5; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-sidebar table { width: 100%; margin: 0 0 18px; border: 0; border-collapse: collapse; }
.site-sidebar tr:first-child, .site-sidebar tr:last-child { display: none; }
.site-sidebar th { padding: 18px 12px 7px; color: #718da6; font-size: 10px; letter-spacing: .15em; text-align: left; text-transform: uppercase; }
.site-sidebar td { padding: 0; }
.site-sidebar .menuitem a { display: block; margin: 2px 0; padding: 9px 12px; border-radius: 9px; color: #cad8e5; font-size: 13px; transition: .18s ease; }
.site-sidebar .menuitem a:hover { padding-left: 16px; background: rgba(82,197,200,.11); color: white; }
.site-sidebar #admin_sidebar { padding: 8px; border: 1px solid rgba(244,191,98,.2); border-radius: 12px; background: rgba(244,191,98,.06); }
.site-sidebar #admin_sidebar th { color: var(--gold); }
.site-main { min-width: 0; padding: 34px clamp(20px, 4vw, 54px) 64px; background: linear-gradient(135deg, #faffff 0%, #e9f7f8 100%); }
.content-card { max-width: 1120px; margin: 0 auto; }
.sidebar-scrim { display: none; }

#loginbox { margin: 0 auto 18px; border-collapse: collapse; max-width: 1120px; border: 1px solid #c8e4e5; border-radius: 12px; background: #e7f6f6; color: #23414c; overflow: hidden; }
#loginbox tr:first-child, #loginbox tr:last-child, #loginbox td:first-child, #loginbox td:last-child { display: none; }
#loginbox td { padding: 11px 15px; background: transparent !important; }
#loginbox form { display: inline; }
#submenu, #pagemenu, .message, .notice, .error, .red { max-width: 1120px; margin: 0 auto 16px; padding: 12px 16px; border-radius: 10px; }
#submenu, #pagemenu { background: white; border: 1px solid var(--line); color: var(--muted); }
#submenu a, #pagemenu a { display: inline-block; margin: 2px; padding: 4px 8px; border-radius: 6px; background: #edf7f7; }
.message { border-left: 4px solid var(--success); background: #eaf8f2; color: #116747; }
.notice { border-left: 4px solid var(--gold); background: #fff7e5; color: #72521a; }
.error, .red { border-left: 4px solid var(--danger); background: #fff0f2; color: #8c2538; }

.hero { position: relative; min-height: 465px; display: grid; grid-template-columns: 1fr; align-items: center; overflow: hidden; padding: clamp(34px, 6vw, 72px); border-radius: 26px; background-image: linear-gradient(90deg, rgba(5,31,57,.92) 0%, rgba(5,46,75,.78) 35%, rgba(5,55,80,.30) 58%, rgba(5,55,80,.02) 78%), url('../img/hero-porings.png'); background-size: cover; background-position: center center; color: white; box-shadow: var(--shadow); }
.hero:after { content: ""; position: absolute; inset: auto 0 0; height: 25%; background: linear-gradient(0deg, rgba(2,29,49,.22), transparent); }
.hero-content { position: relative; z-index: 2; max-width: 570px; }
.eyebrow { display: block; margin-bottom: 11px; color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 650px; margin: 0; font: 700 clamp(38px, 5vw, 68px)/.98 Georgia, serif; letter-spacing: -.035em; }
.hero p { max-width: 580px; margin: 22px 0 27px; color: #bfd0dd; font-size: clamp(16px, 1.5vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--coral); color: white; box-shadow: 0 10px 22px rgba(255,113,91,.24); }
.button-primary:hover { background: #ff826f; color: white; }
.button-secondary { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: white; }
.button-secondary:hover { background: rgba(255,255,255,.13); color: white; }
.hero-art { display: none; }
.sun { position: absolute; width: 150px; height: 150px; top: 5px; right: 12%; border-radius: 50%; background: radial-gradient(circle, #ffe0a1 0%, var(--gold) 48%, rgba(244,191,98,.08) 70%); box-shadow: 0 0 75px rgba(244,191,98,.34); }
.island { position: absolute; right: -18%; bottom: 18px; width: 122%; height: 80px; border-radius: 50%; background: #963c57; transform: rotate(-7deg); }
.island-back { right: -36%; bottom: 76px; opacity: .38; transform: rotate(8deg); }
.hero-emblem { position: absolute; z-index: 3; right: 20%; top: 35%; width: 132px; height: 132px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: rgba(7,16,31,.52); color: white; font: 700 35px Georgia, serif; box-shadow: 0 20px 50px rgba(0,0,0,.28), inset 0 0 0 8px rgba(255,255,255,.04); backdrop-filter: blur(5px); }
.hero-emblem span { color: var(--ocean-light); }

.feature-grid { position: relative; z-index: 4; width: calc(100% - 54px); margin: -30px auto 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-card { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 10px 28px rgba(7,16,31,.08); }
.feature-card:hover { border-color: #a8d9dc; color: var(--ink); transform: translateY(-2px); }
.feature-icon { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e6f5f5; color: var(--ocean); font-size: 18px; }
.feature-card div { display: grid; }
.feature-card strong { font-size: 15px; }
.feature-card small { color: var(--muted); }

.news-section { margin: 0 0 54px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 4px; color: var(--ocean); }
.section-heading h2, .journey-banner h2 { margin: 0; font: 700 clamp(27px, 3vw, 38px)/1.1 Georgia, serif; }
.section-heading > a { font-weight: 700; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 28px rgba(7,16,31,.05); }
.news-card time { color: var(--ocean); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { margin: 8px 0 12px; font: 700 22px/1.2 Georgia, serif; }
.news-body { color: var(--muted); }
.news-body img { border-radius: 10px; }
.text-link { display: inline-block; margin-top: 12px; font-weight: 700; }
.empty-news { display: flex; align-items: center; gap: 18px; padding: 28px; border: 1px dashed #bfd3d8; border-radius: var(--radius); background: rgba(255,255,255,.72); }
.empty-news > span { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e5f5f4; color: var(--ocean); font-size: 22px; }
.empty-news h3 { margin: 0 0 4px; font: 700 21px Georgia, serif; }
.empty-news p { margin: 0; color: var(--muted); }
.journey-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 40px; border-radius: var(--radius); background: linear-gradient(120deg, #087f9d, #20aebe); color: white; box-shadow: var(--shadow); }
.journey-banner .eyebrow { color: #b7f0eb; }
.journey-banner p { margin: 8px 0 0; color: #d0ebed; }
.button-light { background: white; color: #126d7a; white-space: nowrap; }
.button-light:hover { color: #0d5963; box-shadow: 0 10px 24px rgba(0,0,0,.14); }

.download-panel { display: flex; align-items: center; gap: clamp(24px,5vw,54px); min-height: 330px; padding: clamp(28px,6vw,64px); border: 1px solid #cce6ea; border-radius: 22px; background: radial-gradient(circle at 12% 20%,rgba(85,211,219,.22),transparent 28%),linear-gradient(135deg,#ffffff,#eaf8fa); box-shadow: var(--shadow); }
.download-icon { width: 132px; height: 132px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 35px; background: linear-gradient(145deg,var(--ocean),#14b5bc); color: white; font-size: 70px; font-weight: 300; box-shadow: 0 18px 38px rgba(7,142,174,.24); }
.download-copy { max-width: 610px; }
.download-copy .eyebrow { color: var(--ocean); }
.download-copy h2 { margin: 0 0 10px; font: 700 clamp(32px,5vw,50px)/1 Georgia,serif; }
.download-copy p { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.download-copy small { display: block; margin-top: 12px; color: var(--muted); }
.download-button { min-width: 230px; }

/* FluxCP views */
.site-main h1, .site-main h2, .site-main h3, .site-main h4 { color: var(--ink); }
.site-main .hero h1, .site-main .journey-banner h2 { color: var(--white); }
.site-main > .content-card > h2:first-child { margin-top: 0; font: 700 32px Georgia, serif; }
table { max-width: 100%; }
.content-card > table, .generic-form-table, .horizontal-table, .vertical-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.content-card th, .generic-form-table th, .horizontal-table th, .vertical-table th { padding: 11px 13px; background: var(--navy-800); color: white; text-align: left; }
.content-card td, .generic-form-table td, .horizontal-table td, .vertical-table td { padding: 10px 13px; border-bottom: 1px solid #e7ebee; }
.content-card tr:last-child td { border-bottom: 0; }
.content-card tr:nth-child(even) td { background: #f8fafb; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=file], select, textarea { max-width: 100%; padding: 9px 11px; border: 1px solid #cbd4da; border-radius: 8px; background: white; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(20,143,163,.14); }
input[type=submit], input[type=button], button:not(.menu-toggle):not(.sidebar-close) { padding: 9px 16px; border: 0; border-radius: 8px; background: var(--ocean); color: white; font-weight: 700; cursor: pointer; }
.pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0; }
.pagination a, .pagination strong { padding: 6px 10px; border-radius: 7px; background: white; border: 1px solid var(--line); }
.search-form { padding: 18px; border-radius: 12px; background: white; border: 1px solid var(--line); }

.site-footer { background: var(--navy-950); color: #9eb0c1; }
.footer-inner { max-width: 1440px; margin: auto; padding: 35px 30px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 30px; }
.footer-inner strong { color: white; font: 700 18px Georgia, serif; }
.footer-inner p { margin: 3px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a, .site-footer a { color: #c9d8e4; }
.footer-inner small { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 960px) {
	.quick-nav { display: none; }
	.menu-toggle { display: grid; grid-template-columns: 22px auto; gap: 4px 8px; align-items: center; }
	.menu-toggle span { grid-column: 1; display: block; width: 22px; height: 2px; background: white; }
	.menu-toggle b { grid-column: 2; grid-row: 1 / 4; font-size: 12px; }
	.page-shell { display: block; }
	.site-sidebar { position: fixed; z-index: 80; top: 0; bottom: 0; left: 0; width: min(310px, 86vw); overflow-y: auto; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
	.sidebar-heading { padding-top: 5px; }
	.sidebar-close { display: block; font-size: 28px; }
	.sidebar-scrim { position: fixed; z-index: 70; inset: 0; visibility: hidden; opacity: 0; background: rgba(4,11,20,.62); transition: .22s ease; }
	.sidebar-scrim { display: block; }
	.menu-open { overflow: hidden; }
	.menu-open .site-sidebar { transform: translateX(0); }
	.menu-open .sidebar-scrim { visibility: visible; opacity: 1; }
	.hero { grid-template-columns: 1fr; }
	.hero-content { max-width: 720px; }
	.news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
	.header-inner { height: 68px; padding: 0 16px; }
	.brand-mark { width: 39px; height: 39px; }
	.brand-copy strong { font-size: 16px; }
	.brand-copy small { display: none; }
	.site-main { padding: 18px 13px 42px; }
	.hero { min-height: 560px; padding: 35px 24px; border-radius: 18px; background-image: linear-gradient(180deg, rgba(4,31,53,.86) 0%, rgba(4,46,68,.62) 48%, rgba(4,55,71,.10) 78%), url('../img/hero-porings.png'); background-position: 67% center; }
	.hero p { margin: 18px 0 23px; }
	.hero-actions .button { width: 100%; }
	.feature-grid { width: calc(100% - 20px); margin-top: -18px; margin-bottom: 38px; grid-template-columns: 1fr; }
	.feature-card { min-height: 76px; }
	.section-heading { align-items: start; }
	.news-grid { grid-template-columns: 1fr; }
	.empty-news { align-items: flex-start; padding: 20px; }
	.journey-banner { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
	.journey-banner .button { width: 100%; }
	.footer-inner { grid-template-columns: 1fr; padding: 30px 20px; }
	.footer-inner small { grid-column: auto; }
	.content-card { overflow-x: auto; }
	.download-panel { align-items: flex-start; flex-direction: column; }
	.download-icon { width: 86px; height: 86px; border-radius: 24px; font-size: 48px; }
	.download-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
