/*
Theme Name: Workoutable
Theme URI: https://workoutable.com
Author: Arun Kumar T
Description: Workoutable child theme for Fitcore. Brand tokens, Archivo condensed headings, comparison-table styles and Workoutable's free plans and planner offers.
Template: fitcore
Version: 0.4.2
Requires at least: 6.4
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: workoutable
*/

/* Archivo, condensed 800, Latin only. SIL Open Font License 1.1 (assets/fonts/OFL.txt). */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 800;
	font-stretch: 72%;
	font-display: swap;
	src: url("assets/fonts/archivo-latin-800-72.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Brand tokens (approved 18 Nov 2026)
   Orange is only for action buttons; ink text on it (5.5:1). Rust for links (5.4:1 on cream).
   ========================================================================== */
:root {
	--fc-ink: #0F1B2D;
	--fc-ink-2: #1B2A40;
	--fc-bg: #FBF6EF;
	--fc-surface: #FFFFFF;
	--fc-action: #FF5A1F;
	--fc-action-hover: #FF7240;
	--fc-action-text: #0F1B2D;
	--fc-link: #B83A0C;
	--fc-line: #E6DDD0;
	--fc-muted: #5A6170;
	--fc-on-ink: #FBF6EF;
	--fc-on-ink-muted: #B9C0CC;
	--fc-good: #1F7A4D;

	--fc-font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
	--fc-head-stretch: 72%;

	/* Old Kadence palette names, so the Contact page (Kadence Blocks) keeps its colours. */
	--global-palette1: #2B6CB0;
	--global-palette2: #215387;
	--global-palette3: #1A202C;
	--global-palette4: #2D3748;
	--global-palette5: #4A5568;
	--global-palette6: #718096;
	--global-palette7: #EDF2F7;
	--global-palette8: #F7FAFC;
	--global-palette9: #FFFFFF;
}

h1, h2, h3, h4, .fc-logo, .fc-plate { font-weight: 800; }
.fc-plate { font-stretch: 72%; }
.fc-logo::after { content: "."; color: var(--fc-link); }
.fc-footer .fc-logo::after { color: var(--fc-action); }
.custom-logo-link + .fc-logo::after, .custom-logo-link::after { content: none; }

/* Affiai product cards: keep their own look, just fit the column */
.fc-entry .afxshop { max-width: 100%; }
.fc-entry .afxshop-image img { height: auto; }

/* Home page (page 3842) is its own HTML; give it the full width with no extra spacing */
.home .fc-page-full { padding: 0; }

/* ==========================================================================
   Comparison table: "New look" (Customize → Theme settings → Conversion parts → Comparison table style).
   "Current look" loads legacy-tables.css (old Kadence CSS). "New look" loads none of it: the table
   and product boxes are restyled here to the approved mockup. Same HTML.
   ========================================================================== */
/* Each row is a product card: rank plate, photo, name + "best for", 3 specs, one outline button.
   Rank comes from a CSS counter (the table HTML has no rank cell). "Read our analysis" is hidden: the name links to Amazon already. */
.fc-tables-new .fc-entry table.btie-style-short,
.fc-tables-new .fc-entry table.btie-style-short tbody { display: block; width: 100%; border: 0; background: none; height: auto; counter-reset: fc-rank; }
.fc-tables-new .fc-entry table.btie-style-short caption { display: block; text-align: left; padding: 0 0 12px; }
.fc-tables-new .fc-entry table.btie-style-short caption h2 { margin: 0; font-size: var(--fc-step-2); }
.fc-tables-new .fc-entry table.btie-style-short tr {
	counter-increment: fc-rank;
	display: grid; gap: 2px 14px; align-items: center;
	grid-template-columns: auto 72px 1fr;
	grid-template-areas: "rank img name" "rank img tag" "p1 p1 p1" "p2 p2 p2" "p3 p3 p3" "cta cta cta";
	background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-radius);
	padding: 16px; margin: 0 0 12px; height: auto;
}
.fc-tables-new .fc-entry table.btie-style-short tr::before {
	content: counter(fc-rank); grid-area: rank; align-self: center;
	--s: 2.25rem; width: var(--s); height: var(--s); border-radius: 50%;
	background: var(--fc-ink); color: var(--fc-on-ink);
	display: grid; place-items: center;
	font: 900 1.25rem/1 var(--fc-font-head); font-stretch: 62%; font-variant-numeric: tabular-nums;
	box-shadow: inset 0 0 0 3px var(--fc-ink), inset 0 0 0 4px rgba(255, 255, 255, 0.28);
}
.fc-tables-new .fc-entry table.btie-style-short td { display: block; border: 0; padding: 0; background: none; text-align: left; width: auto; height: auto; min-width: 0; }
.fc-tables-new .fc-entry table.btie-style-short td::before,
.fc-tables-new .fc-entry table.btie-style-short td::after { content: none; }
.fc-tables-new .fc-entry table.btie-style-short .toc-det { grid-area: name; align-self: end; }
.fc-tables-new .fc-entry table.btie-style-short .toc-det a { color: var(--fc-ink) !important; font-weight: 700; text-decoration: none; line-height: 1.3; font-size: 1rem; }
.fc-tables-new .fc-entry table.btie-style-short .toc-det a:hover { text-decoration: underline; }
.fc-tables-new .fc-entry table.btie-style-short .toc-img { grid-area: img; }
.fc-tables-new .fc-entry table.btie-style-short .toc-img img { width: 72px; height: 72px; max-width: none; object-fit: contain; margin: 0; }
.fc-tables-new .fc-entry table.btie-style-short .toc-tag { grid-area: tag; align-self: start; color: var(--fc-good); font-weight: 700; font-size: var(--fc-step--1); background: none; text-transform: none; position: static; }
.fc-tables-new .fc-entry table.btie-style-short .toc-pro1,
.fc-tables-new .fc-entry table.btie-style-short .toc-pro2,
.fc-tables-new .fc-entry table.btie-style-short .toc-pro3 { color: var(--fc-muted); font-size: 0.9375rem; line-height: 1.45; white-space: normal; overflow: visible; }
.fc-tables-new .fc-entry table.btie-style-short .toc-pro1 { grid-area: p1; margin-top: 10px; }
.fc-tables-new .fc-entry table.btie-style-short .toc-pro2 { grid-area: p2; }
.fc-tables-new .fc-entry table.btie-style-short .toc-pro3 { grid-area: p3; }
.fc-tables-new .fc-entry table.btie-style-short .toc-pro1 strong,
.fc-tables-new .fc-entry table.btie-style-short .toc-pro2 strong,
.fc-tables-new .fc-entry table.btie-style-short .toc-pro3 strong { color: var(--fc-ink); font-weight: 600; }
.fc-tables-new .fc-entry table.btie-style-short .toc-but { grid-area: cta; margin-top: 12px; }
.fc-tables-new .fc-entry table.btie-style-short .toc-but a {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 16px;
	border: 2px solid var(--fc-ink); border-radius: var(--fc-radius);
	color: var(--fc-ink) !important; background: transparent; font-weight: 700; font-size: 1rem;
	text-decoration: none; text-transform: none; letter-spacing: 0; box-shadow: none;
}
.fc-tables-new .fc-entry table.btie-style-short .toc-but a:hover { background: var(--fc-ink); color: var(--fc-on-ink) !important; }
.fc-tables-new .fc-entry table.btie-style-short .toc-rev { display: none; }
/* Wide screens: rank, photo, then name / best-for / specs stacked, button on the right. */
@media (min-width: 760px) {
	.fc-tables-new .fc-entry table.btie-style-short tr {
		grid-template-columns: auto 88px minmax(0, 1fr) auto;
		grid-template-areas: "rank img name cta" "rank img tag cta" "rank img p1 cta" "rank img p2 cta" "rank img p3 cta";
		gap: 2px 18px; padding: 18px 20px;
	}
	.fc-tables-new .fc-entry table.btie-style-short .toc-img img { width: 88px; height: 88px; }
	.fc-tables-new .fc-entry table.btie-style-short .toc-pro1 { margin-top: 6px; }
	.fc-tables-new .fc-entry table.btie-style-short .toc-but { margin-top: 0; align-self: center; }
	.fc-tables-new .fc-entry table.btie-style-short .toc-but a { width: auto; white-space: nowrap; }
}
/* Product boxes below the table (ol.btie-style-reviews): the mockup's product card.
   Rank plate + name, then photo / best-for / button, then the write-up and the feature list. */
.fc-tables-new .fc-entry ol.btie-style-reviews { list-style: none; margin: 32px 0; padding: 0; counter-reset: fc-prod; }
.fc-tables-new .fc-entry ol.btie-style-reviews > li {
	counter-increment: fc-prod;
	display: grid; gap: 16px 24px; grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "head" "box" "desc" "feat";
	background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-radius);
	padding: 20px; margin: 0 0 32px;
}
.fc-tables-new .fc-entry ol.btie-style-reviews > li > h2 {
	grid-area: head; display: flex; gap: 14px; align-items: center;
	margin: 0; font-size: var(--fc-step-2); line-height: 1.1; text-transform: none; text-align: left;
}
.fc-tables-new .fc-entry ol.btie-style-reviews > li > h2::before {
	content: counter(fc-prod); flex: none;
	--s: 3.25rem; width: var(--s); height: var(--s); border-radius: 50%;
	background: var(--fc-ink); color: var(--fc-on-ink);
	display: grid; place-items: center;
	font: 900 1.8rem/1 var(--fc-font-head); font-stretch: 62%; font-variant-numeric: tabular-nums;
	box-shadow: inset 0 0 0 4px var(--fc-ink), inset 0 0 0 6px rgba(255, 255, 255, 0.28);
	position: static; margin: 0;
}
.fc-tables-new .fc-entry .btie-style-box {
	grid-area: box; display: grid; gap: 10px; justify-items: center; text-align: center;
	border: 0; background: none; box-shadow: none; padding: 0; margin: 0;
}
.fc-tables-new .fc-entry .btie-style-box::after,
.fc-tables-new .fc-entry .btie-style-box p::before { content: none; }
.fc-tables-new .fc-entry .btie-style-box img { width: 200px; height: 200px; max-width: 100%; object-fit: contain; margin: 0; }
.fc-tables-new .fc-entry .btie-style-box p { margin: 0; color: var(--fc-good); font-weight: 700; font-size: var(--fc-step--1); text-transform: none; letter-spacing: 0; }
.fc-tables-new .fc-entry a.btie-style-box-button {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 10px 16px;
	border: 2px solid var(--fc-ink); border-radius: var(--fc-radius);
	color: var(--fc-ink) !important; background: transparent; font-weight: 700; font-size: 1rem;
	text-decoration: none; text-transform: none; letter-spacing: 0; box-shadow: none;
}
.fc-tables-new .fc-entry a.btie-style-box-button:hover { background: var(--fc-ink); color: var(--fc-on-ink) !important; }
.fc-tables-new .fc-entry .btie-style-desc { grid-area: desc; }
.fc-tables-new .fc-entry .btie-style-desc > :last-child { margin-bottom: 0; }
.fc-tables-new .fc-entry ul.btie-style-reviews-features { grid-area: feat; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 1rem; }
.fc-tables-new .fc-entry ul.btie-style-reviews-features li {
	display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 0 0 6px;
	border-bottom: 1px solid var(--fc-line); font-weight: 600; text-align: right; background: none;
}
.fc-tables-new .fc-entry ul.btie-style-reviews-features li::before { content: none; }
.fc-tables-new .fc-entry ul.btie-style-reviews-features li span { color: var(--fc-muted); font-weight: 400; text-align: left; margin: 0; }
.fc-tables-new .fc-entry .btie-style-reviews-pre { font: 800 var(--fc-step-2)/1.1 var(--fc-font-head); font-stretch: 72%; color: var(--fc-ink); text-transform: none; margin: 40px 0 16px; }
@media (min-width: 640px) {
	.fc-tables-new .fc-entry ol.btie-style-reviews > li {
		grid-template-columns: 200px minmax(0, 1fr);
		grid-template-areas: "head head" "box desc" "box feat";
		align-items: start; padding: 28px;
	}
}
