/* RecallsGuru Design. Colours and fonts come from the Customizer palette; nothing here sets a new colour.
   Every rule below covers something Kadence has no setting for. */

/* Entrance motion: Kadence Blocks (free) has no "animate on scroll". Parts rise once as a section
   enters. The classes are added by design.js, so with scripts off everything is simply visible. */
.rg-js .rg-rise { opacity: 0; transform: translateY(24px); }
.rg-js .rg-rise.is-in {
	opacity: 1; transform: none;
	transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--rg-delay, 0ms);
}

/* One moving picture: the hero plate drifts very slowly inside its frame. */
.rg-drift figure { overflow: hidden; }
.rg-drift figure img { animation: rg-drift 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes rg-drift { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Feedback on controls: a small press on every button. */
.button, .wp-block-button__link, .kb-button, button[type="submit"] { transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.button:active, .wp-block-button__link:active, .kb-button:active, button[type="submit"]:active { transform: scale(.975); }

/* Large text links (the guide list and the Step rows on the home page) underline on hover only. */
.rg-links a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .18em; transition: text-decoration-color .25s ease; }
.rg-links a:hover, .rg-links a:focus-visible { text-decoration-color: currentColor; }

/* A split row whose two halves touch: Kadence adds an inner edge padding we do not want here. */
.rg-split > .kt-row-column-wrap { padding-left: 0; padding-right: 0; }
.rg-split .kt-inside-inner-col { height: 100%; }

/* The exam planner. Form fields may keep their lines. */
.rg-planner { margin: 1.5em 0 0; }
.rg-planner-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rg-planner-fields p { margin: 0; }
.rg-planner label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.rg-planner select, .rg-planner input[type="date"] { width: 100%; min-height: 52px; padding: 0 14px; font: inherit; color: var(--global-palette3); background: var(--global-palette9); border: 2px solid var(--global-palette3); border-radius: 0; }
.rg-planner-out { margin: 18px 0; font-size: 20px; line-height: 1.4; min-height: 2.8em; color: var(--global-palette3); }
.rg-planner-out strong { font-weight: 600; }
@media (max-width: 520px) { .rg-planner-fields { grid-template-columns: 1fr; } }

/* The footer notice is legal text people must be able to read: hold it to a reading measure. */
.site-footer .footer-html { max-width: 78ch; }

/* The account link sits last in the menu, a little apart. */
.rg-account-link { margin-left: .6em; }

/* Long guides: the "on this page" list stays readable as two columns on wide screens. */
.wp-block-kadence-tableofcontents .kb-table-of-content-list { margin-bottom: 0; }

/* Product grid on the hub pages: titles need room, and cards are flat (no shadow at rest). */
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 18px; line-height: 1.3; }
.woocommerce ul.products li.product, .woocommerce ul.products li.product:hover { box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
	.rg-js .rg-rise { opacity: 1; transform: none; transition: none; }
	.rg-drift figure img { animation: none; }
}

/* Engravings are printed on the page, not pasted on it: the paper colour shows through the white. */
.rg-motion figure img, .rg-drift figure img { mix-blend-mode: multiply; }

/* ---------- Header and footer details Kadence has no setting for ---------- */
/* The account link reads as a second action beside the menu. */
.rg-account-link > a { font-weight: 600; }
/* Footer: the name set large, plain link lists, and an outlined button that suits the dark field. */
.site-footer .rg-footer-name { font-family: var(--global-heading-font-family); font-size: 44px; line-height: 1; letter-spacing: -.02em; margin: 0 0 18px; }
.site-footer .rg-footer-name a { color: var(--global-palette9); text-decoration: none; }
.site-footer .rg-footer-list { list-style: none; margin: 0; padding: 0; }
.site-footer .widget-title { margin-bottom: 14px; }
.site-footer .wp-block-button.is-style-outline .wp-block-button__link,
.site-footer .wp-block-button.is-style-outline .wp-block-button__link:visited { color: var(--global-palette9) !important; border: 2px solid var(--global-palette9); background: transparent !important; }
/* Hovered, focused (also after a click) and pressed: the theme would turn the words blue on the dark field. */
.site-footer .wp-block-button.is-style-outline .wp-block-button__link:hover,
.site-footer .wp-block-button.is-style-outline .wp-block-button__link:focus,
.site-footer .wp-block-button.is-style-outline .wp-block-button__link:active { color: var(--global-palette3) !important; background: var(--global-palette9) !important; border-color: var(--global-palette9); }

/* ---------- Product page (WooCommerce template; Kadence has no settings for these parts) ---------- */
/* The buy area sits on a white sheet so it stands off the cream page. */
.rg-product div.product { display: flow-root; }
.rg-product div.product .summary { background: var(--global-palette9); padding: 40px 40px 32px; margin-top: 0; }
.rg-product div.product .product_title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; }
.rg-product div.product p.price { font-size: 24px; color: var(--global-palette3); font-weight: 600; margin: 14px 0 18px; }
.rg-product .woocommerce-product-details__short-description { font-size: 17px; }
.rg-product form.cart { margin-top: 22px; }
.rg-product form.cart .single_add_to_cart_button { width: 100%; min-height: 58px; font-size: 18px; }
.rg-product .woocommerce-variation-price { font-size: 30px; font-weight: 600; color: var(--global-palette3); margin: 6px 0 14px; }
.rg-product .product_meta { display: none; }  /* the category is already in the breadcrumb */
.rg-product table.variations, .rg-product table.variations tbody, .rg-product table.variations tr, .rg-product table.variations td, .rg-product table.variations th { display: block; padding: 0; border: 0; text-align: left; }
.rg-product table.variations th.label { margin: 0 0 8px; font-size: 15px; }
.rg-product .reset_variations { display: none !important; }

/* Access length as three buttons (built by design.js from the drop-down, which stays for no-script). */
.rg-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 6px; }
/* The $3 sample sits under the three access lengths, across the full width. */
.rg-options .rg-option-sample { grid-column: 1 / -1; min-height: 48px; background: var(--global-palette9); border-style: dashed; border-color: var(--global-palette3); }
.rg-options .rg-option-sample small { display: inline; margin-left: .4em; }
.rg-price-sample { display: block; font-size: 15px; font-weight: 500; color: var(--global-palette4); }
/* New and updated papers in My papers. */
.rg-fresh { display: inline-block; margin-left: .5em; padding: 1px 8px; font-size: 12px; font-weight: 700; color: var(--global-palette9); background: var(--global-palette1); vertical-align: middle; }
/* An out-of-stock product shows this in its buy box in place of the buy button. */
.rg-stock-out { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 1.2em; }
.rg-stock-out span { display: inline-block; padding: 6px 14px; font-size: 16px; font-weight: 700; color: var(--global-palette9); background: var(--global-palette3); }
.rg-options button { appearance: none; min-height: 68px; padding: 10px 8px; font: inherit; font-weight: 600; line-height: 1.25; cursor: pointer; color: var(--global-palette3); background: var(--global-palette8); border: 2px solid var(--global-palette8); border-radius: 0; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease; }
.rg-options button small { display: block; font-weight: 500; font-size: 14px; }
.rg-options button:hover { border-color: var(--global-palette3); }
.rg-options button[aria-pressed="true"] { background: var(--global-palette3); border-color: var(--global-palette3); color: var(--global-palette9); }
.rg-options button:active { transform: scale(.975); }
.rg-has-options select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* What to know before paying. */
.rg-buy-points { list-style: none; margin: 22px 0 0; padding: 20px 0 0; font-size: 15px; line-height: 1.5; background: none; }
.rg-buy-points li { margin: 0 0 8px; padding: 10px 14px; background: var(--global-palette8); }
.rg-buy-links { margin: 16px 0 0; font-size: 15px; }

/* The description as one page on the column line: each section title on the left, its text on the right. */
.rg-product-body { clear: both; margin: 72px 0 0; padding: 72px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; background: var(--global-palette9); box-shadow: 0 0 0 100vmax var(--global-palette9); clip-path: inset(0 -100vmax); }
.rg-product-body > * { grid-column: 2; max-width: 700px; }
.rg-product-body > h2 { grid-column: 1; align-self: start; margin: 0 0 24px; padding-top: 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.rg-product-body > h2:not(:first-child) { margin-top: 56px; }
.rg-product-body > h2 + * { margin-top: 0; }
.rg-product-body > h2:not(:first-child) + * { margin-top: 56px; }
.rg-product-body > h3 { margin: 22px 0 6px; font-size: 21px; }
.rg-product-body > .wp-block-table { max-width: none; }
@media (max-width: 900px) {
	.rg-product-body { display: block; margin-top: 40px; padding-top: 44px; }
	.rg-product-body > h2:not(:first-child) + * { margin-top: 0; }
	.rg-product div.product .summary { padding: 26px 20px; }
}
.rg-product .related.products { clear: both; padding-top: 64px; }
.rg-product .related.products > h2 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 28px; }

/* ---------- Contrast (WCAG AAA: 7:1 for text). WooCommerce paints these in a red or grey that fails on cream. ---------- */
.woocommerce form .form-row .required, .required, abbr.required { color: var(--global-palette3) !important; text-decoration: none; }
.woocommerce a.remove { color: var(--global-palette3) !important; }
.woocommerce a.remove:hover { color: var(--global-palette9) !important; background: var(--global-palette3); }
::placeholder { color: var(--global-palette5); opacity: 1; }
.woocommerce-error, .woocommerce-info, .woocommerce-message { color: var(--global-palette3); }
.woocommerce-error a, .woocommerce-info a, .woocommerce-message a { color: var(--global-palette3); }

/* ---------- Buy box on the Step pages ([rg_buy]): cover beside the buy area, on a white sheet ---------- */
.rg-buybox { margin: 8px 0 56px; }
.rg-buybox div.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; background: var(--global-palette9); }
.rg-buybox-cover { align-self: start; }
.rg-buybox-cover img { display: block; width: 100%; height: auto; }
.rg-buybox .rg-buy-points { padding-left: 0; }
.rg-buybox div.product .summary { padding: 40px 40px 32px; }
.rg-buybox-name { font-family: var(--global-heading-font-family); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; color: var(--global-palette3); margin: 0; }
.rg-buybox div.product p.price { font-size: 22px; font-weight: 600; color: var(--global-palette3); margin: 12px 0 14px; }
.rg-buybox .woocommerce-product-details__short-description p { margin: 0 0 8px; }
@media (max-width: 900px) {
	.rg-buybox div.product { grid-template-columns: 1fr; }
	.rg-buybox-cover img { max-height: 320px; object-fit: cover; }
	.rg-buybox-page img { object-position: top; }
	.rg-buybox div.product .summary { padding: 24px 20px; }
}
/* Fold-out topic lists on the Step pages. */
.wp-block-details { background: var(--global-palette9); padding: 14px 20px; margin: 0 0 28px; }
.wp-block-details summary { cursor: pointer; font-weight: 600; color: var(--global-palette3); }
.wp-block-details[open] summary { margin-bottom: 12px; }
/* The header button keeps its label on one line, so the menu beside it decides when to wrap. */
.site-header .header-button { white-space: nowrap; }

/* Student reviews on the home page ([rg_reviews]): a row of cards that scrolls sideways and snaps,
   two cards on a wide column, one and a bit on a phone so the next card shows there is more. */
.rg-reviews-track { display: flex; column-gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rg-reviews-track::-webkit-scrollbar { display: none; }
.rg-review { flex: 0 0 calc((100% - 20px) / 2); scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; padding: 30px 28px; background: var(--global-palette9); }
.rg-review blockquote { flex: 1; margin: 0 0 22px; padding: 0; border: 0; font-size: 17px; line-height: 1.6; font-style: normal; color: var(--global-palette3); }
.rg-review blockquote p { margin: 0; }
.rg-review figcaption { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--global-palette3); }
.rg-review figcaption img { width: 24px; height: 18px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.rg-stars { position: relative; width: 120px; height: 24px; margin-bottom: 18px; }
.rg-review-date { font-size: 14px; }
.rg-stars svg { display: block; fill: #d9d2c3; }
.rg-stars-on { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.rg-stars-on svg { fill: #b7791f; }
.rg-reviews-nav { display: flex; gap: 8px; margin: 20px 0 0; }
.rg-reviews-nav button { appearance: none; width: 48px; height: 48px; padding: 0; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; color: var(--global-palette9); background: var(--global-palette3); border: 0; border-radius: 0; transition: background-color .2s ease; }
.rg-reviews-nav button:hover, .rg-reviews-nav button:focus-visible { background: var(--global-palette1); }
@media (max-width: 767px) { .rg-review { flex-basis: 86%; padding: 26px 22px; } }
