/*
Theme Name: Big Sky Books 2026
Theme URI: https://bigskybooks.co.uk
Description: Child theme of Twenty Twenty-Five for Big Sky Books, an independent community bookshop on the Isle of Tiree. A simple one-page "online business card" with opening hours, events, about, contact, map and social feed.
Author: Isle Develop CIC
Author URI: https://isledevelop.com
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bigskybooks-2026
*/

/* ==============================================
   0. Tokens
   ============================================== */

:root {
	--bsb-slate: #3E5568;
	--bsb-sky: #4484A8;
	--bsb-pale: #EDF1F3;
	--bsb-mist: #DDE8EE;
	--bsb-link: #2F6485;
	--bsb-petal: #9CC4DB;
	--bsb-white: #FFFFFF;
	--bsb-ink: #2E4152;
	--bsb-line: #D5E0E7;
	--bsb-radius: 16px;
	--bsb-ink-hover: #2C3E4E;
	--bsb-ease: 0.2s ease;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* ==============================================
   1. Base / accessibility
   ============================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible {
	outline: 3px solid var(--bsb-slate);
	outline-offset: 3px;
	border-radius: 4px;
}

.has-deep-slate-blue-background-color a:focus-visible,
.has-deep-slate-blue-background-color button:focus-visible,
.has-deep-slate-blue-background-color .wp-element-button:focus-visible,
.has-accent-one-background-color a:focus-visible,
.has-accent-one-background-color button:focus-visible,
.has-accent-one-background-color .wp-element-button:focus-visible {
	outline-color: var(--bsb-white);
}

/* Sections sit flush against each other. */
.bsb-section {
	margin-block: 0 !important;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Pages other than the front page: keep a side gutter now the root padding is 0. */
.wp-site-blocks > main.wp-block-group:not(.bsb-front) {
	padding-inline: var(--wp--preset--spacing--50, 2.5rem);
}

/* Headings inside dark panels inherit the light text colour. */
.has-deep-slate-blue-background-color :where(h1, h2, h3, h4, h5, h6) {
	color: inherit;
}

/* ==============================================
   2. Header & navigation
   ============================================== */

.bsb-brand .wp-block-site-title {
	margin: 0;
	line-height: 1.1;
}

.bsb-brand .wp-block-site-title a {
	text-decoration: none;
	white-space: nowrap;
}

.bsb-tagline {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bsb-link);
}

.bsb-nav .wp-block-navigation-item__content {
	padding: 0.65rem 0.15rem;
	text-underline-offset: 6px;
	text-decoration-thickness: 3px;
	text-decoration-color: transparent;
	text-decoration-line: underline;
	transition: text-decoration-color var(--bsb-ease);
}

.bsb-nav .wp-block-navigation-item__content:hover {
	text-decoration-color: var(--bsb-sky);
}

/* Bigger tap target for the menu button. Core decides when it shows, so don't touch "display" here. */
.bsb-nav .wp-block-navigation__responsive-container-open,
.bsb-nav .wp-block-navigation__responsive-container-close {
	min-width: 48px;
	min-height: 48px;
	align-items: center;
	justify-content: center;
}

/* Desktop: hide the menu button and show the normal links. Phone: the reverse. */
@media (min-width: 600px) {
	.bsb-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none;
	}

	.bsb-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: block;
		position: relative;
		width: auto;
		background: transparent;
	}
}

/* Mobile menu: left-aligned items with breathing room. */
.bsb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding: 2rem;
}

.bsb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	width: 100%;
}

.bsb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	justify-content: flex-start !important;
}

.bsb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	/*width: 100%;*/
	text-align: left !important;
	padding: 1rem !important;
	font-size: 1.375rem;
}

/* ==============================================
   3. Buttons
   ============================================== */

.wp-block-button__link,
.wp-element-button {
	transition: background-color var(--bsb-ease), color var(--bsb-ease), border-color var(--bsb-ease);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--bsb-slate);
	border: 2px solid var(--bsb-slate);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--bsb-mist);
	color: var(--bsb-slate);
}

/* Light button for use on dark panels. */
.bsb-btn-light > .wp-block-button__link {
	background: var(--bsb-pale);
	color: var(--bsb-slate);
}

.bsb-btn-light > .wp-block-button__link:hover {
	background: var(--bsb-white);
	color: var(--bsb-slate);
}

/* ==============================================
   4. Hero
   ============================================== */

.bsb-lede {
	font-size: var(--wp--preset--font-size--large);
	max-width: 30ch;
}

.bsb-pill {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0.3rem 1.1rem 0.3rem 0.85rem;
	background: var(--bsb-white);
	border: 2px solid var(--bsb-sky);
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
}

.bsb-pill__dot {
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: var(--bsb-sky);
	flex: none;
}

/* ==============================================
   5. Images: arch styles (Image block > Styles)
   ============================================== */

.wp-block-image.is-style-arch img {
	border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px;
}

.wp-block-image.is-style-arch-corner img {
	border-radius: 16px 16px 200px 16px;
}

.wp-block-image img {
	height: auto;
}

/* ==============================================
   6. Opening hours (temporary shortcode output)
   ============================================== */

.bsb-hours {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.0625rem;
}

.bsb-hours th,
.bsb-hours td {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--bsb-line);
	font-weight: 400;
	text-align: left;
}

.bsb-hours td {
	text-align: right;
	white-space: nowrap;
}

.bsb-hours tr:last-child th,
.bsb-hours tr:last-child td {
	border-bottom-color: transparent;
}

.bsb-hours .is-today th,
.bsb-hours .is-today td {
	background: var(--bsb-pale);
	font-weight: 700;
	border-bottom-color: transparent;
}

.bsb-today-chip {
	display: inline-block;
	margin-left: 0.6rem;
	padding: 0.1rem 0.6rem;
	background: var(--bsb-slate);
	color: var(--bsb-white);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: middle;
}

/* ==============================================
   7. Events (Query Loop cards)
   ============================================== */

.wp-block-post-template.is-layout-grid > li {
	display: flex;
}

.bsb-card {
	width: 100%;
	background: var(--bsb-white);
	border: 1px solid var(--bsb-line);
	border-radius: var(--bsb-radius);
	overflow: hidden;
}

.bsb-card .wp-block-post-featured-image {
	margin: 0;
}

.bsb-card .wp-block-post-featured-image img {
	display: block;
	width: 100%;
}

.bsb-card .wp-block-post-title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.25;
}

.bsb-card .wp-block-post-title a {
	color: var(--bsb-slate);
	text-decoration: none;
}

.bsb-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

.bsb-card .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 0.4rem;
	padding: 0.35rem 0;
	font-weight: 700;
}

.bsb-eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bsb-link);
}

/* ==============================================
   8. Contact
   ============================================== */

.bsb-label {
	margin: 0;
	font-weight: 700;
	color: var(--bsb-slate);
}

.bsb-icon {
	position: relative;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--bsb-sky);
}

.bsb-icon::before {
	content: "";
	position: absolute;
	inset: 12px;
	background: var(--bsb-white);
	-webkit-mask: var(--bsb-mask) center / contain no-repeat;
	mask: var(--bsb-mask) center / contain no-repeat;
}

.bsb-icon--pin {
	--bsb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.2A7 7 0 0 1 19 9.8C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

.bsb-icon--mail {
	--bsb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");
}

.bsb-icon--share {
	--bsb-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='18' r='2.5'/%3E%3Cpath d='M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6'/%3E%3C/svg%3E");
}

.bsb-social.wp-block-social-links {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.bsb-social .wp-social-link a {
	padding: 0.35rem 0;
	color: var(--bsb-link);
}

.bsb-social .wp-social-link a:hover {
	color: var(--bsb-slate);
}

.bsb-social .wp-block-social-link-label {
	font-weight: 700;
	font-size: 1.125rem;
}

.bsb-map {
	border-radius: var(--bsb-radius);
	overflow: hidden;
	line-height: 0;
}

.bsb-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 400px;
	border: 0;
}

/* ==============================================
   9. Curator.io feed
   ============================================== */

.crt-widget {
	padding: 0 !important;
}

/* ==============================================
   10. Footer: flower border + petals
   ============================================== */

.bsb-footer {
	position: relative;
	overflow: hidden;
	padding-bottom: calc(80px + var(--wp--preset--spacing--50, 1rem)) !important;
}

.bsb-footer::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 80px;
	background: url("assets/images/flowersilhouettes.png") repeat-x left bottom / auto 80px;
	pointer-events: none;
	z-index: 0;
}

.bsb-footer__inner {
	position: relative;
	z-index: 2;
}

/* Light links on the dark footer. */
.bsb-footer .wp-block-site-title a,
.bsb-footer .wp-block-navigation a,
.bsb-footer .wp-block-navigation-item__content {
	color: var(--bsb-pale);
}

.bsb-footer .wp-block-site-title a {
	color: var(--bsb-white);
}

.bsb-footer > .bsb-petals {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: auto;
	max-width: none;
	margin: 0 !important;
	pointer-events: none;
	z-index: 1;
	--rise: -80px;
}

/* Dandelion seeds. Two shapes (odd = seed 1, even = seed 2), drawn as masks so
   they take the colour set by "background" below. Each shape's own proportions
   are set with aspect-ratio. The footer HTML still uses <span class="petal">. */
.bsb-petals {
	--bsb-seed-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 638 1020'%3E%3Cpath fill-rule='evenodd' d='M373 18 369 18 362 26 356 64 359 130 362 137 359 193 344 250 344 257 335 292 335 299 332 304 329 297 328 272 325 259 325 240 322 230 319 197 316 193 318 189 315 179 316 173 313 165 313 143 316 124 316 84 313 77 308 73 299 75 292 84 291 106 293 125 299 147 299 161 307 177 309 192 318 199 316 201 313 199 310 200 314 240 317 249 317 263 320 276 323 324 323 332 321 334 316 328 316 324 313 320 313 316 307 301 295 278 280 232 277 216 273 206 274 193 271 185 271 146 268 132 262 123 253 119 248 120 243 133 245 157 257 187 258 194 263 202 269 227 281 263 299 304 305 323 308 327 309 331 307 333 292 316 269 280 232 209 223 188 214 157 208 111 202 94 196 86 189 81 185 81 179 87 179 105 185 130 197 154 206 179 215 194 218 205 227 220 230 230 254 275 272 302 278 315 276 317 222 270 193 239 178 220 167 203 157 168 152 161 145 141 133 120 121 108 112 106 107 108 104 112 102 125 104 134 125 166 137 182 146 190 164 218 191 254 245 305 285 335 289 339 287 341 246 321 228 309 210 300 184 279 169 270 163 263 141 246 109 215 91 194 85 174 79 162 73 154 67 141 49 117 32 105 22 105 17 109 17 119 29 143 41 161 71 189 118 239 191 299 218 317 271 344 274 347 272 349 266 348 261 345 248 342 244 339 223 333 211 327 203 326 195 321 179 315 176 312 167 311 166 307 155 303 126 285 109 269 93 249 78 240 73 234 61 228 52 225 44 225 38 230 38 238 61 260 83 278 91 281 99 287 115 290 136 305 153 313 158 318 178 325 190 332 261 356 319 368 322 371 314 402 308 416 299 448 293 461 281 523 278 566 274 591 271 711 265 786 269 831 274 834 274 836 270 837 269 839 275 869 278 911 281 918 281 926 290 959 302 981 315 989 323 998 332 1004 343 1004 346 1002 347 995 343 967 322 918 295 875 289 852 290 843 284 815 282 780 282 718 284 702 283 624 286 597 286 574 289 566 292 522 305 460 325 405 331 380 336 374 339 374 346 367 359 365 365 362 387 359 392 356 400 356 430 347 490 320 500 314 503 308 508 306 514 307 530 296 553 293 583 281 605 266 613 257 619 245 619 240 613 233 606 234 583 243 547 267 534 281 496 306 427 338 397 347 392 345 411 332 414 332 441 317 467 299 481 293 488 287 499 284 511 278 532 263 571 224 574 216 583 204 583 198 580 194 577 192 569 193 539 213 524 228 489 276 427 315 412 321 388 336 369 345 367 343 404 311 446 267 458 263 469 254 496 212 505 189 508 179 510 159 505 153 501 153 491 164 464 205 458 220 452 248 449 252 387 315 361 336 342 348 340 346 341 342 358 317 367 300 382 281 400 246 418 218 440 171 454 152 458 141 466 128 484 77 484 59 481 54 473 54 470 61 461 73 446 116 443 139 437 153 436 160 422 186 416 203 407 221 395 238 383 262 342 324 340 322 340 317 346 294 347 283 352 269 353 255 358 239 371 177 371 166 373 162 373 157 371 157 373 146 371 142 372 141 374 143 376 141 375 136 382 117 382 29Z'/%3E%3C/svg%3E");
	--bsb-seed-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 544 706'%3E%3Cpath fill-rule='evenodd' d='M383 409 387 415 394 420 417 426 433 428 443 426 443 424 424 421ZM449 352 450 357 455 361 464 362 468 358 472 361 476 360 472 355ZM353 102 339 107 319 121 303 136 285 158 261 199 252 218 250 229 255 232 257 238 260 232 260 227 263 225 263 217 287 170 308 143 332 120 354 104ZM197 18 192 21 186 43 182 82 181 124 183 148 189 179 192 184 192 189 201 220 213 246 213 249 210 251 180 221 159 189 146 157 137 117 130 98 126 100 129 108 132 134 141 168 156 201 171 221 171 224 190 244 190 246 187 248 184 247 166 235 154 225 125 194 111 176 92 144 80 116 77 115 75 118 81 133 81 137 90 156 108 186 129 211 156 237 170 246 171 249 168 250 155 241 132 229 101 200 80 173 65 147 67 143 48 93 45 89 41 88 35 52 33 51 31 55 31 69 36 99 40 111 45 109 47 113 45 115 45 126 78 187 99 214 117 231 144 249 158 255 179 270 179 272 174 274 161 268 149 265 104 244 94 241 82 234 52 211 45 209 46 213 96 249 113 255 123 261 158 276 162 276 177 282 188 282 194 286 198 284 205 289 207 294 201 298 187 301 180 305 171 304 163 306 119 304 110 301 93 299 94 303 102 306 123 309 141 314 175 314 178 311 185 313 176 319 148 328 142 328 134 331 123 331 121 333 123 336 157 333 187 322 189 326 177 338 114 415 93 449 69 498 54 548 45 563 42 577 30 596 24 611 24 615 18 627 18 655 30 684 36 687 42 684 53 669 62 648 63 615 59 592 59 574 68 546 71 529 80 509 83 496 93 476 116 441 119 433 131 419 149 392 157 384 170 364 205 327 206 323 214 315 216 318 207 349 207 356 201 382 199 403 201 410 204 406 206 386 212 365 213 352 222 321 225 313 228 311 231 313 231 333 240 373 246 389 255 400 257 400 258 397 251 386 242 351 239 334 239 327 241 325 249 342 261 359 285 378 296 382 299 378 306 384 333 399 374 414 379 414 376 411 376 406 342 394 309 376 275 344 269 335 272 333 306 351 348 366 396 375 407 375 403 371 403 367 376 364 337 354 300 339 297 336 299 334 312 339 320 340 322 342 349 348 446 360 442 354 442 351 376 343 365 341 363 339 365 337 380 339 388 337 417 338 435 336 445 330 451 330 450 329 454 325 459 329 469 328 473 325 475 327 494 327 522 321 525 318 524 315 501 319 463 322 355 322 295 313 267 301 265 299 268 297 275 300 316 309 344 309 380 303 388 300 395 300 420 294 426 291 455 285 461 282 467 282 476 279 484 273 485 270 480 269 478 271 439 280 410 289 402 289 368 298 343 301 314 301 289 295 283 292 278 292 272 289 267 289 265 287 267 285 293 285 327 279 333 276 348 273 383 261 400 249 399 246 393 247 382 253 348 265 311 274 290 277 272 277 268 274 273 270 323 246 359 222 402 189 419 170 421 160 417 157 408 170 397 181 334 229 320 238 266 265 264 262 285 239 349 177 372 160 395 148 381 149 369 155 339 175 294 217 259 253 257 254 254 252 255 245 247 241 246 243 249 246 250 251 244 256 240 255 238 253 239 245 237 244 236 176 242 145 251 122 251 118 254 114 257 101 253 100 250 103 237 130 228 165 226 208 224 210 222 208 213 153 210 103 218 56 226 34 222 34 219 37 213 49 207 66 201 97 204 161 212 205 210 209 207 205 200 176 197 170 191 132 191 67ZM257 336 269 351 294 374 292 376 279 367 266 354 257 343 255 339ZM232 254 231 258 223 257 229 252ZM48 130 52 128 54 132 50 133Z'/%3E%3C/svg%3E");
}

.petal {
	position: absolute;
	left: var(--l, 50%);
	bottom: 60px;
	width: calc(var(--w, 12px) * 2.6);   /* seed width = old petal size x 2.6 */
	aspect-ratio: 638 / 1020;
	background: var(--bsb-pale);
	-webkit-mask: var(--bsb-seed-1) center / contain no-repeat;
	mask: var(--bsb-seed-1) center / contain no-repeat;
	opacity: 0;
	animation: petal-rise var(--dur, 14s) linear var(--delay, 0s) infinite;
}

.petal:nth-child(even) {
	aspect-ratio: 544 / 706;
	background: var(--bsb-petal);
	-webkit-mask: var(--bsb-seed-2) center / contain no-repeat;
	mask: var(--bsb-seed-2) center / contain no-repeat;
}

.petal:nth-child(1)  { --l: 4%;  --dx: 34px;  --dur: 15s; --delay: -2s;  --w: 12px; }
.petal:nth-child(2)  { --l: 11%; --dx: -28px; --dur: 12s; --delay: -7s;  --w: 9px;  }
.petal:nth-child(3)  { --l: 19%; --dx: 46px;  --dur: 17s; --delay: -11s; --w: 14px; }
.petal:nth-child(4)  { --l: 27%; --dx: -40px; --dur: 13s; --delay: -4s;  --w: 10px; }
.petal:nth-child(5)  { --l: 35%; --dx: 30px;  --dur: 16s; --delay: -9s;  --w: 12px; }
.petal:nth-child(6)  { --l: 44%; --dx: -36px; --dur: 11s; --delay: -1s;  --w: 9px;  }
.petal:nth-child(7)  { --l: 52%; --dx: 42px;  --dur: 18s; --delay: -13s; --w: 13px; }
.petal:nth-child(8)  { --l: 60%; --dx: -30px; --dur: 14s; --delay: -6s;  --w: 10px; }
.petal:nth-child(9)  { --l: 68%; --dx: 38px;  --dur: 15s; --delay: -10s; --w: 12px; }
.petal:nth-child(10) { --l: 76%; --dx: -44px; --dur: 12s; --delay: -3s;  --w: 9px;  }
.petal:nth-child(11) { --l: 84%; --dx: 32px;  --dur: 17s; --delay: -8s;  --w: 14px; }
.petal:nth-child(12) { --l: 91%; --dx: -26px; --dur: 13s; --delay: -5s;  --w: 10px; }
.petal:nth-child(13) { --l: 96%; --dx: -34px; --dur: 16s; --delay: -12s; --w: 11px; }

/* Seeds drift up and sway gently from side to side (no full spin, so they stay the right way up). */
@keyframes petal-rise {
	0%   { transform: translate(0, 0) rotate(-10deg); opacity: 0; }
	12%  { opacity: 0.85; }
	50%  { transform: translate(calc(var(--dx, 30px) * 0.4), calc(var(--rise, -440px) * 0.5)) rotate(12deg); opacity: 0.7; }
	100% { transform: translate(var(--dx, 30px), var(--rise, -440px)) rotate(-6deg); opacity: 0; }
}

/* Kind to people who prefer less motion: no petals at all. */
@media (prefers-reduced-motion: reduce) {
	.petal { display: none; }
}

@media (max-width: 600px) {
	.bsb-footer {
		padding-bottom: calc(80px + var(--wp--preset--spacing--50, 2.5rem)) !important;
	}

	.bsb-footer::after {
		height: 80px;
		background-size: auto 80px;
	}

	.bsb-footer > .bsb-petals {
		--rise: -100px;
	}

	.petal {
		bottom: 40px;
	}

	/* Fewer petals on phones. */
	.petal:nth-child(n+8) { display: none; }
}

/* ==============================================
   11. Safety net
   Works even if saved Global Styles or an older theme have changed
   the palette, so the section colours and button shapes always match the design.
   ============================================== */

.has-base-background-color      { background-color: var(--bsb-pale) !important; }
.has-white-background-color     { background-color: var(--bsb-white) !important; }
.has-pale-blue-background-color { background-color: var(--bsb-mist) !important; }
.has-deep-slate-blue-background-color { background-color: var(--bsb-slate) !important; }
.has-base-color                 { color: var(--bsb-pale) !important; }
.has-deep-slate-blue-color      { color: var(--bsb-slate) !important; }

body {
	background-color: var(--bsb-pale);
	color: var(--bsb-ink);
}

.wp-site-blocks .wp-block-heading,
.wp-site-blocks .wp-block-site-title {
	font-family: 'Young Serif', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	color: var(--bsb-slate);
}

.has-deep-slate-blue-background-color .wp-block-heading,
.has-deep-slate-blue-background-color .wp-block-site-title {
	color: inherit;
}

.wp-site-blocks .wp-block-button .wp-block-button__link,
.wp-site-blocks .wp-block-button .wp-element-button {
	border-radius: 999px;
	padding: 0.8rem 1.75rem;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	background-color: var(--bsb-sky);
	color: var(--bsb-white);
}

.wp-site-blocks .wp-block-button .wp-block-button__link:hover {
	background-color: var(--bsb-slate);
	color: var(--bsb-white);
}

.wp-site-blocks .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--bsb-slate);
	border: 2px solid var(--bsb-slate);
}

.wp-site-blocks .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--bsb-mist);
	color: var(--bsb-slate);
}

.wp-site-blocks .wp-block-button.bsb-btn-light > .wp-block-button__link {
	background: var(--bsb-pale);
	color: var(--bsb-slate);
}

.wp-site-blocks .wp-block-button.bsb-btn-light > .wp-block-button__link:hover {
	background: var(--bsb-white);
	color: var(--bsb-slate);
}

/* ==============================================
   12. Signature blue (#4484A8)
   ============================================== */

.has-accent-one-background-color { background-color: var(--bsb-sky) !important; }
.has-accent-one-color            { color: var(--bsb-sky) !important; }

/* Header (title, flower and logo are in section 17) */
.wp-site-blocks .has-accent-one-background-color .wp-block-site-title,
.wp-site-blocks .has-accent-one-background-color .wp-block-site-title a,
.wp-site-blocks .has-accent-one-background-color .wp-block-heading {
	color: var(--bsb-white);
}

.bsb-header .bsb-nav {
	font-size: 1.1rem;
	font-weight: normal;
}

.bsb-header .wp-block-navigation a,
.bsb-header .wp-block-navigation-item__content,
.bsb-header .wp-block-navigation__responsive-container-open {
	color: var(--bsb-white);
}

.bsb-header .wp-block-navigation-item__content:hover {
	text-decoration-color: var(--bsb-white);
}

/* Short blue bar under each section heading */
.bsb-section h2.wp-block-heading::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 4px;
	margin-top: 0.6rem;
	border-radius: 2px;
	background: var(--bsb-sky);
}

.has-accent-one-background-color h2.wp-block-heading::after {
	background: var(--bsb-white);
}

.bsb-bookshop h2.wp-block-heading::after {
	content: none;
}

/* ==============================================
   13. Stacked layout (tablet and phone):
   square, edge-to-edge hero/about images and map,
   sitting snug against the neighbouring text
   ============================================== */

@media (max-width: 781px) {
	.bsb-hero.bsb-section {
		padding-top: 0 !important;
	}

	.bsb-about.bsb-section,
	.bsb-contact.bsb-section {
		padding-bottom: 0 !important;
	}

	.bsb-snug.wp-block-columns {
		row-gap: 0 !important;
	}

	.bsb-snug > .wp-block-column.bsb-bleed {
		margin-inline: calc(var(--wp--preset--spacing--50, 1.25rem) * -1);
	}

	.bsb-snug > .wp-block-column:not(.bsb-bleed) {
		padding-block: var(--wp--preset--spacing--50, 1.25rem);
	}

	.bsb-hero .bsb-snug > .wp-block-column:not(.bsb-bleed) {
		padding-bottom: 0;
	}

	.bsb-bleed .wp-block-image {
		margin: 0;
	}

	.bsb-bleed .wp-block-image img {
		width: 100%;
		border-radius: 0 !important;
	}

	.bsb-bleed .bsb-map,
	.bsb-bleed .bsb-map iframe {
		border-radius: 0 !important;
	}
}

/* ==============================================
   14. Half-and-half sections (Media & Text block)
   Photo fills one half edge to edge, text sits in the other.
   In the editor, use the block toolbar's "Show media on left / right"
   button to flip it. Works on the hero, About, or any new section
   (Add block > Patterns > Big Sky Books > Half and half section).
   ============================================== */

.wp-block-media-text.bsb-split {
	margin-block: 0 !important;
	align-items: stretch;
}

/* Photo: square corners, fills its half whatever the content height. */
.bsb-split .wp-block-media-text__media {
	position: relative;
	overflow: hidden;
	min-height: 340px;
	border-radius: 0;
}

.bsb-split .wp-block-media-text__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

/* Text half. */
.wp-block-media-text.bsb-split .wp-block-media-text__content {
	padding: var(--wp--preset--spacing--60, 3rem) var(--wp--preset--spacing--50, 1.25rem);
	word-break: normal;
}

.bsb-split__inner {
	max-width: 36rem;
}

/* Side by side (desktop and tablet).
   The outer edge of the text lines up with the 1200px page width used by every other section. */
@media (min-width: 782px) {
	.bsb-split .wp-block-media-text__media {
		min-height: 520px;
	}

	.wp-block-media-text.bsb-split .wp-block-media-text__content {
		padding-left: var(--wp--preset--spacing--70, 3.5rem);
		padding-right: max(var(--wp--preset--spacing--50, 1.25rem), calc((100vw - 1200px) / 2));
	}

	.wp-block-media-text.bsb-split.has-media-on-the-right .wp-block-media-text__content {
		padding-right: var(--wp--preset--spacing--70, 3.5rem);
		padding-left: max(var(--wp--preset--spacing--50, 1.25rem), calc((100vw - 1200px) / 2));
	}
}

/* Stacked (phone and small tablet): photo on top, full width, then the text. */
@media (max-width: 781px) {
	.wp-block-media-text.bsb-split.is-stacked-on-mobile {
		grid-template-columns: 100% !important;
	}

	.bsb-split.is-stacked-on-mobile .wp-block-media-text__media {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}

	.bsb-split.is-stacked-on-mobile .wp-block-media-text__content {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}
}

/* ==============================================
   15. Map bleed (Contact section)
   Desktop: the map starts at the left edge of its column and runs out to the
   right-hand edge of the screen, and from the top to the bottom of the
   section, without making the page any wider or taller.
   Phone: the columns stack and the map becomes a full-width, square block
   at the bottom of the section.

   Needs three classes:
     bsb-contact    on the Contact section group (no top/bottom padding on it;
                    the contact-details column carries its own)
     bsb-map-bleed  on the column that holds the map
     bsb-map        on the group wrapping the Easy Maps Block (BoldGrid)
   ============================================== */

/* --bsb-edge = the gap between the 1200px page column and the edge of the screen
   (never less than the normal side padding). "clip" trims any scrollbar-width
   overshoot so the page can never scroll sideways. */
.bsb-contact {
	--bsb-page: 1200px;
	--bsb-edge: max(var(--wp--preset--spacing--50, 1.25rem), calc((100vw - var(--bsb-page)) / 2));
	overflow-x: clip;
}

.bsb-contact .bsb-map-bleed {
	position: relative;
}

/* Map: always square-cornered, and it fills whatever box it is given. */
.bsb-contact .bsb-map-bleed .bsb-map {
	border-radius: 0 !important;
	overflow: hidden;
	line-height: 0;
}

/* The plugin's own wrapper <div>, then its iframe (the plugin writes a fixed height inline). */
.bsb-contact .bsb-map-bleed .bsb-map > * {
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
}

.bsb-contact .bsb-map-bleed .bsb-map iframe {
	display: block;
	width: 100% !important;
	height: 100% !important;
	min-height: 0;
	border: 0;
}

/* Side by side: the map is pinned to its column (which is as tall as the whole
   section), then pushed out to the right-hand screen edge. It takes up no room
   in the layout, so the height is set by the contact details alone. */
@media (min-width: 782px) {
	.bsb-contact .bsb-map-bleed .bsb-map {
		position: absolute !important;
		top: 0;
		bottom: 0;
		left: 0;
		right: calc(-1 * var(--bsb-edge));
		width: auto !important;
		height: auto;
		margin: 0 !important;
	}
	.bsb-contact-row {
		padding-right: 2rem;
	}
}

/* Stacked: contact details first, then the map edge to edge underneath. */
@media (max-width: 781px) {
	.bsb-contact .wp-block-column.bsb-map-bleed {
		margin-inline: calc(-1 * var(--wp--preset--spacing--50, 1.25rem));
		padding: 0 !important;
	}

	.bsb-contact .bsb-map-bleed .bsb-map {
		position: static;
		width: 100%;
		height: 380px;
	}
}


/* ==============================================
   16. Posts: single event + archive
   Templates: templates/single.html and templates/archive.html
   ============================================== */

.wp-site-blocks .wp-block-post-title,
.wp-site-blocks .wp-block-query-title {
	font-family: 'Young Serif', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	color: var(--bsb-slate);
}

.bsb-post-head > * + *,
.bsb-archive-head > * + * {
	margin-block-start: var(--wp--preset--spacing--30, 1rem);
}

.bsb-post-head .wp-block-post-title,
.bsb-archive-head .wp-block-query-title {
	margin-block-start: var(--wp--preset--spacing--20, 0.5rem);
}

.bsb-back {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
}

.bsb-back a {
	display: inline-block;
	padding: 0.5rem 0;
	text-decoration: none;
}

.bsb-back a:hover {
	text-decoration: underline;
}

.bsb-post-head .bsb-eyebrow {
	margin-top: var(--wp--preset--spacing--40, 1.5rem);
}

.bsb-single-image {
	margin-block: var(--wp--preset--spacing--50, 1.5rem) 0;
}

.bsb-single-image img {
	display: block;
	width: 100%;
	border-radius: var(--bsb-radius);
}

/* Reading text */
.wp-block-post-content.bsb-prose {
	font-size: 1.1875rem;
	line-height: 1.7;
}

.bsb-prose > * + * {
	margin-block-start: var(--wp--preset--spacing--30, 1rem);
}

.bsb-prose h2,
.bsb-prose h3 {
	margin-block-start: var(--wp--preset--spacing--50, 2rem);
}

.bsb-prose ul,
.bsb-prose ol {
	padding-left: 1.4rem;
}

.bsb-prose li + li {
	margin-top: 0.35rem;
}

.bsb-prose img,
.bsb-prose .wp-block-image img {
	border-radius: 12px;
}

.bsb-prose figcaption {
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	color: var(--bsb-ink);
}

.bsb-prose blockquote {
	position: relative;
	margin-inline: 0;
	padding: 1.25rem 0 0;
	border: 0;
	font-family: 'Young Serif', Georgia, 'Times New Roman', serif;
	font-size: 1.5rem;
	line-height: 1.4;
	color: var(--bsb-slate);
}

.bsb-prose blockquote::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3.5rem;
	height: 4px;
	border-radius: 2px;
	background: var(--bsb-sky);
}

/* Archive */
.bsb-archive-head .bsb-lede {
	max-width: 46ch;
}

.bsb-archive-head .wp-block-term-description:empty {
	display: none;
}

.bsb-pagination {
	margin-top: var(--wp--preset--spacing--60, 3rem);
	gap: 0.5rem;
}

.bsb-pagination .wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.bsb-pagination a,
.bsb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 1rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 1.1875rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--bsb-slate);
	transition: background-color var(--bsb-ease), color var(--bsb-ease);
}

.bsb-pagination a:hover {
	background: var(--bsb-mist);
}

.bsb-pagination .page-numbers.current {
	background: var(--bsb-sky);
	color: var(--bsb-white);
}

.bsb-pagination .wp-block-query-pagination-previous,
.bsb-pagination .wp-block-query-pagination-next {
	border-color: var(--bsb-slate);
}

/* ==============================================
   17. Header: text title + flower (desktop), square logo (phone)
   Desktop: "Big Sky Books" is the site title (text, links home) with the
   flower silhouette standing at the end of it, its stem running down to the
   bottom edge of the header.
   Phone / small tablet: the title and flower are hidden and the square logo
   sits flush against the left edge, top to bottom of the header.

   Set up:
     1. Paste the URL of the flower image into --bsb-flower below.
     2. Set the square logo in the Site Logo block (Site Editor > Header).
        Give it alt text "Big Sky Books" and leave "Link image to home" on.
   ============================================== */

.bsb-header {
	--bsb-flower: url("https://staging.bigskybooks.co.uk/wp-content/uploads/2026/11/flowersilhouette01.png");
	--bsb-flower-width: 3.5rem;    /* how wide the flower is */
	--bsb-flower-top: 0.75rem;     /* gap above the flower's head */
	--bsb-header-height: 6rem;     /* desktop: height of the header row */
	--bsb-logo-size: 8rem;     /* phone: the square logo (and header) size */
	position: relative;            /* the flower is positioned against the header */
}

/* ---- Desktop (782px and wider) ---- */
	.bsb-header .wp-block-site-logo {
		display: none;
	}

	.bsb-header > .wp-block-group {
		min-height: var(--bsb-header-height);
	}

	.bsb-header .wp-block-site-title {
		font-size: 2.25rem;
		line-height: 1.1;
	}

	/* The flower sits straight after the last letter (left is left as "auto" on
	   purpose, so it stays where the text ends), and its bottom edge is the
	   bottom edge of the header. */
	.bsb-header .wp-block-site-title::after {
		content: "";
		position: absolute;
		top: var(--bsb-flower-top);
		bottom: 0;
		width: var(--bsb-flower-width);
		margin-left: 0.4rem;
		background: var(--bsb-flower) no-repeat left bottom / contain;
		pointer-events: none;
	}

/* End custom CSS */