/*
Theme Name: ManlyHacks
Theme URI: https://manlyhacks.com
Author: Arun Kumar T
Description: ManlyHacks child theme for Fitcore. "Iron and bone" brand for men over 40: dark header, Barlow Condensed headings, brick-red action buttons, ManlyHacks home page, free 8-habits guide, Black Tie and Affi review styles.
Template: fitcore
Version: 0.1.4
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: manlyhacks
*/

/* Barlow Condensed 700 + 800, Latin only. SIL Open Font License 1.1 (assets/fonts/OFL.txt). */
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-latin-700.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;
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("assets/fonts/barlow-condensed-latin-800.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: "Iron and bone" (approved 26 Nov 2026, brick red).
   Brick red only on action buttons, white text on it (5.0:1). Darker brick for links (6.1:1 on bone).
   ========================================================================== */
:root {
	--fc-ink: #15171A;
	--fc-ink-2: #23262B;
	--fc-bg: #F3F1EC;
	--fc-surface: #FFFFFF;
	--fc-action: #C8331F;
	--fc-action-hover: #DB4430;
	--fc-action-text: #FFFFFF;
	--fc-link: #A82A18;
	--fc-line: #DDD9D0;
	--fc-muted: #5E636A;
	--fc-on-ink: #F3F1EC;
	--fc-on-ink-muted: #B4B9BF;
	--fc-good: #1F7A4D;
	--mh-steel: #8A8F96;

	--fc-font-head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
	--fc-head-stretch: 100%;
	--fc-radius: 3px;
}

/* Headings: condensed, heavy, uppercase for the big ones. */
h1, h2, h3, h4, .fc-plate { font-weight: 800; letter-spacing: 0.005em; }
h1, h2 { text-transform: uppercase; line-height: 1.02; }
.fc-entry h2 { line-height: 1.05; }
.fc-entry h3, .fc-entry h4 { font-weight: 700; }
.fc-btn { font-family: var(--fc-font-head); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1.05rem; }
.fc-btn--buy { color: var(--fc-action-text) !important; }

/* ==========================================================================
   Header: iron bar, two-tone wordmark, light links.
   ========================================================================== */
.fc-header { background: var(--fc-ink); border-bottom: 0; }
.mh-logo { display: block; line-height: 0; }
.fc-header .fc-logo { color: var(--fc-on-ink); font-family: var(--fc-font-head); text-transform: uppercase; }
.mh-logo svg { display: block; height: 30px; width: auto; }
.mh-logo .m { fill: var(--mh-steel); }
.mh-logo .h { fill: var(--fc-on-ink); }
@media (min-width: 640px) { .mh-logo svg { height: 34px; } }
/* Small phones: keep logo, search, button and menu on one line. */
@media (max-width: 429px) {
	.mh-logo svg { height: 24px; }
	.fc-header__cta { padding-inline: 10px; font-size: 0.9rem; margin: 0 2px; }
	.fc-header .fc-icon-btn { width: 38px; }
}

/* WP Last Modified Info prints its own "Last updated" line; the byline already shows the date. */
.fc-entry .post-modified-info { display: none; }
.fc-header .fc-icon-btn { color: var(--fc-on-ink); }
.fc-header .fc-icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.fc-header__search { border-top-color: #2A2D32; }
@media (min-width: 1024px) {
	.fc-header .fc-nav > ul > li > a { color: var(--fc-on-ink); font-family: var(--fc-font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; }
	.fc-header .fc-nav > ul > li > a:hover { color: #fff; }
	.fc-header .fc-nav .sub-menu a { color: var(--fc-ink); }
}
/* Phone menu panel stays light for easy reading. */
@media (max-width: 1023px) {
	.fc-nav a { font-family: var(--fc-font-head); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
	.fc-nav .sub-menu a { text-transform: none; font-family: var(--fc-font-body); letter-spacing: 0; }
}

/* Footer wordmark */
.fc-footer .mh-logo { margin-bottom: 8px; }

/* ==========================================================================
   Photos: raw, high-contrast look on hero and card images (brand only, the files are not changed).
   ========================================================================== */
.mh-raw, .fc-card__img, .fc-hero-img img { filter: grayscale(0.85) contrast(1.15) brightness(0.95); }
.fc-card:hover .fc-card__img { filter: grayscale(0.4) contrast(1.1); }

/* ==========================================================================
   Compact sticky price bar on phones (Arun, 26 Nov: the bar was too big).
   One line, smaller photo and button: about 52px instead of 68px.
   ========================================================================== */
.fc-sticky-bar { padding: 6px var(--fc-gutter) calc(6px + env(safe-area-inset-bottom)); gap: 10px; background: var(--fc-ink); color: var(--fc-on-ink); border-top: 0; box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.18); }
.fc-sticky-bar img { width: 34px; height: 34px; background: #fff; border-radius: 2px; }
.fc-sticky-bar__text { font-size: 0.875rem; -webkit-line-clamp: 1; font-weight: 600; }
.fc-sticky-bar .fc-btn { min-height: 38px; padding: 6px 12px; font-size: 0.95rem; }

/* ==========================================================================
   Coach's Take box: iron card with a brick ring on the photo.
   ========================================================================== */
.fc-take { background: var(--fc-ink); color: var(--fc-on-ink); border: 0; }
.fc-take img { box-shadow: 0 0 0 3px var(--fc-action); }
.fc-take h2, .fc-take h3, .fc-take strong { color: #fff; }

/* Affi product cards: keep their own look, just fit the column. */
.fc-entry .afxshop, .fc-entry .amazon_wrapper { max-width: 100%; }
.fc-entry .afxshop-image img { height: auto; }

/* ==========================================================================
   Black Tie comparison table + product boxes: "New look" (same rules as Workoutable, ManlyHacks tokens).
   "Current look" loads assets/css/legacy-tables.css (ManlyHacks' old Kadence Additional CSS). Same HTML.
   ========================================================================== */
.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: 800 1.35rem/1 var(--fc-font-head); 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: 46px; padding: 10px 16px;
	border: 2px solid var(--fc-ink); border-radius: var(--fc-radius);
	color: var(--fc-ink) !important; background: transparent; font: 800 1.05rem/1 var(--fc-font-head);
	text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; 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; }
@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; }
}
.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.05; text-transform: none; text-align: left; background: none; padding: 0; position: static; width: auto;
}
.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: 800 1.9rem/1 var(--fc-font-head); 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; grid-template-columns: none;
}
.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 a:has(> img) { grid-column: auto; grid-row: auto; }
.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: 46px; padding: 10px 16px; grid-column: auto; grid-row: auto;
	border: 2px solid var(--fc-ink) !important; border-radius: var(--fc-radius);
	color: var(--fc-ink) !important; background: transparent !important; font: 800 1.05rem/1 var(--fc-font-head);
	text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; box-shadow: none !important;
}
.fc-tables-new .fc-entry a.btie-style-box-button:hover { background: var(--fc-ink) !important; 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 !important; padding: 0; display: grid; grid-template-columns: none; gap: 6px; font-size: 1rem; line-height: 1.5; }
.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-3)/1.05 var(--fc-font-head); color: var(--fc-ink); text-transform: uppercase; text-align: left; 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;
	}
}

/* Plain data tables in articles (40 posts): clean ruled tables. */
.fc-entry table:not(.btie-style-short) { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.fc-entry table:not(.btie-style-short) th, .fc-entry table:not(.btie-style-short) td { border-bottom: 1px solid var(--fc-line); padding: 10px 8px; text-align: left; vertical-align: top; }
.fc-entry table:not(.btie-style-short) th { font-family: var(--fc-font-head); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 2px solid var(--fc-ink); }
