/* Makhanley consolidated stylesheet. Source order is intentional. */

/* ===== Source: mobile-responsive.css ===== */
/* Makhanley mobile layout layer.
   Desktop composition is left intact; these rules only improve small-screen
   flow, touch targets, typography, media sizing, and vertical rhythm. */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Homepage roots section: replace the layered collage with one full-bleed Makhanley image. */
.home-page #roots .home-roots-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(26 59 40 / 12%);
  border-radius: 1.25rem;
  background: #e9e2d5;
  box-shadow: 0 24px 48px rgb(26 59 40 / 14%);
}

.home-page #roots .home-roots-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  transition: transform 0.7s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-page #roots .home-roots-visual:hover img {
    transform: scale(1.025);
  }
}


@media (max-width: 767px) {
  body {
    padding-top: var(--site-header-height, 76px);
  }

  /* -------------------------
     Header
     ------------------------- */
  .site-header__inner {
    min-height: var(--site-header-height, 76px);
    padding-inline: .75rem;
  }

  .site-header__brand {
    width: 106px;
    height: 64px;
  }

  .site-header__brand img {
    width: 100px;
    height: 60px;
  }

  .site-header__actions {
    gap: .4rem;
  }

  .site-header__cta {
    min-height: 42px;
    padding: .65rem .85rem;
    font-size: .8rem;
    white-space: nowrap;
  }

  .site-header__toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .site-header__mobile {
    max-height: calc(100svh - var(--site-header-height, 76px));
    overflow-y: auto;
  }

  .site-header__mobile-links {
    gap: 0;
    padding: .35rem .9rem .75rem;
  }

  .site-header__mobile-links a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: .65rem .35rem;
    border-bottom: 1px solid rgb(26 59 40 / 9%);
  }

  .site-header__mobile-links a:last-child {
    border-bottom: 0;
  }

  /* -------------------------
     Homepage
     ------------------------- */
  .home-page #home {
    height: auto;
    min-height: calc(100svh - var(--site-header-height, 76px));
    padding-block: 3.25rem 4.5rem;
  }

  .home-page #home > .z-10 {
    width: min(100%, 35rem);
    padding-inline: 1.25rem;
  }

  .home-page #home > .z-10 > span {
    margin-bottom: .9rem !important;
    font-size: .7rem;
    line-height: 1.35;
  }

  .home-page #home h1 {
    margin-bottom: 1.25rem !important;
    font-size: clamp(2.65rem, 11.5vw, 3.35rem) !important;
    line-height: 1.02 !important;
  }

  .home-page #home h1 + p {
    margin-bottom: 1.5rem !important;
    font-size: 1rem;
    line-height: 1.7;
  }

  .home-page #home .flex.flex-col {
    gap: .75rem !important;
  }

  .home-page #home .flex.flex-col a {
    min-height: 46px;
    padding-inline: 1.1rem;
  }

  .home-page #home > a.absolute {
    bottom: 1rem;
  }

  .home-page #roots,
  .home-page #journey {
    padding-block: 4.25rem !important;
  }

  .home-page #roots > .grid,
  .home-page #bulk-capability-home > .max-w-7xl,
  .home-page #journey > .max-w-7xl {
    padding-inline: 1.25rem;
  }

  .home-page #roots .grid {
    gap: 2.5rem;
  }

  .home-page #roots h2,
  .home-page #bulk-capability-home h2,
  .home-page #journey h2 {
    font-size: clamp(2rem, 9vw, 2.55rem) !important;
    line-height: 1.08;
  }

  .home-page #roots .w-16 {
    margin-bottom: 1.35rem !important;
  }

  .home-page #roots .lg\:col-span-5 > p {
    margin-bottom: 1.25rem !important;
    font-size: 1rem;
    line-height: 1.7;
  }

  .home-page #roots .lg\:col-span-5 > p + p {
    margin-bottom: 1.5rem !important;
  }

  .home-page #roots .lg\:col-span-5 > .grid {
    gap: 1.25rem;
    padding-top: 1.25rem !important;
  }

  .home-page #roots .lg\:col-span-5 > .grid h3 {
    font-size: 1.05rem;
  }

  .home-page #roots .lg\:col-span-5 > .grid p {
    font-size: .82rem;
    line-height: 1.45;
  }

  .home-page #roots .lg\:col-span-7 {
    width: 100%;
    height: 410px !important;
  }

  .home-page #roots .lg\:col-span-7 > .home-roots-visual {
    width: 100%;
    height: 100%;
  }

  .home-page #roots .lg\:col-span-7 > div:last-child {
    right: -.5rem;
    bottom: -.75rem;
    font-size: 5.5rem;
  }

  .home-page #bulk-capability-home .max-w-2xl {
    margin-bottom: 2rem;
  }

  .home-page #bulk-capability-home .grid {
    gap: .9rem;
  }

  .home-page #bulk-capability-home article {
    padding: 1.2rem 1.1rem;
  }

  .home-page #bulk-capability-home article h3 {
    margin-top: .75rem !important;
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .home-page #bulk-capability-home article p:last-child {
    font-size: .92rem;
    line-height: 1.6;
  }

  .home-page #journey > .max-w-7xl > .max-w-2xl {
    margin-bottom: 2rem !important;
  }

  .home-page #journey > .max-w-7xl > .max-w-2xl p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-page .journey-step {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: .7rem;
    padding-block: .8rem;
  }

  .home-page .journey-step__marker {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 4px;
    font-size: .7rem;
  }

  .home-page .journey-step__content video,
  .home-page .journey-step__content > img {
    height: 205px;
  }

  .home-page .journey-step__copy {
    padding: 1.05rem;
  }

  .home-page .journey-step__copy h3 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .home-page .journey-step__copy p:last-child {
    font-size: .9rem;
    line-height: 1.6;
  }

  /* -------------------------
     Shared content pages
     ------------------------- */
  .content-page .simple-hero {
    width: min(100% - 2rem, 1100px);
    padding: 2.5rem 0 2.75rem;
  }

  .content-page .simple-hero h1 {
    margin-top: .55rem;
    font-size: clamp(2.45rem, 11vw, 3rem);
    line-height: 1.02;
  }

  .content-page .simple-hero > p:last-child {
    margin-top: 1.15rem;
    font-size: .98rem;
    line-height: 1.7;
  }

  .content-page .paper-section {
    padding-block: 3.5rem;
  }

  .content-page .split {
    width: min(100% - 2rem, 1100px);
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-page .split h2,
  .content-page .three-col h2 {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .content-page .split p,
  .content-page .three-col p {
    font-size: .95rem;
    line-height: 1.7;
  }

  .content-page .split .button,
  .content-page .article-body .button {
    margin-top: 1.25rem;
    min-height: 46px;
    padding: .8rem 1.1rem;
  }

  .content-page .three-col {
    width: min(100% - 2rem, 1100px);
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 3.75rem;
  }

  .content-page .three-col article + article {
    padding-top: 1.75rem;
    border-top: 1px solid #d8d2c5;
  }

  .content-page .article-body {
    width: min(100% - 2rem, 1000px);
    padding-block: 3.5rem 4.25rem;
  }

  .content-page .article-body h2 {
    font-size: 1.65rem;
    line-height: 1.15;
    margin-bottom: .8rem;
  }

  .content-page .article-body h2:not(:first-child) {
    margin-top: 2rem;
  }

  .content-page .article-body p {
    font-size: .94rem;
    line-height: 1.75;
    margin-bottom: 1rem;
  }

  .content-page .process-list {
    width: min(100% - 2rem, 1100px);
    gap: 1rem;
    padding-bottom: 3.75rem;
  }

  .content-page .process-list article {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem;
  }

  .content-page .process-list article video,
  .content-page .process-list article > img {
    min-height: 0;
    height: 205px;
    border-radius: .75rem;
  }

  .content-page .process-list h2 {
    font-size: 1.65rem;
    line-height: 1.15;
  }

  .content-page .process-list p {
    font-size: .92rem;
    line-height: 1.7;
  }

  .content-page .table-wrap {
    max-width: 100%;
    margin-block: 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .content-page .article-body table {
    min-width: 560px;
    font-size: .88rem;
  }

  .content-page .article-body th,
  .content-page .article-body td {
    padding: .7rem .65rem;
  }

  /* -------------------------
     Bulk supply
     ------------------------- */
  .bulk-page .bulk-container {
    width: min(calc(100% - 2rem), var(--bulk-container));
  }

  .bulk-page .bulk-section--contact {
    padding-block: 2.75rem 2.5rem;
  }

  .bulk-page .bulk-section--capability,
  .bulk-page .bulk-section--sizes,
  .bulk-page .bulk-section--enquiry {
    padding-block: 3.75rem;
  }

  .bulk-page .bulk-hero-title {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
    line-height: 1.03;
  }

  .bulk-page .bulk-hero-copy {
    margin-top: 1.15rem;
    font-size: .96rem;
    line-height: 1.7;
  }

  .bulk-page .bulk-info-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .bulk-page .bulk-premises img {
    max-height: 19rem;
    object-fit: cover;
  }

  .bulk-page .bulk-credentials {
    gap: 1.2rem;
    padding-block: 1.25rem;
  }

  .bulk-page .bulk-contact-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
  }

  .bulk-page .bulk-map iframe {
    height: 14.5rem;
  }

  .bulk-page .bulk-map__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
  }

  .bulk-page .bulk-section-title {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.08;
  }

  .bulk-page .bulk-section-copy {
    margin-top: 1rem;
    font-size: .95rem;
    line-height: 1.7;
  }

  .bulk-page .bulk-feature-grid,
  .bulk-page .bulk-size-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
    margin-top: 1.75rem;
  }

  .bulk-page .bulk-feature {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bulk-line);
  }

  .bulk-page .bulk-feature:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .bulk-page .size-card img {
    height: 12.5rem;
  }

  .bulk-page .size-card__body {
    padding: 1.25rem;
  }

  .bulk-page .size-card h3 {
    font-size: 1.75rem;
  }

  .bulk-page .bulk-enquiry-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bulk-page .bulk-enquiry-copy {
    max-width: none;
  }

  .bulk-page .enquiry-heading {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.12;
  }

  .bulk-page .bulk-enquiry-copy__body {
    margin-top: 1rem;
    font-size: .95rem;
    line-height: 1.65;
  }

  .bulk-page .bulk-form-card {
    width: 100%;
    padding: 1.25rem;
  }

  .bulk-page .bulk-form-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .bulk-page .field-input,
  .bulk-page .field-select,
  .bulk-page .field-textarea {
    font-size: 16px;
  }

  .bulk-page .bulk-submit {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }

  /* -------------------------
     Products catalogue
     ------------------------- */
  .products-page .products-intro {
    width: min(100% - 2rem, 1280px) !important;
    padding: 2.5rem 0 2.25rem !important;
  }

  .products-page .products-intro h1 {
    font-size: clamp(2.35rem, 10.5vw, 3rem) !important;
    line-height: 1.05 !important;
  }

  .products-page .products-intro > p:last-child {
    margin-top: 1rem !important;
    font-size: .95rem !important;
    line-height: 1.7 !important;
  }

  .products-page main > section:first-of-type {
    padding: 3.5rem 1rem !important;
  }

  .products-page .product-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .products-page .catalog-card {
    width: min(100%, 22rem);
    margin-inline: auto;
  }

  .products-page .catalog-card__image {
    height: 18rem;
    padding: 1rem;
  }

  .products-page .catalog-card__body {
    padding: 1.25rem;
  }

  .products-page .catalog-card h3 {
    font-size: 1.4rem;
  }

  .products-page .catalog-card__bottom {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .products-page main > section:last-of-type {
    width: min(100% - 2rem, 900px) !important;
    padding: 3.5rem 0 4rem !important;
  }

  .products-page main > section:last-of-type h2 {
    font-size: 2rem !important;
    line-height: 1.12 !important;
  }

  .products-page main > section:last-of-type p {
    margin-top: 1rem !important;
    font-size: .95rem !important;
    line-height: 1.7 !important;
  }

  .products-page main > section:last-of-type > a[href*="bulk-makhana"] {
    min-height: 46px;
    margin-top: 1.25rem !important;
    padding: .8rem 1.15rem !important;
  }

  /* -------------------------
     Product detail
     ------------------------- */
  .product-detail-page .product-page {
    width: min(100% - 1.5rem, 1280px);
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
  }

  .product-detail-page .product-breadcrumb {
    gap: .45rem;
    margin-bottom: 1rem;
    font-size: .76rem;
    line-height: 1.4;
  }

  .product-detail-page .product-overview {
    gap: 1.75rem;
  }

  .product-detail-page .product-gallery__main {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  .product-detail-page .product-gallery__controls {
    grid-template-columns: 2.4rem minmax(0,1fr) 2.4rem;
    gap: .4rem;
  }

  .product-detail-page .product-gallery__controls > button {
    width: 2.4rem;
    height: 2.4rem;
  }

  .product-detail-page .product-gallery__thumbnail {
    flex-basis: 66px;
    width: 66px;
    height: 66px;
  }

  .product-detail-page .product-summary h1 {
    font-size: clamp(2.25rem, 11vw, 2.7rem);
    line-height: 1.04;
  }

  .product-detail-page .product-purchase-row {
    align-items: center;
    gap: .75rem;
    margin-block: 1.25rem .85rem;
  }

  .product-detail-page .product-buy-button {
    min-height: 46px;
    margin-top: .6rem;
  }

  .product-detail-page .product-description {
    margin-block: 1.25rem;
    font-size: .93rem;
    line-height: 1.7;
  }

  .product-detail-page .product-highlights {
    gap: .5rem;
    margin-block: 1.25rem 1.5rem;
  }

  .product-detail-page .product-highlight {
    min-height: 68px;
    padding: .6rem .35rem;
    font-size: .63rem;
  }

  .product-detail-page .nutrition-section {
    gap: .9rem;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
  }

  .product-detail-page .nutrition-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-detail-page .nutrition-table {
    min-width: 320px;
  }

  /* -------------------------
     404
     ------------------------- */
  .error-page .error-main {
    padding: 2.75rem 1rem 4rem;
  }

  .error-page .error-card h1 {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .error-page .error-card h2 {
    margin-top: 1rem;
    font-size: 1.65rem;
    line-height: 1.1;
  }

  .error-page .error-card p {
    font-size: .94rem;
    line-height: 1.7;
  }

  .error-page .error-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.4rem;
  }

  .error-page .error-actions a {
    width: 100%;
    min-height: 46px;
  }

  /* -------------------------
     Footer
     ------------------------- */
  .site-footer {
    padding: 1.75rem 1rem .9rem;
  }

  .site-footer__top {
    gap: 1.25rem;
    margin-bottom: 1.1rem;
  }

  .site-footer__brand p {
    max-width: 100%;
    font-size: .86rem;
    line-height: 1.5;
  }

  .site-footer__top > div:nth-child(2) ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: .2rem;
  }

  .site-footer__column--business li,
  .site-footer__column--shop li {
    min-width: 0;
    font-size: .82rem;
    line-height: 1.4;
  }

  .site-footer__column--shop {
    padding-top: .25rem;
  }

  .site-footer__column--contact a {
    overflow-wrap: anywhere;
  }

  .site-footer__bottom {
    gap: .5rem;
    font-size: .72rem;
  }

  .site-footer__bottom div {
    flex-wrap: wrap;
    gap: .9rem;
  }
}

@media (max-width: 380px) {
  .site-header__brand {
    width: 96px;
  }

  .site-header__brand img {
    width: 92px;
  }

  .site-header__cta {
    min-height: 40px;
    padding-inline: .72rem;
    font-size: .76rem;
  }

  .site-header__toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .home-page #home {
    padding-top: 2.75rem;
  }

  .home-page #roots .lg\:col-span-7 {
    height: 360px !important;
  }

  .products-page .catalog-card__image {
    height: 16rem;
  }

  .product-detail-page .product-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .content-page .process-list article {
    width: 100%;
    min-width: 0;
  }

  .content-page .process-list article > div,
  .content-page .process-list article > img,
  .content-page .process-list article > video {
    min-width: 0;
  }

  .products-page {
    margin: 0;
  }
}

@media (max-width: 767px) {
  body,
  body *,
  body *::before,
  body *::after {
    box-sizing: border-box;
  }
}

/* ===== Source: responsive-layer.css ===== */
/* Makhanley responsive layer — loaded LAST on every page.
   Purpose: make the existing design adapt to every screen size.
   It changes layout behaviour only (sizing, wrapping, scaling); colours,
   typography, imagery and composition at the 1280px desktop design are untouched.

   Breakpoints used (match the existing system):
     <  768px   phones            (mobile-responsive.css owns most rules)
     768–1023   tablets / small laptops
     1024–1279  laptops
     1280–1919  desktop (the original design — unchanged)
     >= 1920    large / ultra-wide monitors (proportional scaling)
*/

/* -------------------------------------------------------------
   0. Global safety
   ------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
video,
canvas {
  max-width: 100%;
}

/* Long words / emails / URLs must never push a layout wider than the screen */
p,
li,
h1,
h2,
h3,
h4,
a,
address {
  overflow-wrap: break-word;
}

/* Decorative star on the homepage can poke past the viewport edge */
.home-page #roots {
  overflow-x: clip;
}

/* -------------------------------------------------------------
   1. Homepage hero — never clip content on short screens
      (1366x768 / 1280x720 laptops, landscape phones, split-screen windows)
   ------------------------------------------------------------- */
@media (min-width: 768px) {
  .home-page #home {
    height: auto;
    min-height: calc(100vh - var(--site-header-height));
    min-height: calc(100svh - var(--site-header-height));
    padding-block: clamp(1rem, 3vh, 3rem) 4.5rem; /* bottom room for the scroll arrow */
  }
}

/* Laptops with short screens (e.g. 1366x768): ease the headline down so the
   whole hero, buttons included, fits in the first view. Taller screens keep the
   original 6rem headline (clamp ceiling). */
@media (min-width: 1024px) and (max-height: 899px) {
  .home-page #home h1 {
    font-size: clamp(3.5rem, 10.5vh, 6rem);
  }
}

/* Landscape phones / very short windows: keep the hero compact and readable */
@media (min-width: 768px) and (max-height: 560px) {
  .home-page #home h1 {
    font-size: clamp(2.5rem, 7vw, 3.75rem);
    line-height: 1.08;
  }

  .home-page #home h1 + p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .home-page #home > a.absolute {
    display: none; /* scroll arrow would collide with content */
  }

  .home-page #home {
    padding-bottom: 2.5rem;
  }
}

/* Phones in landscape (below 768 wide but short) */
@media (max-width: 767px) and (max-height: 480px) {
  .home-page #home {
    min-height: 0;
    padding-block: 2rem 3rem;
  }

  .home-page #home > a.absolute {
    display: none;
  }
}

/* -------------------------------------------------------------
   2. Tablets (768–1023): comfortable reading widths
   ------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Homepage "roots": single column, so keep text and collage centred & readable */
  .home-page #roots > .grid {
    max-width: 44rem;
    margin-inline: auto;
  }
}

/* -------------------------------------------------------------
   3. Small phones (<= 400px): tables, forms, buttons
   ------------------------------------------------------------- */
@media (max-width: 340px) {
  .product-detail-page .nutrition-table {
    min-width: 0;
    font-size: .82rem;
  }

  .product-detail-page .nutrition-table th,
  .product-detail-page .nutrition-table td {
    padding-inline: .35rem;
  }

  .bulk-page .bulk-form-card {
    padding: 1.1rem;
  }

  .home-page #home h1 {
    font-size: clamp(2.3rem, 11vw, 2.65rem) !important;
  }
}

@media (max-width: 340px) {
  .site-footer__top > div:nth-child(2) ul {
    grid-template-columns: 1fr;
  }

  .site-header__brand {
    width: 84px;
  }

  .site-header__brand img {
    width: 80px;
  }

  .site-header__cta {
    padding-inline: .6rem;
    font-size: .72rem;
  }

  .content-page .simple-hero h1,
  .products-page .products-intro h1,
  .bulk-page .bulk-hero-title,
  .product-detail-page .product-summary h1 {
    font-size: 2.15rem !important;
  }
}

/* -------------------------------------------------------------
   4. Touch devices: bigger tap targets, no sticky hover effects
   ------------------------------------------------------------- */
@media (pointer: coarse) {
  .site-footer a {
    display: inline-block;
    padding-block: .3rem;
  }

  .quantity-control button {
    width: 2.5rem;
    height: 2.5rem;
  }

  .product-gallery__thumbnails {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .product-gallery__thumbnail {
    scroll-snap-align: start;
  }
}

@media (hover: none) {
  .catalog-card__image:hover img,
  .home-page #roots img:hover {
    transform: none;
  }
}

/* -------------------------------------------------------------
   5. Large screens: scale the design proportionally
      The whole site is rem-based, so raising the root size scales type,
      spacing and components together — the layout looks identical,
      just bigger, instead of floating in a sea of empty space.
   ------------------------------------------------------------- */
:root {
  --mk-s: 1;
}

@media (min-width: 1920px) {
  :root { --mk-s: 1.125; }
}

@media (min-width: 2400px) {
  :root { --mk-s: 1.25; }
}

@media (min-width: 3000px) {
  :root { --mk-s: 1.5; }
}

@media (min-width: 1920px) {
  html {
    font-size: calc(100% * var(--mk-s));
  }

  /* header uses px sizes — scale them with everything else */
  :root {
    --site-header-height: calc(90px * var(--mk-s));
  }

  .site-header__brand {
    width: calc(160px * var(--mk-s));
    height: calc(82px * var(--mk-s));
  }

  .site-header__brand img {
    width: calc(148px * var(--mk-s));
    height: calc(78px * var(--mk-s));
  }

  /* px-based content containers → scaled equivalents */
  .content-page .simple-hero,
  .content-page .split,
  .content-page .three-col,
  .content-page .process-list {
    width: min(100% - 2.5rem, calc(1100px * var(--mk-s)));
  }

  .content-page .split {
    width: min(100%, calc(1100px * var(--mk-s)));
  }

  .content-page .article-body {
    width: min(100% - 2.5rem, calc(1000px * var(--mk-s)));
  }

  .product-detail-page .product-page {
    width: min(100% - 2.5rem, calc(1280px * var(--mk-s)));
  }

  .site-footer__inner {
    width: min(100%, calc(1280px * var(--mk-s)));
  }

  .products-page .products-intro {
    width: min(100% - 2.5rem, calc(1280px * var(--mk-s))) !important;
  }

  .products-page main > section:first-of-type > div {
    width: min(100%, calc(1280px * var(--mk-s))) !important;
  }

  .products-page main > section:last-of-type {
    width: min(100% - 2.5rem, calc(900px * var(--mk-s))) !important;
  }

  .error-page .error-card {
    width: min(100%, calc(760px * var(--mk-s)));
  }

  /* px-based media heights */
  .journey-step__content video,
  .journey-step__content > img {
    height: clamp(220px, 27vw, calc(360px * var(--mk-s)));
  }

  .catalog-card__image {
    height: calc(300px * var(--mk-s));
  }

  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(280px * var(--mk-s))), calc(320px * var(--mk-s))));
  }

  .home-page #roots .lg\:col-span-7 {
    height: calc(600px * var(--mk-s));
  }
}

/* Hero fills the screen on big monitors; make sure the very top of ultra-tall
   portrait displays doesn't leave the hero text tiny */
@media (min-width: 1920px) and (min-aspect-ratio: 1/1) {
  .home-page #home {
    min-height: calc(100svh - var(--site-header-height));
  }
}

/* -------------------------------------------------------------
   6. Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .animate-bounce {
    animation: none;
  }
}

/* -------------------------------------------------------------
   About page — fluid layout overrides
   The About page is intentionally kept independent from the more
   specialised page rules above so it remains stable from very small
   phones through ultra-wide displays.
   ------------------------------------------------------------- */
.content-page main,
.content-page main > * {
  min-width: 0;
}

.content-page .simple-hero,
.content-page .split,
.content-page .three-col,
.content-page .article-body,
.content-page .process-list {
  box-sizing: border-box;
}

/* Prevent the long-form sections from ever becoming wider than the viewport. */
.content-page .simple-hero,
.content-page .three-col,
.content-page .article-body,
.content-page .process-list {
  width: min(calc(100% - 2.5rem), 1100px);
}

.content-page .split {
  width: min(calc(100% - 2.5rem), 1100px);
}

.content-page .simple-hero h1,
.content-page .split h2,
.content-page .three-col h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.content-page .simple-hero > p:last-child,
.content-page .split p,
.content-page .three-col p {
  max-width: 100%;
}

.content-page .split > *,
.content-page .three-col > * {
  min-width: 0;
}

.content-page .split img {
  max-width: 100%;
  height: auto;
}

/* Tablet: give the text/image pair enough width to remain readable. */
@media (min-width: 768px) and (max-width: 959px) {
  .content-page .simple-hero {
    width: min(calc(100% - 3rem), 760px);
    padding-block: clamp(4rem, 8vw, 5.5rem) 3.75rem;
  }

  .content-page .simple-hero h1 {
    font-size: clamp(2.7rem, 7vw, 4.2rem);
  }

  .content-page .split {
    width: min(calc(100% - 3rem), 760px);
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .content-page .split h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }

  .content-page .three-col {
    width: min(calc(100% - 3rem), 760px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-page .three-col article:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - .5rem);
  }
}

/* Desktop: use a stable two-column split without the auto-fit breakpoint
   changing unexpectedly as the browser window is resized. */
@media (min-width: 960px) {
  .content-page .split {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(2rem, 4vw, 4rem);
  }

  .content-page .split > div {
    min-width: 0;
  }

  .content-page .split h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
  }
}

/* Phone: use viewport-relative typography and padding instead of fixed
   values, including very narrow 320px devices. */
@media (max-width: 767px) {
  .content-page .simple-hero,
  .content-page .split,
  .content-page .three-col,
  .content-page .article-body,
  .content-page .process-list {
    width: min(calc(100% - 2rem), 680px);
  }

  .content-page .simple-hero {
    padding-block: clamp(2.25rem, 9vw, 3.75rem) clamp(2.5rem, 9vw, 3.5rem);
  }

  .content-page .simple-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
    line-height: 1.04;
    letter-spacing: -.04em;
  }

  .content-page .simple-hero > p:last-child {
    font-size: clamp(.92rem, 3.8vw, 1rem);
    line-height: 1.7;
  }

  .content-page .paper-section {
    padding-inline: 0;
    padding-block: clamp(2.75rem, 10vw, 4rem);
  }

  .content-page .split {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 6vw, 2.25rem);
  }

  .content-page .split img {
    width: 100%;
  }

  .content-page .split h2,
  .content-page .three-col h2 {
    font-size: clamp(1.65rem, 7.5vw, 2rem);
    line-height: 1.12;
  }

  .content-page .split p,
  .content-page .three-col p {
    font-size: clamp(.9rem, 3.7vw, .98rem);
    line-height: 1.7;
  }

  .content-page .split .button {
    width: 100%;
    min-height: 46px;
    margin-top: 1rem;
  }

  .content-page .three-col {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: clamp(2.75rem, 10vw, 4rem);
  }

  .content-page .three-col article {
    padding-block: 1.5rem;
  }

  .content-page .three-col article:first-child {
    padding-top: 0;
  }

  .content-page .three-col article + article {
    border-top: 1px solid #d8d2c5;
  }
}

@media (max-width: 360px) {
  .content-page .simple-hero,
  .content-page .split,
  .content-page .three-col,
  .content-page .article-body,
  .content-page .process-list {
    width: calc(100% - 1.5rem);
  }

  .content-page .simple-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.45rem);
  }

  .content-page .simple-hero > p:last-child {
    font-size: .9rem;
  }

  .content-page .split h2,
  .content-page .three-col h2 {
    font-size: 1.55rem;
  }
}


/* Makhanley homepage: export CTA and borderless sourcing highlights. */
.home-page #home .home-hero-cta,
.home-page #home .home-hero-cta:hover,
.home-page #home .home-hero-cta:focus,
.home-page #home .home-hero-cta:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
}
.home-page #roots .home-origin-highlights {
  border: 0 !important;
  border-top: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.home-page #roots .home-origin-highlight {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
}
.home-page #roots .home-origin-icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1;
}
.home-page #roots .home-origin-icon svg {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
}
