/**
 * ZooMeet meeting page design: Paper.
 *
 * Direction locked in DESIGN.md (2026-11-06): content on the left, one quiet
 * card on the right with the status, the time and the join action, sticky
 * while the page scrolls. Agenda as a timeline. Hairlines instead of boxes,
 * one accent, system fonts.
 *
 * Grid areas keep the markup in reading order (head, thumbnail, card, body),
 * which is the phone order, while the card spans every row on wide screens.
 */
.gm-theme-paper {
	--gm-accent: #0b5cff;
	--gm-ink: #10141c;
	--gm-muted: #5a6272;
	--gm-line: #e7e9ee;
	--gm-edge: #8a93a3;
	--gm-soft: #f6f7f9;
	padding: 48px 24px 64px;
	background: #fff;
	color: var(--gm-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	/* Site themes set 300 on body; Segoe UI and Roboto read thin and grey at that weight. */
	font-weight: 400;
	line-height: 1.6;
	container-type: inline-size;
}

.gm-theme-paper .gm-paper-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	grid-template-areas:
		"head card"
		"thumb card"
		"body card";
	grid-template-rows: auto auto 1fr;
	column-gap: 56px;
	row-gap: 0;
	max-width: 1080px;
	margin: 0 auto;
}

/* Margins, not row-gap: an event without a thumbnail leaves its row empty. */
.gm-theme-paper .gm-paper-head {
	grid-area: head;
	min-width: 0;
	margin-bottom: 28px;
}

.gm-theme-paper .gm-thumb {
	grid-area: thumb;
	margin-bottom: 32px;
}

.gm-theme-paper .gm-paper-card {
	grid-area: card;
}

.gm-theme-paper .gm-paper-body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

/* Head */
.gm-theme-paper .gm-paper-head .gm-cats {
	order: -1;
	margin: 0 0 10px;
}

.gm-theme-paper .gm-paper-head {
	display: flex;
	flex-direction: column;
}

.gm-theme-paper .gm-cat {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--gm-muted);
	font-size: 14px;
	opacity: 1;
}

.gm-theme-paper .gm-cats li + li::before {
	content: "\00B7";
	margin-right: 6px;
	color: var(--gm-muted);
}

.gm-theme-paper a.gm-cat:hover,
.gm-theme-paper a.gm-cat:focus-visible {
	border: 0;
	background: none;
	color: var(--gm-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gm-theme-paper .gm-title {
	font-size: clamp(28px, 4.6cqi, 40px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

/* Thumbnail: the host's image at its own shape, never cropped. */
.gm-theme-paper .gm-thumb {
	justify-self: start;
	max-width: 100%;
	border-radius: 14px;
}

.gm-theme-paper .gm-thumb img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 420px;
	border-radius: 14px;
}

/* Card */
.gm-theme-paper .gm-paper-card {
	position: sticky;
	top: 24px;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 22px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--gm-line), 0 8px 24px -12px rgba(16, 20, 28, 0.12);
}

.admin-bar .gm-theme-paper .gm-paper-card {
	top: 56px;
}

.gm-theme-paper .gm-paper-when {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

.gm-theme-paper .gm-paper-when b {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.gm-theme-paper .gm-paper-when .gm-muted {
	font-size: 14px;
}

.gm-theme-paper .gm-paper-tz {
	display: block;
}

.gm-theme-paper .gm-paper-card .gm-action {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gm-theme-paper .gm-paper-card .gm-btn {
	min-height: 48px;
	box-shadow: none;
	font-weight: 600;
}

.gm-theme-paper .gm-paper-card .gm-btn:hover,
.gm-theme-paper .gm-paper-card .gm-btn:focus {
	background: color-mix(in srgb, var(--gm-accent) 82%, #000);
	color: var(--gm-accent-ink);
	filter: none;
}

.gm-theme-paper .gm-paper-card .gm-btn:active {
	background: color-mix(in srgb, var(--gm-accent) 70%, #000);
	transform: translateY(1px);
}

.gm-theme-paper .gm-paper-card .gm-btn.gm-btn-ghost {
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--gm-edge);
	color: var(--gm-ink);
}

.gm-theme-paper .gm-paper-card .gm-btn.gm-btn-ghost:hover,
.gm-theme-paper .gm-paper-card .gm-btn.gm-btn-ghost:focus {
	background: var(--gm-soft);
	box-shadow: inset 0 0 0 1px var(--gm-ink);
	color: var(--gm-ink);
}

.gm-theme-paper .gm-paper-card .gm-btn.gm-btn-ghost:active {
	background: var(--gm-line);
	color: var(--gm-ink);
}

.gm-theme-paper .gm-paper-card .gm-muted,
.gm-theme-paper .gm-paper-card .gm-register-note {
	font-size: 13.5px;
}

/* Host-only control: a quiet row, not a warning box. Only the author sees it. */
.gm-theme-paper .gm-paper-card .gm-host {
	gap: 6px;
	padding: 14px 0 0;
	border-top: 1px solid var(--gm-line);
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--gm-muted);
	font-size: 12.5px;
}

.gm-theme-paper .gm-paper-card .gm-btn.zmeet-meeting-status {
	min-height: 44px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--gm-edge);
	color: #b42318;
	font-size: 14px;
}

.gm-theme-paper .gm-paper-card .gm-btn.zmeet-meeting-status:hover,
.gm-theme-paper .gm-paper-card .gm-btn.zmeet-meeting-status:focus {
	background: #fef3f2;
	box-shadow: inset 0 0 0 1px #b42318;
	color: #b42318;
}

.gm-theme-paper .gm-paper-card .gm-btn.zmeet-meeting-status:active {
	background: #fee4e2;
	color: #912018;
}

.gm-theme-paper .gm-paper-card .gm-btn.zmeet-meeting-status.gm-btn-ghost {
	color: var(--gm-ink);
}

.gm-theme-paper .gm-paper-card .gm-btn.zmeet-meeting-status.gm-btn-ghost:hover,
.gm-theme-paper .gm-paper-card .gm-btn.zmeet-meeting-status.gm-btn-ghost:focus {
	background: var(--gm-soft);
	box-shadow: inset 0 0 0 1px var(--gm-ink);
	color: var(--gm-ink);
}

.gm-theme-paper .gm-paper-facts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--gm-line);
	font-size: 14px;
}

.gm-theme-paper .gm-paper-facts div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.gm-theme-paper .gm-paper-facts dt {
	color: var(--gm-muted);
}

.gm-theme-paper .gm-paper-facts dd {
	margin: 0;
	text-align: right;
}

/* Body sections */
.gm-theme-paper .gm-paper-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gm-theme-paper .gm-label {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--gm-muted);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

.gm-theme-paper .gm-summary {
	max-width: 62ch;
	color: var(--gm-ink);
	font-size: 16px;
}

/* Agenda as a timeline: a hairline, a ring per item, the time above the title. */
.gm-theme-paper .gm-agenda {
	gap: 18px;
	margin: 4px 0 0;
	padding: 0 0 0 20px;
	border-left: 1px solid var(--gm-line);
}

.gm-theme-paper .gm-agenda li,
.gm-theme-paper .gm-agenda li.is-untimed {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 0;
	border: 0;
}

.gm-theme-paper .gm-agenda li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: -24px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--gm-muted);
}

.gm-theme-paper .gm-agenda li:has(.gm-agenda-time)::before {
	top: 6px;
}

.gm-theme-paper .gm-agenda-time {
	padding: 0;
	color: var(--gm-muted);
	font-size: 12.5px;
	line-height: 1.6;
}

.gm-theme-paper .gm-agenda-title {
	line-height: 1.5;
}

/* Host row and the event link */
.gm-theme-paper .gm-paper-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding-top: 20px;
	border-top: 1px solid var(--gm-line);
}

.gm-theme-paper .gm-paper-host {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
}

.gm-theme-paper .gm-paper-host b {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

.gm-theme-paper .gm-paper-host .gm-muted {
	display: block;
	font-size: 13.5px;
}

.gm-theme-paper .gm-paper-mono {
	display: grid;
	flex: none;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 11px;
	background: var(--gm-accent);
	color: var(--gm-accent-ink);
	font-size: 13px;
	font-weight: 600;
}

/* Sidebar hidden: one column, the card inline under the title. */
.gm-theme-paper.gm-no-sidebar .gm-paper-grid {
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"head"
		"thumb"
		"card"
		"body";
	grid-template-rows: none;
	max-width: 720px;
}

.gm-theme-paper.gm-no-sidebar .gm-paper-card {
	position: static;
	margin-bottom: 32px;
}

@container (max-width: 820px) {
	.gm-theme-paper .gm-paper-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"head"
			"thumb"
			"card"
			"body";
		grid-template-rows: none;
	}

	.gm-theme-paper .gm-paper-head {
		margin-bottom: 20px;
	}

	.gm-theme-paper .gm-thumb {
		margin-bottom: 24px;
	}

	.gm-theme-paper .gm-paper-card {
		position: static;
		margin-bottom: 32px;
	}
}

@media (max-width: 600px) {
	.gm-theme-paper {
		padding: 28px 16px 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gm-theme-paper .gm-paper-card .gm-btn:active {
		transform: none;
	}
}
