/* ==========================================================================
   Mobile pass over the clone baseline (5 Oct 2026).

   Loaded after every page stylesheet. Nothing here applies on a desktop with
   a mouse: rules sit inside her mobile breakpoint (max-width: 850px) or, for
   tap targets and form fields, also on any touch screen (pointer: coarse).

   Rules of the pass, all within her look:
   - Running text is at least 16px. Her small uppercase labels (kickers,
     badges, dates, button text) stay small caps but at least 12px.
   - Every tap target is at least 44px tall; the main buttons are full width.
   - Form fields are 16px so iOS does not zoom in when one is focused.
   - Her page stylesheets are converter output (scratchpad skye_css.py),
     which is why these overrides live here and not in them.
   ========================================================================== */

/* --- Touch: tap targets and form fields --------------------------------- */
@media (max-width: 850px), (pointer: coarse) {
	/* iOS zooms into any field under 16px. */
	.ek-skye input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
	.ek-skye select,
	.ek-skye textarea,
	.woocommerce input.input-text,
	.woocommerce select,
	.woocommerce textarea,
	/* Her page rules (e.g. .ek-skye-contact .form-select at 14.5px) outrank the
	   generic ones above, so name her field classes too. Found in WebKit. */
	.ek-skye .form-input,
	.ek-skye .form-select,
	.ek-skye .form-textarea { font-size: 16px; }

	.ek-skye input[type="checkbox"],
	.woocommerce input[type="checkbox"] {
		width: 24px;
		height: 24px;
		flex: 0 0 24px;
		accent-color: var(--ek-earth-dark);
	}

	/* Text links that act as buttons: 44px tall hit area, same look. */
	.ek-skye-book .tri-link,
	.ek-skye-community a.news-meta,
	.ek-skye-contact .inquiry-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}


	/* WooCommerce */
	.woocommerce a.remove { width: 44px; height: 44px; line-height: 44px; font-size: 1.6em; }
	.woocommerce #coupon_code,
	.woocommerce .coupon .input-text { min-height: 48px; }
	.woocommerce .shipping-calculator-button,
	.woocommerce-form-coupon-toggle .showcoupon,
	.woocommerce-breadcrumb a,
	.product_meta a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	.woocommerce .button,
	.woocommerce button.button { min-height: 48px; }
}

/* --- Phones and small tablets: type and layout --------------------------- */
@media (max-width: 850px) {

	/* Labels: small caps, never below 12px. */
	.ek-skye .kicker,
	.ek-skye-book .hero-kicker,
	.ek-skye-book .tri-kicker,
	.ek-skye-book .tri-link,
	.ek-skye-book .tri-date,
	.ek-skye-book .buy-note,
	.ek-skye-book .excerpt-author,
	.ek-skye-book .price-status,
	.ek-skye-book .btn-main,
	.ek-skye-author .portrait-caption,
	.ek-skye-author .pull-quote-sub,
	.ek-skye-author .social-handle,
	.ek-skye-community .status-badge,
	.ek-skye-community .thread-theme-tag,
	.ek-skye-community .channel-handle,
	.ek-skye-community .review-theme-tag,
	.ek-skye-community .news-type,
	.ek-skye-community .submit-btn,
	.ek-skye-community .form-group label,
	.ek-skye-contact .inquiry-link,
	.ek-skye-contact .social-handle,
	.ek-skye-contact .submit-btn,
	.ek-skye-contact .form-group label,
	.ek-skye-shop .badge-limited,
	.ek-skye-shop .stock-tracker,
	.ek-skye-shop .sh-i4,
	.ek-skye-shop .woo-buy-button { font-size: 12px; }

	/* Running text: 18px on phones (design-polish readability). */
	.ek-skye-author .sidebar-desc,
	.ek-skye-author .inline-feature-caption,
	.ek-skye-community .timeline-content p,
	.ek-skye-community .hub-i7,
	.ek-skye-community .hub-i9,
	.ek-skye-community .checkbox-group label,
	.ek-skye-community .thread-meta span,
	.ek-skye-community .hub-i1,
	.ek-skye-community .review-essay-excerpt,
	.ek-skye-community .review-book-author,
	.ek-skye-community .news-snippet,
	.ek-skye-community .news-meta,
	.ek-skye-contact .ct-i2,
	.ek-skye-contact .ct-i4,
	.ek-skye-contact .ct-i6,
	.ek-skye-contact .ct-i8,
	.ek-skye-contact .inquiry-card p,
	.ek-skye-contact .info-list li,
	.ek-skye-contact .info-list strong,
	.ek-skye-contact .info-list span,
	.ek-skye-shop .sh-i1,
	.ek-skye-shop .sh-i7,
	.ek-skye-shop .sh-i9,
	.ek-skye-shop .sh-i11,
	.ek-skye-shop .edition-desc,
	.ek-skye-shop .logistic-item p { font-size: 18px; }


	/* Contact key/value rows: room between the pair at 16px. */
	.ek-skye-contact .info-list li { gap: 16px; }
	.ek-skye-contact .info-list li strong { text-align: right; }

	/* The 3D book is a fixed-size object; its inside page keeps room for
	   the summary at 18px. */

	/* The book hero downloads a phone-sized image instead of 1600/2000px. */
	.ek-skye-book .parallax-hero {
		background-image: url('../img/ek-vrystaat-landscape-800.webp');
		background-image: image-set(url('../img/ek-vrystaat-landscape-800.webp') 1x, url('../img/ek-vrystaat-landscape-1600.webp') 2x);
		/* 23 Nov: the photo's whole height (sky to water) in a 4:3 band, the tree and the
		   water's reflection in frame (62%); the words follow underneath, no box. */
		aspect-ratio: auto;
		max-height: none;
		min-height: 0;
		display: block;
		padding: calc(75vw + 32px) 20px 8px;
		text-align: center;
		background-color: var(--bg-sand); /* About the book's own linen */
		background-size: auto 75vw;
		background-position: 62% 0;
	}
	.ek-skye-book .parallax-hero::after { content: none; }
	.ek-skye-book .hero-box { max-width: none; }

	/* Thumb reach: main buttons span the column. */
	.ek-skye-contact .submit-btn { display: block; width: 100%; box-sizing: border-box; text-align: center; }

	/* WooCommerce text (cart, checkout, product). */
	.woocommerce form .form-row label,
	.woocommerce-privacy-policy-text p,
	.woocommerce-terms-and-conditions-checkbox-text,
	.woocommerce .payment_box p,
	.woocommerce dl.variation,
	.woocommerce dl.variation p,
	.woocommerce-breadcrumb,
	.product_meta,
	.woocommerce .stock { font-size: 16px; }
	.woocommerce .button,
	.woocommerce button.button { font-size: 13px; }
}

/* Category / archive filter row (new): 44px tap targets, 12px uppercase min. */
@media (max-width: 850px) {
	.ek-skye-community .archive-filter { margin: -20px 0 35px; }
	.ek-skye-community .archive-filter__link { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
	.ek-skye-community .archive-pager .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Writing process gallery + media kit (new pages): 16px running text. */
@media (max-width: 850px) {
	.ek-skye-simple .process-gallery__item figcaption,
	.ek-skye-simple .editor-byline__role { font-size: 16px; }
	.ek-skye-simple .editor-note__num,
	.ek-skye-simple .editor-byline__label { font-size: 12px; }
	.ek-skye-simple .download-list li { flex-wrap: wrap; }
}

/* About the book, new sections (gap 3): 16px running text, 12px labels. */
@media (max-width: 850px) {
	.ek-skye-book .section-intro,
	.ek-skye-book .theme-line,
	.ek-skye-book .character-text,
	.ek-skye-book .setting-text p,
	.ek-skye-book .layer-cell p { font-size: 16px; }
	.ek-skye-book .character-role,
	.ek-skye-book .layer-label { font-size: 12px; }
}

/* Reading community additions (gap 5). */
@media (max-width: 850px) {
	.ek-skye-community .thread-meta { flex-wrap: wrap; font-size: 14px; }
	.ek-skye-community .thread-meta a { min-height: 44px; display: inline-flex; align-items: center; }
	.ek-skye-community .form-textarea { font-size: 16px; }
	.ek-skye-community .qa-asker { font-size: 12px; }
}

/* 404 + search (her simple pages). */
@media (max-width: 850px) {
	.ek-skye-simple .ek-search__field { font-size: 16px; min-height: 48px; }
	.ek-skye-simple .ek-search__button { min-height: 48px; font-size: 12px; }
	.ek-skye-simple .route-list a { display: inline-flex; min-height: 44px; align-items: center; font-size: 12px; }
}


/* Phones / touch screens: Safari (and WebKit generally) renders her selects
   as a grey rounded native control. Give them her flat field look with a
   thin chevron. Found in the WebKit test; desktop (1440, mouse) unchanged. */
@media (max-width: 850px), (pointer: coarse) {
	.ek-skye .form-select {
		-webkit-appearance: none;
		appearance: none;
		border-radius: 0;
		padding-right: 40px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2359544D' stroke-width='1.4'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 16px center;
		background-size: 12px 8px;
	}
}
