/* UPMED Jobs & Admissions Portal */
:root {
	--bg: #f0f5fa;
	--card: #ffffff;
	--ink: #1e293b;
	--muted: #5b6b80;
	--line: #dfe7f1;
	--soft: #f5f8fc;
	--accent: #046bd2;
	--accent-ink: #045cb4;
	--accent-soft: #e8f1fc;
	--side: #0b2545;
	--side-ink: #c9d8ec;
	--red: #c0392b;
	--red-soft: #fbeceb;
	--yel: #a86a0c;
	--yel-soft: #fdf3e2;
	--ok: #1e7b4f;
	--ok-soft: #e7f5ee;
	--adm: #6b3fa0;
	--adm-soft: #f1ebf9;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(15, 35, 70, .05), 0 4px 16px rgba(15, 35, 70, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ujp-body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 15.5px/1.55 "Lora", Georgia, "Times New Roman", serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 600; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { fill: currentColor; }
.app-loading, .loading { padding: 40px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* Shell ---------------------------------------------------------------- */
.side {
	position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--side); color: var(--side-ink);
	display: flex; flex-direction: column; padding: 18px 12px; z-index: 30; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.brand b { display: block; font-size: 16px; letter-spacing: .5px; }
.brand small { display: block; font-size: 12px; color: var(--side-ink); }
.side-card { margin: 0 6px 14px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.side-card b { display: block; color: #fff; font-size: 15px; }
.side-card small { display: block; font-size: 12px; margin-bottom: 8px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(4, 107, 210, .45); color: #fff; text-decoration: none; }
.pill.ok { background: rgba(30, 123, 79, .55); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-item svg { width: 20px; height: 20px; flex: none; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; }
.nav-count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #fff; }
.nav-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.nav-item.small { font-size: 13px; padding: 8px 12px; }
.main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
	padding: 12px 28px; background: rgba(240, 245, 250, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.top-title { font-weight: 700; font-size: 18px; white-space: nowrap; }
.top-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; width: min(420px, 45vw); }
.top-search svg { width: 18px; height: 18px; color: var(--muted); display: block; }
.top-search input { border: 0; outline: 0; padding: 9px 0; width: 100%; background: transparent; }
.icon-btn { border: 0; background: transparent; padding: 6px; border-radius: 8px; cursor: pointer; display: none; }
.icon-btn svg { width: 24px; height: 24px; }
.view { padding: 24px 28px 48px; max-width: 1280px; width: 100%; outline: none; }
.scrim { display: none; }

/* Building blocks -------------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-h a { font-size: 13.5px; text-decoration: none; }
.empty { text-align: center; padding: 40px 20px; }
.empty h2 { margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--accent-ink); }
.btn.ghost { background: #fff; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { padding: 7px 12px; font-size: 13.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 > .card { margin-bottom: 18px; }

/* Overview ---------------------------------------------------------------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, #0b2545, #0d3a6e); color: #fff; border: 0; }
.hero .muted { color: #c9d8ec; margin: 8px 0 0; max-width: 640px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); position: relative; }
.stat b { font-size: 32px; line-height: 1.1; color: var(--accent); }
.stat span:last-child { color: var(--muted); font-size: 14px; }
.stat-ic { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.stat-ic svg { width: 20px; height: 20px; }
.stat.hot b { color: var(--red); }
.stat.hot .stat-ic { background: var(--red-soft); color: var(--red); }
.stat:hover { border-color: #b9d2ee; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows a { text-decoration: none; color: var(--ink); min-width: 0; }
.rows a b { display: block; font-weight: 600; }
.rows a small { display: block; color: var(--muted); font-size: 12.5px; }
.rows a:hover b { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 99px; background: var(--soft); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.chip b { color: var(--accent); font-size: 12.5px; }
.chip:hover { border-color: var(--accent); }
.help p { margin: 8px 0; }

/* Badges and tags ---------------------------------------------------------- */
.due { flex: none; display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.due.ok { background: var(--ok-soft); color: var(--ok); }
.due.warm { background: var(--yel-soft); color: var(--yel); }
.due.hot { background: var(--red-soft); color: var(--red); }
.due.closed, .due.none { background: #eef2f7; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 9px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.tag svg { width: 12px; height: 12px; }
.tag.job { background: var(--accent-soft); color: var(--accent-ink); border-color: #cfe0f5; font-weight: 600; }
.tag.adm { background: var(--adm-soft); color: var(--adm); border-color: #ddd0ef; font-weight: 600; }
.tag.paid { background: var(--yel-soft); color: var(--yel); border-color: #f1d9a6; }
.tag.warnc { background: var(--red-soft); color: var(--red); border-color: #f3cdc8; }

/* Browse ------------------------------------------------------------------- */
.toolbar { padding: 14px 16px; }
.tb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--soft); }
.search svg { width: 18px; height: 18px; color: var(--muted); display: block; }
.search input { border: 0; outline: 0; background: transparent; padding: 9px 0; width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent); color: #fff; }
.sel { display: inline-flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; min-width: 0; }
.sel select { border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; background: #fff; font-size: 14px; color: var(--ink); max-width: 100%; }
.tb-row .sel { flex-direction: row; align-items: center; gap: 6px; }
#f-toggle { display: none; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.filters .sel select { width: 100%; }
.active-f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.achip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfe0f5; background: var(--accent-soft); color: var(--accent-ink); border-radius: 99px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.achip svg { width: 14px; height: 14px; }
.achip.clear-all { background: #fff; color: var(--muted); border-color: var(--line); }
.counts { color: var(--muted); font-size: 14px; margin: 0 2px 12px; }
.jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.jcard { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.jcard:hover { border-color: #b9d2ee; }
.jtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; min-width: 0; }
.jtop .due { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.jtop .save-btn { flex: none; }
body.on-browse .top-search { display: none; }
.jcard h3 { font-size: 16.5px; }
.jcard h3 a { color: var(--ink); text-decoration: none; }
.jcard h3 a:hover { color: var(--accent); }
.jsub { margin: 4px 0 0; color: var(--ink); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jsub.big { font-size: 16px; -webkit-line-clamp: unset; display: block; color: var(--muted); }
.jmeta { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.save-btn { border: 0; background: transparent; color: #9fb2c8; cursor: pointer; padding: 2px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.save-btn svg { width: 22px; height: 22px; }
.save-btn:hover { color: var(--yel); }
.save-btn.on { color: #e3a008; }
.save-btn.big { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.save-btn.big svg { width: 18px; height: 18px; color: #9fb2c8; }
.save-btn.big.on svg { color: #e3a008; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 0; }
.pg { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; }
.pg.cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg.dis { color: #a7b4c4; }

/* One post ------------------------------------------------------------------ */
.crumb { margin: 0 0 12px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; }
.crumb svg { width: 18px; height: 18px; }
.job-head h1 { font-size: 26px; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 40%; color: var(--muted); font-weight: 500; font-size: 14px; }
.facts .due { margin-left: 6px; }
.content { overflow-wrap: anywhere; }
.content table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.content th { background: var(--soft); }
.content img { max-width: 100%; height: auto; }
.content h3 { font-size: 16.5px; margin: 16px 0 6px; }
.card h2 { margin-bottom: 10px; }
.ads a { display: block; margin-bottom: 12px; }
.ads img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; display: block; }
.paid { background: #fffaf0; border-color: #f1d9a6; }
.paid h2 { display: flex; align-items: center; gap: 8px; }
.paid h2 svg { width: 18px; height: 18px; color: var(--yel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 500; }

/* Small screens -------------------------------------------------------------- */
@media (max-width: 1100px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.job-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.side { transform: translateX(-100%); transition: transform .2s ease; }
	body.side-open .side { transform: none; }
	body.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(11, 37, 69, .45); z-index: 25; }
	.main { margin-left: 0; }
	.icon-btn { display: block; }
	.topbar { padding: 10px 16px; gap: 10px; }
	.top-search { width: auto; flex: 1; }
	.view { padding: 16px 16px 40px; }
	.grid2 { grid-template-columns: 1fr; gap: 0; }
	.hero { flex-direction: column; align-items: flex-start; }
	#f-toggle { display: inline-flex; }
	.filters { display: none; }
	.filters.open { display: grid; }
}
@media (max-width: 560px) {
	.top-title { display: none; }
	h1, .job-head h1 { font-size: 21px; }
	.stats { gap: 12px; }
	.stat b { font-size: 26px; }
	.stat-ic { display: none; }
	.jgrid { grid-template-columns: 1fr; }
	.tb-row .sel { flex: 1 1 45%; }
	.tb-row .sel select { flex: 1; min-width: 0; }
	.seg { flex: 1 1 100%; }
	.seg button { flex: 1; }
	.rows li { flex-direction: column; align-items: flex-start; gap: 6px; }
	.facts th { width: 44%; }
	.btn-row .btn, .btn-row .save-btn.big { flex: 1 1 auto; justify-content: center; }
}
@media print {
	.side, .topbar, .btn-row, .crumb { display: none !important; }
	.main { margin: 0; }
}

/* Alerts, promotions and the job posting form ---------------------------- */
.nav-count.hot { background: #c0392b; }
.card.alert { background: #fff8e6; border-color: #f1d9a6; padding: 14px 18px; }
.promo-slot .ujp-promo { box-shadow: var(--shadow); margin-bottom: 18px; }
.submit-card { max-width: 860px; }
.submit-card h1 { margin-bottom: 6px; }
.ujp-submit { margin-top: 14px; }
.ujp-submit .ujp-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.ujp-submit .ujp-field { margin: 0 0 12px; }
.ujp-submit .ujp-wide { grid-column: 1 / -1; }
.ujp-submit label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.ujp-submit input[type=text], .ujp-submit input[type=date], .ujp-submit select, .ujp-submit textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 15px;
}
.ujp-submit input:focus, .ujp-submit select:focus, .ujp-submit textarea:focus { outline: 2px solid #b9d2ee; background: #fff; }
.ujp-submit .bad { border-color: var(--red); background: var(--red-soft); }
.ujp-submit .ujp-req { color: var(--red); }
.ujp-submit .ujp-check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.ujp-submit .ujp-check input { margin-top: 5px; }
.ujp-submit .ujp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ujp-submit .ujp-send { border: 0; background: var(--accent); color: #fff; border-radius: 10px; padding: 11px 22px; font-weight: 600; font-size: 15px; cursor: pointer; }
.ujp-submit .ujp-send:disabled { opacity: .6; cursor: wait; }
.ujp-msg { margin-left: 10px; font-size: 14px; }
.ujp-msg.err { color: var(--red); }
.done { padding: 10px 0; }
.done h2 { color: var(--ok); }
@media (max-width: 640px) { .ujp-submit .ujp-fgrid { grid-template-columns: 1fr; } }

/* 1.2: page served to search engines (replaced by the app as soon as it runs) */
.ssr { max-width: 960px; margin: 0 auto; padding: 32px 20px; }
.ssr h1 { margin-bottom: 10px; }
.ssr ul { padding-left: 20px; }
.ssr li { margin: 6px 0; }
.ssr nav { margin: 14px 0; }
a.brand { text-decoration: none; }

/* Cards without images; table view */
.jcard { display: block; padding: 16px 18px; }
.jcard .jtop { margin-bottom: 8px; }
.jgrid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.vswitch button { display: inline-flex; align-items: center; gap: 6px; }
.vswitch svg { width: 16px; height: 16px; }
.tbl-wrap { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jtable { min-width: 720px; }
.jtable th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
.jtable td, .jtable th { padding: 11px 14px; }
.jtable a.t { font-weight: 600; text-decoration: none; color: var(--ink); }
.jtable a.t:hover { color: var(--accent); }
.jtable small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.jtable tbody tr:hover { background: #f8fbff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Advertisement images and files */
.adgrid { display: grid; gap: 12px; }
.adgrid.many { grid-template-columns: repeat(2, 1fr); }
.ads-after .adgrid:not(.many) { max-width: 860px; margin: 0 auto; }
.ads-after .adgrid.many { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ads-after .adgrid.many .adimg img { height: 340px; }
.adimg { position: relative; display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--soft); margin: 0 !important; }
.adimg img { width: 100%; height: auto; display: block; border: 0 !important; border-radius: 0 !important; }
.adgrid.many .adimg img { height: 200px; object-fit: cover; object-position: top; }
.adimg .zoom { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(11, 37, 69, .75); color: #fff; display: grid; place-items: center; }
.adimg .zoom svg { width: 18px; height: 18px; }
.files { display: flex; flex-direction: column; gap: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--soft); }
.file svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file:hover { border-color: var(--accent); }
.content .ujp-tscroll { margin: 10px 0; }
.content .ujp-tscroll table { display: table; margin: 0; }

/* Job posting form: kinds */
.ujp-submit .ujp-kinds { border: 0; padding: 0; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ujp-submit .ujp-kinds legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.ujp-submit .ujp-kind { display: inline-flex !important; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; background: #fff; font-weight: 500 !important; cursor: pointer; margin: 0 !important; }
.ujp-submit .ujp-kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.ujp-submit [data-hide] { display: none; }
.ujp-submit input[type=file] { width: 100%; padding: 10px; border: 1px dashed #b9cbe0; border-radius: 10px; background: var(--soft); }
.ujp-submit .ujp-help { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; font-weight: 400; }

@media (max-width: 900px) {
	.vswitch span { display: none; }
	.adgrid.many .adimg img { height: 160px; }
}
@media (max-width: 560px) {
	.jgrid { grid-template-columns: 1fr; }
	.vswitch { flex: 0 0 auto !important; }
	.vswitch button { flex: none; }
}
.job-grid > div, .main, .view { min-width: 0; }
.card { min-width: 0; }

/* 1.3: logo, accounts, managing posts */
.brand.has-logo { background: #fff; border-radius: 12px; padding: 10px 14px; margin: 0 4px 6px; justify-content: center; }
.brand.has-logo img { max-width: 100%; max-height: 46px; display: block; }
.brand-sub { color: var(--side-ink); font-size: 12px; text-align: center; margin: 0 0 14px; letter-spacing: .3px; }
.top-logo { display: none; }
.top-logo img { height: 30px; width: auto; display: block; }
@media (max-width: 900px) { .top-logo { display: block; } }
@media (max-width: 560px) { .top-logo img { height: 26px; } }

.acard { max-width: 520px; margin: 10px auto 18px; }
.acard.wide { max-width: 860px; }
.acard h1 { margin-bottom: 6px; }
.afield { margin: 0 0 14px; }
.afield label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.afield input, .afield select, .mfield input, .mfield select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 15px; }
.afield input:focus, .afield select:focus, .mfield input:focus, .mfield select:focus { outline: 2px solid #b9d2ee; background: #fff; }
.afield .bad, .afield input.bad, .afield select.bad { border-color: var(--red); background: var(--red-soft); }
.agrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 14px; }
.agrid .wide { grid-column: 1 / -1; }
.acheck label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.amsg { min-height: 1.2em; font-size: 14px; margin: 8px 0 0; }
.amsg.err { color: var(--red); }
.amsg.ok { color: var(--ok); }
.aalt { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.alink { align-self: center; font-size: 14px; }
.ujp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prof-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.prof-grid .acard { margin: 0 0 18px; max-width: none; }
.rows li > span { min-width: 0; }
.rows li > span b { display: block; }
.rows li > span small { display: block; color: var(--muted); font-size: 12.5px; }
a.due { text-decoration: none; }

.mtabs a { display: inline-block; padding: 8px 14px; text-decoration: none; color: var(--ink); font-size: 14px; background: #fff; }
.mtabs a + a { border-left: 1px solid var(--line); }
.mtabs a.on { background: var(--accent); color: #fff; }
.mtabs .pc { background: var(--red); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 11px; }
.medit .card h2 { margin-bottom: 12px; }
.mrow { display: flex; flex-wrap: wrap; gap: 14px; }
.mrow .mfield { flex: 1 1 180px; }
.mrow .grow { flex: 3 1 320px; }
.mfield { margin: 0 0 14px; }
.mfield > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.mfield[hidden] { display: none !important; }
.mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.tokbox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); padding: 6px 8px; }
.tokbox:focus-within { outline: 2px solid #b9d2ee; background: #fff; }
.tokbox input { flex: 1 1 140px; border: 0 !important; background: transparent !important; padding: 4px !important; outline: 0 !important; min-width: 120px; }
.toks { display: contents; }
.tokc { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #cfe0f5; border-radius: 99px; padding: 3px 4px 3px 10px; font-size: 13.5px; }
.tokc button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.taxbox { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.taxsel { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--soft); }
.taxsel[hidden] { display: none; }
.taxsearch { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.taxsearch svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.mfield .taxsearch input { border: 0; background: transparent; padding: 6px 2px; outline: 0; }
.taxlist { max-height: 210px; overflow-y: auto; padding: 4px 0; overscroll-behavior: contain; }
.taxi { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 8px; font-size: 14px; cursor: pointer; line-height: 1.3; }
.taxi[hidden] { display: none; }
.taxi:hover { background: var(--soft); }
.taxi input { width: 16px !important; height: 16px; flex: none; margin: 0; padding: 0 !important; }
.taxi em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.taxi.flash { background: #fff6d6; }
.taxfoot { border-top: 1px solid var(--line); padding: 6px 10px; }
.linkbtn { border: 0; background: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 2px 0; font-size: 14px; }
.taxnew { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; }
.taxnew[hidden] { display: none; }
.mfield .taxnew input { flex: 1 1 160px; padding: 8px 10px; }
.mfield .taxnew select { flex: 1 1 140px; width: auto; padding: 8px 10px; }
.taxnew .amsg { flex-basis: 100%; margin: 0; }
.taxn { font-weight: 400; font-size: 12.5px; }
.pad { padding: 8px 10px; }
.mfield small { display: block; margin-top: 4px; font-size: 12px; }
.mmedia { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.mmedia figure { position: relative; margin: 0; width: 120px; }
.mmedia img { width: 120px; height: 150px; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; display: block; }
.mmedia figcaption { position: absolute; left: 6px; top: 6px; background: rgba(11, 37, 69, .75); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }
.mmedia button, .mfiles button { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(192, 57, 43, .9); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.mfiles { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mfiles .file { position: relative; padding-right: 40px; }
.mfiles .file a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.mfiles .file button { top: 50%; transform: translateY(-50%); }
.rte { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rte-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--soft); border-bottom: 1px solid var(--line); }
.rte-bar button { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 5px 10px; cursor: pointer; font-size: 13.5px; }
.rte-bar button.on { background: var(--accent); color: #fff; }
.rte-area { min-height: 260px; padding: 12px 14px; outline: 0; background: #fff; }
.rte-area table { width: 100%; border-collapse: collapse; }
.rte-area th, .rte-area td { border: 1px solid var(--line); padding: 6px 8px; }
.rte-src { width: 100%; min-height: 260px; border: 0; padding: 12px; font: 13px/1.5 ui-monospace, monospace; }
.msave { position: sticky; bottom: 10px; z-index: 5; }
.btn.danger { color: var(--red); border-color: #e7b4ae; margin-left: auto; }
.subdl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: 14px; }
.subdl dt { font-weight: 600; text-transform: capitalize; }
.subdl dd { margin: 0; }

@media (max-width: 900px) {
	.prof-grid, .mgrid, .agrid { grid-template-columns: minmax(0, 1fr); }
	.btn.danger { margin-left: 0; }
}

/* 1.3.1: readable tables, headings with links */
.content { overflow-wrap: break-word; }
.content .ujp-tscroll, .content > table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content table { display: table; width: auto; min-width: 100%; }
.content th, .content td { overflow-wrap: normal; word-break: normal; hyphens: none; min-width: 6.5em; }
.content td:first-child, .content th:first-child { min-width: 9em; }
.ujp-tscroll::-webkit-scrollbar { height: 8px; }
.ujp-tscroll::-webkit-scrollbar-thumb { background: #c6d4e5; border-radius: 8px; }
.scroll-hint { display: none; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.ujp-tscroll.wide + .scroll-hint { display: block; }
.card-h h2 { min-width: 0; }
.card-h a { flex: none; white-space: nowrap; }
.more-row { margin: 14px 0 0; }
.more-row .btn { width: 100%; justify-content: center; }
.job-grid { margin-bottom: 0; }
.job-grid .card:last-child { margin-bottom: 18px; }
