/* FoodKind — HALAL line skin. Emerald / ivory / brass. Symmetrical, ceremonial. */
[data-line="halal"]{
  --fk-bg:#FBF7EC;          /* ivory */
  --fk-surface:#0F5A3C;     /* emerald */
  --fk-surface-alt:#E3F0E7; /* mint wash */
  --fk-ink:#0B2F22;         /* deep green ink — 13.59:1 on ivory */
  --fk-ink-soft:#2F5445;
  --fk-line:#C8D8CD;
  --fk-brand:#0F5A3C;
  --fk-brand-ink:#FBF7EC;   /* 7.70:1 on emerald */
  --fk-accent:#8F6B22;      /* brass, TEXT-SAFE 4.57:1 on ivory */
  --fk-accent-ink:#FBF7EC;
  --fk-accent-decor:#B8923A;/* decorative only — 2.72:1, never text */
  --fk-accent-on-dark:#E0C677; /* 4.91:1 on emerald */
  --fk-font-display:"Cormorant Garamond","Iowan Old Style",Palatino,Georgia,serif;
  --fk-radius:14px;
  --fk-price-shape:0;              /* rectangular price labels */
  --fk-grid:2;                     /* symmetrical */
  --fk-pattern:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230F5A3C' stroke-opacity='0.07'%3E%3Cpath d='M32 4 L40 16 L54 16 L54 30 L42 32 L54 34 L54 48 L40 48 L32 60 L24 48 L10 48 L10 34 L22 32 L10 30 L10 16 L24 16 Z'/%3E%3C/g%3E%3C/svg%3E");
}
[data-line="halal"] .fk-card{
  text-align:center;
  border-radius:var(--fk-radius);
}
[data-line="halal"] .fk-card .fk-thumb{
  /* pointed-arch mask */
  border-radius:50% 50% 0 0 / 32% 32% 0 0;
}
[data-line="halal"] .fk-hairline{ border-top:1px solid var(--fk-accent-decor); }

/* =========================================================================
   FK HALAL SKIN — emerald, ivory, brass. Ceremonial, symmetrical.
   =========================================================================
   Spec 5 design language, applied for real:
     - pointed (ogival) arch masks on media, not square corners
     - eight-pointed star lattice at 6-8% opacity, generated as exact SVG
       geometry (an eight-point star is two squares, one rotated 45deg)
     - thin brass hairlines and an ornamental star divider
     - symmetrical, centred layout; Cormorant Garamond display face

   Deliberately absent, per the same spec: no mosque, dome, prayer, verse,
   calligraphy or name-of-God imagery. This is a shop, not a place of worship.
   ========================================================================= */

/* --- 1. Geometry ------------------------------------------------------- */

/* Eight-pointed star (khatim) tile. Built from two squares about a common
   centre, one rotated 45deg: that union IS the eight-pointed star, exactly,
   with no approximation and no generated artwork. Repeated at the centre and
   four corners so the lattice tiles seamlessly. */
html[data-line="halal"]{
  --fk-star-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230F5A3C' stroke-opacity='0.075' stroke-width='1'%3E%3Crect x='34' y='34' width='28' height='28'/%3E%3Cpath d='M48 20 L76 48 L48 76 L20 48 Z'/%3E%3Crect x='-14' y='-14' width='28' height='28'/%3E%3Crect x='82' y='-14' width='28' height='28'/%3E%3Crect x='-14' y='82' width='28' height='28'/%3E%3Crect x='82' y='82' width='28' height='28'/%3E%3Cpath d='M0 -28 L28 0 L0 28 L-28 0 Z' transform='translate(0 0)'/%3E%3Cpath d='M96 -28 L124 0 L96 28 L68 0 Z'/%3E%3Cpath d='M0 124 L28 96 L0 68 L-28 96 Z'/%3E%3Cpath d='M96 124 L124 96 L96 68 L68 96 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Lattice on the page surface, never over text blocks. */
html[data-line="halal"] body{
  background-color: var(--fk-bg);
  background-image: var(--fk-star-tile);
  background-size: 96px 96px;
}

/* Sections sit on a solid ivory plate so the lattice stays a texture behind
   the content instead of fighting the copy. */
html[data-line="halal"] .fk-section,
html[data-line="halal"] .fk-shop-main,
html[data-line="halal"] .fk-prose{
  background-color: var(--fk-bg);
}

/* --- 2. Pointed arches ------------------------------------------------- */

/* An ogival arch is a border-radius with a tall vertical radius on both top
   corners: 60% across and 100% down gives the pointed crown without any
   clip-path cost or image. */
html[data-line="halal"] .fk-card-media{
  border-radius: 60% 60% 6px 6px / 46% 46% 6px 6px;
  overflow: hidden;
  border: 1px solid rgba(184, 146, 58, .45);
  border-bottom-width: 0;
}
html[data-line="halal"] ul.products li.product{
  border-radius: 0 0 12px 12px;
  border-color: rgba(184, 146, 58, .32);
  padding-top: .55rem;
}

/* Product image inside the arch keeps its own crop. */
html[data-line="halal"] .fk-card-media img{
  height: 100%;
  object-fit: cover;
}

/* --- 3. Brass hairlines and ornament -------------------------------- */

html[data-line="halal"] .fk-header{
  border-bottom: 1px solid rgba(184, 146, 58, .5);
}
html[data-line="halal"] .fk-announce{
  background: var(--fk-surface);
  border-bottom: 1px solid rgba(184, 146, 58, .55);
}

/* Ornament divider: a brass rule broken by a small eight-point star. */
html[data-line="halal"] .fk-ornament{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 0 0 1.15rem;
}
html[data-line="halal"] .fk-ornament::before,
html[data-line="halal"] .fk-ornament::after{
  content: "";
  width: clamp(28px, 12vw, 96px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fk-accent-decor), transparent);
}
html[data-line="halal"] .fk-ornament__star{
  width: 12px;
  height: 12px;
  background: var(--fk-accent-decor);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* --- 4. Ceremonial typography --------------------------------------- */

html[data-line="halal"] .fk-hero{
  background: var(--fk-surface);
  color: var(--fk-brand-ink);
}
html[data-line="halal"] .fk-hero h1,
html[data-line="halal"] .fk-page-hero h1,
html[data-line="halal"] h1,
html[data-line="halal"] h2{
  font-family: var(--fk-font-display);
  letter-spacing: .005em;
  font-weight: 600;
}
html[data-line="halal"] h1{
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  line-height: 1.08;
}
html[data-line="halal"] h2{
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  line-height: 1.14;
}

/* Centred, symmetrical blocks: the spec's ceremonial register. */
html[data-line="halal"] .fk-page-hero{
  background: var(--fk-surface);
  color: var(--fk-brand-ink);
  padding-block: clamp(2.2rem, 5.5vw, 3.6rem);
  text-align: center;
  background-image: var(--fk-star-tile);
}
html[data-line="halal"] .fk-page-hero h1{
  color: var(--fk-brand-ink);
  margin-inline: auto;
  max-width: 20ch;
}
html[data-line="halal"] .fk-lede,
html[data-line="halal"] .fk-prose > p:first-of-type{
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* Halal card titles centred, as the symmetrical layout asks. */
html[data-line="halal"] .fk-card-title,
html[data-line="halal"] .fk-card-price{
  text-align: center;
}
html[data-line="halal"] .fk-card-title{
  font-size: 1.06rem;
  margin-top: .95rem;
}
html[data-line="halal"] .fk-card-sub{
  text-align: center;
  margin-inline: auto;
}

/* --- 5. Buttons and the certification marker ------------------------ */

html[data-line="halal"] .fk-btn{
  background: var(--fk-brand);
  color: var(--fk-brand-ink);
  border-radius: 999px;
  border: 1px solid var(--fk-accent-decor);
  letter-spacing: .01em;
}
html[data-line="halal"] .fk-btn:hover,
html[data-line="halal"] .fk-btn:focus-visible{
  background: #0B452F;
  border-color: var(--fk-accent-on-dark);
}

/* The pending marker reads as a ceremonial seal, not a warning chip. */
html[data-line="halal"] .fk-cert{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: .35rem auto .1rem;
  padding: .3rem .85rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
}
html[data-line="halal"] .fk-cert--pending{
  background: #FBF7EC;
  color: #6B4F16;
  border: 1px solid var(--fk-accent-decor);
}
html[data-line="halal"] .fk-cert--pending::before{
  content: "";
  width: 9px;
  height: 9px;
  background: var(--fk-accent-decor);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* --- 6. Form + waitlist --------------------------------------------- */

html[data-line="halal"] .fk-waitlist{
  background: var(--fk-surface-alt);
  border: 1px solid rgba(184, 146, 58, .4);
  border-radius: 14px;
  padding: clamp(1rem, 2.6vw, 1.5rem);
}
html[data-line="halal"] .fk-waitlist__input{
  border-radius: 999px;
  border: 1px solid rgba(184, 146, 58, .55);
  background: #FFFDF9;
  min-height: 44px;
  padding-inline: 1rem;
  color: var(--fk-ink);
}

/* --- 7. Footer plate ------------------------------------------------ */

html[data-line="halal"] .fk-footer{
  background: var(--fk-brand);
  border-top: 2px solid var(--fk-accent-decor);
}

/* --- 8. Small screens ------------------------------------------------ */

@media (max-width: 620px){
  html[data-line="halal"] .fk-card-media{
    border-radius: 58% 58% 6px 6px / 34% 34% 6px 6px;
  }
  html[data-line="halal"] .fk-page-hero{
    padding-block: 1.9rem;
  }
}

/* Motion stays inside the 150-250ms budget and honours reduced motion. */
@media (prefers-reduced-motion: reduce){
  html[data-line="halal"] .fk-card-media,
  html[data-line="halal"] .fk-btn{
    transition: none;
  }
}


/* --- 9. Corrections measured on the live page -----------------------
   Two defects found by measurement, not by eye:
     1. product media rendered 233x175 (landscape), so a 60% / 46% radius
        produced a rounded blob instead of a pointed ogival arch. A pointed
        arch needs to be taller than it is wide, and Spec 2 asks for a 4:5
        product ratio anyway, so the ratio and the arch agree now.
     2. the halal hero left 109px of empty green above its heading. */

html[data-line="halal"] .fk-card-media{
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px;
}

html[data-line="halal"] .fk-page-hero{
  padding-block: clamp(1.5rem, 3.2vw, 2.3rem);
}
html[data-line="halal"] .fk-page-hero h1{
  margin-block: 0;
  line-height: 1.06;
}

/* Ornament above the halal heading: brass rule, eight-point star, brass rule. */
html[data-line="halal"] .fk-page-hero .fk-ornament{
  margin: 0 auto .7rem;
}
