/*
 * She's Up and Away — the new-look sidebar (site-wide)
 * Restyles the pipdig sidebar widgets to match the scrapbook look:
 * typewriter labels, a taped Polaroid for the profile photo, round stamp-style social buttons.
 * Widgets keep working exactly as before; this file only changes how they look.
 */

.site-sidebar {
	--sb-paper: #FFFDF7;
	--sb-polaroid: #FBF9F3;
	--sb-line: #E6D8BF;
	--sb-ink: #22303A;
	--sb-body: #2A343B;
	--sb-muted: #5B5045;
	--sb-teal: #1F5F66;
	--sb-serif: 'Fraunces', Georgia, serif;
	--sb-sans: 'Karla', system-ui, -apple-system, sans-serif;
	--sb-mono: 'Courier Prime', ui-monospace, Menlo, monospace;
	--sb-hand: 'Nothing You Could Do', cursive;
	--sb-shadow: 0 8px 22px rgba(34, 48, 58, .14);
	--sb-tape: polygon(0 12%, 3% 0, 97% 0, 100% 18%, 98% 38%, 100% 58%, 97% 78%, 100% 100%, 3% 100%, 0 86%, 2% 66%, 0 46%, 3% 26%);
	font-family: var(--sb-sans);
	color: var(--sb-body);
}

.site-sidebar .widget { padding: 0 8px 30px !important; margin-bottom: 0 !important; border: 0 !important; background: none !important; position: relative; }

/* ---------- Widget titles: typewriter label between two fine rules ---------- */
.site-sidebar .widget-title {
	display: flex; align-items: center; gap: 12px; margin: 0 0 18px !important; padding: 0 !important;
	background: none !important; border: 0 !important; box-shadow: none !important; text-align: center;
}
.site-sidebar .widget-title::before, .site-sidebar .widget-title::after { content: ""; flex: 1; height: 0; border-top: 1px solid var(--sb-line); }
.site-sidebar .widget-title span {
	font-family: var(--sb-mono) !important; font-weight: 700 !important; font-size: 12px !important; letter-spacing: .16em !important;
	text-transform: uppercase !important; color: var(--sb-teal) !important; background: none !important; padding: 0 !important; line-height: 1.3;
}

/* ---------- Search ---------- */
.site-sidebar .widget_search .form-group { position: relative; margin: 0; }
.site-sidebar .widget_search input[type="search"],
.site-sidebar .widget_search .form-control {
	width: 100%; height: auto; padding: 11px 34px 9px 4px !important; box-sizing: border-box;
	background: transparent !important; border: 0 !important; border-bottom: 1.5px solid var(--sb-ink) !important; border-radius: 0 !important;
	box-shadow: none !important; font-family: var(--sb-sans) !important; font-size: 16px !important; color: var(--sb-ink) !important;
}
.site-sidebar .widget_search input::placeholder { font-family: var(--sb-hand); font-size: 17px; color: var(--sb-muted); opacity: 1; }
.site-sidebar .widget_search input:focus { outline: none; border-bottom-color: var(--sb-teal) !important; }
.site-sidebar .widget_search .form-group::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5F66' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Profile: the photo becomes a taped Polaroid ---------- */
.site-sidebar .pipdig_widget_profile { text-align: left; padding-top: 14px !important; }
.site-sidebar .pipdig_widget_profile img {
	display: block; width: calc(100% - 26px) !important; max-width: 260px; height: auto; margin: 0 auto 26px !important;
	padding: 10px 10px 34px; box-sizing: border-box; background: var(--sb-polaroid); box-shadow: var(--sb-shadow);
	transform: rotate(-2deg); border: 0 !important; border-radius: 0 !important;
}
.site-sidebar .pipdig_widget_profile::before {
	content: ""; position: absolute; top: 2px; left: 50%; width: 92px; height: 24px; margin-left: -46px; z-index: 2;
	background: url(../img/tape-daisy.svg) left center / auto 100% repeat-x;
	opacity: .92; transform: rotate(-4deg); clip-path: var(--sb-tape); box-shadow: 0 1px 2px rgba(34, 48, 58, .14);
}
.site-sidebar .pipdig_widget_profile p { font-family: var(--sb-sans) !important; font-size: 15px !important; line-height: 1.65 !important; color: var(--sb-body) !important; margin: 0 0 12px !important; text-align: left; }
.site-sidebar .pipdig_widget_profile p:first-of-type { font-family: var(--sb-serif) !important; font-size: 19px !important; line-height: 1.35 !important; color: var(--sb-ink) !important; }
.site-sidebar .pipdig_widget_profile::after {
	content: "Charlotte x"; display: block; margin-top: 2px; font-family: var(--sb-hand); font-size: 22px; color: var(--sb-teal); transform: rotate(-3deg); transform-origin: left;
}

/* ---------- Social icons: round stamp buttons ---------- */
.site-sidebar .socialz { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.site-sidebar .socialz a {
	display: inline-grid !important; place-items: center; width: 40px; height: 40px; margin: 0 !important; padding: 0 !important;
	border-radius: 50%; border: 1px solid var(--sb-line); background: var(--sb-paper); color: var(--sb-teal) !important;
	transition: background .2s, color .2s, transform .2s; text-decoration: none !important;
}
.site-sidebar .socialz a i { font-size: 15px !important; line-height: 1 !important; color: inherit !important; }
.site-sidebar .socialz a br, .site-sidebar .socialz a span { display: none !important; }
.site-sidebar .socialz a:hover, .site-sidebar .socialz a:focus-visible { background: var(--sb-teal); color: #FFFDF7 !important; transform: rotate(-8deg); }

/* ---------- Image widgets (e.g. the Archive picture): a second Polaroid, no tape ---------- */
.site-sidebar .pipdig_image_widget .p3_image_widget_wrapper { padding: 10px 10px 12px; background: var(--sb-polaroid); box-shadow: var(--sb-shadow); transform: rotate(1.5deg); margin: 4px 12px 0; }
.site-sidebar .pipdig_image_widget img { display: block; width: 100%; height: auto; margin: 0 !important; }

/* ---------- Location map: framed like a pinned postcard ---------- */
.site-sidebar .pipdig_widget_clw [id^="map_id"] { padding: 8px; background: var(--sb-polaroid); box-shadow: var(--sb-shadow); transform: rotate(-1deg); box-sizing: content-box; }

/* ---------- Standard WordPress list widgets (categories, recent posts, archives, if you add them) ---------- */
.site-sidebar :is(.widget_categories, .widget_recent_entries, .widget_archive, .widget_pages, .widget_nav_menu) ul { padding-left: 0; margin: 0; list-style: none; }
.site-sidebar :is(.widget_categories, .widget_recent_entries, .widget_archive, .widget_pages, .widget_nav_menu) li {
	font-family: var(--sb-serif); font-size: 16px; line-height: 1.4; padding: 9px 2px; border-bottom: 1px dotted #CDBB9B;
}
.site-sidebar :is(.widget_categories, .widget_recent_entries, .widget_archive, .widget_pages, .widget_nav_menu) a { color: var(--sb-ink); text-decoration: none; }
.site-sidebar :is(.widget_categories, .widget_recent_entries, .widget_archive, .widget_pages, .widget_nav_menu) a:hover { color: var(--sb-teal); }
