/*
 * 2026-10-17 redesign: retired the old schooldemo.click-matched navy/gold
 * palette in favour of the same design language the other My Account tabs
 * on this site already use (Partner Packs / Proposals / Commercial --
 * Poppins, indigo #2b3990 as the brand/link/focus color, green #1f7a4d as
 * the primary-action color, white 10-12px-radius cards on a very light
 * grey page background). This file still defines everything as CSS custom
 * properties on .smh-app, same as before, so this is a tokens-and-a-few-
 * literals change, not a markup rewrite -- every class name, every element
 * ID that assets/js/smh-upload.js queries, is untouched. The Poppins font
 * itself is loaded by frontend/class-smh-shortcode.php (same <link>-tag
 * pattern Partner Activation Manager uses for its own My Account tabs),
 * not with an @import here, for the same performance reason PAM doesn't
 * use one either.
 *
 * Green (--smh-accent) stays the "do something" color (Choose files,
 * drag-active, the Highlighted toggle/badge, upload progress bars).
 * Indigo (--smh-focus) is the "brand"/link/focus-ring color, matching how
 * the rest of the site uses it for input focus rings and link hovers.
 */
.smh-app {
	--smh-primary: #1c1f2a;
	--smh-primary-dark: #000;
	--smh-accent: #1f7a4d;
	--smh-accent-dark: #17603c;
	--smh-focus: #2b3990;
	--smh-focus-dark: #1f2a70;
	--smh-tint-bg: #e3f4e6;
	--smh-tint-bg-hover: #d3edda;
	--smh-tint-text: #1f5a2a;
	--smh-border: #e2e4ea;
	--smh-bg-subtle: #f7f7f8;
	--smh-text: #1c1f2a;
	--smh-text-muted: #646970;
	--smh-radius: 10px;
	--smh-error: #a12622;

	max-width: 1200px;
	margin: 24px auto;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--smh-text);
	font-size: 15px;
	line-height: 1.5;
}

.smh-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--smh-border);
}

/* Summary strip -- same shape as the KPI tiles on the Partner Packs /
   Proposals tabs (white card, uppercase grey label, bold number). Values
   are computed server-side in SMH_Shortcode::render() from existing
   SMH_DB methods (plus one small new one, count_media()), nothing here
   is live/JS-driven. */
.smh-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0 0 20px;
}

.smh-kpi {
	background: #fff;
	border: 1px solid var(--smh-border);
	border-radius: 12px;
	padding: 14px 16px;
}

.smh-kpi-label {
	font-size: 12px;
	color: var(--smh-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.smh-kpi-value {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--smh-primary);
}

/* Groups the global photo search + collection picker into one card,
   matching the "New Partner Pack" bar on the Partner Packs tab, instead
   of two bare inputs floating directly on the page background. */
.smh-toolbar-card {
	background: #fff;
	border: 1px solid var(--smh-border);
	border-radius: 12px;
	padding: 18px 20px;
	margin: 0 0 20px;
}

.smh-toolbar-card .smh-global-search {
	margin-bottom: 12px;
}

.smh-toolbar-card .smh-selector-bar {
	margin-bottom: 0;
}

/* Shown to logged-out visitors on the now-public Media Hub, explaining
   why they don't see the upload/link controls a logged-in user does. */
.smh-guest-notice {
	margin: -10px 0 18px;
	font-size: 13px;
	color: var(--smh-text-muted);
}

.smh-guest-notice a {
	color: var(--smh-focus);
	font-weight: 600;
}

.smh-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--smh-primary);
	letter-spacing: 0.01em;
}

/* Buttons — gold as the primary CTA color, matching the theme's own
   "Get a Quotation" / "Partnership Options" buttons */

.smh-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 9px 18px;
	border: 1px solid var(--smh-border);
	background: #fff;
	color: var(--smh-text);
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.smh-btn:hover {
	background: var(--smh-bg-subtle);
}

.smh-btn-primary {
	background: var(--smh-accent);
	color: #fff;
	border-color: var(--smh-accent);
}

.smh-btn-primary:hover {
	background: var(--smh-accent-dark);
	border-color: var(--smh-accent-dark);
}

.smh-btn-ghost {
	background: transparent;
	border-color: transparent;
	color: var(--smh-text-muted);
	text-transform: none;
	font-weight: 500;
	letter-spacing: normal;
}

.smh-btn-ghost:hover {
	background: var(--smh-bg-subtle);
}

.smh-btn-small {
	padding: 5px 12px;
	font-size: 11.5px;
}

/* New collection panel */

.smh-panel {
	background: var(--smh-bg-subtle);
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	padding: 18px;
	margin-bottom: 18px;
}

.smh-panel h3 {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--smh-primary);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.smh-panel input,
.smh-panel select {
	display: block;
	margin-bottom: 10px;
	padding: 9px 12px;
	width: 100%;
	max-width: 400px;
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: var(--smh-text);
}

.smh-panel-actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

/* Global photo search — searches every collection at once, not just
   whichever one is currently selected */

.smh-global-search {
	position: relative;
	margin-bottom: 12px;
}

.smh-global-search-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.smh-global-search-input-wrap {
	position: relative;
	flex: 1 1 260px;
}

.smh-global-search-text {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 38px 11px 14px;
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: var(--smh-text);
}

.smh-global-search-text:focus {
	outline: none;
	border-color: var(--smh-focus);
	box-shadow: 0 0 0 3px rgba(43, 57, 144, 0.15);
}

/* × button inside the search box — the main, always-visible way to back
   out of a search without having to delete everything typed by hand or
   refresh the page. */
.smh-global-search-clear {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	border: none;
	background: transparent;
	color: var(--smh-text-muted);
	font-size: 15px;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
}

.smh-global-search-clear:hover {
	background: var(--smh-bg-subtle);
	color: var(--smh-text);
}

.smh-global-search-results {
	display: none;
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
	max-height: 400px;
	overflow-y: auto;
	z-index: 200;
}

/* Header row shown above the search results themselves — the second,
   very explicit way to dismiss a visible results list once photos are
   showing, right where you're looking at them. */
.smh-search-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid var(--smh-border);
	font-size: 12px;
	color: var(--smh-text-muted);
	background: var(--smh-bg-subtle);
}

.smh-search-results-clear {
	border: none;
	background: transparent;
	color: var(--smh-focus);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 2px 4px;
}

.smh-search-results-clear:hover {
	text-decoration: underline;
}

.smh-search-hit {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	cursor: pointer;
	border-bottom: 1px solid var(--smh-border);
}

.smh-search-hit:last-child {
	border-bottom: none;
}

.smh-search-hit:hover {
	background: var(--smh-bg-subtle);
}

.smh-search-hit-thumb {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
	background: var(--smh-bg-subtle);
}

.smh-search-hit-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smh-search-hit-info {
	min-width: 0;
}

.smh-search-hit-name {
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.smh-search-hit-collection {
	font-size: 11.5px;
	color: var(--smh-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Collection picker (0.44.2) — a searchable combobox, not a plain
   <select>. The earlier version of this used a native <select> +
   <optgroup> on the theory that the browser's own scrolling/keyboard
   type-to-jump was enough on its own; in practice, on mobile Safari that
   renders as a cramped in-page menu once a school accumulates more than
   a handful of collections (see the 0.44.2 README entry for the
   screenshot that prompted this). Focusing the (empty) text box below
   shows every collection, grouped just like the old <optgroup>s did;
   typing filters that same list — see bindCollectionPicker() in
   smh-upload.js. */

.smh-selector-bar {
	display: flex;
	margin-bottom: 20px;
}

.smh-collection-picker {
	position: relative;
	flex: 1 1 auto;
	width: 100%;
}

.smh-collection-picker-input-wrap {
	position: relative;
}

.smh-selector-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	font-size: 15px;
	line-height: 1;
	pointer-events: none; /* Clicks pass through to the input underneath. */
}

/* Deliberately matches .smh-global-search-text — same box, same
   left-icon padding as the old <select> had, this is meant to read as
   "the same kind of control" as the global photo search box right above
   it, not a different widget. */
.smh-collection-picker-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 38px 11px 38px;
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: var(--smh-text);
}

.smh-collection-picker-input:focus {
	outline: none;
	border-color: var(--smh-focus);
	box-shadow: 0 0 0 3px rgba(43, 57, 144, 0.15);
}

/* Floating results list — same positioning pattern as
   .smh-global-search-results (absolute, drops below the input, scrolls
   internally past a few screens' worth of collections) rather than
   .smh-search-results (the Link-to-Listing panel's inline, non-floating
   list), since this one needs to overlay the page instead of pushing
   layout around every time it opens/closes. */
.smh-collection-picker-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
	max-height: 340px;
	overflow-y: auto;
	z-index: 200;
}

.smh-collection-picker-group-label {
	padding: 7px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--smh-text-muted);
	background: var(--smh-bg-subtle);
	border-bottom: 1px solid var(--smh-border);
	border-top: 1px solid var(--smh-border);
}

.smh-collection-picker-group-label:first-child {
	border-top: none;
}

.smh-collection-picker-hit .smh-search-hit-name {
	font-weight: 400;
}

.smh-collection-picker-empty {
	padding: 14px 12px;
	margin: 0;
	font-size: 13px;
	color: var(--smh-text-muted);
}

/* Main content */

.smh-main {
	min-width: 0;
}

.smh-main-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.smh-main-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--smh-primary);
}

.smh-count-pill {
	background: var(--smh-bg-subtle);
	border-radius: 12px;
	padding: 2px 10px;
	font-size: 12px;
	color: var(--smh-text-muted);
}

/* Listing linking */

.smh-linked-listings {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.smh-linked-listings:empty {
	margin-bottom: 0;
}

.smh-listing-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--smh-tint-bg);
	color: var(--smh-tint-text);
	border-radius: 14px;
	padding: 4px 6px 4px 12px;
	font-size: 12.5px;
	font-weight: 500;
}

.smh-chip-remove {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--smh-tint-text);
	font-size: 15px;
	line-height: 1;
	padding: 2px 6px;
	border-radius: 50%;
}

.smh-chip-remove:hover {
	background: rgba(31, 122, 77, 0.15);
}

.smh-panel-hint {
	font-size: 12.5px;
	color: var(--smh-text-muted);
	margin: -6px 0 10px;
}

.smh-search-results {
	max-width: 400px;
	margin-bottom: 10px;
}

.smh-search-result-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid var(--smh-border);
	border-radius: 6px;
	margin-bottom: 6px;
	font-size: 13.5px;
}

.smh-no-selection {
	text-align: center;
	padding: 48px 20px;
	color: var(--smh-text-muted);
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--smh-border);
}

.smh-no-selection h3 {
	margin: 0 0 6px;
	color: var(--smh-primary);
}

.smh-no-selection p {
	margin: 0;
}

/* Dropzone */

.smh-dropzone {
	border: 2px dashed var(--smh-border);
	border-radius: var(--smh-radius);
	padding: 26px;
	text-align: center;
	margin-bottom: 16px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.smh-dropzone-inner p {
	margin: 6px 0 12px;
	color: var(--smh-text-muted);
	font-size: 14px;
}

.smh-dropzone-icon {
	display: block;
	font-size: 22px;
	color: var(--smh-text-muted);
}

.smh-dropzone.smh-dragover {
	border-color: var(--smh-accent);
	background: #faf3e3;
}

/* Now a required field (see smh-upload.js's handleFiles()), and moved
   above the dropzone/Choose files controls it gates — given its own
   light highlight so it reads as "fill this in first", not as an
   afterthought below the main upload action the way an optional field
   would. */
.smh-photographer-field {
	margin-bottom: 16px;
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
	padding: 10px 12px;
	background: var(--smh-bg-subtle);
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	text-align: left;
}

.smh-photographer-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--smh-text);
	margin-bottom: 4px;
}

.smh-required {
	color: var(--smh-error);
}

.smh-photographer-field input {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid var(--smh-border);
	border-radius: 6px;
	font-size: 13px;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
}

.smh-field-hint {
	margin: 5px 0 0;
	font-size: 11px;
	color: var(--smh-text-muted);
}

.smh-media-photographer {
	font-size: 10.5px;
	color: var(--smh-text-muted);
	padding: 0 9px 7px;
	margin-top: -4px;
}

/* POPIA approval status badges — only ever shown on a viewer's own
   pending/rejected uploads, since the server never sends anyone else's
   (see SMH_DB::get_media_for_collection()). */

.smh-status-badge {
	font-size: 10.5px;
	font-weight: 600;
	padding: 4px 9px;
	line-height: 1.4;
}

.smh-status-pending {
	color: #8a6100;
	background: #fff6e0;
}

.smh-status-rejected {
	color: #a3231f;
	background: #fdecea;
}

/* Upload progress */

.smh-upload-progress {
	margin-bottom: 12px;
}

.smh-upload-progress .smh-progress-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	margin-bottom: 6px;
	background: #fff;
	border: 1px solid var(--smh-border);
	border-radius: 6px;
	padding: 8px 12px;
}

.smh-progress-row-error {
	border-color: #f3c6bd;
	background: #fdf3f1;
}

.smh-progress-filename {
	flex-shrink: 0;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.smh-upload-progress progress {
	flex-grow: 1;
	height: 6px;
	accent-color: var(--smh-accent);
}

.smh-error {
	color: var(--smh-error);
	font-weight: 500;
}

/* Media grid */

.smh-media-grid-wrap {
	position: relative;
	min-height: 120px;
}

.smh-media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

/* "Hang tight" overlay shown while a collection's media is being fetched
   from the database — covers just the grid area (not the whole page) so
   the search box, dropdown, and dropzone above stay usable/visible while
   it loads. */
.smh-media-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--smh-radius);
	z-index: 5;
}

.smh-media-loading-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 28px 36px;
	text-align: center;
}

.smh-media-loading-text {
	margin: 0;
	color: var(--smh-primary);
	font-weight: 600;
	font-size: 14px;
}

.smh-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--smh-border);
	border-top-color: var(--smh-accent);
	border-radius: 50%;
	animation: smh-spin 0.8s linear infinite;
}

@keyframes smh-spin {
	to {
		transform: rotate(360deg);
	}
}

.smh-media-card {
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.smh-media-card:hover {
	box-shadow: 0 4px 14px rgba(16, 24, 40, 0.1);
	transform: translateY(-1px);
}

.smh-media-thumb {
	aspect-ratio: 1 / 1;
	background: var(--smh-bg-subtle);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	cursor: pointer;
}

.smh-media-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.smh-media-name {
	font-size: 11.5px;
	padding: 7px 9px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--smh-text-muted);
}

.smh-gallery-toggle {
	display: block;
	width: 100%;
	border: none;
	border-top: 1px solid var(--smh-border);
	background: #fafafa;
	color: var(--smh-text-muted);
	font-size: 11px;
	font-weight: 600;
	padding: 6px 4px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.smh-gallery-toggle:hover {
	background: var(--smh-bg-subtle);
}

.smh-gallery-toggle-on {
	background: #faf3e3;
	color: var(--smh-accent-dark);
}

.smh-gallery-toggle-on:hover {
	background: #f5e8cc;
}

.smh-gallery-toggle:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Read-only equivalent of .smh-gallery-toggle-on shown to logged-out
   visitors — same look, but not a button, since guests can't change
   what's Highlighted. */
.smh-gallery-badge {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border-top: 1px solid var(--smh-border);
	background: #faf3e3;
	color: var(--smh-accent-dark);
	font-size: 11px;
	font-weight: 600;
	padding: 6px 4px;
	text-align: center;
}

.smh-empty,
.smh-loading,
.smh-thumb-loading {
	color: var(--smh-text-muted);
	font-size: 13px;
	padding: 10px 8px;
}

/* Wraps the Highlight toggle/badge and the Delete button along the
   bottom of a media card so the two sit side by side instead of the
   delete button stacking as a second full-width row underneath. Only
   .smh-media-actions itself needs to exist when there's nothing to put
   in it (a guest, viewing a non-Highlighted photo) — it just stays
   empty and takes up no visible space. */
.smh-media-actions {
	display: flex;
}

.smh-media-actions .smh-gallery-toggle,
.smh-media-actions .smh-gallery-badge,
.smh-media-actions .smh-media-delete {
	flex: 1 1 0;
	width: auto;
}

.smh-media-delete {
	display: block;
	border: none;
	border-top: 1px solid var(--smh-border);
	background: #fafafa;
	color: var(--smh-error);
	font-size: 11px;
	font-weight: 600;
	padding: 6px 4px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.smh-media-actions .smh-gallery-toggle,
.smh-media-actions .smh-gallery-badge {
	border-left: none;
}

.smh-media-actions > :not(:first-child) {
	border-left: 1px solid var(--smh-border);
}

.smh-media-delete:hover {
	background: #fdf3f1;
}

/* Lightbox — full-size photo viewer */

.smh-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(16, 24, 40, 0.95);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.smh-lightbox-content {
	max-width: 90vw;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.smh-lightbox-content img {
	max-width: 90vw;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.smh-lightbox.smh-lightbox-loading .smh-lightbox-content img {
	opacity: 0;
}

.smh-lightbox-caption {
	color: #fff;
	font-size: 13px;
	margin-top: 12px;
	text-align: center;
	opacity: 0.85;
}

.smh-lightbox-close,
.smh-lightbox-nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.smh-lightbox-close:hover,
.smh-lightbox-nav:hover {
	background: rgba(201, 162, 74, 0.5);
}

.smh-lightbox-close {
	top: 18px;
	right: 18px;
}

.smh-lightbox-prev {
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.smh-lightbox-next {
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.smh-lightbox-close,
	.smh-lightbox-nav {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}

	/* Smaller text on phones — the desktop sizes below (15px base, 20px
	   title, etc.) read as oversized on a ~375-430px viewport, especially
	   stacked above the fold the way "Media Hub" + the guest notice + the
	   two search boxes are. Every selector here mirrors one with an
	   explicit font-size earlier in this file (nothing here is new
	   markup), just dialed down ~1-2px for a phone screen. */
	.smh-app {
		font-size: 13.5px;
	}

	.smh-title {
		font-size: 17px;
	}

	.smh-guest-notice {
		font-size: 11.5px;
	}

	.smh-global-search-text,
	.smh-selector-select,
	.smh-collection-picker-input {
		font-size: 13px;
	}

	.smh-main-header h3 {
		font-size: 15px;
	}

	.smh-count-pill,
	.smh-search-results-header,
	.smh-search-hit-name {
		font-size: 11px;
	}

	.smh-search-hit-collection,
	.smh-search-results-clear {
		font-size: 10.5px;
	}

	.smh-media-name {
		font-size: 10.5px;
	}

	.smh-media-photographer {
		font-size: 10px;
	}
}

/* [smh_install_app] — "Add to Home Screen" button (0.43.0). Starts
   `hidden` (see the shortcode's PHP and assets/js/smh-pwa.js — hidden
   until JS confirms this visitor's browser can actually do something
   useful with a click) so no CSS is needed to hide it initially; this
   only covers what's specific to it beyond the shared .smh-btn/
   .smh-btn-primary/.smh-btn-ghost styling already used everywhere else
   in this stylesheet. */

.smh-install-app-wrap {
	/* Requested directly: always centered, wherever the [smh_install_app]
	   shortcode is placed on the page — not left-aligned by default like
	   a plain inline button dropped into a paragraph would be. Full width
	   of whatever content column it's in (a theme's post/page content
	   area, not the whole browser viewport), with the button itself
	   staying its natural size via .smh-btn's own inline-flex display. */
	display: flex;
	justify-content: center;
	width: 100%;
}

.smh-install-app-icon {
	flex-shrink: 0;
}

.smh-install-ios-hint {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 9999;
	max-width: 320px;
	width: calc(100% - 32px);
	background: #fff;
	border: 1px solid var(--smh-border);
	border-radius: var(--smh-radius);
	box-shadow: 0 8px 28px rgba(16, 24, 40, 0.18);
	padding: 16px;
	text-align: center;
}

.smh-install-ios-hint p {
	margin: 0 0 12px;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--smh-text);
}

.smh-install-ios-hint .smh-install-ios-hint-close {
	width: 100%;
	justify-content: center;
}

