/*
Theme Name:   Pilcrow Mobile
Theme URI:    https://brobertsonlaw.com/
Description:  Child theme of Pilcrow for brobertsonlaw.com. Keeps the Pilcrow desktop design exactly as it is and adds a responsive phone/tablet layout (collapsible menu, stacked sidebar, readable type, responsive media and forms, sticky click-to-call bar) so the WPtouch mobile plugin is no longer needed.
Author:       Branigan Robertson
Template:     pilcrow
Version:      1.1.2
Requires at least: 5.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  pilcrow-mobile
*/

/* ==========================================================================
   HOW THIS FILE IS ORGANISED
   - Nothing here changes the desktop layout. Every visual rule is inside a
     max-width media query. The only global rules hide the new mobile-only
     elements (menu buttons and call bar) on large screens.
   - Selectors are Pilcrow's long-standing IDs/classes (#header, #site-title,
     #nav, #pic, #content-container, #content, #sidebar, #footer, .hentry,
     .entry-*, .widget, .navigation) so parent updates are unlikely to break it.
   - Breakpoints:  ≤ 1000px  tablet + phone (menu, call bar, stacked sidebar)
                   ≤ 640px   phone (tighter gutters, larger type)
                   ≤ 360px   very narrow phones (shorter call label)
     1000px is chosen so every iPad held upright (Air 820, 11" Pro 834)
     gets the tablet layout. 1024px and up keep the desktop design.
   ========================================================================== */

/* Cimy mounts on #cimy_div_id_0 (restored in header.php). No float, no 1em
   margin, and no size rules here — those would change how #pic wraps the
   floated #nav and shift the desktop page. A tiny inline script in header.php
   locks the node's laid-out width/height before Cimy empties it. */

/* Mobile-only elements: hidden on desktop. */
.pm-menu-toggle,
.pm-sub-toggle,
.pm-callbar {
	display: none;
}

/* Desktop Cimy stage: explicit 770×200 so the box does not collapse when
   Cimy empties the node and fills it with positioned slides. The 2px rule
   under the banner matches #header img { border-bottom }. This is the only
   desktop visual rule; it does not change the title or nav. */
@media screen and (min-width: 1001px) {
	#cimy_div_id_0 {
		width: 770px;
		height: 200px;
		position: relative;
		overflow: hidden;
		line-height: 0;
		border-bottom: 2px solid #222;
		box-sizing: content-box;
	}
	#cimy_div_id_0 img {
		display: block;
		width: 100%;
		height: 100%;
		border-bottom: 0;
	}
}


/* ==========================================================================
   ≤ 1000px — TABLETS AND PHONES
   ========================================================================== */
@media screen and (max-width: 1000px) {

	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	/* Slightly larger reading size than desktop's 14px on tablets */
	body,
	input,
	textarea {
		font-size: 16px;
	}
	.widget {
		font-size: 14px;
		line-height: 1.45;
	}

	/* ---- Header ------------------------------------------------------- */
	#header {
		margin-bottom: 22px;
	}
	#site-title {
		text-align: center;
	}
	#site-title a {
		display: inline-block;
		font-size: 34px;
		line-height: 1.15;
		padding: 14px 0 12px;
	}
	#pic img,
	#header img {
		display: block;
		width: 100%;
		height: auto;
	}
	/* Banner scales to width; aspect-ratio holds the box after Cimy empties it. */
	#cimy_div_id_0 {
		display: block;
		width: 100% !important;
		max-width: 100%;
		height: auto !important;
		aspect-ratio: 770 / 200;
		position: relative;
		overflow: hidden;
		line-height: 0;
	}
	#cimy_div_id_0 img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-bottom: 0;
	}

	/*
	 * Visual order: title, banner, then MENU. #header uses display:contents
	 * so #nav is a sticky sibling of #content-box inside #page — sticky
	 * cannot outlive a short #header wrapper. Desktop is unchanged (this
	 * whole block is inside max-width: 1000px).
	 */
	#page {
		display: flex;
		flex-direction: column;
	}
	#header {
		display: contents;
	}
	#site-title { order: 0; }
	#pic        { order: 1; }
	#nav        { order: 2; }
	#content-box { order: 3; }
	#footer      { order: 4; }

	/* ---- Navigation: collapsible menu ------------------------------- */
	#nav {
		position: sticky;
		top: 0;
		z-index: 99990; /* above page content, below the call bar (99998) */
		float: none;
		width: 100%;
		max-width: none;
		box-sizing: border-box;
		background: #fff;
		margin-bottom: 22px; /* was #header's margin-bottom; #header is contents */
	}
	.admin-bar #nav {
		top: 32px;
	}
	.pm-js #nav.pm-open {
		/* Leave room for the sticky call bar so a long menu can scroll. */
		max-height: calc(100vh - 56px - env(safe-area-inset-bottom, 0px));
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		background: #fff;
	}
	.admin-bar.pm-js #nav.pm-open {
		max-height: calc(100vh - 32px - 56px - env(safe-area-inset-bottom, 0px));
	}
	.pm-js #nav.pm-open .pm-menu-toggle {
		position: sticky;
		top: 0;
		z-index: 1;
	}
	.pm-js #nav .menu-header,
	.pm-js #nav > ul,
	.pm-js #nav > div > ul {
		display: none;
	}
	.pm-js #nav.pm-open .menu-header,
	.pm-js #nav.pm-open > ul,
	.pm-js #nav.pm-open > div > ul {
		display: block;
	}
	.pm-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		width: 100%;
		min-height: 48px;
		margin: 0;
		padding: 0 16px;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: #222;
		font: 12px Georgia, "Bitstream Charter", serif;
		letter-spacing: 0.3em;
		text-transform: uppercase;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.pm-menu-toggle:focus-visible {
		outline: 2px solid #1c9bdc;
		outline-offset: -2px;
	}
	.pm-open .pm-menu-toggle {
		background: #222;
		color: #fff;
	}
	/* Hamburger icon → X when open */
	.pm-burger {
		position: relative;
		width: 20px;
		height: 14px;
	}
	.pm-burger::before,
	.pm-burger::after,
	.pm-burger span {
		content: "";
		position: absolute;
		left: 0;
		width: 100%;
		height: 2px;
		background: currentColor;
		transition: transform .2s ease, opacity .2s ease, top .2s ease;
	}
	.pm-burger::before { top: 0; }
	.pm-burger span    { top: 6px; }
	.pm-burger::after  { top: 12px; }
	.pm-open .pm-burger::before { top: 6px; transform: rotate(45deg); }
	.pm-open .pm-burger span    { opacity: 0; }
	.pm-open .pm-burger::after  { top: 6px; transform: rotate(-45deg); }

	/* Open menu: vertical list, big tap targets, dark like the desktop hover state */
	.pm-js #nav ul {
		font-size: 13px;
	}
	.pm-js #nav li {
		float: none;
		position: relative;
		border-top: 1px solid #e3e3e3;
	}
	.pm-js #nav a {
		line-height: 1.4;
		padding: 15px 56px 15px 18px;
	}
	.pm-js #nav li:hover > a {
		background: transparent;
		color: #222;
	}
	.pm-js #nav .current_page_item > a,
	.pm-js #nav .current-menu-item > a,
	.pm-js #nav li > a:active {
		background: #222;
		color: #fff;
	}
	/* Sub-menus: inline, collapsed until their +/− button is tapped */
	.pm-js #nav ul ul,
	.pm-js #nav ul li:hover > ul {
		display: none;
		position: static;
		float: none;
		width: auto;
		box-shadow: none;
		background: #f5f5f5;
	}
	.pm-js #nav li.pm-sub-open > ul,
	.pm-js #nav ul li.pm-sub-open:hover > ul {
		display: block;
	}
	.pm-js #nav ul ul a {
		width: auto;
		background: transparent;
		color: #333;
		padding-left: 34px;
		letter-spacing: 0.15em;
	}
	.pm-js #nav ul ul :hover > a,
	.pm-js #nav ul ul a:hover {
		background: transparent;
		color: #333;
	}
	.pm-js #nav ul ul .current_page_item > a,
	.pm-js #nav ul ul .current-menu-item > a {
		background: #222;
		color: #fff;
	}
	.pm-sub-toggle {
		display: block;
		position: absolute;
		top: 0;
		right: 0;
		width: 52px;
		height: 50px;
		margin: 0;
		padding: 0;
		border: 0;
		border-left: 1px solid #e3e3e3;
		background: transparent;
		color: inherit;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.pm-sub-toggle::before,
	.pm-sub-toggle::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 14px;
		height: 2px;
		margin: -1px 0 0 -7px;
		background: #222;
		transition: transform .2s ease;
	}
	.pm-sub-toggle::after { transform: rotate(90deg); }
	.pm-sub-open > .pm-sub-toggle::after { transform: rotate(0deg); }
	.current-menu-item > .pm-sub-toggle::before,
	.current-menu-item > .pm-sub-toggle::after,
	.current_page_item > .pm-sub-toggle::before,
	.current_page_item > .pm-sub-toggle::after { background: #fff; }

	/* ---- Media ------------------------------------------------------- */
	img,
	.wp-caption,
	.wp-block-image,
	figure {
		max-width: 100%;
		height: auto;
	}
	.wp-caption img { max-width: 100%; }
	iframe,
	embed,
	object,
	video {
		max-width: 100%;
	}
	/* YouTube / oEmbed: full width, keep 16:9 */
	.wp-block-embed iframe,
	.entry-content iframe[src*="youtube"],
	.entry-content iframe[src*="vimeo"] {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
	}
	.wp-block-embed,
	.wp-block-embed__wrapper {
		margin-left: 0;
		margin-right: 0;
	}
	/* Wide tables scroll inside themselves instead of widening the page */
	.entry-content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.hentry,
	.entry-content {
		overflow-wrap: break-word;
		word-wrap: break-word;
	}

	/* ---- Forms (Contact Form 7, search, comments) -------------------- */
	/* Do not restyle the sidebar's 229px CF7 #2131 "CONTACT US" card
	   (.form-content); it has a designed background and fixed field sizes. */
	input[type=text],
	input[type=email],
	input[type=tel],
	input[type=url],
	input[type=number],
	input[type=search],
	input[type=password],
	input[type=date],
	select,
	textarea {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-height: 44px;
		padding: 8px 10px;
		font-size: 16px;               /* stops iOS zooming into fields */
		border: 1px solid #bbb;
		border-radius: 3px;
		background: #fff;
	}
	textarea {
		min-height: 140px;
	}
	input[type=submit],
	input[type=button],
	button[type=submit],
	.wpcf7-submit {
		-webkit-appearance: none;
		appearance: none;
		min-height: 46px;
		padding: 10px 22px;
		border: 0;
		border-radius: 3px;
		background: #222;
		color: #fff;
		font: 13px Georgia, "Bitstream Charter", serif;
		letter-spacing: 0.2em;
		text-transform: uppercase;
		cursor: pointer;
	}
	.wpcf7-form .wpcf7-submit {
		width: 100%;
	}
	#sidebar .form-content .wpcf7-submit,
	#sidebar .form-content .btn-send {
		width: 69px;
	}
	.wpcf7-form p {
		margin-bottom: 18px;
		line-height: 1.45;
	}
	#sidebar .form-content p {
		margin-bottom: 0;
	}
	.wpcf7-form-control-wrap {
		display: block;
		margin-top: 4px;
		margin-bottom: 14px;
	}
	#sidebar .form-content .wpcf7-form-control-wrap {
		display: inline;
		margin: 0;
	}
	.entry-content .wpcf7-form-control-wrap + br {
		display: none;     /* the wrap is now a block; the extra line break just adds a gap */
	}
	/* Radio / checkbox lists: one per line, finger-sized */
	.wpcf7-list-item,
	.wpcf7-list-item > label {
		display: flex;
		align-items: flex-start;
		margin: 0;
	}
	.wpcf7-list-item-label {
		padding-top: 4px;
	}
	.wpcf7-list-item label,
	.wpcf7-list-item {
		min-height: 36px;
		line-height: 1.4;
	}
	.wpcf7-list-item input[type=radio],
	.wpcf7-list-item input[type=checkbox] {
		flex: 0 0 auto;
		width: 20px;
		height: 20px;
		margin: 6px 10px 6px 0;
		vertical-align: middle;
	}
	/* Sidebar search: field + button on one row */
	.widget_search #searchform > div {
		display: flex;
		gap: 8px;
	}
	.widget_search #s {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
	}
	.widget_search #searchsubmit {
		flex: 0 0 auto;
		padding: 10px 14px;
		letter-spacing: 0.12em;
	}

	/* ---- Stack content + sidebar (tablets and phones) ---------------- */
	/* The live sidebar has a fixed 229px contact card. In Pilcrow's
	   two-column sidebar (~230px inside the 770px container) that card
	   overflows. Stacking also gives upright iPads a readable layout.
	   Tighter phone gutters and type stay in the 640px query. */
	body {
		padding-left: 0;
		padding-right: 0;
	}
	/* Beat Pilcrow's .two-column #container { max-width: 770px } so the
	   stacked layout can use the full tablet width (then we cap the
	   inner column for readable line length). */
	.two-column #container,
	.three-column #container,
	.no-sidebar #container,
	#wrapper #container,
	#container {
		margin: 0 auto;
		max-width: none;
	}
	#header,
	#content-box,
	#site-title,
	#pic {
		width: 100%;
		max-width: 800px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 22px;
		padding-right: 22px;
		box-sizing: border-box;
	}
	#content-box {
		clear: both;            /* #header and #nav are floats in Pilcrow */
	}
	/* Footer is a full-bleed dark band, like the call bar */
	#footer {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}
	#footer #colophon {
		padding-left: 22px;
		padding-right: 22px;
	}
	.content-sidebar #content-container,
	.sidebar-content #content-container,
	.two-column #content-container {
		float: none;
		margin: 0;
		width: 100%;
	}
	.content-sidebar #content,
	.sidebar-content #content,
	.two-column #content {
		float: none;
		margin: 0;
		width: auto;
		overflow: visible;
	}
	.two-column #sidebar,
	.two-column #secondary-sidebar,
	#sidebar,
	#secondary-sidebar {
		float: none;
		width: auto;
		max-width: none;
		margin: 0;
		padding-top: 28px;
		border-top: 2px solid #222;
	}
	#secondary-sidebar {
		border-top: 0;
		padding-top: 0;
	}

	/* Phone / blurb block at the top of the sidebar */
	#sidebar .widget_block > h1 {
		font-size: 28px;
		line-height: 1.2;
		margin: 0 0 6px;
		text-align: center;
	}
	#sidebar .widget_block > h4 {
		text-align: center !important;
		margin: 0 0 10px;
	}
	#sidebar .widget_block > p {
		max-width: 36em;
		margin-left: auto;
		margin-right: auto;
	}

	/* CF7 #2131 "CONTACT US" card: keep the 229px designed artwork
	   and field sizes. Center it in the stacked sidebar. */
	#sidebar .form-content {
		width: 229px;
		height: 357px;
		margin: 0 auto 8px;
		box-sizing: content-box;
		background-size: 229px 357px;
		background-repeat: no-repeat;
	}
	#sidebar .form-content [class*="honeypot"] input,
	#sidebar .form-content .akismet-fields-container input,
	#sidebar .form-content .akismet-fields-container textarea {
		width: 1px !important;
		max-width: 1px !important;
		height: 1px !important;
		min-height: 0 !important;
	}
	#sidebar .form-content input[type=text],
	#sidebar .form-content input[type=email],
	#sidebar .form-content input[type=tel],
	#sidebar .form-content input[type=search],
	#sidebar .form-content textarea {
		box-sizing: border-box;
		width: 197px !important;
		max-width: 197px;
		min-height: 0;
		padding: 3px 4px;
		margin-top: 1px;
		margin-bottom: 10px;
		font-size: 16px;
		line-height: 1.3;
		border-radius: 0;
	}
	#sidebar .form-content textarea {
		height: 100px !important;
		min-height: 100px;
		width: 197px !important;
		line-height: 18px;
	}
	#sidebar .form-content .wpcf7-submit,
	#sidebar .form-content .btn-send {
		float: right;
		width: 69px !important;
		height: 26px !important;
		min-height: 26px;
		margin: 10px 26px 0 0;
		padding: 1px 7px;
		border: 1px solid #54bbff;
		border-radius: 3px;
		background: #54bbff !important;
		color: #fff;
		font: 700 13px Georgia, "Bitstream Charter", serif;
		letter-spacing: 0;
		text-transform: none;
	}

	/* Block search widget (the sidebar now uses this, not widget_search) */
	#sidebar .wp-block-search__inside-wrapper {
		display: flex;
		gap: 8px;
	}
	#sidebar .wp-block-search__input {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
	}
	#sidebar .wp-block-search__button {
		flex: 0 0 auto;
		min-height: 46px;
		padding: 10px 14px;
		border: 0;
		border-radius: 3px;
		background: #222;
		color: #fff;
		font: 13px Georgia, "Bitstream Charter", serif;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		cursor: pointer;
	}

	/* Keep stacked widgets a comfortable width, centered under the card */
	#sidebar .widget {
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
	}

	/* Nested Practice Areas / Services menus stay open and tappable */
	#sidebar .widget_nav_menu li a {
		display: block;
		padding: 6px 0;
	}
	#sidebar .widget_nav_menu .sub-menu {
		display: block;
		position: static;
		float: none;
		width: auto;
		box-shadow: none;
	}

	/* ---- Sticky click-to-call bar ------------------------------------ */
	.pm-callbar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99998;
		padding-bottom: env(safe-area-inset-bottom, 0);
		background: #222;
		border-top: 2px solid #000;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .18);
		font-family: Georgia, "Bitstream Charter", serif;
		transition: transform .2s ease;
	}
	.pm-callbar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 56px;
		padding: 0 10px;
		color: #fff;
		font-size: 13px;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		text-decoration: none;
		-webkit-tap-highlight-color: rgba(255, 255, 255, .15);
	}
	.pm-callbar a:hover,
	.pm-callbar a:focus {
		color: #fff;
		text-decoration: none;
	}
	.pm-callbar__call {
		flex: 1.25 1 0;
		background: #1873a1;        /* Pilcrow's link-hover blue */
		font-weight: bold;
	}
	.pm-callbar__call:active { background: #135d83; }
	.pm-callbar__contact {
		flex: 1 1 0;
		border-left: 1px solid #444;
	}
	.pm-callbar__contact:active { background: #000; }
	.pm-icon { flex: 0 0 auto; }
	body.pm-has-callbar {
		padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
	}
	/* Slide the bar away while the keyboard is open in a form field */
	body.pm-typing .pm-callbar {
		transform: translateY(110%);
	}
	/* Our bar replaces the 104px "Lead Call Buttons" plugin bar */
	body.pm-has-callbar #lcb_main_area,
	body.pm-has-callbar .main_buttons {
		display: none !important;
	}
	body.pilcrow-mobile.pm-has-callbar {
		margin-bottom: 0;
	}
}

/* Logged-in admin bar is 46px below 782px (WP core). Keep the sticky MENU
   and its open-menu max-height clear of it. Still only applies with the
   tablet/phone #nav rules above. */
@media screen and (max-width: 782px) {
	.admin-bar #nav {
		top: 46px;
	}
	.admin-bar.pm-js #nav.pm-open {
		max-height: calc(100vh - 46px - 56px - env(safe-area-inset-bottom, 0px));
	}
}

/* ==========================================================================
   ≤ 640px — PHONES: single column, larger readable type
   ========================================================================== */
@media screen and (max-width: 640px) {

	body {
		padding-left: 0;
		padding-right: 0;
	}
	.two-column #container,
	.three-column #container,
	.no-sidebar #container,
	#wrapper #container,
	#container {
		margin: 0;
		max-width: none;
	}
	#header,
	#footer,
	#site-title,
	#pic {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}
	#header {
		margin-bottom: 18px;
	}
	#nav {
		margin-bottom: 18px;
	}
	#site-title a {
		font-size: 29px;
		padding: 16px 16px 12px;
	}
	#nav {
		box-sizing: border-box;
	}
	#pic img,
	#header img {
		border-bottom-width: 2px;
	}

	/* Content + sidebar stack, with comfortable side gutters */
	#content-box {
		clear: both;            /* #header and #nav are floats in Pilcrow */
		padding: 0 18px;
		box-sizing: border-box;
	}
	.content-sidebar #content-container,
	.sidebar-content #content-container,
	.two-column #content-container {
		float: none;
		margin: 0;
		width: 100%;
	}
	.content-sidebar #content,
	.sidebar-content #content,
	.two-column #content {
		float: none;
		margin: 0;
		width: auto;
		overflow: visible;
	}
	.two-column #sidebar,
	.two-column #secondary-sidebar,
	#sidebar,
	#secondary-sidebar {
		float: none;
		width: auto;
		margin: 0;
		padding-top: 22px;
		border-top: 2px solid #222;
	}
	#secondary-sidebar {
		border-top: 0;
		padding-top: 0;
	}

	/* Type */
	body,
	input,
	textarea {
		font-size: 17px;
		line-height: 1.65;
	}
	.entry-title,
	#content .entry-title {
		font-size: 27px;
		line-height: 1.22;
	}
	.entry-content h2 {
		font-size: 23px;
		line-height: 1.25;
	}
	.entry-content h3 {
		font-size: 20px;
		line-height: 1.3;
	}
	.page-title {
		font-size: 20px;
	}
	ul,
	ol {
		margin-left: 1.4em;
	}
	.entry-content li {
		margin-bottom: .35em;
	}
	blockquote {
		padding: 10px 14px 2px;
	}

	/* Floated images: keep small floats, un-float anything large */
	.entry-content .alignleft,
	.entry-content .alignright,
	.entry-content img.alignleft,
	.entry-content img.alignright {
		max-width: 42%;
	}
	.entry-content .wp-block-image .alignleft img,
	.entry-content .wp-block-image .alignright img {
		max-width: 100%;
	}
	.entry-content .aligncenter,
	.entry-content .alignnone,
	.entry-content .wp-caption {
		float: none;
		margin-left: auto;
		margin-right: auto;
	}

	/* Post meta / prev-next links */
	.entry-meta {
		float: none;
		display: inline-block;
		line-height: 1.6;
		padding: 4px 8px;
		font-size: 12px;
	}
	.jump {
		float: none;
		display: block;
		padding: 4px 0;
	}
	.entry-links {
		font-size: 13px;
	}
	/* Single posts: show prev/next after the article instead of above it */
	.single #nav-above {
		display: none;
	}
	.single #nav-below {
		display: block;
		margin-top: 1.2em;
		border-top: 1px solid #ddd;
	}
	.nav-previous,
	.nav-next {
		float: none;
		width: auto;
		text-align: left;
	}
	.navigation a {
		display: block;
		padding: 10px 0;
	}

	/* Sidebar widgets: larger, tappable */
	.widget {
		font-size: 15px;
		line-height: 1.45;
		margin-bottom: 26px;
	}
	.widget-title,
	.sidebar-list h2 {
		font-size: 22px;
		line-height: 1.3;
		margin-bottom: 8px;
	}
	.widget ul {
		padding: 6px 14px 6px 30px;
	}
	.widget li {
		padding: 7px 0;
	}
	.widget li a {
		display: block;
		padding: 2px 0;
	}
	.widget ul ul {
		padding: 0;
		margin-left: 0;
	}

	/* Footer: full-bleed dark band that also sits behind the call bar */
	#footer {
		padding-left: 0;
		padding-right: 0;
		text-align: center;
	}
	#footer #colophon {
		padding: 14px 18px;
		font-size: 14px;
		line-height: 1.6;
	}
	body.pm-has-callbar {
		padding-bottom: 0;
	}
	body.pm-has-callbar #footer #colophon {
		padding-bottom: calc(14px + 58px + env(safe-area-inset-bottom, 0px));
	}
	#footer .widget-area,
	#first,
	#second {
		float: none;
		width: auto;
	}
	#site-info,
	#site-generator {
		float: none;
		width: auto;
		text-align: center;
	}

	/* Call bar: compact phone typography */
	.pm-callbar a {
		font-size: 12px;
		letter-spacing: 0.1em;
	}
}

/* Very narrow phones (≤ 360px): shorten the call label to fit */
@media screen and (max-width: 360px) {
	#site-title a { font-size: 26px; }
	.pm-callbar__num { display: none; }
	.pm-callbar__label::after { content: " now"; }
}
