/* ==========================================================================
   Tomatrix — shared stylesheet
   One file for every page. Colours come from the Tomax logo.
   ========================================================================== */

:root {
	/* Brand */
	--navy:        #1B2160;
	--navy-soft:   #AEB6DA;
	--blue:        #1076BF;
	--blue-dark:   #0B5A93;
	--sky:         #6EC6EC;
	--orange:      #F48120;

	/* Logo stripe */
	--logo-1: #D52F24; --logo-2: #EF4123; --logo-3: #F48120; --logo-4: #FBB040; --logo-5: #FFD540;
	--logo-6: #6EC6EC; --logo-7: #27AAE1; --logo-8: #1076BF; --logo-9: #17468D; --logo-10: #232C6A;

	/* Neutrals */
	--ink:         #1A1F36;   /* headings */
	--text:        #3D4459;   /* body */
	--muted:       #5F6680;   /* secondary (passes 4.5:1 on white) */
	--bg:          #F3F5F9;
	--surface:     #FFFFFF;
	--field:       #F8FAFC;
	--line:        #E3E7EF;
	--line-soft:   #EEF1F6;
	--field-line:  #D5DBE6;
	--hover:       #EEF2F8;

	/* Soft tints for chips and date tiles */
	--tint-orange: #FFF4E8;  --ink-orange: #8A3D00;
	--tint-blue:   #E8F3FC;  --ink-blue:   #0B4F82;
	--tint-navy:   #EEF0FA;  --ink-navy:   #232C6A;
	--tint-gold:   #FFF8E6;  --line-gold:  #F6E3B4;  --ink-gold: #7A4D00;
	--danger:      #A01818;  --tint-danger: #FDECEC;
	--success:     #1E6B3A;  --tint-success: #E7F5EC;

	--radius:    16px;
	--radius-sm: 10px;
	--font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
	font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { background: var(--navy); color: #fff; }
.site-header__bar {
	display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap;
	padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 16px; color: #fff; flex-shrink: 0; }
.brand:hover { text-decoration: none; color: #fff; }
.brand img { height: 37px; width: auto; display: block; }
.brand__name {
	font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
	color: var(--navy-soft); border-left: 1px solid rgba(255,255,255,.2); padding-left: 16px;
}

.site-search { position: relative; flex: 1 1 260px; max-width: 460px; margin-left: auto; }
.site-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--navy-soft); pointer-events: none; }
.site-search input {
	width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: var(--radius-sm);
	border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-size: 14px;
}
.site-search input::placeholder { color: var(--navy-soft); }
.site-search input:focus { outline: 2px solid var(--sky); outline-offset: 1px; background: rgba(255,255,255,.12); }

.ask-max {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 7px; border-radius: 999px; flex-shrink: 0;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
	transition: background .15s ease, border-color .15s ease;
}
.ask-max:hover, .ask-max[aria-current="page"] { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.32); color: #fff; text-decoration: none; }
.ask-max img { width: 26px; height: 26px; display: block; }
.user-menu { position: relative; }
.user-menu > summary {
	list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer;
	padding: 4px 10px 4px 4px; border-radius: 999px; min-height: 44px; font-size: 14px; font-weight: 600;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: rgba(255,255,255,.1); }
.user-menu .avatar { border: 2px solid #fff; }
.user-menu__panel {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 200px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 12px 32px rgba(26,31,54,.16); padding: 6px;
}
.user-menu__panel a {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
	color: var(--ink); font-size: 14px; font-weight: 500;
}
.user-menu__panel a:hover { background: var(--hover); text-decoration: none; }
.user-menu__panel hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 0; }

.logo-stripe { display: flex; height: 4px; }
.logo-stripe span { flex: 1; }
.logo-stripe span:nth-child(1)  { background: var(--logo-1); }
.logo-stripe span:nth-child(2)  { background: var(--logo-2); }
.logo-stripe span:nth-child(3)  { background: var(--logo-3); }
.logo-stripe span:nth-child(4)  { background: var(--logo-4); }
.logo-stripe span:nth-child(5)  { background: var(--logo-5); }
.logo-stripe span:nth-child(6)  { background: var(--logo-6); }
.logo-stripe span:nth-child(7)  { background: var(--logo-7); }
.logo-stripe span:nth-child(8)  { background: var(--logo-8); }
.logo-stripe span:nth-child(9)  { background: var(--logo-9); }
.logo-stripe span:nth-child(10) { background: var(--logo-10); }

/* Main navigation */
.site-nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-nav ul {
	list-style: none; margin: 0 auto; padding: 0 12px; max-width: 1280px;
	display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin;
}
.site-nav li { flex-shrink: 0; }
/* Smaller laptops: tighten up so the whole menu fits on one line (phones still swipe). */
@media (max-width: 1279px) and (min-width: 761px) {
	.site-nav ul { padding: 0 6px; gap: 0; justify-content: space-between; }
	.site-nav a { padding: 0 9px; gap: 6px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
	.site-nav a { padding: 0 10px; }
	.site-nav a > svg { display: none; }       /* words only — still one line */
}
.site-nav a {
	display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 52px; white-space: nowrap;
	font-size: 14px; font-weight: 500; color: var(--text); border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--blue); }

/* --------------------------------------------------------------------------
   Page body
   -------------------------------------------------------------------------- */
.site-main { padding-top: 28px; padding-bottom: 48px; }
.page-title { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 20px; }

.card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden;
}
.card__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 20px 24px 12px;
}
.card__body { padding: 0 24px 20px; }
.card__title {
	display: flex; align-items: center; gap: 10px;
	font-size: 18px; font-weight: 700; color: var(--ink);
}
.card__foot { padding: 12px 24px 18px; border-top: 1px solid var(--line-soft); }
.card--navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.card--navy .card__title { color: #fff; }
.card--gold { background: var(--tint-gold); border-color: var(--line-gold); }

/* The small two-triangle mark beside section headings */
.mark { flex-shrink: 0; display: block; }

.link-more { font-size: 14px; font-weight: 600; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-sm);
	background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
	text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: #121748; }
.btn--block { width: 100%; min-height: 44px; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--field-line); }
.btn--outline:hover { background: var(--hover); color: var(--ink); }
.btn-ghost {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
	border: 0; border-radius: 8px; background: transparent; color: var(--text);
	font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-ghost:hover { background: var(--hover); }
.btn-ghost:disabled { opacity: .6; cursor: wait; }

/* Fields */
.field {
	width: 100%; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 12px;
	background: var(--field); color: var(--ink); font-size: 15px;
}
.field:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); background: #fff; }
textarea.field { resize: vertical; min-height: 48px; }
input.field { height: 44px; padding-top: 0; padding-bottom: 0; }
.label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.form-error:empty { display: none; }
.notice-box { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.notice-box--error { background: var(--tint-danger); color: var(--danger); }
.notice-box--success { background: var(--tint-success); color: var(--success); }

/* Avatars */
.avatar {
	flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; color: #fff; font-weight: 700; overflow: hidden; object-fit: cover;
	width: 40px; height: 40px; font-size: 14px; background: var(--blue);
}
.avatar--sm { width: 30px; height: 30px; font-size: 12px; }
.avatar--md { width: 36px; height: 36px; font-size: 14px; }

/* Chips */
.chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	font-size: 13px; font-weight: 600;
}
.chip--orange { background: var(--tint-orange); color: var(--ink-orange); }
.chip--blue   { background: var(--tint-blue);   color: var(--ink-blue); }
.chip--navy   { background: var(--tint-navy);   color: var(--ink-navy); }
.pill { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill--orange { background: var(--tint-orange); color: var(--ink-orange); }
.pill--navy   { background: var(--tint-navy);   color: var(--ink-navy); }

/* Date tile used by news and events */
.date-tile {
	flex: 0 0 56px; height: 56px; border-radius: 12px; display: flex; flex-direction: column;
	align-items: center; justify-content: center; line-height: 1.1;
}
.date-tile b { font-size: 20px; font-weight: 800; }
.date-tile small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.date-tile--blue   { background: var(--tint-blue);   color: var(--ink-blue); }
.date-tile--orange { background: var(--tint-orange); color: var(--ink-orange); }
.date-tile--navy   { background: var(--tint-navy);   color: var(--ink-navy); }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: var(--muted);
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Home page
   -------------------------------------------------------------------------- */
.welcome {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 24px;
}
.welcome__text { flex: 999 1 420px; min-width: 0; }
.welcome__date { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.welcome h1 { font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.welcome__lead { margin-top: 2px; font-size: 15px; }
.welcome__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.welcome__chips .chip { padding: 6px 12px; }
.welcome__art { flex: 0 0 auto; display: block; }

.home-grid {
	display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; margin-top: 24px; align-items: start;
}
.home-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* News */
.news-item { display: flex; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line-soft); }
.news-item__main { min-width: 0; flex: 1; }
.news-item h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.news-item__text { margin: 4px 0 6px; overflow-wrap: anywhere; }
.news-item__text.is-clamped {
	max-height: 4.5em; overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
.news-item__text p { margin: 0 0 .6em; }
.news-item__text p:last-child { margin-bottom: 0; }
.news-item__meta { font-size: 13px; color: var(--muted); }
.news-item__link { color: inherit; }
.news-item__link:hover { color: var(--blue); }
.news-item__photo { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-sm); margin: 8px 0 4px; background: var(--field); }
.news-item--pinned { background: linear-gradient(90deg, var(--tint-gold), transparent 70%); }
.news-pin { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--tint-gold); color: var(--ink-gold); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.news-head__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-approve { text-decoration: none; font-weight: 700; }
.news-approve:hover { text-decoration: none; filter: brightness(.97); }
.news-item--leave { background: linear-gradient(90deg, #EAF6FC, rgba(234,246,252,0) 75%); }
.date-tile--leave { background: #D7EEF9; color: #0B4F82; }
.date-tile--leave small { font-size: 10px; }
.leave-kicker { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0B6FA4; margin-bottom: 2px; }
.leave-next { font-size: 14px; color: var(--text); margin-top: 2px; }
.leave-people { list-style: none; margin: 10px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.leave-people li { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.leave-people li > span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.leave-people strong { font-size: 14px; color: var(--ink); white-space: nowrap; }
.leave-people small { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* Home: compact news — two lines of each story, photo as a thumbnail, tighter spacing */
.news-card .card__head { padding-bottom: 12px; }
.news-card .news-item { padding: 12px 24px; gap: 14px; align-items: flex-start; }
.news-card .date-tile { width: 48px; height: 48px; }
.news-card .date-tile b { font-size: 18px; }
.news-card .news-item h3 { font-size: 15.5px; line-height: 1.3; }
.news-card .news-item__text { margin: 2px 0 2px; font-size: 14px; line-height: 1.5; }
.news-card .news-item__text.is-clamped { max-height: 3em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; -webkit-mask-image: none; mask-image: none; }
.news-card .news-item__text img { display: none; }
.news-card .news-item__text.is-clamped p { margin: 0; }
.news-card .news-item__meta { font-size: 12.5px; }
.news-card .read-more { margin: 0 8px 0 0; font-size: 12.5px; }
.news-card .read-more + .news-item__meta { display: inline; white-space: nowrap; }
.news-item__thumb { flex: 0 0 auto; display: block; width: 112px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; background: var(--field); }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .news-pin { margin-bottom: 2px; font-size: 11.5px; }
.news-card .news-item--leave { padding-top: 10px; padding-bottom: 10px; }
.news-card .leave-people { margin: 6px 0 4px; gap: 6px; }
.news-card .leave-people li { padding: 3px 10px 3px 3px; }
.news-card .card__foot { padding-top: 6px; padding-bottom: 8px; }
@media (max-width: 560px) {
	.news-card .news-item { padding: 12px 16px; gap: 12px; }
	.news-item__thumb { width: 72px; height: 60px; }
	.news-item__thumb { width: 64px; height: 52px; }
	/* On a phone the people on leave read as one line of names ("Anna Kowalski, James Tan, Sam Contractor") */
	.news-card .leave-people { display: block; margin: 4px 0 2px; }
	.news-card .leave-people li { display: inline; padding: 0; border: 0; background: none; }
	.news-card .leave-people li > .avatar, .news-card .leave-people small { display: none; }
	.news-card .leave-people li > span { display: inline; }
	.news-card .leave-people strong { font-size: 14px; white-space: normal; }
	.news-card .leave-people li:not(:last-child) strong::after { content: ","; }
	.news-card .leave-people li:not(:last-child)::after { content: " "; }
	.news-card .leave-next { font-size: 13.5px; }
}

/* Home: "Waiting for you" */
.todo { padding: 14px 16px 10px; border-left: 4px solid var(--orange, #F48120); }
.todo__head { display: flex; align-items: center; gap: 10px; padding: 0 8px 6px; }
.todo__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.todo__title svg { color: var(--orange, #F48120); }
.todo__count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--orange, #F48120); color: #fff; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.todo__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 4px 8px; }
.todo__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; min-width: 0; }
.todo__item:hover, .todo__item:focus-visible { background: var(--field); text-decoration: none; }
.todo__icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.todo__icon--blue   { background: var(--tint-blue);   color: var(--ink-blue); }
.todo__icon--orange { background: var(--tint-orange); color: var(--ink-orange); }
.todo__icon--navy   { background: var(--tint-navy);   color: var(--ink-navy); }
.todo__icon--red    { background: #FDE8E4; color: #B42318; }
.todo__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.todo__text strong { font-size: 14.5px; color: var(--ink); }
.todo__text small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo__go { color: var(--blue); font-weight: 700; transition: transform .15s; }
.todo__item:hover .todo__go { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .todo__go { transition: none; } }

/* Home: Your team today */
.team-today .card__head { padding-bottom: 8px; }
.tt { padding: 0 24px 4px; }
.tt__row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.tt__row--head { border-top: 0; padding: 0 0 4px; }
.tt__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.tt__name { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; font-size: 14.5px; font-weight: 700; }
.tt__name a { color: var(--ink); }
.tt__name a:hover { color: var(--blue); }
.tt__name small { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt__line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tt__line a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt__d1 { display: none; }
.tt__tag { flex: 0 0 auto; display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--tint-navy); color: var(--ink-navy); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.tt__status { color: #B4570B; font-weight: 700; }
.tt__status--req { color: var(--muted); font-weight: 600; font-style: italic; }
.tt__week { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 30px); gap: 4px; }
.tt__day { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; border-radius: 6px; padding: 2px 0; }
.tt__day abbr { text-decoration: none; }
.tt__day small { font-size: 11px; font-weight: 600; letter-spacing: 0; }
.tt__day.is-focus { background: var(--tint-blue); color: var(--ink-blue); }
.tt__cell { display: block; height: 22px; border-radius: 6px; background: var(--field); }
.tt__cell.is-focus { box-shadow: inset 0 0 0 2px var(--tint-blue); }
.tt__cell--approved, .tt__cell--calendar { background: #F7A35C; }
.tt__cell--approved.is-focus, .tt__cell--calendar.is-focus { box-shadow: inset 0 0 0 2px #C9661A; }
.tt__cell--pending { background: repeating-linear-gradient(135deg, #FDE3CC 0 4px, #fff 4px 8px); box-shadow: inset 0 0 0 1px #F7A35C; }
.tt__row.is-away .tt__name a { color: #8A3F06; }
.tt__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; padding-bottom: 8px; }
.tt__foot .news-all { float: none; }
.tt__key { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.tt__key .tt__cell { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.tt__key .tt__cell + * { margin-right: 6px; }
@media (max-width: 560px) {
	.tt { padding: 0 16px 4px; }
	.tt__week { grid-template-columns: repeat(5, 22px); gap: 3px; }
	.tt__cell { height: 18px; }
	.tt__day small { display: none; }
	.tt__d3 { display: none; }
	.tt__d1 { display: inline; }
	.tt__name small { white-space: normal; }
	.tt__name { font-size: 14px; }
}

/* Home: Freight on the move */
.fr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fr-tile { display: flex; flex-direction: column; gap: 1px; padding: 12px 14px; border-radius: var(--radius-sm); min-width: 0; position: relative; }
.fr-tile b { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.fr-tile__icon { position: absolute; top: 10px; right: 12px; font-size: 18px; opacity: .9; }
.fr-tile__label { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.fr-tile__note { font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.fr-tile__note--warn { color: #9A5B00; font-weight: 700; }
.fr-tile__note--bad { color: #B42318; font-weight: 700; }
.fr-tile--blue   { background: var(--tint-blue); }
.fr-tile--navy   { background: var(--tint-navy); }
.fr-tile--orange { background: var(--tint-orange); }
.fr-tile--gold   { background: var(--tint-gold); }
.fr-tiles--loading i { display: block; height: 92px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--field) 25%, #fff 50%, var(--field) 75%); background-size: 200% 100%; animation: fr-shimmer 1.4s infinite linear; }
@keyframes fr-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fr-tiles--loading i { animation: none; } }
.fr-sub { margin: 16px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fr-list { list-style: none; margin: 0; padding: 0; }
.fr-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; margin: 0 -6px; border-radius: var(--radius-sm); color: inherit; text-decoration: none; }
.fr-row:hover, .fr-row:focus-visible { background: var(--field); text-decoration: none; }
.fr-list li + li .fr-row { border-top: 1px solid var(--line-soft); border-radius: 0; }
.fr-row__mode { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: var(--field); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.fr-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fr-row__main strong { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row__main small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-row__when { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.fr-row__when small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.fr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.fr-foot a { font-weight: 600; }
.fr-empty { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) and (min-width: 761px), (max-width: 620px) {
	.fr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.news-all { float: right; font-size: 14px; font-weight: 600; line-height: 40px; }
.read-more { border: 0; background: none; padding: 0; margin-left: 4px; color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer; }
.read-more:hover { text-decoration: underline; }

/* Discussion */
.composer { display: flex; gap: 12px; padding: 4px 24px 20px; align-items: flex-start; }
.composer__main { flex: 1; min-width: 0; }
.composer__actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 8px; }

.post { padding: 18px 24px; border-top: 1px solid var(--line-soft); }
.post__head { display: flex; gap: 12px; align-items: center; }
.post__author { font-weight: 700; color: var(--ink); }
.post__when { font-size: 13px; color: var(--muted); }
.post__body { margin: 12px 0 0 52px; color: var(--ink); overflow-wrap: anywhere; }
.post__actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0 44px; }
.like-btn.is-liked { color: var(--blue); }
.like-btn.is-liked svg { fill: currentColor; }
.post__comments {
	margin: 8px 0 0 52px; padding: 12px 14px; background: #F6F8FB; border-radius: 12px;
	display: flex; flex-direction: column; gap: 10px;
}
.comment { display: flex; gap: 10px; }
.comment__text { margin-top: 4px; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.comment-form { display: flex; gap: 8px; flex-wrap: wrap; }
.comment-form .field { flex: 1 1 200px; min-width: 0; height: 40px; font-size: 14px; background: #fff; border-radius: var(--radius-sm); }
.comment-form .form-error { flex-basis: 100%; margin: 0; }
.board-more { padding: 14px 24px 18px; border-top: 1px solid var(--line-soft); text-align: center; }
.empty { padding: 20px 24px; color: var(--muted); }

/* World times */
.world-times { background: linear-gradient(160deg, #232C6A 0%, #1B2160 55%, #151A4E 100%); }
.world-times .card__head { padding: 14px 18px 4px; }
.world-times .card__title { font-size: 16px; }
.clocks { list-style: none; margin: 0; padding: 0 10px 10px; }
.clock {
	display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 2px 10px;
	padding: 6px 8px; border-radius: 10px; position: relative;
}
.clock + .clock::before { content: ''; position: absolute; left: 8px; right: 8px; top: 0; border-top: 1px solid rgba(255,255,255,.07); }
.clock.is-day { background: linear-gradient(90deg, rgba(255,255,255,.07), rgba(255,255,255,0) 70%); }
.clock.is-day::before, .clock.is-day + .clock::before { border-top-color: transparent; }
/* Left icon: a moon at night; by day the actual weather (or a sun until the weather has loaded). */
.clock__sky { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.07); }
.clock.is-day .clock__sky { background: rgba(255,255,255,.13); }
.clock__sun, .clock__moon, .clock__wxbig { display: none; }
.clock__sun, .clock__moon { width: 18px; height: 18px; }
.clock.is-day .clock__sun, .clock.is-night .clock__moon { display: block; }
.clock.is-day.has-wx .clock__sun { display: none; }
.clock.is-day.has-wx .clock__wxbig { display: block; font-size: 16px; line-height: 1; }
.clock__main { display: flex; flex-direction: column; min-width: 0; }
.clock__city { font-weight: 700; font-size: 14px; color: #fff; line-height: 1.25; }
.clock__status { display: flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 1.35; color: var(--navy-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock__status::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #7C84B0; }
.clock__status.is-open { color: #BFEBD0; }
.clock__status.is-open::before { background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.18); }
.clock__status.is-soon { color: #FFE2B8; }
.clock__status.is-soon::before { background: #FBB040; box-shadow: 0 0 0 3px rgba(251,176,64,.2); }
.clock__status:empty { display: none; }
.clock__when { display: flex; flex-direction: column; align-items: flex-end; min-width: 66px; }
.clock__time { font-size: 16px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.25; }
.clock__sub { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.3; }
.clock__wx { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: #E3E8FA; cursor: default; }
.clock__wx-icon { font-size: 12px; line-height: 1; display: none; }
.clock.is-night .clock__wx-icon { display: inline; }      /* by day the weather is already on the left */
.clock__day { font-weight: 600; color: var(--navy-soft); }
.clock__day:empty { display: none; }

/* Your city, at the top */
.clock-home { display: block; margin: 2px 18px 8px; padding: 0 0 10px; border-bottom: 1px solid rgba(255,255,255,.12); background: none !important; border-radius: 0; }
.clock-home::before { display: none; }
.clock-home__where { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #CFE6F5; letter-spacing: .02em; }
.clock-home__where span { font-weight: 500; color: var(--navy-soft); }
.clock-home__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 3px; }
.clock-home__time { display: flex; align-items: baseline; gap: 8px; }
.clock-home .clock__time { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-shadow: 0 1px 8px rgba(10,14,50,.35); }
.clock-home .clock__day { font-size: 12px; }
.clock-home__wx { display: flex; align-items: center; gap: 8px; text-align: right; }
.clock-home__wx > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.clock-home__wx b { font-size: 22px; font-weight: 800; color: #fff; }
.clock-home__wx small { font-size: 11.5px; color: #DCE3F7; white-space: nowrap; }
.clock-home .clock__sky { width: 34px; height: 34px; }
.clock-home.is-day.has-wx .clock__wxbig { font-size: 22px; }
.clock-home .clock__sun, .clock-home .clock__moon { width: 22px; height: 22px; }
.clock-home .clock__status { font-size: 12px; }

/* ---- Live sky behind World times (the weather where you are) ---- */
.world-times { position: relative; isolation: isolate; transition: background .8s ease; }
.world-times > :not(.wx-scene) { position: relative; z-index: 1; }
.wx-scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wx-scene > i, .wx-drops { position: absolute; display: none; }
/* Sky colour */
.world-times[data-daylight="day"]                        { background: linear-gradient(165deg, #2A62B8 0%, #1D4794 45%, #1B2160 100%); }
.world-times[data-daylight="day"][data-sky="partly"]     { background: linear-gradient(165deg, #2B5AA6 0%, #1E4389 45%, #1B2160 100%); }
.world-times[data-daylight="day"][data-sky="cloudy"],
.world-times[data-daylight="day"][data-sky="fog"]        { background: linear-gradient(165deg, #46557F 0%, #2E3A6C 50%, #1B2160 100%); }
.world-times[data-daylight="day"][data-sky="drizzle"],
.world-times[data-daylight="day"][data-sky="rain"],
.world-times[data-daylight="day"][data-sky="snow"]       { background: linear-gradient(165deg, #3A4672 0%, #283363 50%, #181E55 100%); }
.world-times[data-daylight="day"][data-sky="storm"]      { background: linear-gradient(165deg, #2D3256 0%, #1E2247 55%, #13173D 100%); }
.world-times[data-daylight="night"]                      { background: linear-gradient(165deg, #1A2058 0%, #131848 55%, #0D1136 100%); }
/* Sun: a warm glow in the corner with slowly turning rays */
.wx-glow { width: 360px; height: 360px; right: -150px; top: -170px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255,214,102,.55) 0%, rgba(255,190,80,.22) 32%, rgba(255,190,80,0) 68%); animation: wx-pulse 7s ease-in-out infinite; }
.wx-sun { width: 560px; height: 560px; right: -250px; top: -270px; border-radius: 50%; opacity: .38;
	background: repeating-conic-gradient(from 0deg, rgba(255,226,140,.16) 0deg 5deg, rgba(255,226,140,0) 5deg 18deg);
	-webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%);
	animation: wx-spin 90s linear infinite; }
[data-daylight="day"][data-sky="clear"] .wx-glow, [data-daylight="day"][data-sky="clear"] .wx-sun,
[data-daylight="day"][data-sky="none"] .wx-glow,
[data-daylight="day"][data-sky="partly"] .wx-glow { display: block; }
[data-daylight="day"][data-sky="partly"] .wx-glow { opacity: .75; }
/* Stars at night (fewer when it's cloudy) */
.wx-stars { left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%; background: transparent;
	box-shadow: 30px 40px #fff, 92px 18px rgba(255,255,255,.8), 150px 66px #fff, 210px 28px rgba(255,255,255,.7), 268px 84px #fff, 320px 22px rgba(255,255,255,.85),
		58px 120px rgba(255,255,255,.7), 180px 140px #fff, 300px 150px rgba(255,255,255,.8), 120px 210px #fff, 248px 230px rgba(255,255,255,.7), 340px 260px #fff,
		24px 300px rgba(255,255,255,.8), 196px 320px #fff, 280px 350px rgba(255,255,255,.7), 80px 380px #fff, 330px 410px rgba(255,255,255,.8);
	animation: wx-twinkle 4s ease-in-out infinite alternate; }
.wx-stars--b { transform: translate(14px, 8px) scale(.8); animation-delay: -2s; animation-duration: 5.5s; opacity: .7; }
[data-daylight="night"]:not([data-sky="cloudy"]):not([data-sky="rain"]):not([data-sky="storm"]):not([data-sky="fog"]):not([data-sky="snow"]) .wx-stars { display: block; }
[data-daylight="night"][data-sky="cloudy"] .wx-stars:not(.wx-stars--b) { display: block; opacity: .35; }
/* Clouds drifting across */
.wx-cloud { height: 70px; border-radius: 50%; filter: blur(14px); background: rgba(225,232,250,.22); animation: wx-drift linear infinite; }
.wx-cloud--1 { width: 240px; top: 6%;  animation-duration: 70s;  animation-delay: -12s; }
.wx-cloud--2 { width: 300px; top: 38%; animation-duration: 95s;  animation-delay: -55s; height: 90px; }
.wx-cloud--3 { width: 200px; top: 70%; animation-duration: 80s;  animation-delay: -30s; }
[data-sky="partly"] .wx-cloud--1, [data-sky="partly"] .wx-cloud--3,
[data-sky="cloudy"] .wx-cloud, [data-sky="drizzle"] .wx-cloud, [data-sky="rain"] .wx-cloud,
[data-sky="storm"] .wx-cloud, [data-sky="snow"] .wx-cloud, [data-sky="fog"] .wx-cloud--2 { display: block; }
[data-daylight="night"] .wx-cloud { background: rgba(160,170,210,.16); }
[data-sky="storm"] .wx-cloud { background: rgba(120,128,170,.28); }
/* Fog */
.wx-fog { left: -50%; right: -50%; top: 20%; height: 70%; filter: blur(18px);
	background: repeating-linear-gradient(180deg, rgba(220,226,245,.0) 0 26px, rgba(220,226,245,.16) 26px 60px);
	animation: wx-fogdrift 30s ease-in-out infinite alternate; }
[data-sky="fog"] .wx-fog { display: block; }
/* Lightning */
.wx-flash { inset: 0; background: rgba(230,236,255,.9); opacity: 0; animation: wx-flash 11s linear infinite; }
[data-sky="storm"] .wx-flash { display: block; }
/* Rain and snow */
.wx-drops { inset: -10% 0 0 0; display: block; }
.wx-drop { position: absolute; top: -30px; width: 1.5px; height: 22px; border-radius: 1px;
	background: linear-gradient(to bottom, rgba(200,215,255,0), rgba(200,215,255,.85)); transform: rotate(12deg);
	animation: wx-fall linear infinite; }
[data-sky="drizzle"] .wx-drop { height: 12px; }
.wx-flake { position: absolute; top: -10px; border-radius: 50%; background: #fff; animation: wx-snow linear infinite; }
@keyframes wx-pulse   { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes wx-spin    { to { transform: rotate(360deg); } }
@keyframes wx-twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes wx-drift   { from { transform: translateX(-120%); } to { transform: translateX(520px); } }
@keyframes wx-fogdrift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
@keyframes wx-flash   { 0%, 90%, 92.5%, 95%, 100% { opacity: 0; } 91% { opacity: .35; } 94% { opacity: .22; } }
@keyframes wx-fall    { from { transform: translate(0, 0) rotate(12deg); } to { transform: translate(-90px, 520px) rotate(12deg); } }
@keyframes wx-snow    { from { transform: translate(0, 0); } 50% { transform: translate(12px, 260px); } to { transform: translate(-6px, 520px); } }
@media (prefers-reduced-motion: reduce) {
	.wx-scene *, .world-times { animation: none !important; transition: none !important; }
	.wx-cloud--1 { transform: translateX(40px); } .wx-cloud--2 { transform: translateX(160px); } .wx-cloud--3 { transform: translateX(260px); }
}

/* Events */
.event { display: flex; gap: 14px; }
.event + .event { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.event__title { font-weight: 700; color: var(--ink); }
.event__text { margin: 2px 0 8px; font-size: 14px; }
.event__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-icon {
	flex: 0 0 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: var(--tint-blue); color: var(--ink-blue);
}

/* Celebrations */
.celebration { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.celebration + .celebration { border-top: 1px solid var(--line-soft); }
.celebration__main { flex: 1; min-width: 0; }
.celebration__name { font-weight: 700; color: var(--ink); }
.celebration__what { font-size: 13px; color: var(--muted); }

/* Quote */
.quote__label { font-size: 13px; font-weight: 700; color: var(--ink-gold); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.quote__by { margin-top: 10px; font-size: 14px; color: #5C4200; }
.quote img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Responsive */
@media (max-width: 1000px) {
	.home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.brand__name { display: none; }
	.site-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
	.ask-max { margin-left: auto; padding: 0 7px; }
	.ask-max span { display: none; }
	.user-menu__name { display: none; }
	.site-main { padding-top: 16px; }
	.welcome { padding: 16px; }
	.welcome h1 { font-size: 22px; }
	.welcome__art { display: none; }
	.card__head, .news-item, .post, .composer, .card__foot, .board-more { padding-left: 16px; padding-right: 16px; }
	.card__body { padding-left: 16px; padding-right: 16px; }
	.post__body, .post__comments { margin-left: 0; }
	.post__actions { margin-left: -8px; }
}

/* --------------------------------------------------------------------------
   Sign-in page
   -------------------------------------------------------------------------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth__brand {
	flex: 1 1 420px; background: var(--navy); color: #fff; padding: 56px 64px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth__brand img { width: 220px; height: auto; display: block; }
.auth__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); margin-bottom: 12px; }
.auth__headline { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; max-width: 440px; }
.auth__lead { margin-top: 16px; font-size: 17px; line-height: 1.55; color: #C9CFEA; max-width: 440px; }
.auth__stripe { display: flex; height: 6px; border-radius: 3px; overflow: hidden; max-width: 320px; }
.auth__stripe span { flex: 1; }
.auth__form-wrap { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth__form { width: 100%; max-width: 400px; padding: 36px 32px; }
.auth__form h2 { font-size: 24px; font-weight: 800; color: var(--ink); }
.auth__sub { margin: 6px 0 24px; color: var(--muted); }
.auth__form .field { height: 46px; }
.auth__form .gap { height: 18px; }
.auth__form .btn { margin-top: 26px; width: 100%; min-height: 48px; font-size: 16px; font-weight: 700; }
.auth__help { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.auth__form--wide { max-width: 440px; }
.auth__step { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.auth__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.auth__forgot { font-size: 13px; font-weight: 600; }
.auth__keep { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.auth__keep input { width: 20px; height: 20px; accent-color: var(--blue); }
.auth__code { font-size: 26px !important; font-weight: 800; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; height: 58px !important; padding-left: .4em; }
.auth__linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; }
.auth__linkbtn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.auth__form .field.is-invalid, .field.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(160, 24, 24, .12); }
.auth__form .field-error { margin-top: 6px; font-size: 13px; color: var(--danger); font-weight: 600; }

/* Password boxes + live rules (sign-in reset, My account, Staff manager) */
.pw-field { position: relative; }
.pw-field .field { padding-right: 64px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--blue); font: 600 13px var(--font); padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.pw-eye:hover { background: var(--hover); }
.pw-rules { list-style: none; margin: 10px 0 6px; padding: 12px 14px; border-radius: 10px; background: var(--field); display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pw-rules li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.pw-rules__tick { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--field-line); background: #fff; }
.pw-rules li.is-ok { color: var(--success); }
.pw-rules li.is-ok .pw-rules__tick { border-color: var(--success); background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.pw-rules li.is-bad { color: var(--text); }
.pw-rules li.is-bad .pw-rules__tick { border-color: #E9A23B; }
.pw-rules.is-done { background: var(--tint-success); }
.pw-tip { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.pw-match { min-height: 18px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.pw-match.is-ok { color: var(--success); }
.pw-match.is-bad { color: var(--danger); }
@media (max-width: 860px) {
	.auth__brand { flex-basis: 100%; padding: 32px 24px; gap: 24px; }
	.auth__brand img { width: 160px; }
	.auth__headline { font-size: 28px; }
	.auth__lead { font-size: 15px; }
	.auth__form-wrap { padding: 32px 16px 48px; }
	.auth__form { padding: 28px 22px; }
}

/* Formatting staff type into posts and comments (<p>, <b>, <br> …) */
.post__body p, .comment__text p { margin: 0 0 .6em; }
.comment__text p:last-child { margin-bottom: 0; }
.post__body p:last-child { margin-bottom: 0; }

/* Clickable chip (Champers pill on the welcome card) */
.chip--link { text-decoration: none; transition: background .15s ease, box-shadow .15s ease; }
.chip--link:hover { text-decoration: none; background: #FFE9D1; color: var(--ink-orange); box-shadow: 0 0 0 1px #F7C99A; }
.chip--link strong { font-weight: 800; }
.chip__sep { opacity: .6; }
.chip__cta {
	margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: var(--orange); color: #1A1F36; font-weight: 700;
}
.chip--link:hover .chip__cta { background: #E06F10; }

/* Keep the footer at the bottom of the window on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; width: 100%; }

/* Unread chat count in the main navigation */
.nav-badge {
	display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
	margin-left: 6px; border-radius: 999px; background: #C2410C; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1;
}
/* Phone header: a chat bubble that only appears when there are unread messages (not in the app — its tab bar shows them) */
.hdr-chat { display: none; }
@media (max-width: 640px) {
	html:not(.is-app) .hdr-chat:has([data-chat-badge]) {
		display: inline-flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0;
		width: 40px; height: 40px; border-radius: 999px; color: #fff;
		background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
	}
	.site-header__bar { column-gap: 10px; }     /* room for the chat bubble without pushing the account menu onto a new line */
	.brand img { height: 32px; }
	.hdr-chat .nav-badge { position: absolute; top: -6px; right: -8px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; box-shadow: 0 0 0 2px #1B2160; }
}
@media (max-width: 380px) { .brand img { height: 28px; } }
.nav-badge--pop { animation: nav-badge-pop .45s ease; }
@keyframes nav-badge-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nav-badge--pop { animation: none; } }

/* File pickers: a dashed drop area with a branded button (replaces the plain browser button) */
input[type="file"]:not(.sr-only) {
	display: block; width: 100%; height: auto; padding: 10px; border: 1.5px dashed var(--field-line); border-radius: 12px;
	background: var(--field); font: inherit; font-size: 14px; color: var(--muted); cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
input[type="file"]:not(.sr-only):hover { border-color: var(--blue); background: var(--tint-blue); }
input[type="file"]:not(.sr-only):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input[type="file"]::file-selector-button {
	margin-right: 12px; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--navy); color: #fff;
	font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s ease;
}
input[type="file"]:hover::file-selector-button { background: var(--blue); }
input[type="file"]::-webkit-file-upload-button {
	margin-right: 12px; padding: 9px 16px; border: 0; border-radius: 8px; background: var(--navy); color: #fff;
	font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.pw-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.pw-check input { margin-top: 3px; }

/* ==========================================================================
   The Tomatrix app (added to the Home Screen) — notch/home-bar spacing,
   bottom tab bar and "More" sheet on phones. Browsers are unaffected.
   ========================================================================== */
.site-header { padding-top: env(safe-area-inset-top); }
.site-header__bar, .site-main.wrap, .site-footer .wrap {
	padding-left: max(var(--gutter, 24px), env(safe-area-inset-left));
	padding-right: max(var(--gutter, 24px), env(safe-area-inset-right));
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

.app-tabs, .app-more { display: none; }
@media (max-width: 760px) {
	html.is-app .site-nav, html.is-app .site-footer { display: none; }
	html.is-app body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
	html.is-app .app-tabs {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		padding: 4px max(6px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(6px, env(safe-area-inset-right));
		background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
		border-top: 1px solid rgba(26, 31, 54, .1);
	}
	.app-tabs a, .app-tabs button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 52px; padding: 0;
		border: 0; background: none; font: inherit; font-size: 10.5px; font-weight: 600; color: #6B7189; text-decoration: none;
		-webkit-tap-highlight-color: transparent; cursor: pointer;
	}
	.app-tabs a:active, .app-tabs button:active { transform: scale(.94); }
	.app-tabs [aria-current="page"], .app-tabs .is-current, .app-tabs button[aria-expanded="true"] { color: var(--blue); }
	.app-tabs [aria-current="page"] svg { stroke-width: 2.4; }
	.app-tabs__ico { position: relative; display: block; height: 26px; }
	.app-tabs__ico svg { width: 24px; height: 24px; display: block; margin-top: 1px; }
	.app-tabs .nav-badge { position: absolute; top: -5px; left: 15px; margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; box-shadow: 0 0 0 2px #fff; }

	html.is-app .app-more:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 95; }
	.app-more__backdrop { position: absolute; inset: 0; background: rgba(15, 19, 40, .38); animation: app-fade .18s ease-out; }
	.app-more__sheet {
		position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto;
		padding: 8px max(16px, env(safe-area-inset-left)) calc(72px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
		background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(15, 19, 40, .2);
		animation: app-up .24s cubic-bezier(.2, .9, .3, 1);
	}
	.app-more__grab { display: block; width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: #D5D9E4; }
	.app-more__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; }
	.app-more__grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); text-align: center; text-decoration: none; }
	.app-more__ico { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--tint-blue, #E8F2FB); color: var(--blue-dark, #17468D); }
	.app-more__grid a[aria-current="page"] .app-more__ico { background: var(--blue); color: #fff; }
	.app-more__ico--max { background: #1B2160; }
	.app-more__out { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 12px; border-radius: 12px; background: var(--field, #F3F5F9); color: var(--danger, #A01818); font-weight: 700; font-size: 14px; text-decoration: none; }
	html.is-app.app-more-open { overflow: hidden; }
}
@keyframes app-up { from { transform: translateY(100%); } }
@keyframes app-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .app-more__sheet, .app-more__backdrop { animation: none; } }

/* Install banner on Home (phones in the browser) */
.app-banner {
	display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 12px 12px 14px; border-radius: 16px;
	background: linear-gradient(120deg, #1B2160, #17468D); color: #fff; box-shadow: 0 8px 24px rgba(27, 33, 96, .22);
}
.app-banner[hidden] { display: none; }
.app-banner img { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.app-banner__text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; color: #D6DBF2; }
.app-banner__text strong { display: block; color: #fff; font-size: 15px; }
.app-banner__go { flex-shrink: 0; padding: 9px 14px; border-radius: 999px; background: #fff; color: #1B2160; font-weight: 800; font-size: 13.5px; text-decoration: none; }
.app-banner__go:hover { text-decoration: none; color: #1B2160; }
.app-banner__x { flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; cursor: pointer; }
@media (max-width: 760px) {
	html.is-app.app-more-open .app-tabs { z-index: 100; }   /* tab bar stays on top, so "More" closes it again */
}
