// Skin · Routine · PM — L3 data
// Live deploy version (parent = Routine, 5 siblings).
// Visual skeleton must match the Oily prototype exactly. Vary copy, never layout.

const OILY = {
  type: "PM Routine",
  parent: { title: "Routine", href: "/en/skin/routine/" },
  grandparent: { title: "Skin", href: "/en/skin/" },
  totalCount: 196,
  hero: "https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?w=1800&q=80&auto=format&fit=crop",
  heroAlt: "Editorial close-up — evening skincare ritual",
  h1: "How to build a PM routine.",
  deck: "Double cleanse, treatment, repair. The evening sequence — and why what happens while you sleep is the whole point.",
  intro: "PM is the routine that does the work. AM is the routine that protects what PM did. That means your evenings carry the load: double cleanse on nights when you wore SPF or makeup, one active on treatment nights, richer moisture than you'd use in the morning. The repair window runs from roughly 10pm to 2am — the skin's cell turnover peaks, barrier repair accelerates. You don't need to be awake for it. You need to have set the stage before you went to sleep. Below is everything we've published on evening skin care — the framework, the alternating-night logic, and the full library.",
  byline: "Edited by Nelly · Beauty & Style Director",
  meta: { count: 196, updated: "Updated 28 April 2026", reading: "Avg. 4 min per piece" },
};

// Routine sibling rail — 5 siblings under /en/skin/routine/
const TYPE_SIBLINGS = [
  { id: "am",               title: "AM Routine",       n: "01",            href: "/en/skin/routine/am/" },
  { id: "pm",               title: "PM Routine",       n: "02", cur: true, href: "/en/skin/routine/pm/" },
  { id: "layering-order",   title: "Layering Order",   n: "03",            href: "/en/skin/routine/layering-order/" },
  { id: "minimum-viable",   title: "Minimum Viable",   n: "04",            href: "/en/skin/routine/minimum-viable/" },
  { id: "active-management",title: "Active Management",n: "05",            href: "/en/skin/routine/active-management/" },
];

const QUICK_FACTS = {
  defn: {
    h: "What a PM routine actually does",
    body: "A PM routine removes the day — pollution, SPF, oxidised sebum, any makeup — and then delivers treatment actives to skin that's in repair mode. The two halves are non-negotiable: cleanse thoroughly first, treat second. Anything applied over inadequate cleansing is working through a filter of dead cells and residue.",
  },
  myths: [
    { m: "You can use the same routine morning and night.",
      t: "AM and PM have opposite jobs. AM protects. PM treats. Retinol, AHAs, and strong actives belong at night — sun makes them counterproductive or dangerous in the morning." },
    { m: "Double cleansing is only for heavy makeup wearers.",
      t: "SPF alone — which almost everyone wears daily — doesn't fully remove with a water-based cleanser. An oil or balm first, water cleanser second, is the right sequence whenever SPF was worn." },
    { m: "Night cream has to be heavy to work.",
      t: "The richness of your PM moisturiser should match your skin's need, not a general rule. Oily and combination types often do well with the same weight at night. Richer is for drier or older skin." },
  ],
};

const BEGINNER_PATH = {
  h: "Start here, if evening routines are new to you.",
  deck: "Five pieces, in order. About twenty minutes. Enough to understand the sequence and why each step matters.",
  steps: [
    { n: "01", t: "The PM framework — why evenings carry the load",              time: "3 min", note: "What skin does while you sleep. Why treatment goes here." },
    { n: "02", t: "Double cleansing, explained",                                  time: "4 min", note: "When to do it, what to use first, what not to skip." },
    { n: "03", t: "Treatment nights vs maintenance nights",                       time: "5 min", note: "Alternating the active. What to do on off nights." },
    { n: "04", t: "PM moisturiser — heavier than AM, not always",                time: "4 min", note: "How to match weight to skin type and season." },
    { n: "05", t: "The repair window — what it is and what supports it",          time: "3 min", note: "Cell turnover, barrier repair, why sleep matters." },
  ],
};

const TRENDING = [
  { rank: "01", t: "Double cleansing — when to do it and how",                   time: "4 min", auth: "Nelly", date: "Apr 25", img: "https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?w=1100&q=80&auto=format&fit=crop", reads: "13,450" },
  { rank: "02", t: "Treatment nights vs maintenance nights — the pattern",        time: "5 min", auth: "Iris",  date: "Apr 21", img: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=1100&q=80&auto=format&fit=crop", reads: "10,887" },
  { rank: "03", t: "The repair window — what happens while you sleep",            time: "3 min", auth: "Nelly", date: "Apr 16", img: "https://images.unsplash.com/photo-1571875257727-256c39da42af?w=1100&q=80&auto=format&fit=crop", reads: "9,112" },
  { rank: "04", t: "PM moisturiser — lighter or richer than AM?",                 time: "4 min", auth: "Iris",  date: "Apr 11", img: "https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=1100&q=80&auto=format&fit=crop", reads: "8,034" },
  { rank: "05", t: "First cleanse — oil, balm, or micellar?",                    time: "3 min", auth: "Nelly", date: "Apr 04", img: "https://images.unsplash.com/photo-1556228578-8c89e6adf883?w=1100&q=80&auto=format&fit=crop", reads: "6,729" },
];

const FORMAT_GUIDE = {
  h: "Cadence, by night type",
  deck: "What the evening looks like depending on what the day looked like. None of these are products — they're sequences.",
  formats: [
    { name: "Treatment Night",   when: "2–3x per week, SPF worn, no fragile skin days", avoid: "Every night — the active needs a break", note: "Double cleanse, active, moisturiser. The full sequence.", verdict: "★ Core" },
    { name: "Maintenance Night", when: "Non-treatment nights, skin rest nights",         avoid: "As the only night type — skin still needs actives", note: "Single cleanse if no SPF worn, hydrating serum, richer moisture.", verdict: "Rest nights" },
    { name: "Post-Sun Night",    when: "After UV exposure, beach days, high altitude",   avoid: "Actives — this is recovery, not treatment",           note: "Gentle cleanse, aloe or ceramide serum, occlusives. Skip the active.", verdict: "Recovery" },
    { name: "Slugging Night",    when: "Deep winter, compromised barrier, very dry patches", avoid: "Oily skin, humid summer, over actives",           note: "Complete routine, then thin layer of petrolatum or balm to seal.", verdict: "Targeted" },
    { name: "Minimal Night",     when: "Exhausted nights, travel, illness",              avoid: "As a sustained pattern — skin does need the routine", note: "Micellar wipe, hydrating mist, thin moisture. Better than nothing.", verdict: "Emergency" },
    { name: "Retin-A Night",     when: "Dedicated retinoid evenings, buffer protocol",   avoid: "Mixing with acids, same night as exfoliation",        note: "Gentle cleanse, moisturiser first (buffer), retinoid, no layering over.", verdict: "Actives" },
  ],
};

const HOWTOS = [
  { t: "Double cleansing — when to do it and how",                time: 4, tech: "Cleansing",     auth: "Nelly", date: "Apr 25", img: "https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?w=900&q=80&auto=format&fit=crop", kick: "Cleansing", pick: true },
  { t: "Treatment nights vs maintenance nights",                   time: 5, tech: "Routine",       auth: "Iris",  date: "Apr 21", img: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=900&q=80&auto=format&fit=crop", kick: "Routine", pick: true },
  { t: "The repair window — sleep and skin turnover",             time: 3, tech: "Essay",         auth: "Nelly", date: "Apr 16", img: "https://images.unsplash.com/photo-1571875257727-256c39da42af?w=900&q=80&auto=format&fit=crop", kick: "Essay", pick: false },
  { t: "PM moisturiser — matching weight to skin type",           time: 4, tech: "Moisturising",  auth: "Iris",  date: "Apr 11", img: "https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=900&q=80&auto=format&fit=crop", kick: "Technique", pick: true },
  { t: "First cleanse: oil, balm, or micellar?",                  time: 3, tech: "Cleansing",     auth: "Nelly", date: "Apr 04", img: "https://images.unsplash.com/photo-1556228578-8c89e6adf883?w=900&q=80&auto=format&fit=crop", kick: "Cleansing", pick: false },
  { t: "How to layer actives at night without irritation",        time: 6, tech: "Layering",      auth: "Iris",  date: "Mar 30", img: "https://images.unsplash.com/photo-1620916566398-39f1143ab7be?w=900&q=80&auto=format&fit=crop", kick: "Layering", pick: true },
  { t: "Slugging — the case for sealing at night",                time: 4, tech: "Moisturising",  auth: "Nelly", date: "Mar 26", img: "https://images.unsplash.com/photo-1601049541289-9b1b7bbbfe19?w=900&q=80&auto=format&fit=crop", kick: "Technique", pick: false },
  { t: "Retinol for beginners — PM only, and why",                time: 5, tech: "Serums",        auth: "Iris",  date: "Mar 21", img: "https://images.unsplash.com/photo-1607006344380-b6775a0824a4?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "AHA at night — when to use, when to skip",               time: 4, tech: "Serums",        auth: "Nelly", date: "Mar 17", img: "https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "The buffer method for retinoids",                          time: 4, tech: "Layering",      auth: "Nelly", date: "Mar 12", img: "https://images.unsplash.com/photo-1556228720-195a672e8a03?w=900&q=80&auto=format&fit=crop", kick: "Technique", pick: false },
  { t: "Night oils — where they fit, where they don't",           time: 3, tech: "Moisturising",  auth: "Iris",  date: "Mar 08", img: "https://images.unsplash.com/photo-1570194065650-d99fb4bedf0a?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "Post-sun PM routine — the recovery sequence",             time: 5, tech: "Routine",       auth: "Nelly", date: "Mar 03", img: "https://images.unsplash.com/photo-1556228453-efd6c1ff04f6?w=900&q=80&auto=format&fit=crop", kick: "Routine", pick: false },
  { t: "Second cleanse — what it should feel like when it's right", time: 3, tech: "Cleansing",   auth: "Iris",  date: "Feb 27", img: "https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?w=900&q=80&auto=format&fit=crop", kick: "Cleansing", pick: false },
  { t: "Face oil vs sleeping mask — PM finishing options",        time: 4, tech: "Moisturising",  auth: "Nelly", date: "Feb 22", img: "https://images.unsplash.com/photo-1571875257727-256c39da42af?w=900&q=80&auto=format&fit=crop", kick: "Format", pick: false },
  { t: "How to structure a rest night (no actives)",              time: 3, tech: "Routine",       auth: "Iris",  date: "Feb 17", img: "https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=900&q=80&auto=format&fit=crop", kick: "Routine", pick: false },
  { t: "Peptides at night — where they earn their place",         time: 5, tech: "Serums",        auth: "Nelly", date: "Feb 12", img: "https://images.unsplash.com/photo-1583416750470-965b2707b355?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "Ceramide serums at night — the barrier argument",         time: 4, tech: "Serums",        auth: "Iris",  date: "Feb 07", img: "https://images.unsplash.com/photo-1620916566398-39f1143ab7be?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "The exhausted-night routine — what actually counts",      time: 3, tech: "Routine",       auth: "Nelly", date: "Feb 02", img: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=900&q=80&auto=format&fit=crop", kick: "Essay", pick: false },
  { t: "Benzoyl peroxide at night — usage without the sheets",   time: 4, tech: "Serums",        auth: "Iris",  date: "Jan 28", img: "https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "Travel PM — what to keep when you can only bring three", time: 4, tech: "Routine",       auth: "Nelly", date: "Jan 23", img: "https://images.unsplash.com/photo-1556228453-efd6c1ff04f6?w=900&q=80&auto=format&fit=crop", kick: "Routine", pick: false },
  { t: "Why skipping the PM routine ages skin faster",            time: 5, tech: "Essay",         auth: "Iris",  date: "Jan 18", img: "https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?w=900&q=80&auto=format&fit=crop", kick: "Essay", pick: false },
  { t: "Hyaluronic acid at night — under or over everything?",   time: 3, tech: "Layering",      auth: "Nelly", date: "Jan 13", img: "https://images.unsplash.com/photo-1571875257727-256c39da42af?w=900&q=80&auto=format&fit=crop", kick: "Layering", pick: false },
  { t: "Niacinamide at night — separate from vitamin C",         time: 4, tech: "Serums",        auth: "Iris",  date: "Jan 08", img: "https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "The PM routine for combination skin — split approach",   time: 5, tech: "Routine",       auth: "Nelly", date: "Jan 03", img: "https://images.unsplash.com/photo-1607006344380-b6775a0824a4?w=900&q=80&auto=format&fit=crop", kick: "Routine", pick: false },
];

const TECH_FILTERS = ["All", "Cleansing", "Moisturising", "Serums", "Layering", "SPF", "Routine", "Essay", "Troubleshoot"];

// Crosslinks to other routines — 4 (everything except current)
const TYPE_CROSSLINKS = [
  { id: "am",                title: "AM Routine",         deck: "Four steps. SPF last. The protection half of the equation.",           count: 218, href: "/en/skin/routine/am/" },
  { id: "layering-order",    title: "Layering Order",     deck: "Thinnest to thickest. Water before oil. SPF last in the morning.",     count: 143, href: "/en/skin/routine/layering-order/" },
  { id: "minimum-viable",    title: "Minimum Viable",     deck: "Three products. What you can skip and what you can't.",                count: 127, href: "/en/skin/routine/minimum-viable/" },
  { id: "active-management", title: "Active Management",  deck: "Skin cycling, builder routines, and the reset week.",                  count: 162, href: "/en/skin/routine/active-management/" },
];

Object.assign(window, {
  OILY, TYPE_SIBLINGS, QUICK_FACTS, BEGINNER_PATH, TRENDING, FORMAT_GUIDE, HOWTOS, TECH_FILTERS, TYPE_CROSSLINKS,
});
