/* Client portal (/portal/...). Same design tokens as the Motif Client Portal theme (motif-client-portal-theme). */
:root {
	--ink: #241c1d;
	--ink-2: #231f20;
	--red: #eb3f43;
	--red-soft: #fd6e71;
	--light: #efefef;
	--paper: #f7f7f7;
	--grey: #8d8e8e;
	--grey-l: #cac7c7;
	--line: #dedcdc;
	--go: #17704a;
	--warn: #9a5a06;
	--font: "Helvetica Neue", Helvetica, "Inter", Arial, "IBM Plex Sans Arabic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: #fff; color: var(--ink); font-weight: 700; }
.skip:focus { top: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Dark band + top bar */
.top { padding: 24px 0 56px; background: var(--ink); color: #fff; }
.top.is-slim { padding-bottom: 28px; }
.top.is-full { display: flex; flex: 1 0 auto; padding-bottom: 64px; }
.top.is-full > .wrap { display: flex; flex-direction: column; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.brand { display: flex; flex-wrap: wrap; gap: 10px; color: var(--grey-l); text-decoration: none; }
.brand span:first-child { color: #fff; }
.who { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--grey-l); }
.who span { color: #fff; }
.who a { color: var(--grey-l); text-decoration: none; border-bottom: 2px solid transparent; }
.who a:hover { color: #fff; border-color: var(--red); }
.top h1 { margin: 56px 0 12px; font-size: 70px; line-height: 80px; font-weight: 700; text-transform: uppercase; overflow-wrap: anywhere; }
.lead { margin: 0; font-size: 24px; line-height: 32px; color: var(--grey-l); }
.also { margin: 16px 0 0; color: var(--grey-l); }
.also a { margin-inline-start: 8px; color: var(--red-soft); font-weight: 700; }
.back { margin: 32px 0 0; font-weight: 700; text-transform: uppercase; }
.back a { display: inline-flex; align-items: center; gap: 10px; color: var(--grey-l); text-decoration: none; }
/* Client logo: a white tile, so dark and transparent logos stay visible on the dark band. */
.client-head { display: flex; align-items: center; gap: 24px; margin: 56px 0 12px; }
.client-head h1 { margin: 0; }
.client-logo { display: grid; place-items: center; flex: none; width: 96px; height: 96px; padding: 10px; box-sizing: border-box; background: #fff; }
.client-logo img, .back-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.back-logo { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 3px; box-sizing: border-box; background: #fff; }
.back a:hover { color: #fff; }
.team { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 0; padding: 10px 14px; border: 2px dashed var(--grey); color: var(--grey-l); font-size: 14px; }
.team select { font: inherit; padding: 4px 8px; }

/* Buttons: square, bold, uppercase */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	margin: 0; padding: 14px 24px;
	font: 700 18px/24px var(--font); text-transform: uppercase; text-decoration: none;
	border: 2px solid transparent; border-radius: 0;
	cursor: pointer; transition: background .4s, color .4s, border-color .4s;
}
.btn .kl-ico { width: 20px; height: 20px; vertical-align: 0; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.top .btn-primary:hover { background: #fff; color: var(--red); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: inherit; }

main { flex: 1 0 auto; }
.top main { padding-bottom: 0; }
.notice { margin: 32px 0 0; padding: 16px 20px; background: #fff; color: var(--ink); border-inline-start: 6px solid var(--go); font-weight: 700; }
.notice.is-error { border-color: var(--red); }
.notice a { margin-inline-start: 12px; color: var(--red); }
.empty { padding: 48px 24px; background: #fff; text-align: center; color: var(--grey); font-size: 18px; }

/* Month list */
.months { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 48px 0 20px; }
.months h2 { margin: 0; font-size: 40px; line-height: 48px; font-weight: 700; text-transform: uppercase; text-align: center; }
.months a { min-width: 7em; font-weight: 700; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.months .short { display: none; }
.months a[rel="next"] { text-align: end; }
.months a:hover { color: var(--red); }
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.counts li { padding: 6px 12px; background: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.counts b { margin-inline-end: 4px; font-size: 16px; }
.counts .pending b { color: var(--red); }
.group { margin: 32px 0 12px; font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grey); }
.plist { margin: 0; padding: 0; list-style: none; }
.prow { margin: 0 0 8px; background: #fff; border-inline-start: 6px solid transparent; }
.plist:last-child .prow:last-child { margin-bottom: 0; }
.prow.is-pending { border-color: var(--red); }
.prow a { display: grid; grid-template-columns: 64px 64px minmax(0, 1fr) auto auto 16px; align-items: center; gap: 18px; padding: 14px 20px 14px 16px; text-decoration: none; }
.prow a:hover { background: #fbfbfb; }
.prow a:hover .go { color: var(--red); transform: translateX(3px); }
.pdate { text-align: center; line-height: 1.1; }
.pdate b { display: block; font-size: 30px; }
.pdate small { color: var(--grey); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.thumb { position: relative; display: block; width: 64px; height: 64px; overflow: hidden; background: var(--light); }
.thumb img, .thumb video { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb .kl-ico-play { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; transform: translate(-50%, -50%); }
.thumb b { position: absolute; inset-inline-end: 4px; bottom: 4px; padding: 0 5px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; }
.what { min-width: 0; }
.what b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.what small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grey); font-size: 14px; }
.nets { display: flex; gap: 4px; }
.nets .kl-ico { width: 20px; height: 20px; }
.state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cc { display: inline-flex; align-items: center; gap: 4px; color: var(--grey); font-size: 12px; font-weight: 700; }
.cc .kl-ico { width: 13px; height: 13px; vertical-align: 0; }
.go { color: var(--grey); font-size: 26px; font-weight: 700; transition: transform .2s, color .2s; }

.tag { display: inline-block; padding: 4px 10px; background: var(--light); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.tag.pending { background: var(--red); color: #fff; }
.tag.changes { background: #fdf3e3; color: var(--warn); }
.tag.approved { background: #e4f4ec; color: var(--go); }
.tag.published { background: var(--ink); color: #fff; }

/* One post */
.item { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 48px; margin: 32px 0; padding: 40px; background: #fff; }
.item-side { min-width: 0; }
.label { margin: 0; color: var(--grey); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.when { margin: 4px 0 8px; font-size: 26px; line-height: 34px; font-weight: 700; text-transform: uppercase; }
.ptitle { margin: 0 0 16px; font-size: 18px; line-height: 26px; font-weight: 400; color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--light); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.decision { margin: 0 0 32px; scroll-margin-top: 24px; }
.locked { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 16px 18px; background: #e4f4ec; color: var(--go); font-weight: 700; }
.locked .kl-ico { width: 22px; height: 22px; margin-top: 2px; }
.decide label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.decide textarea { width: 100%; min-height: 110px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 0; resize: vertical; }
.decide textarea:focus { border-color: var(--ink); outline: none; }
.decide textarea:disabled { background: var(--paper); }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.decide .btn { padding: 12px 18px; font-size: 16px; }
.hint { margin: 10px 0 0; color: var(--grey); font-size: 14px; }

/* "Approve this post?" confirmation (assets/portal.js) */
.confirm { width: min(520px, calc(100vw - 32px)); padding: 32px; border: 0; border-radius: 0; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(0, 0, 0, .35); }
.confirm::backdrop { background: rgba(36, 28, 29, .75); }
.confirm h2 { margin: 0 0 12px; font-size: 28px; line-height: 34px; font-weight: 700; text-transform: uppercase; }
.confirm p { margin: 0; font-size: 17px; line-height: 26px; color: #4a4445; }
.confirm .row { margin-top: 28px; }

.discussion { padding-top: 24px; border-top: 2px solid var(--light); }
.discussion h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.kl-thread { margin: 0; padding: 0; list-style: none; }
.kl-cm { margin: 0 0 12px; padding: 12px 14px; background: var(--paper); border-inline-start: 4px solid var(--grey-l); }
.kl-cm.is-client { border-color: var(--red); }
.kl-cm.is-agency { border-color: var(--ink); }
.kl-cm-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; }
.kl-cm-role { color: var(--grey); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.kl-cm-head time { margin-inline-start: auto; color: var(--grey); font-size: 12px; }
.kl-cm-text { margin-top: 4px; overflow-wrap: anywhere; }
.kl-cm-none { color: var(--grey); font-size: 14px; }

.pnav { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; text-transform: uppercase; }
.pnav a { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.pnav a:hover { color: var(--red); }

/* Login, forgot, set password, messages */
.auth { width: 100%; max-width: 520px; margin: auto 0; padding-top: 48px; }
.auth h1 { margin-top: 0; }
.cta { margin: 32px 0 0; }
.form { margin-top: 32px; }
.form label { display: block; margin: 18px 0 6px; color: var(--grey-l); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.form label small { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form input[type="text"], .form input[type="email"], .form input[type="password"] { width: 100%; padding: 14px 16px; font: inherit; font-size: 18px; color: var(--ink); background: #fff; border: 2px solid #fff; border-radius: 0; }
.form input:focus { border-color: var(--red); outline: none; }
.form .check { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 400; }
.form .btn { width: 100%; margin-top: 28px; }
.alt { margin: 20px 0 0; }
.alt a { color: var(--grey-l); }
.alt a:hover { color: #fff; }
.auth .notice { margin-top: 24px; }

.foot { margin-top: 100px; padding: 32px 0; background: var(--ink); color: var(--grey); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.is-auth .foot, .is-message .foot { display: none; }

@media (max-width: 991px) {
	.top h1 { font-size: 53px; line-height: 67px; }
	.lead { font-size: 20px; line-height: 30px; }
	.item { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
	.item-preview .kl-pv { margin: 0 auto; }
	.months h2 { font-size: 30px; line-height: 38px; }
}
@media (max-width: 767px) {
	.wrap { padding: 0 16px; }
	.top { padding: 16px 0 36px; }
	.top h1 { margin-top: 36px; font-size: 33px; line-height: 40px; }
	.client-head { gap: 14px; margin-top: 36px; }
	.client-logo { width: 60px; height: 60px; padding: 6px; }
	.lead { font-size: 16px; line-height: 24px; }
	.months { margin-top: 32px; }
	.months h2 { font-size: 22px; line-height: 28px; }
	.months a { min-width: 0; font-size: 14px; }
	.months .full { display: none; }
	.months .short { display: inline; }
	.prow a { grid-template-columns: 44px 56px minmax(0, 1fr); gap: 4px 12px; padding: 12px; }
	.pdate b { font-size: 22px; }
	.thumb { width: 56px; height: 56px; grid-row: span 2; }
	.pdate { grid-row: span 2; }
	.nets, .go { display: none; }
	.state { grid-column: 3; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 10px; }
	.item { padding: 16px; margin-top: 20px; }
	.when { font-size: 20px; line-height: 28px; }
	.btn { padding: 12px 18px; font-size: 16px; }
	.row .btn { flex: 1 1 auto; }
	.pnav { flex-direction: column; }
	.pnav a { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
