/*
Theme Name: Affiliate Theme
Theme URI: https://github.com/USER/affiliate-theme
Author: Gael Balouek
Description: Minimal block theme for Amazon affiliate sites. Structure lives here, per-site identity lives in styles/*.json. Designed to pair with the affiliate-kit plugin.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliate-theme
Tags: block-templates, full-site-editing, one-column
*/

/* Block themes take their styling from theme.json. Only genuinely global
   structural rules that theme.json cannot express belong here. */

body { text-wrap: pretty; }

:where(p, li) { max-width: var(--wp--custom--measure); }

/* Visible keyboard focus everywhere, including inside the editor output. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

/* Figures in specification tables and price columns stay aligned. */
.ak-figure, .wp-block-table td.is-numeric {
  font-family: var(--wp--preset--font-family--num);
  font-variant-numeric: tabular-nums lining-nums;
}

/* Wide content (comparison tables) scrolls inside itself, never the page. */
.wp-block-table, .ak-scroll { overflow-x: auto; }

/* Section arrangement. The constant AFFILIATE_ARRANGEMENT in wp-config.php
   sets a body class, so two sites built from the same products do not ship
   the same section order. Kit blocks declare their own order values. */
.ak-sections { display: flex; flex-direction: column; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
