// Skin · Skin Concern · Barrier Damage — L3 data
// Visual skeleton must match the Oily prototype exactly. Vary copy, never layout.

const OILY = {
  type: "Barrier damage",
  parent: { title: "Skin Concern", href: "/en/skin/skin-concern/" },
  grandparent: { title: "Skin", href: "/en/skin/" },
  totalCount: 162,
  hero: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=1800&q=80&auto=format&fit=crop",
  heroAlt: "Stripped, reactive skin — barrier damage study in natural light",
  h1: "How to repair barrier damage.",
  deck: "The over-exfoliated face. The reset week. Stinging, redness, and sudden breakouts as a signal. Centella, ceramides, and fewer products — the full library.",
  intro: "Barrier damage is usually self-inflicted. A few weeks of too many actives, too much exfoliation, or the wrong cleanser — and the skin starts telling you about it in the most inconvenient ways: stinging where it never stung before, redness that flares with products that used to be fine, sudden breakouts on skin that was otherwise clear. The stripping signs are reliable. The fix is also reliable: stop almost everything, start almost nothing, and give your barrier four to eight weeks to close. Centella asiatica, ceramides, and a single gentle moisturiser are the toolkit. Below is the full library on what barrier damage is, what caused it, and what the reset actually looks like in practice.",
  byline: "Edited by Nelly · Beauty & Style Director",
  meta: { count: 162, updated: "Updated 28 April 2026", reading: "Avg. 5 min per piece" },
};

// Skin-concern sibling rail — 7 siblings under /en/skin/skin-concern/
const TYPE_SIBLINGS = [
  { id: "dehydration",    title: "Dehydration",    n: "01", href: "/en/skin/skin-concern/dehydration/" },
  { id: "dullness",       title: "Dullness",        n: "02", href: "/en/skin/skin-concern/dullness/" },
  { id: "uneven-tone",    title: "Uneven tone",     n: "03", href: "/en/skin/skin-concern/uneven-tone/" },
  { id: "texture",        title: "Texture",         n: "04", href: "/en/skin/skin-concern/texture/" },
  { id: "congestion",     title: "Congestion",      n: "05", href: "/en/skin/skin-concern/congestion/" },
  { id: "barrier-damage", title: "Barrier damage",  n: "06", cur: true, href: "/en/skin/skin-concern/barrier-damage/" },
  { id: "sun-spots",      title: "Sun spots",       n: "07", href: "/en/skin/skin-concern/sun-spots/" },
];

const QUICK_FACTS = {
  defn: {
    h: "What 'barrier damage' actually means",
    body: "The skin barrier — technically the stratum corneum — is the outermost layer of skin: a tightly-packed structure of dead skin cells and lipids (ceramides, cholesterol, fatty acids) that keeps moisture in and irritants out. When it's compromised, the face becomes reactive, tight, prone to flushing, and suddenly intolerant of products it handled fine before. It's a mechanical problem, not a skin-type problem, and it heals with time and the right inputs.",
  },
  myths: [
    { m: "Adding more products will repair the barrier faster.",
      t: "More product on a compromised barrier usually prolongs the problem. The reset requires fewer inputs, not more. One cleanser, one moisturiser, possibly a ceramide serum. That's usually enough." },
    { m: "Barrier damage only happens to sensitive skin types.",
      t: "Any skin type can damage its barrier by over-exfoliating, over-cleansing, or stacking too many actives too quickly. Oily, combination, and 'tough' skin types are not immune." },
    { m: "Stinging means an active is working.",
      t: "Stinging means the barrier is open enough for the active to reach nerve endings it shouldn't reach. It's a warning signal, not confirmation of efficacy. Pause the active." },
  ],
};

const BEGINNER_PATH = {
  h: "Start here, if barrier repair is the goal.",
  deck: "Five pieces, in order. Around twenty-one minutes of reading. What you need to know before you add anything new.",
  steps: [
    { n: "01", t: "How to recognise barrier damage — the seven signals",  time: "4 min", note: "Stinging, sudden intolerance, tightness, redness. What each one means." },
    { n: "02", t: "The reset protocol — what to stop, what to keep",      time: "5 min", note: "Which actives to pause. The two-product minimum and why it works." },
    { n: "03", t: "Ceramides — what they are and where to find them",     time: "4 min", note: "How ceramides support barrier repair. Serum vs moisturiser. Concentration question." },
    { n: "04", t: "Centella asiatica — the soothing ingredient explained", time: "4 min", note: "What it does. Which forms are most studied. Why it earned its place in barrier repair." },
    { n: "05", t: "Reintroducing actives after a reset",                  time: "4 min", note: "When the barrier is ready. One active at a time. The 4-week test." },
  ],
};

const TRENDING = [
  { rank: "01", t: "The barrier reset — a complete protocol",                        time: "6 min", auth: "Nelly", date: "Apr 26", img: "https://images.unsplash.com/photo-1571875257727-256c39da42af?w=1100&q=80&auto=format&fit=crop", reads: "14,887" },
  { rank: "02", t: "Ceramides in skincare — what they actually do",                  time: "4 min", auth: "Iris",  date: "Apr 22", img: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=1100&q=80&auto=format&fit=crop", reads: "11,233" },
  { rank: "03", t: "Stinging skin — what it's telling you",                          time: "3 min", auth: "Nelly", date: "Apr 17", img: "https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?w=1100&q=80&auto=format&fit=crop", reads: "9,540" },
  { rank: "04", t: "Centella asiatica — why it became the barrier repair standard",  time: "4 min", auth: "Nelly", date: "Apr 11", img: "https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=1100&q=80&auto=format&fit=crop", reads: "7,792" },
  { rank: "05", t: "When to reintroduce actives after a barrier reset",              time: "4 min", auth: "Iris",  date: "Apr 04", img: "https://images.unsplash.com/photo-1620916566398-39f1143ab7be?w=900&q=80&auto=format&fit=crop", reads: "6,102" },
];

const FORMAT_GUIDE = {
  h: "Approach, by use case",
  deck: "The barrier repair toolkit. Fewer things, used more carefully. This is not the time for variety.",
  formats: [
    { name: "Ceramide Serum",     when: "AM + PM, on clean skin, under moisturiser",     avoid: "Don't add many other serums on top during the reset",      note: "Replenishes the lipid component of the barrier. The most direct repair input.",   verdict: "★ Core" },
    { name: "Centella Moisturiser", when: "AM + PM, after serum if using one",           avoid: "Fragranced variants — check the ingredient list",          note: "Soothing + occlusive. Gentle enough for reactive skin. Broadly well-tolerated.",  verdict: "Essential" },
    { name: "Gentle Cleanser",    when: "Morning + evening, non-foaming or very gentle", avoid: "Gels with surfactants that foam heavily",                  note: "The cleanser is often the cause. Switching down is sometimes the fix.",           verdict: "Foundation step" },
    { name: "SPF (mineral)",      when: "Every morning, physical filter only during reset", avoid: "Chemical filters on reactive, broken skin initially",   note: "Zinc oxide and titanium dioxide are less likely to irritate open barrier.",       verdict: "AM non-negotiable" },
    { name: "Occlusive Balm",     when: "PM only, last step, thin layer",                avoid: "Over active acne",                                         note: "Seals everything in overnight. Petrolatum or squalane. Not for everyone nightly.", verdict: "PM optional" },
    { name: "All Other Actives",  when: "Not during the reset phase",                    avoid: "Completely — AHAs, BHAs, retinoids, vitamin C, niacinamide at high %", note: "The reset requires subtraction. Add back slowly after 4–8 weeks.", verdict: "Pause entirely" },
  ],
};

const HOWTOS = [
  { t: "The barrier reset — a complete protocol",                        time: 6, tech: "Routine",      auth: "Nelly", date: "Apr 26", img: "https://images.unsplash.com/photo-1571875257727-256c39da42af?w=900&q=80&auto=format&fit=crop", kick: "Routine",     pick: true },
  { t: "Ceramides — what they are and what they repair",                 time: 4, tech: "Serums",       auth: "Iris",  date: "Apr 22", img: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: true },
  { t: "Stinging skin — what to stop and what to start",                time: 3, tech: "Troubleshoot", auth: "Nelly", date: "Apr 17", img: "https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?w=900&q=80&auto=format&fit=crop", kick: "Troubleshoot", pick: true },
  { t: "Centella asiatica — the barrier repair ingredient explained",   time: 4, tech: "Serums",       auth: "Nelly", date: "Apr 11", img: "https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "Reintroducing actives after the reset — a four-week guide",     time: 4, tech: "Routine",      auth: "Iris",  date: "Apr 04", img: "https://images.unsplash.com/photo-1620916566398-39f1143ab7be?w=900&q=80&auto=format&fit=crop", kick: "Routine",     pick: false },
  { t: "Over-exfoliation — how to recognise it before it's serious",   time: 4, tech: "Essay",        auth: "Nelly", date: "Mar 28", img: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=900&q=80&auto=format&fit=crop", kick: "Essay",       pick: true },
  { t: "Gentle cleansers for damaged barrier — what to look for",       time: 4, tech: "Cleansing",    auth: "Iris",  date: "Mar 22", img: "https://images.unsplash.com/photo-1607006344380-b6775a0824a4?w=900&q=80&auto=format&fit=crop", kick: "Cleansing",   pick: false },
  { t: "Mineral SPF during a barrier reset",                            time: 3, tech: "SPF",          auth: "Nelly", date: "Mar 16", img: "https://images.unsplash.com/photo-1556228578-8c89e6adf883?w=900&q=80&auto=format&fit=crop", kick: "SPF",         pick: false },
  { t: "The two-product minimum — why less works",                      time: 3, tech: "Essay",        auth: "Iris",  date: "Mar 10", img: "https://images.unsplash.com/photo-1601049541289-9b1b7bbbfe19?w=900&q=80&auto=format&fit=crop", kick: "Essay",       pick: false },
  { t: "What caused your barrier damage — the checklist",               time: 4, tech: "Troubleshoot", auth: "Nelly", date: "Mar 04", img: "https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?w=900&q=80&auto=format&fit=crop", kick: "Troubleshoot", pick: true },
  { t: "Occlusive balm as a final PM step",                             time: 3, tech: "Moisturising", auth: "Iris",  date: "Feb 26", img: "https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=900&q=80&auto=format&fit=crop", kick: "Moisturising", pick: false },
  { t: "Niacinamide in barrier repair — is it safe to use?",           time: 4, tech: "Serums",       auth: "Nelly", date: "Feb 20", img: "https://images.unsplash.com/photo-1571875257727-256c39da42af?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "Redness that won't settle — what's happening",                  time: 4, tech: "Troubleshoot", auth: "Iris",  date: "Feb 14", img: "https://images.unsplash.com/photo-1601049541289-9b1b7bbbfe19?w=900&q=80&auto=format&fit=crop", kick: "Troubleshoot", pick: false },
  { t: "How long barrier repair actually takes",                        time: 3, tech: "Essay",        auth: "Nelly", date: "Feb 07", img: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=900&q=80&auto=format&fit=crop", kick: "Essay",       pick: false },
  { t: "Retinoids and barrier recovery — the sequence",                 time: 5, tech: "Serums",       auth: "Iris",  date: "Feb 01", img: "https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?w=900&q=80&auto=format&fit=crop", kick: "Ingredients", pick: false },
  { t: "Fragrance in skincare and the barrier — the connection",        time: 4, tech: "Essay",        auth: "Nelly", date: "Jan 24", img: "https://images.unsplash.com/photo-1570194065650-d99fb4bedf0a?w=900&q=80&auto=format&fit=crop", kick: "Essay",       pick: false },
  { t: "Rebuilding after winter damage",                                time: 4, tech: "Routine",      auth: "Iris",  date: "Jan 17", img: "https://images.unsplash.com/photo-1620916566398-39f1143ab7be?w=900&q=80&auto=format&fit=crop", kick: "Routine",     pick: false },
  { t: "How to tell barrier damage from dehydration",                   time: 3, tech: "Essay",        auth: "Nelly", date: "Jan 10", img: "https://images.unsplash.com/photo-1601049541289-9b1b7bbbfe19?w=900&q=80&auto=format&fit=crop", kick: "Essay",       pick: false },
  { t: "Sudden breakouts during a barrier reset — why it happens",      time: 4, tech: "Troubleshoot", auth: "Iris",  date: "Jan 03", img: "https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=900&q=80&auto=format&fit=crop", kick: "Troubleshoot", pick: false },
  { t: "Sleeping without actives — what the barrier recovery night looks like", time: 3, tech: "Routine", auth: "Nelly", date: "Dec 26", img: "https://images.unsplash.com/photo-1556228852-80b6e5eeff06?w=900&q=80&auto=format&fit=crop", kick: "Routine",     pick: false },
  { t: "The cleanser switch that changes everything",                   time: 3, tech: "Cleansing",    auth: "Nelly", date: "Dec 17", img: "https://images.unsplash.com/photo-1607006344380-b6775a0824a4?w=900&q=80&auto=format&fit=crop", kick: "Cleansing",   pick: false },
  { t: "Testing a new product on a recovered barrier",                  time: 3, tech: "Technique",    auth: "Iris",  date: "Dec 08", img: "https://images.unsplash.com/photo-1571875257727-256c39da42af?w=900&q=80&auto=format&fit=crop", kick: "Technique",   pick: false },
  { t: "Barrier damage and makeup — the cycle to break",                time: 4, tech: "Essay",        auth: "Nelly", date: "Nov 29", img: "https://images.unsplash.com/photo-1601049541289-9b1b7bbbfe19?w=900&q=80&auto=format&fit=crop", kick: "Essay",       pick: false },
  { t: "What 'skin cycling' actually does to the barrier",              time: 4, tech: "Essay",        auth: "Iris",  date: "Nov 18", img: "https://images.unsplash.com/photo-1598440947619-2c35fc9aa908?w=900&q=80&auto=format&fit=crop", kick: "Essay",       pick: false },
];

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

// Crosslinks to 4 adjacent concerns
const TYPE_CROSSLINKS = [
  { id: "dehydration",  title: "Dehydration",   deck: "Shares causes with barrier damage — different mechanism.", count: 189, href: "/en/skin/skin-concern/dehydration/" },
  { id: "congestion",   title: "Congestion",    deck: "Over-clearing congestion leads here.",                    count: 155, href: "/en/skin/skin-concern/congestion/" },
  { id: "texture",      title: "Texture",       deck: "The rough-skin version of this same over-treatment story.", count: 174, href: "/en/skin/skin-concern/texture/" },
  { id: "dullness",     title: "Dullness",      deck: "Damaged skin also looks flat. Repair first.",             count: 201, href: "/en/skin/skin-concern/dullness/" },
];

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