/*
Theme Name: MĀKA Kits
Author: MĀKA Health
Description: At-home bloodwork storefront with WooCommerce support and a configurable results portal.
Version: 1.0.4
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: maka-kits
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  color-scheme: light;
  --paper: #f6f4eb;
  --ink: #183d37;
  --dark: #173a32;
  --body: #435750;
  --line: #c5cbbd;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .22em; }
button, select, input, textarea { font: inherit; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, .wordmark, .report-logo { font-family: var(--serif); font-weight: 400; }
h1, h2, h3 { text-wrap: balance; }
h1 em, h2 em { font-weight: 400; }
h1 { font-size: clamp(3.25rem, 7vw, 6.9rem); line-height: .97; letter-spacing: -.045em; }
h2 { font-size: clamp(2.75rem, 4.3vw, 4.65rem); line-height: 1.02; letter-spacing: -.038em; }
h3 { font-size: clamp(1.8rem, 2.75vw, 2.9rem); line-height: 1.06; letter-spacing: -.028em; }
:focus-visible { outline: 2px solid #a76420; outline-offset: 5px; }
.container { width: min(calc(100% - clamp(3rem, 8vw, 9rem)), 1344px); margin-inline: auto; }
.sr-only, .screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; padding: .6rem 1rem; color: var(--paper); background: var(--ink); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 84px; gap: 1em; }
.wordmark { display: inline-block; justify-self: start; font-size: 2.7rem; line-height: 1; letter-spacing: -.05em; text-decoration: none; }
.header-inner nav, .header-actions, .footer nav { display: flex; align-items: center; }
.header-inner nav { gap: clamp(1.3rem, 3.2vw, 3.3rem); }
.header-inner nav a, .footer nav a, .cart-link { font-size: .94rem; font-weight: 600; text-decoration: none; }
.header-inner nav a { padding-block: .65rem; }
.header-inner nav a:hover, .footer nav a:hover, .cart-link:hover { text-decoration: underline; }
.header-actions { justify-self: end; gap: 1.1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: .75rem 1.4rem; border: 1px solid transparent; border-radius: 3px; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; }
.primary { color: #fffdf4; background: var(--ink); }
.primary:hover { background: #295649; }
.outline { color: var(--ink); border-color: #73877d; background: transparent; }
.outline:hover { background: #e9ece1; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(2.1rem, 4vw, 5rem); padding-block: clamp(2.8rem, 5vw, 5rem) clamp(3.3rem, 6vw, 6.5rem); }
.hero-label, .light-rule { display: flex; align-items: center; gap: .7rem; }
.hero-label span, .light-rule::before { width: 23px; height: 1px; flex: 0 0 23px; background: currentColor; opacity: .8; }
.light-rule::before { content: ""; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }
.hero h1 { margin-block: 1.08rem 1.25rem; }
.hero h1 em { white-space: nowrap; }
.hero-copy { max-width: 34ch; font-size: clamp(1.02rem, 1.48vw, 1.22rem); line-height: 1.55; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; margin-top: 1.55rem; }
.hero-image { position: relative; width: 100%; aspect-ratio: 706 / 530; overflow: hidden; background: #6f704c; border-radius: 4px; }
.hero-image img { position: absolute; width: 100%; height: auto; top: calc(-100% * 503 / 530); left: 0; }
.collection { border-top: 1px solid var(--line); padding-block: clamp(3rem, 5.2vw, 5.6rem) clamp(3.5rem, 6.6vw, 6.8rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: .75rem 2rem; margin-bottom: clamp(1.55rem, 3vw, 2.3rem); }
.section-heading p { color: var(--body); max-width: 36ch; font-size: .97rem; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.5vw, 1.45rem); }
.test-panel { display: flex; flex-direction: column; align-items: start; min-height: clamp(175px, 16vw, 215px); padding: clamp(1rem, 1.7vw, 1.6rem); border-radius: 4px; color: var(--ink); text-decoration: none; transition: box-shadow .18s ease; }
.test-panel:hover { box-shadow: inset 0 0 0 1px #6c8072; }
.hormone { background: #dbe4d6; }
.metabolic { background: #e9e0cd; }
.baseline { background: #dbe6e3; }
.panel-motif { position: relative; width: 70px; height: 32px; color: #506b59; margin-bottom: .65rem; transform: scale(.78); transform-origin: top left; }
.panel-motif i { position: absolute; display: block; width: 37px; height: 37px; border: 1.2px solid currentColor; border-radius: 50%; }
.panel-motif i:nth-child(2) { left: 13px; }
.panel-motif i:nth-child(3) { left: 26px; }
.metabolic .panel-motif { color: #786746; }
.metabolic .panel-motif i { top: 3px; width: 23px; height: 23px; border-radius: 1px; transform: rotate(45deg); }
.metabolic .panel-motif i:nth-child(2) { top: 14px; left: 17px; }
.metabolic .panel-motif i:nth-child(3) { top: 3px; left: 34px; }
.baseline .panel-motif { color: #466963; }
.baseline .panel-motif i { width: 46px; height: 19px; top: 11px; left: 3px; }
.baseline .panel-motif i:nth-child(2) { transform: rotate(60deg); }
.baseline .panel-motif i:nth-child(3) { transform: rotate(120deg); }
.test-panel p { color: #3d5148; max-width: 27ch; margin-top: .55rem; }
.card-action { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-top: .65rem; margin-top: auto; font-size: .87rem; font-weight: 700; }
.card-action span:last-child { font-size: 1.15rem; transition: transform .18s ease; }
.test-panel:hover .card-action span:last-child { transform: translateX(3px); }
.process { background: var(--dark); color: #f6f4eb; }
.process-inner, .questions { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.2rem, 7vw, 8rem); align-items: start; padding-block: clamp(3.5rem, 6.5vw, 6.8rem); }
.section-intro .eyebrow { margin-bottom: .95rem; }
.process .eyebrow, .steps li > span { color: #c1d3bf; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .55rem; border-top: 1px solid #617b6d; padding: 1.3rem 0 1.5rem; }
.steps li:last-child { border-bottom: 1px solid #617b6d; }
.steps li > span { font-size: .84rem; padding-top: .35rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: clamp(1.75rem, 2.6vw, 2.35rem); }
.steps p { max-width: 47ch; color: #d3e0d3; margin-top: .4rem; }
.process-link { display: inline-block; padding-top: .7rem; font-weight: 600; font-size: .93rem; }
.questions details { border-top: 1px solid var(--line); }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .7rem 0; font-weight: 650; list-style: none; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; }
.questions details[open] summary::after { content: "−"; }
.questions details p { margin-bottom: 1.2rem; max-width: 57ch; color: var(--body); }
.footer { border-top: 1px solid var(--line); background: #e9ecdf; }
.footer-inner, .footer-base { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer-inner { padding-block: clamp(2.1rem, 4vw, 3.6rem); }
.footer-brand .wordmark { font-size: 2.9rem; }
.footer-brand p { margin-top: .35rem; color: var(--body); font-size: .84rem; }
.footer nav { gap: .6rem 1.5rem; flex-wrap: wrap; }
.footer-base { border-top: 1px solid #bbc6b6; padding-block: 1rem; color: var(--body); font-size: .81rem; }
.back-link { display: inline-flex; gap: .55rem; align-items: center; min-height: 44px; font-size: .9rem; text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.detail-page, .portal-page { padding-top: 1.3rem; }
.detail-layout, .portal-layout { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.25rem, 7vw, 7.5rem); padding-block: clamp(2rem, 4vw, 4.5rem) clamp(3rem, 6vw, 6.8rem); }
.detail-copy h1, .portal-intro h1 { font-size: clamp(3.4rem, 6vw, 6.2rem); margin: .9rem 0 1.1rem; }
.detail-description { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--body); max-width: 42ch; }
.marker-section { margin-top: 1.6rem; }
.marker-section h2 { font: 700 .95rem/1.4 var(--sans); letter-spacing: 0; }
.marker-list { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; list-style: none; margin: .65rem 0; }
.marker-list li { border: 1px solid var(--line); border-radius: 3px; padding: .35rem .7rem; font-size: .88rem; }
.availability { margin: 1.45rem 0 .8rem; padding-left: .85rem; border-left: 2px solid #a8b79c; color: var(--body); max-width: 48ch; font-size: .92rem; }
.related { border-top: 1px solid var(--line); padding-block: 2.5rem 4rem; }
.related h2 { font-size: 2.5rem; }
.related-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin-top: 1.15rem; }
.related-links a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .85rem 1.2rem; background: #e5eadc; font-weight: 600; text-decoration: none; }
.related-links a:hover { background: #dbe2d2; }
.portal-layout { min-height: 57vh; }
.sample-report { border: 1px solid #b8c5b3; background: #edf1e6; border-radius: 5px; padding: clamp(1.35rem, 3.4vw, 3rem); }
.report-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-bottom: 1rem; border-bottom: 1px solid #bbc8b7; }
.report-logo { font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; }
.report-top > span:last-child { font-size: .81rem; }
.marker-guide { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.marker-guide summary { padding: .8rem 0; cursor: pointer; font-weight: 650; }
.marker-guide dl { margin: 0; }
.marker-guide dt { font-weight: 650; margin-top: .6rem; }
.marker-guide dd { margin: .15rem 0 .8rem; color: var(--body); }
.sample-report h2 { font-size: 2.4rem; margin: 1.6rem 0 1rem; }
.date-control label { display:block; margin-bottom: .25rem; font-size:.82rem; font-weight: 700; }
.date-control select { max-width: 100%; min-height: 44px; border: 1px solid #92a48f; color: var(--ink); background: #fafbf3; border-radius: 3px; padding: .42rem .7rem; }
.result-table { width: 100%; margin-top: 1.45rem; border-collapse: collapse; color: var(--ink); }
.result-table th, .result-table td { text-align: left; padding: .75rem 0; border-bottom: 1px solid #bdcbb8; }
.result-table th[scope=row] { font-weight: 500; }
.result-table td:last-child, .result-table th:last-child { text-align: right; }
.result-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-table td span, .result-table thead { font-size:.83rem; }
@media (max-width: 850px) {
  .hero { gap: 1.8rem; }
  .header-inner { min-height: 74px; }
  .header-inner nav { gap: 1.2rem; }
  .section-heading { align-items: start; flex-direction:column; }
  .section-heading p { max-width: 52ch; }
  .portal-layout, .detail-layout { gap: 2rem; }
}
@media (max-width: 690px) {
  .container { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; gap: 0; padding-top: .7rem; }
  .header-inner .wordmark { font-size: 2.25rem; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .5rem; }
  .header-inner nav a { min-height: 42px; padding: .6rem 0; font-size: .9rem; }
  .header-actions { gap: .6rem; }
  .portal-button { min-height: 44px; padding: .63rem 1.25rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 2.45rem 2.7rem; gap: 1.6rem; }
  .hero h1 { font-size: clamp(3.15rem,13vw,5rem); margin-block: .95rem 1.2rem; }
  .hero-copy { max-width: 39ch; }
  .hero-actions { margin-top: 1.25rem; gap: .65rem 1.4rem; }
  .panel-grid, .process-inner, .questions, .portal-layout, .detail-layout { grid-template-columns: 1fr; }
  .test-panel { min-height: 145px; padding: .9rem 1.1rem; }
  .test-panel h3 { font-size: 2rem; }
  .section-heading { margin-bottom: 1.5rem; }
  .process-inner, .questions { gap: 1.7rem; }
  .footer-inner { align-items: flex-start; }
  .footer nav { align-items: start; flex-direction: column; gap: .35rem; }
  .footer nav a { padding-block: .3rem; }
  .detail-page, .portal-page { padding-top: .9rem; }
  .related-links { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 30px); }
  .hero h1 { font-size: 13vw; }
  .header-actions .button { padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.wp-page { min-height: 50vh; padding-block: clamp(2rem, 5vw, 5rem); }
.wp-page h1 { font-size: clamp(2.8rem, 5vw, 5.2rem); margin: 0 0 1.3rem; }
.wp-page article + article { margin-top: 2rem; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--serif); font-size: 1.85rem; line-height: 1.1; font-weight: 400; }
.woocommerce div.product .product_title { margin-bottom: 1rem; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); }
.woocommerce ul.products li.product a img { border-radius: 4px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .wc-block-components-button:not(.is-link) { background: var(--ink); border-radius: 3px; color: var(--paper); font: 650 .93rem/1.3 var(--sans); padding: .78rem 1.15rem; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: #295649; color: var(--paper); }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--ink); background: #e6ecdf; }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--ink); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce .quantity .qty { border: 1px solid #a0afa1; background: #fffdf7; color: var(--ink); padding: .65rem; border-radius: 3px; }
.woocommerce form .form-row input[type=checkbox] { width: auto; }
.woocommerce table.shop_table { border-color: var(--line); }
.shop-link { margin-top: 1.1rem; }
