/*
Theme Name: Dr Briffa — Modern Wellness
Theme URI: https://www.drbriffa.com/
Author: Dr John Briffa / prepared for Amir G
Description: Design 2 — Modern Wellness, chosen 7 Nov 2026 over Design 1 Editorial. Full-width black hero, card-based homepage, right sidebar, books and newsletter sections. Colour scheme updated 8 Nov 2026 to match https://www.drjohnbriffa.com/ — white background, black text, sky blue #60BEFF accent. v0.1.4 (9 Nov 2026): synced to the approved four-page Design 2 preview after Amir's 9 Nov changes — separate About Us, Articles/Blog and Books pages, all About/Articles/Books links lead to those pages, the 1,460-article count is removed and the archive range is 2002–2026. v0.1.5 (10 Nov 2026): synced to the approved five-page Design 2 preview — separate Contact Us page (page-contact.php, slug contact-us, Make an Enquiry form to enquiries@drjohnbriffa.com) and The Performance Prescription cover wired into the Books page. v0.1.6 (10 Nov 2026): fixes two defects found on staging — Articles search (?s= on a page URL 404'd; forms now use ?arts=, with a redirect for old ?s= links) and the missing 404 page (new 404.php with a visible "Page not found" message); homepage lists now exclude the default "Hello world!" sample post. v0.1.7 (10 Nov 2026): fixes that exclusion properly — v0.1.6 used 'post_name__not_in', which does not exist in WordPress and was silently ignored, so "Hello world!" still led the lists; v0.1.7 resolves the slug to a post ID at runtime and excludes by ID ('post__not_in'), including the main query (home/archive/search) and the prev/next links on single posts. v0.1.8 (10 Nov 2026): every article now always shows an image — featured image, else the first image in the post body, else the bundled default (assets/default-article.jpg) — and a display-only filter repairs the backslash-escaped quotes (\" and \') the importer added to some image URLs and titles. v0.1.10 (10 Nov 2026): fixes a v0.1.9 bug found on staging — cards still showed the blue banner because the check only matched 'default-article.jpg' while cards use the resized 'default-article-720x480.jpg'; the check now matches 'default-article' in any size, and the per-article generated image now comes first in the chain, so an article with a generated picture shows it even if it already has a real featured image. Adds 4 more per-article images (articles 13–16: pre-diabetes, statins and exercise, magnesium in older women, cholesterol-reducing foods), 20 images total in assets/article-images/. v0.1.11 (10 Nov 2026): adds the rest of batch 1 (articles 17–62: low-carb and diabetes, statin debate, fruit and veg, statins and heart failure, doctors oppose statins, BMJ patient peer review, sunscreen, statin retraction, statin barriers, sleep and memory, bedroom light, statin diabetes risk, NHS carbs, BMJ statin withdrawal, light and sleep, statin documentary, Diabetes UK diet, statin opinion leaders, intensive statin therapy, walking and ideas, coffee and diabetes, statins for younger women, cholesterol and immunity, low blood sugar, walking and brain, ezetimibe, cardiologist and patient wishes, BBC radio phone-in, statin data, NHS Choices, GSK opinion leaders, saturated fat, fruit juice, statins safe, statin risk tool, high protein diet, five things I do now, shared decision making, NHS Choices complaint, BBC WM interview, mammography, statin statistics, diet wagon, BMJ editor, statins and heart failure death, Sugar v Fat) and the start of batch 2 (articles 63–64: electronic health records, butter in margarine) — 72 images total in assets/article-images/ — plus second-image support: articles 1–4 show their second generated picture inside the article text, after the 2nd paragraph (see drbriffa_insert_second_image in functions.php). v0.1.12 (10 Nov 2026): adds the rest of batch 2 (articles 65–112: coffee and dehydration, The Calorie Myth, BHF statins data, NHS dieticians, statins and brain drain, technology and doctors' skills, coming off statins, avoiding over-eating in the evening, FDA unproven drugs, Coca-Cola sugar, cholesterol committee conflicts, flu vaccination, doctors skeptical of cholesterol guidelines, vegetable oils, cholesterol medications with no proven benefits, elderly lady and flu vaccination, margarine evidence, butter versus margarine in The Times, BMJ statins misled, sugar and starch and brain ageing, cholesterol and stroke outcomes, respectful of the overweight, Flora pro.activ adverts, statins in healthy elderly, nuts and weight gain, breakfast, statin trial benefits and the population, cancer screening hazards, statin and memory in animals, statins and dementia, exercise less is more, exercise and appetite, back on statins, lack of sleep and obesity, cholesterol target level, higher protein diets, statin and antibiotic combinations, artificial sweeteners and weight gain, raised cholesterol and reduced death risk, food phasing and PCOS, cholesterol-lowering and accidents/suicide/violence, BHF and sterols, sleep and light timing, stanols and sterols, walking and memory, health checks, Fat Information Service parts 1 and 2) — 120 images total in assets/article-images/. v0.1.13 (10 Nov 2026): adds batch 3 (articles 113–162: fish oil and prostate cancer, BHF and unproven cholesterol-lowering foods, exercise and fat genes, children eating healthily, children's hospital and reputation, diet and hay fever, statin adverts and prescribing, diabetes study and carbohydrate, BMJ treatment guidelines, doctor questions statins, beliefs about weight, thyroid extracts, statins and exercise benefits, HDL-boosting agents, sunlight and melanomas on the soles of the feet, forbidding foods, surgeons' league tables, blood type diet, snoring and sleep apnoea, statins and CoQ10, kids and sunscreen, avoiding evening eating, drug companies and flu medication data, B-vitamins and Alzheimer's, pot smoking, statin side effects on the brain, low-carb diets and metabolism, low-carb diets and sleepiness, sunlight and blood pressure, FDA and an unproven cholesterol drug, earthing and circulation, the pharmaceuticalised management of diabetes, female rats and binge eating, doctors treating patients as individuals, cholesterol and immunity, patients as the new doctors, BBC journalist and low-carb eating, cardiovascular disease calculators, migraine and colic, think yourself young, cardiologist and eye contact, drug company pays off shareholders, walking versus running, insulin and breast cancer, statins for those unlikely to benefit, podcast 29 March 2013, researchers recommending a drug with no benefit, constipation and colon cancer, overweight doctors and trust, the value of modern medicine) — 170 images total in assets/article-images/. v0.1.14 (10 Nov 2026): adds batch 4 (articles 163–212: vitamin D and muscle energy, bacon and sausage, dairy and children's constipation, niacin drug withdrawn, statin side effects more common than statistics suggest, walking and back pain, fibre and constipation, podcast 1 March 2013, dairy not inflammatory, cholesterol guidelines relaxing, dietary fats and the British Nutrition Foundation, sleep more and weight control, artificial sweeteners and weight loss, vitamin D and insulin, hydration guide, statins and extending life, statins nullifying omega-3, obesity and vitamin D deficiency, saturated fat versus vegetable oils and heart attack, podcast 31 January 2013, vegetarianism and heart benefits, statins and Alzheimer's brain function, alcohol and sleep, Swedes and low-carb diets, raised cholesterol and elderly survival, aspartame toxic to animal brains, doctor-patient communication and compliance, sugar industry heat, yoghurt for breakfast, insurance policy and cholesterol, soft drinks and depression, interview with Jimmy Moore, statins and heart failure epidemic, ignoring the doctor's weight opinion, artificial sweeteners and weight gain in animals, ezetimibe false benefits, realistic exercise and weight loss, doctor listening to patients, drug company kills cholesterol drug, vitamin D and mum, fibrates useless, fruit and veg not filling, podcast 3 December 2012, gluten sensitivity, skin cancer scare and rickets, ask my cholesterol level, faith in cholesterol strategies, antibiotics and diverticulitis, flu vaccination over-promoted, statins and sexual functioning) — 220 images total in assets/article-images/.  v0.1.15 (10 Nov 2026): adds batch 5 (articles 213–262: exercise on an empty stomach and fat loss, aspartame and cancer, mindful eating and diabetes, vitamin D in The Times, statins and cancer risk, Roche and Tamiflu data, mammography harms, new cholesterol drug licensed without evidence, podcast 26 October 2012, low cholesterol and death in heart failure, medical device licensing in Europe, mental tricks for motivation, statins with no benefit for healthy people, industry sponsorship of health advice, low cholesterol and death risk, vitamin D and fat loss in women, Warburtons bread misinformation, light therapy in children and pregnancy, the French paradox, diabetic transforms health with low-carb, sleeping pills and dementia, podcast 28 September 2012, British Nutrition Foundation and bread, bread the staff of life, headache pills that cause headaches, sporting skill and a simple squeeze, high-fat diet and scheduled eating in mice, doctor empathy and patient outcomes, Diabetes UK and cholesterol advice, exercise for frail older people, potent statins and caution, laptops and tablets in the evening and sleep, dietary excitotoxins and fibromyalgia, statins for everyone over 50, how often should we eat, regular weighing and weight loss, academic swipe at ezetimibe, low-carb eating and health markers, drugs for mild high blood pressure, correlation does not prove causation, industry-funded statin study, opinion leaders and undisclosed conflicts, BMJ and mammography promotion, Japanese experts and the cholesterol hypothesis, the lower the cholesterol the better mantra, coeliac disease and gluten sensitivity, margarine additive and Alzheimer's, hunter-gatherers and diet, alcohol and increased eating, cholesterol screening in children) — 270 images total in assets/article-images/. v0.1.16 (10 Nov 2026): adds batch 6 (articles 263–312: polypill hype, high-intensity intermittent exercise and fat loss, TV and sleep and weight, patient involvement in decision making, statin side effects survey, low iron and fatigue in women, GlaxoSmithKline fraud, British Heart Foundation and the scientific facts, the most useful question a doctor can ask, cynicism about the food industry and obesity, vitamin D and anti-depressant effects, statins and women's lives, low-carb diet in type 1 diabetes, walking test and heart disease, government and food industry obesity initiatives, statins draining the life out of us, exercise and metabolism, shocking Swedish science, blood pressure medications, magnesium for migraine, high-intensity intermittent exercise and runners, healthy snacking, blogger sues dietetic body, doctors and drug company marketing hype, cholesterol-lowering foods, correlation does not prove causation, diabetics and low-carb eating, statins for healthy people, wheat opiate of the masses, intermittent fasting in mice, power to the people, avoiding sunscreens, insulin and weight gain after stopping smoking, more sleep and weight control, cardiologist and cholesterol wisdom, the dark side of sunscreens, conflicts of interest and bias, natural remedy for irritable bladder, thyroid management and heart disease, higher protein diets, government flu claims, earthing, better sleep guide, statin side effects statistics, lack of sleep and weight gain, berries and the brain, low cholesterol and cancer, flu vaccine claims, flu vaccination and death in the elderly, the new cholesterol-busting drug) — 320 images total in assets/article-images/. v0.1.17 (10 Nov 2026): adds batch 7 (articles 313–362: placebo response, vitamin D starting dose, acne and primal diet, Tom Naughton talk, low-carb versus low-fat, red meat bias, BMJ columnist and industry payments, coffee and diabetes risk, Kellogg's sugar misleading, Diabetes UK dietary advice, FDA statin warnings, screening weight issues in children, intermittent fasting in The Times, doctors and evidence, diabetes charity house in order, lack of sleep and over-eating, obesity advisor, vitamin D and fat loss, interview with Matt Edmundson, insulin and fattening, light in the ears and winter blues, lack of sleep and obesity, health charities and drug companies, hunger and willpower, manuka honey and wound healing, vitamin D deficiency and sudden infant death, blessed are the meek, leptin and fat control, doctors' strike, scientific journals and fraud, aspirin and disease prevention, vegetarian diet debate, weight loss and leptin, statins and diabetes, protein and weight, podcast on Escape the Diet Trap, calorie counting, new year's resolution and water, targeting sweet foodstuffs, magnesium and stroke risk, Escape the Diet Trap published, safe starch, enjoy your food but not too much, podcast 16 December 2011, calcium and vitamin D and toxic fat, fever and the immune system, anti-detox stance, podcast 9 December 2011, low-carb diet and PCOS, food and cholesterol claims) — 370 images total in assets/article-images/. v0.1.18 (10 Nov 2026): adds batch 8 (articles 363–412: eat before exercise, podcast 2 December 2011, HDL cholesterol and heart disease, aspirin for heart prevention, low-carb diets and cancer, podcast 25 November 2011, FDA and drug company hype, how often should we eat, catching flu to prevent flu, podcast 18 November 2011, water and dehydration and the EU, diet and weight gain, mammography and saved lives, podcast 11 November 2011, children exercising and obesity, statins harm as many as they help, flu vaccine doctor story, podcast 4 November 2011, omega-3 and Alzheimer's in animals, calorie labelling in restaurants, in them we trust, vitamin D and cereal, UK government and mammography, roll up for the flu vaccine, podcast 21 October 2011, shift workers and multiple sclerosis, mammography anxiety, guidelines conflicts of interest, podcast 14 October 2011, restless legs and blood pressure, SAD and winter mornings, ancient ancestors and low-carb diet, podcast 7 October 2011, fair skin and vitamin D deficiency, whey protein and body fat, raised cholesterol as a cause for celebration, podcast 30 September 2011, B12 deficiency and brain shrinkage, medical journal editors and statins, fructose and fat burning, podcast 23 September 2011, the big debate in nutrition, hunger and healthy eating, holes in the cholesterol hypothesis, podcast 16 September 2011, scientific evidence becoming unreliable, chewing food and overeating, Dr Robert Atkins, podcast 9 September 2011, exercise and dementia prevention) — 420 images total in assets/article-images/ — and adds a version query (?v=0.1.18) to generated image URLs so a replaced picture is not served stale from the edge cache. v0.1.19 (10 Nov 2026): adds batch 9 (articles 413–462: acid-suppressing medication, actuaries in medicine, podcast 2 September 2011, children and sunlight, coffee and blood pressure, mammograms misleading women, podcast 26 August 2011, light therapy in winter, dehydration and resistance exercise, FDA conflicts of interest, podcast 19 August 2011, alcohol and sleep, a little exercise, cold water and shorts in winter, podcast 12 August 2011, walking, mental illness, shifting the goalposts, stomach bloating, regained weight, disrupted sleep and fat burning, podcast 29 July 2011, Flora pro.activ advertorial, aspartame and muscle pain, dairy and weight loss, podcast 22 July 2011, self-criticism and weight loss, vitamin D and type 2 diabetes, newspaper and cholesterol food, podcast 15 July 2011, obesity charity and sweeteners, doctors ignoring evidence, low-fat advice review, podcast 8 July 2011, dehydration and brain function, cholesterol in Japan, tennis, podcast 1 July 2011, trial design bias, low-carb diet and belly fat, low-carb pizza, podcast 26 June 2011, protein and resistance exercise, fructose versus glucose, sleepiness and carbs, podcast 17 June 2011, the 1000th post, formaldehyde and aspartame, agriculture and health, podcast 10 June 2011) — 470 images total in assets/article-images/ — and adds the same version query to the second images inside articles 1–4. v0.1.20 (10 Nov 2026): adds batch 10 (articles 463–512: ezetimibe and harm, ovarian cancer screening, vitamin D and infection, podcast 3 June 2011, MSG and obesity, type 1 diabetes for 80 years, low-carb trumps low-fat, podcast 27 May 2011, hunger and domestic disharmony, melanoma doctor and more sun, red meat, podcast 20 May 2011, broadening the definition of disease, vitamin D and the elderly, 'normal' levels and reference values, podcast 13 May 2011, sunlight and vitamin D and inflammatory bowel disease, thyroid problems and miscarriage, Paleolithic diet and diabetes, podcast 6 May 2011, sleep and insulin, 'solar power' for human beings, emotional eating, podcast 29 April 2011, BMJ and medical evidence, blood sugar and death, cholesterol-reducing compounds toxic to heart cells, podcast 22 April 2011, diabetic neuropathy, my lunch, probiotic pessaries and urinary tract infections, podcast 15 April 2011, iodine deficiency in the UK, exercise and blood supply to the brain, hazards of modern medicine, podcast 8 April 2011, high-intensity intermittent exercise, sun and melanoma, coeliac diagnosis, podcast 1 April 2011, fibrates, carbs and the brain, my intermittent fasting experiment, podcast 25 March 2011, lack of sleep and hunger, trans fats, stopping smoking, high-fat diets, cholesterol guidelines review, aerobic exercise and fun) — 520 images total in assets/article-images/. v0.1.21 (10 Nov 2026): adds batch 11 (articles 513–562: aggressive treatment of type 2 diabetes, obesity all in the mind, milk and calcium and bones, low-carb diet and liver fat, high cholesterol and stroke, 'normal' thyroid function, vitamin D yoghurt and diabetics, protein and body composition in women, red meat's nutritional value, glycaemic load, light exposure and mood, water fluoridation, behavioural problems in adolescents, sunlight and vitamin D and multiple sclerosis, uncertainty of medical practice, sunscreens and skin cancer, protein and amino acids and muscle, walking and brain structure, cholesterol reduction and dubious benefits, gluten reaction without coeliac disease, antioxidants and fertility in men, persistent coughing, statins and healthy people, drug marketing, lights down low in the evening, fluoridation harm, fat loss guide, vegetarian diet, antibiotic and IBS, American women and mammograms, meat the original superfood, moderate drinking and the heart, bran and the bowels, my nutritional Christmas wish list, placebos, omega-3 and muscle synthesis in the elderly, sleep deprivation and attractiveness, curbing alcohol, primal versus Mediterranean diet, eating while distracted, very low carb diets and the brain, FDA and breast milk, walking and brain function, flu vaccination claims, protein and the war on weight, flu vaccination largely ineffective, flaws in nutritional guidelines, resistance training and diabetics, mammography and the full facts, statins review and cholesterol) — 570 images total in assets/article-images/. Also fixes the cache-busting: WordPress reports this theme's Version as blank, so the ?v= on image URLs was empty (?v=) from v0.1.18–v0.1.20 — functions.php now uses a hardcoded DRBRIFFA_THEME_VERSION constant (0.1.21) for image URLs, second images and the stylesheet, so picture links really do change with each theme update. v0.1.22 (10 Nov 2026): adds batch 12 (articles 563–612: fat tax, Twinkie diet experiment, omega-3 and brain function in older adults, eggs and heart disease, solid food, marathon running and the heart, statins and survival, fructose, restless legs and fibromyalgia, low-carb diet in pregnancy, fish oil and body composition, antidepressants, weight control and calories, winter blues, protein intakes, cholesterol researchers, sleep and body composition, exercise and weight loss, epidemiological evidence, cinnamon and diabetics, mammography, protein-rich diet and appetite, saturated fat and cardiovascular death, rebranding unhealthy food, fish and prostate cancer, 77 hours of exercise, physical function and death risk, mindless eating, BMJ and the drug industry, brain function, omega-3 margarine, walking in later life, vitamin D and disease risk, drinking water and weight loss, berries and the brain, green vegetables and diabetes, L-carnitine and fertility, UVB lights and psoriasis, fast food and statins, WHO flu committee, hydration in the heat, high starch diets, fructose and cancer, drug companies and selective publishing, omega-3 and depression in women, healthy BMI, diabetes costs, meat and weight gain, low cholesterol and depression) — 620 images total in assets/article-images/. v0.1.23 (10 Nov 2026): adds batch 13 (articles 613–662: multivitamins and fat loss, rapid weight loss, food satisfaction and belief, rosiglitazone hazards, sedentary behaviour, bitter taste, wholegrains and the heart, sweeteners and pre-term delivery, statins and healthy lives, vitamin D and infection, low-carb versus low-fat diets, low-GI/GL and inflammation, fructose and fatty liver, trans fats and the law, snacking and weight control, selenium and post-natal depression, saturated fat and heart disease, BMJ and modern medicine, Agnus castus and PMS, WHO corruption, tooth-brushing and heart disease, vitamin D and Crohn's disease, Food for Thought exam nutrition, psychiatrist and psychiatry, exercise and weight loss, water and brain function, low-GI diet and PCOS, low-carb propaganda, omega-3 and antidepressant effect, less medicine, slow and steady weight loss, high-protein diet and resistance exercise, sunlight and multiple sclerosis, home blood pressure monitoring, diabetics misinformed, sunlight and independence in old age, joint pain and arthritis, Waist Disposal, fatigue and energy, NUTRINALYSIS tool, banishing IBS, energised afternoon, forget the BMI, calorie counting stress, Waist Disposal book launch, vitamin D and cancer, zinc and mood in women, milk and acne, 6 Essentials to Emotional Health, 6 Essentials to Physical Health) — 670 images total in assets/article-images/. v0.1.24 (10 Nov 2026): adds batch 14 (articles 663–712: dairy and my love-hate relationship, saturated fat versus carbohydrate and the heart, random acts of kindness, lack of sleep and over-eating, eat less and exercise more, BMJ and mammography, high-fructose corn syrup and the calorie, coffee and biochemical benefits, prostate cancer screening, melanoma survivors and other cancers, vitamin D timing, vitamin D and flu in children, gluten and milk and constipation in kids, redheads in Scotland, my personal fat-loss experience, rye bread and bowel regularity, cinema popcorn, iron and brain function, food health claims, walking and glucosamine and osteoarthritis, difficulty falling asleep and light therapy, flu vaccination and the elderly, higher-protein diet and resistance exercise in type 2 diabetics, drinking water, cranberry and urinary tract infections in girls, blood sugar control and energy and mood, vitamin D and infection, being overweight and lowest risk of death, omega-3 and psychotic illness, magnesium and asthma, drug effects not cholesterol, low-carb versus low-fat plus medication, fish oil and ageing, heart surgeon and saturated fat, primal and low-carb diets and simplicity, saturated fat and heart disease studies, artificial sweeteners and the brain, exercise and weight loss, eating speed and satisfaction, pedometer use and activity, early to bed, nutritional past and primal eating, realistic new year resolutions, oesophageal spasm, a random act of kindness, vitamin D and depression and mood, food binges at Christmas, carbohydrate and the fattening advert, my vitamin D results take 2, polyunsaturates and health) — 720 images total in assets/article-images/. v0.1.25 (10 Nov 2026): adds batch 15 (articles 713–762: Tamiflu, losing the taste for sweetness, excess weight not always over-eating, light and pain relief, cinnamon and blood sugar, high-GI diet and fatness in mice, abdominal obesity and dementia, drug side-effects silenced, chewing and the gastroenterologist, exercisers and bread and pasta, vitamin D and type 1 diabetes, ezetimibe and Zetia, faster walking and longevity, statin side-effects, slower eating and appetite hormones, chocolate and skin, higher-protein diets and bone, tea and stress, adverse drug effects, vitamin D and stroke, mobile phones and brain tumours, ancient ancestors and athletes, metabolic advantage, fat not fattening, blue light and SAD, vitamin D and insulin sensitivity, vitamin D and falls, exercise and liver fat, food combining, higher-protein diets and weight loss maintenance, margarine and omega-3, vitamin D and death, fructose and blood pressure, vitamin D and cancer protection, high glycaemic load and insulin resistance, never too late to be active, wheat and diabetes, exercise benefits without weight loss, stress and weight gain, vitamin D and muscle strength in the elderly, eating late and weight gain, artificial sweeteners and weight loss, publication bias, vitamin D requirements, human not mice studies, sugar hazards, olive oil and obesity, sunlight and brain function, decaf coffee and arteries, probiotics and colds in children) — 770 images total in assets/article-images/. v0.1.26 (10 Nov 2026): adds batch 16 (articles 763–812: chocolate and heart attack survivors, exercise and weight loss, salt and blood pressure, aspartame ban, mindful eating, body fat in the elderly, high-carb diets and blood vessels, lower blood pressure, gluten without coeliac disease, Atkins and heart disease, glycaemic load and depression, low-fat high-carb hazards, indigestion drugs, my vitamin D results, high-carb diets and breast cancer, the overweight and lowest risk of death, vitamin D and death risk, low-GI diets and appetite hormone, breakfast and diabetics, vegetarians and cancer rates, nuts and diabetics, high-GI carbs and heart disease, carb cravings, vitamin D and infections, how we eat and appetite, Skin Cancer Foundation and vitamin D, vitamin D and weight loss, low-carb diet and satiety, the overweight and help, low-GI diet and gestational diabetes, HRT, walking as we age, exercise and iron in women, sunlight and psoriasis, vitamin D and body weight, B-vitamins and macular degeneration, sun and fitness, nuts in the diet, coconut oil, low-carb eating and diabetes, vitamin D and metabolic syndrome, obesity and eating more, higher-fat diet and nursing mothers, insulin and obesity, curtailed sleep and food intake, a calorie is not a calorie, healthy shopping, food labeling, sleep duration and diabetes, staying upright during childbirth) — 820 images total in assets/article-images/. Note: article 802's post_name in the export is literally "706", so the map uses that verbatim. Note: articles 723–734 have post_name slugs in the export that do not match their own titles; the map uses the XML post_name verbatim. Built for the drbriffa.com WordPress revamp on the same domain; the loop renders the real migrated archive (2002–2026) with original dates, categories and authors. DRAFT — not yet tested on a live WordPress install; test on staging first. v0.1.27 (10 Nov 2026): adds batch 17 (articles 813–862: FDA corruption letter, saturated fat and heart disease, diabetes cured, sugar and fibre and diabetes, Vioxx and drug companies, vitamin D and statin muscle pain, high-protein diet and fat loss, carbohydrates and infertility, low-GI carbs and satiety in women, thyroid tests, vitamin D falling in Americans, omega-3 and peri-natal depression, vitamin C and gout, meat and colon cancer, vitamin D and winter weight, GP diabetes incentives, afternoon naps and diabetes, Paleolithic diet benefits, exercise in middle age, diet trials, CoQ10 and statins in diabetics, water fluoridation, vitamin D and mortality, soft drinks and heart disease in women, mammography and the facts, coffee and stroke in women, low-carb diet and mental wellbeing, flu vaccine evidence and BMJ, green tea and belly fat, chondroitin and osteoarthritis, kids outdoors and glasses, coffee and dementia, protein and metabolic rate, HIIT and sugar handling, omega-3 and menopause wellbeing, cholesterol guidelines, protein diet and weight maintenance, water and fat loss, deep sleep and memory, BMJ and science limitations, sleep and colds, calcium and preeclampsia, melanoma and other cancers, low-carb diet and type 2 diabetes, cranberry and urinary tract infections, low-carb diet and memory in ageing, insulin and breast cancer, vitamin D and heart protection, sleep and heart disease, dark chocolate and satiety) — 870 images total in assets/article-images/. v0.1.28 (10 Nov 2026): adds batch 18 (articles 863–912: antibiotics and probiotics in winter, hangovers, low-GI diet and diabetes, activity and weight control, Christmas eating and mood, nuts and metabolic syndrome, vitamin D requirements in winter, cholesterol-lowering and mortality, vitamin D and heart disease, omega-3 and asthma, belly fat and vision loss, triglycerides and heart disease, caffeine and cola, fat-burning diet, waist size and death risk, short bouts of exercise, peppermint oil and IBS, short sleep and heart disease, statins in healthy people, high-protein low-carb diet and fat loss, rain and autism, overweight and mortality, what it means for a treatment to work, frequent drinking and weight gain, tobacco and food industries, statins and women, hunger and weight loss, low-GI diet and macular degeneration, low-carb diet and insulin, vitamin D and antidepressant effects, coffee and health, herbal remedy and depression, chromium and cravings, nuts and the calorie principle, sunlight in winter and SAD, high-GI diets and fat accumulation, probiotics and IBS, statins and muscle side effects, publication bias, mobile phones and brain tumours, fish oil alternatives, cholesterol and heart risk, fruit and veg intake, arthroscopy for knee osteoarthritis, pharma profiteering, flu vaccine in the elderly, medical literature trust, cholesterol medication and cancer, homeopathic arnica, nutrients and macular degeneration) — 920 images total in assets/article-images/. v0.1.29 (10 Nov 2026): adds batch 19 (articles 913–962: low cholesterol and cancer and death, MSG and obesity, low cholesterol and cancer, arsenic and diabetes, low-carb versus low-fat review, BMI validity, vitamin D and chronic pain, zinc lozenges and colds, sun exposure balance, vitamin C and cancer, potassium and blood pressure, garlic and blood pressure, Women's Health Initiative and fat, prostate and nutrient deficiency, exercise and the high-animal-fat diet, ezetimibe and cancer, osteoporosis charity and sun, low-carb versus low-fat and weight, omega-3 and food satisfaction, strong men and longevity, drug residues in drinking water, water intoxication, coffee and tea and stroke in men, green tea and heart health, omega-3 and brain function, waist size versus BMI, vitamin D and mortality, diabetes charity diet advice, drug companies and key opinion leaders, sweetener and the brain, coffee and longevity in women, sunlight and melanoma, mercury fillings, low-carb diets and type 2 diabetes, pesticides and diabetes, doctors listening to patients, summer whine, beta-carotene and sunburn, MMR-autism war, fish in pregnancy and mercury, food additives in children, statistical significance, growth hormones and weight, meat-substitute foods, 500th article milestone, high-GI carbs and breast cancer, TV watching and overweight, primal diet and weight loss, placebo power, aspartame supermarket ban) — 970 images total in assets/article-images/. Note: article 925's post_name in the export is literally "577" and article 946's is literally "556", so the map uses those verbatim; article 941's post_name contains URL-encoded curly quotes, so the map carries all three forms for it (encoded, decoded and sanitised). v0.1.30 (10 Nov 2026): adds batch 20 (articles 963–1012: low-GI diet and diabetes, thyroid tests, fruit juice and diabetes, carbs and the heart, hypnosis surgery, antioxidant supplements, healthy food not healthy, ghost-writing in medical publishing, carb restriction in diabetics, insulin and dementia, multivitamins and fertility, omega-3 in pregnancy, low thyroid and weight gain, aspartame and the brain, lower cholesterol not better, belly fat and brain function, chromium and biotin and diabetes, dairy-free kids and apnoea, salt and obesity, safe tanning, green tea and fat burning, vitamin D and type 1 diabetes, high-carb diets and diabetes, glucosamine and surgery, healthy eating advice fails, melatonin and insomnia, breakfast and weight control, calories and weight loss, antidepressants and placebo, government diet advice, animal foods and breast cancer, low-fat diets and insulin and weight gain, vegans and bones and calcium, carbs and the liver, fat versus carbs and diabetes, sweeteners and weight loss, aggressive diabetes drug treatment, government healthy eating advice, water fluoridation minister, feeling fat, criminals and malnutrition, cholesterol and heart disease, healthy eating messages, protein and appetite, antidepressants biased, junk food as a treat, walking programme, experts not trusted, low-carb meta-analysis, sun or die) — 1,020 images total in assets/article-images/. Note: articles 997, 998 and 1008 have URL-encoded punctuation in their post_name slugs, so the map carries all three forms for each (encoded, decoded and sanitised). v0.1.31 (10 Nov 2026): adds batch 21 (articles 1013–1062: indigestion medication overprescribed, placebos, New Year sleep resolution, FSA detox regimes, rickets, fat and breast cancer, Christmas drink, alcohol intake tricks, festive breakfast, moderate activity and death risk, breast cancer and insulin, iron and hyperactive children, Japanese rice, green tea and fat burning, honey and children's coughs, cholesterol hypothesis, low-GI rapid benefits, high-GI/GL and diabetes, meta-analysis and drug funding, pedometer and activity, vitamin D and generalised pain, weight loss drugs, walking and diabetics, beta-carotene and the brain, omega-3 and the ageing brain, fat the new fit, low-fat eating failure, doctors saying sorry, cancer recommendations, organic food, omega-3 and pregnancy, nutrients and kids' brains, mammography effectiveness, BMI photos, losing weight without hunger, small changes, metabolic typing, vitamin D and winter infections, high-GI and breast cancer, cholesterol lower better, pregnant mums and fish and mercury, diabetes diet advice, aspartame safety review, walking to work and diabetes, sleep and death, Korean ginseng, garlic and colon cancer, starchy foods and the FSA, weight training in women, family meals) — 1,070 images total in assets/article-images/. Note: article 1027's post_name contains a URL-encoded curly apostrophe, so the map carries all three forms for it (encoded, decoded and sanitised). v0.1.32 (10 Nov 2026): adds batch 22 (articles 1063–1112: vitamin D and saving lives, food additives and hyperactivity, higher vitamin D and cancer, bedside manner and complaints, blood sugar and appetite, low iron and fatigue, doctors and statin side effects, biased statin studies, how much exercise, olive oil and blood thinning, vitamin D and physical function in the elderly, parents told to feed kids fat, pot bellies and heart disease, acetyl-L-carnitine and fatigue, statins in the elderly, vitamin deficiency and diabetes, dentists and fruit juice, coffee and colon cancer in women, low-GI diet and vision loss, sunlight and multiple sclerosis, carbohydrate control, diet drinks and weight gain, fish and disease markers, low-GI breakfasts and kids' brains, older diabetes drugs, meditation and chronic pain, statin study trumpet, low-carb discredited, low-carb diet and acne, lower-carb the way to go, primal versus Mediterranean diet, cranberry and bladder infection, fluoride and teeth, yoga and brain chemicals, food sensitivity and doctors, vitamin D and heart disease, going to work on an egg, omega-3 in pregnancy and infant brains, obesity healthy after all, vitamin C and cataracts, walking health benefits, vitamin D and cancer in women, vitamins C and E and mental function, sunscreen snake oil, The True You Diet, CoQ10 and statin side effects, irritable bowel syndrome causes, diabetes drug adverse effects, the great cholesterol con, apples in pregnancy and childhood asthma) — 1,120 images total in assets/article-images/. v0.1.33 (10 Nov 2026): adds batch 23 (articles 1113–1162: boiling broccoli and nutrition, keeping fit in less time, walking in the park and depression, unpasteurised milk and asthma, food additives and hyperactivity again, apples and oxidative stress, stealth vegetables, magnesium and PMS, sun exposure and the elderly, folate and alcohol and breast cancer, migraine in men and heart attack, resistance exercise and diabetes, salt reduction and saving lives, fatty acids and depression, healthy sperm and stem cells, oily fish scare, restless legs and heart risk, sweetener manufacturers in court, red meat and breast cancer, sunlight and cancer, omega-3 and mood, METEOR statin trial, pizza unhealthy, vitamin D and blood pressure, bad press, Allen Carr and smoking, purple grape juice, nuts and glycaemic index, soft drinks research, iron deficiency and brain function in women, medical treatments proven, low-carb and weight loss, wholegrain cereals and the heart, saturated fat and trans fats, children choosing food, BDA and dietetics evidence, nutritionists and dieticians, spearmint and hirsutism, WHO and pharma funds, dietary fats balance, chocolate and Valentine's Day, Enviga weight loss claims, high-GI foods and sleep, omega-3 and self-harm, caffeine and headache remedies, tonsils and breathing in children, overweight children and fat and sugar, drug companies and treatment guidelines, food industry rescue, prison inmates and supplements) — 1,170 images total in assets/article-images/. Note: article 1118's post_name contains URL-encoded curly quotes, so the map carries all three forms for it (encoded, decoded and sanitised); article 1142's post_name is literally "353" and article 1148's is literally "347", so the map uses those verbatim. v0.1.34 (10 Nov 2026): adds batch 24 (articles 1163–1212: statins largely ineffective, slowing down and weight loss, epidemiology, fructose, UK food labelling scheme, food industry and science, weight loss drugs, carbs and metabolic syndrome, 5 facts about me, creating time, abdominal obesity, green tea and cancer, Brussels sprouts, Christmas balance, olive oil and cancer, festive drinking, vegetarian diets, bigger is better, science and corruption, diabetes timebomb, drug companies and medicine, bulimia in cities, morning coffee, vitamin D in winter, high-fat diets and the breast, fish as brain food, high-carb low-fat diets, junk food ads aimed at children, BMI useless, red meat and breast cancer, low-carb and the heart, fruit juice hazard, big fat lies, resveratrol and red wine, trans fat campaigner, NHS knuckles rapped, trans fat ban in New York, moderate drinking, disguised marketing, white bread and cancer, tap water hazard, fish good vs harm, oily fish in pregnancy, drug companies and research, calcium and dairy and bones, Coca-Cola Enviga, NICE and Alzheimer's drugs, drbriffa.com podcasts, exercise and obesity, soft drinks and soft bones) — 1,220 images total in assets/article-images/. Note: article 1204's post_name says the opposite of its title ("does more harm than good" vs "does more good than harm"), so the map uses the XML slug verbatim; article 1207's post_name is literally "277", so the map uses that verbatim. v0.1.35 (10 Nov 2026): adds batch 25 (articles 1213–1262: breast really best, protein and hunger, less time for exercise, flu vaccine shortage, saturated fat myth, obesity not a spectre, crisps and children, GORD, nuts and appetite, salad dressing, night-time urination, Jamie Oliver lunchboxes, older dads and autism, fizzy drinks, perfect cuppa, foetal feeding, fruit juice and Alzheimer’s, margarine vs butter, walnuts and heart health, sugar and cancer risk, BMI and waist-to-hip ratio, acid reflux at night, echinacea, omega-3 and depression/schizophrenia, healthy lunchboxes, salt and processed foods, dementia and homocysteine, cheese and sleep, zinc and anorexia, kids’ breakfasts, RSI relief, sunlight and melanoma, folic acid and Down’s syndrome, protein and satiety, cocoa flavonols, vinegar and weight gain, declining nutrition, ask the expert, vitamin C and colds, omega-3 in pregnancy, high-protein diets and bone health, anxiety, detox diets, barbecue hazards, iron and mother-baby bonding, heartburn at night, sense of smell, medical journals and bad press, red meat and colon cancer, IBS and digestive bacteria) — 1,270 images total in assets/article-images/. Note: seven articles in this batch have URL-encoded punctuation in their post_name (#1218 curly apostrophe, #1219/#1220/#1221/#1222/#1225 en dash, #1224 curly quotes), so the map carries all three forms for each; article 1224’s post_name is truncated in the XML itself (ends "...-lunchbox-fo") and is used verbatim; article 1226’s post_name is just "soft-drinks". v0.1.36 (10 Nov 2026): adds batch 26 (articles 1263–1312: IBS foods, restless legs, food labelling schemes, milk and bone health, natural approaches to Alzheimer’s, vegan and vegetarian diets, St John’s Wort, constipation, ADHD, regular eating, natural health for kids, olive oil, sparkling water, folic acid and breast cancer, salvestrols, uric acid and gout, saturated fat and heart disease, arthritis, varied diet, pizza, portion size, female hair loss, antioxidant supplements, flu, diabetes, kidney stones, vitamin D and SAD, fruit juice, alcoholism, head lice, gallstones, yoghurt vs milk, statins, salad dressing, ask the expert, heart failure, headaches, insulin and blood sugar, cellulite, diet and cancer, soft drinks, low-carb weight maintenance, strawberries, breast feeding, cholesterol, depression, food addiction, food combining, eating healthily at work, breakfast) — 1,320 images total in assets/article-images/. Note: many articles in this batch have short-form post_names that differ from their titles (e.g. article 1226’s post_name is "soft-drinks" while article 1303’s is "soft-drinks-2", and article 1265’s post_name carries the "proprosed" typo), so the map uses the XML post_name verbatim for every entry. v0.1.37 (10 Nov 2026): adds batch 27 (articles 1313–1362: sunscreens and vitamin D, microwave cooking, autism, fat and obesity, marathon running and water, bulimia, Western diets, osteoporosis, night-time eating, green tea, cold sores, body shape and body measures, hangovers, Christmas weight gain, dates, Raynaud’s disease, calorie counting, omega-3 fatty acids, PCOS, feeding small children, psoriasis, beans, TV snacking, ginger, jet-lag, cod liver oil, short-sightedness, natural alternatives to HRT, fructose, feeding children, cholesterol, gout, tap water, bar snacks, snacking and weight loss, impotence, turmeric, family meals, iron, natural insect repellents, nutritional supplements, avocado pears, acne, tea, the mid-afternoon slump, onions, the French paradox, eczema, potatoes) — 1,370 images total in assets/article-images/. Note: most articles in this batch have short-form post_names that differ from their titles (e.g. article 1307’s post_name is "cholesterol" while article 1344’s is "cholesterol-2", and article 1227’s post_name is "tea-the-perfect-cuppa" while article 1357’s is "tea"), so the map uses the XML post_name verbatim for every entry. v0.1.38 (10 Nov 2026): adds batch 28 (articles 1363–1412: microwave cooking safety, alcoholism, male fertility, fish and mercury, five-a-day fruit and veg, osteoporosis, prostate cancer, chocolate, honey, homocysteine, detoxification, New Year resolutions, Brussels sprouts, healing water, prostate enlargement, ageing, nuts, the common cold, Siberian ginseng, seasonal affective disorder, apples, chewing and digestion, butter, water fluoridation, PMS, tomatoes, breakfast, eggs, cataracts, omega-3 and depression, iron, breast cancer prevention, safe tanning, olive oil, food and behaviour, eating out, asthma, indigestion, cholesterol, hay fever, osteoarthritis, childhood nutrition, insomnia, sugar cravings, sun exposure, high blood pressure, folic acid, cystitis, eating between meals, RDAs) — 1,420 images total in assets/article-images/. Note: several articles in this batch carry a "-2" or "-3" suffixed post_name (e.g. article 1363’s post_name is "microwave-cooking-2" while article 1314’s is "microwave-cooking", article 1401’s is "cholesterol-3" while article 1307’s is "cholesterol" and article 1344’s is "cholesterol-2", and article 1397’s post_name is the concatenated "food-and-behaviourthought"), so the map uses the XML post_name verbatim for every entry. v0.1.39 (10 Nov 2026): final batch 29 (articles 1413–1456: diet and eyesight, caffeine, garlic, migraine, salt, diabetes, memory, circulation, detox, indigestion, sexual tonics, fluoride, cholesterol, phytoestrogens, hyperactivity, diabetes prevention, herbal remedies, cranberry, asthma, prostate cancer, acne, green tea, sight degeneration, sunlight, fibre, peripheral vascular disease, H. pylori, brain ageing, depression, panic attacks, hypertension, olive oil, ear infections, stress and ginseng, Agnus Castus, insomnia, osteoarthritis, pycnogenol, RDAs, colds and flu, migraine strategies, vitamin E, iron, food cravings) — 1,464 images total in assets/article-images/, covering all 1,456 published articles. Note: article 1416's post_name is the plain "migraine" and its file is migraine-natural-cures.jpg, while article 1453's post_name is "natural-strategies-to-control-migrane-attacks" (spelled "Migrane") and its file is migraine-natural.jpg — the two are separate entries. Article 1455's post_name contains a URL-encoded en dash ("iron-%e2%80%93-a-double-edged-sword"), so the map carries the encoded, decoded and sanitised forms, all pointing to iron-double-edged-2.jpg; this is a different article from article 1393 ("iron-the-double-edged-sword" → iron-double-edged.jpg).
Version: 0.1.44
License: For use on drbriffa.com only.
Text Domain: drbriffa-modern-wellness

v0.1.40 (10 Nov 2026): homepage teaser is 4 articles, not 3 (the 2-column card grid left the 4th cell empty); homepage card excerpts capped at 4 lines; the Most read, Best-seller and Newsletter widgets are removed from the homepage sidebar, which ran much longer than the main column and left dead space under the Books section — the full-width newsletter section below the layout is untouched. No image changes: 1,464 images, map 1,498 keys, all 1,456 articles covered.

 v0.1.41 (11 Nov 2026): the Contact Us page and the homepage newsletter section now use Fluent Forms (free 6.2.17) — Contact Us form ID 3 ("Contact Us - Dr Briffa": First name, Last name, Company, Email, Message; stores entries in WordPress and emails enquiries@drjohnbriffa.com) and Newsletter form ID 4 ("Newsletter - Dr Briffa": email only, entries stored, no notification and no mailing list connected). Both templates fall back to the previous built-in/placeholder forms when Fluent Forms is not active. No image changes: 1,464 images, map 1,498 keys, all 1,456 articles covered. NOTE for the live move: Fluent Forms must be installed on the live site and both forms (IDs 3 and 4) exported from staging and imported there — the theme only carries the shortcodes, not the forms themselves.

 v0.1.42 (11 Nov 2026): ARCHITECTURE CHANGE — the 1,460 per-article pictures no longer ship inside the theme. The theme zip had grown past the browser's ~128 MB file limit (v0.1.33 is 139 MB and could not be uploaded), so the pictures now live in two small plugins, DrBriffa Article Images Pack A and Pack B (730 pictures each, ~87 MB per zip), installed once before the theme. The theme only carries the 4 topic pictures and the default. drbriffa_generated_image_url() and the second-image filter now resolve each picture through drbriffa_article_image_url(), which looks in Pack A, then Pack B, then the theme. This version supersedes the image-bundled v0.1.33–v0.1.41 builds, which were built and verified but never uploaded — with the packs installed, this one upload lights up ALL 1,456 articles at once, plus the v0.1.40 homepage fixes (4-article teaser, 4-line excerpts, sidebar widgets removed) and the v0.1.41 Fluent Forms wiring (Contact Us form ID 3, Newsletter form ID 4). Map 1,498 keys unchanged. INSTALL ORDER on staging and on live: Pack A, Pack B, then this theme.

 v0.1.44 (11 Nov 2026): phone menu fix (Amir approved 11 Nov 07:40 PKT). Below 560px the nav links were hidden with no way to reach them — now a hamburger button (header.php, .menu-toggle) appears at the right of the header bar and opens the links as a full-width dropdown under the bar (nav gets .menu-open, pill becomes rounded 26px); the button turns into an X while open. Tapping a link, pressing Escape, or resizing above 560px closes it. A <noscript> fallback shows the links stacked when JavaScript is off. Desktop header unchanged; the button is display:none above 560px. No image changes; map 1,498 keys unchanged.
*/
:root{
  /* Matched to https://www.drjohnbriffa.com/ — 8 Nov 2026, pixel-sampled */
  --bg:#ffffff; --surface:#ffffff; --surface2:#F5F7F9; --ink:#000000; --muted:#4a5560;
  --sage:#60BEFF; --sage2:#60BEFF; --mint:#EFF2F5; --lime:#60BEFF; --sun:#8AD2FF; --coral:#60BEFF;
  --navy:#03263d; --blue-text:#0b7cc4; --surface3:#EFF2F5;
  --sky:#60BEFF; --sky-light:#8AD2FF; --logo-blue:#77BCF8; --panel2:#EFF2F5; --panel3:#DFE5EB;
  --line:#DFE5EB; --radius:20px; --shadow:0 18px 40px rgba(3,38,61,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Plus Jakarta Sans",system-ui,sans-serif;background:var(--bg);color:var(--ink);line-height:1.6}
h1,h2,h3,.serif{font-family:"DM Serif Display",Georgia,serif;font-weight:400;line-height:1.12}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.navwrap{position:sticky;top:14px;z-index:50;padding:0 16px}
.site-nav{max-width:1180px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:999px;display:flex;align-items:center;gap:8px;padding:8px 10px 8px 18px;box-shadow:var(--shadow);flex-wrap:wrap}
.logo{font-family:"DM Serif Display",serif;font-size:1.35rem;text-decoration:none;margin-right:auto}
.logo em{color:var(--logo-blue);font-style:italic}
.logo img{height:46px;width:auto;display:block}
.site-nav .links{display:flex;gap:2px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.site-nav .links a{text-decoration:none;font-weight:600;font-size:.92rem;padding:8px 12px;border-radius:999px;color:var(--muted)}
.site-nav .links a:hover{background:var(--surface2);color:var(--ink)}
.site-nav .links li.current a{color:var(--sky);background:var(--surface2)}
.cta{background:#60BEFF;color:#03263d !important;text-decoration:none;font-weight:700;padding:10px 18px;border-radius:999px;font-size:.92rem}
/* v0.1.44 (11 Nov 2026): phone menu. Below 560px the nav links are hidden,
   so a hamburger button opens them as a dropdown. Hidden on desktop. */
.menu-toggle{display:none;background:var(--surface2);border:1px solid var(--line);border-radius:999px;width:40px;height:40px;padding:0;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.menu-toggle span{display:block;width:18px;height:2px;background:var(--ink);border-radius:2px;transition:transform .18s ease,opacity .18s ease}
.menu-toggle:focus-visible{outline:2px solid #0b7cc4;outline-offset:2px}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.cta:hover{background:#8AD2FF}
/* hero — full-width, text-led, modelled on drjohnbriffa.com; no side picture */
.hero{background:#000000;color:#ffffff;margin-top:18px;border-top:4px solid var(--sky)}
.hero-inner{padding:64px 20px 0;text-align:center}
.hero-eyebrow{display:flex;align-items:center;justify-content:center;gap:14px;font-size:.8rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--sky-light)}
.hero-eyebrow::before,.hero-eyebrow::after{content:"";width:44px;height:1px;background:rgba(138,210,255,.55)}
.hero h1{font-family:"Plus Jakarta Sans",system-ui,sans-serif;font-weight:800;letter-spacing:-.02em;font-size:clamp(2.4rem,5.2vw,4rem);line-height:1.08;max-width:20ch;margin:22px auto 0}
.hero h1 .hl{color:var(--sky)}
.hero-sub{color:#cfe6f7;font-size:clamp(1rem,1.6vw,1.13rem);line-height:1.65;max-width:62ch;margin:20px auto 0}
.hero-cred{display:flex;justify-content:center;gap:10px 22px;flex-wrap:wrap;margin:26px auto 0;font-size:.88rem;font-weight:600;color:#eaf4fc}
.hero-cred span+span::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--sky);margin-right:12px;vertical-align:middle}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin:32px 0 0}
.hero-photo{margin:26px 0 0}
.hero-photo img{width:120px;height:120px;border-radius:50%;object-fit:cover;border:4px solid #ffffff;box-shadow:0 10px 28px rgba(0,0,0,.45);display:block;margin:0 auto}
.btn{display:inline-block;text-decoration:none;font-weight:800;padding:13px 22px;border-radius:999px;border:0;cursor:pointer;font-family:inherit;font-size:.95rem}
.btn-lime{background:#60BEFF;color:#03263d}
.btn-lime:hover{background:#8AD2FF}
.btn-ghost{background:transparent;color:#ffffff;border:1.5px solid rgba(255,255,255,.5)}
.hero-stats{display:grid;grid-template-columns:repeat(4,1fr);margin:52px auto 0;border-top:1px solid rgba(255,255,255,.16)}
.hero-stat{padding:22px 12px 26px;text-align:center}
.hero-stat+.hero-stat{border-left:1px solid rgba(255,255,255,.16)}
.hero-stat b{font-size:1.55rem;font-weight:800;letter-spacing:-.01em;display:block;color:#ffffff;line-height:1.2}
.hero-stat span{font-size:.8rem;color:#a9c6dc;font-weight:600}
/* layout — main column left, right sidebar like drbriffa.com, from below the hero down */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;align-items:start}
.main-col{min-width:0}
.sidebar{min-width:0;padding-top:52px;display:flex;flex-direction:column;gap:20px}
/* sidebar widgets — modelled on the drbriffa.com right rail */
.widget{border-radius:24px;padding:24px;border:1px solid var(--line);background:var(--surface)}
.widget.panel{background:var(--surface2)}
.widget h3{font-size:1.28rem;margin:6px 0 8px}
.widget p{color:var(--muted);font-size:.92rem;margin:0 0 14px}
.widget .btn{padding:11px 20px;font-size:.88rem}
.widget .wk{font-size:.74rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--blue-text)}
.widget-corp{background:#000000;color:#fff;border-color:#000}
.widget-corp h3{color:#fff}
.widget-corp p{color:#cfe6f7}
.widget-corp .wk{color:var(--sky-light)}
.widget-corp .brandline{font-family:"DM Serif Display",serif;font-size:1.5rem;line-height:1.15;margin:2px 0 10px;color:#fff}
.widget-corp .brandline em{color:var(--sky);font-style:normal}
.book-promo{border-radius:18px;padding:20px;margin-top:4px}
.book-promo h4{font-family:"DM Serif Display",serif;font-weight:400;font-size:1.22rem;margin:0 0 6px;line-height:1.2}
.book-promo p{font-size:.86rem;margin:0 0 14px}
.book-promo.blue{background:var(--sky);color:var(--navy)}
.book-promo.blue p{color:#173f59}
.book-promo.blue .btn{background:#000;color:#fff}
.book-promo.grey{background:var(--surface3);color:var(--ink)}
.book-promo.grey p{color:var(--muted)}
.book-promo.grey .btn{background:var(--sky);color:var(--navy)}
.side-cats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.side-cats li{display:flex;justify-content:space-between;align-items:center;gap:10px}
.side-cats a{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;text-decoration:none;padding:10px 12px;border-radius:12px;font-weight:700;font-size:.92rem;color:var(--ink)}
.side-cats a:hover{background:var(--surface3)}
.recent{display:flex;flex-direction:column}
.recent-item{display:block;text-align:left;text-decoration:none;border-top:1px solid var(--line);padding:13px 2px}
.recent-item:first-child{border-top:0;padding-top:4px}
.recent-item b{display:block;font-size:.95rem;line-height:1.4;color:var(--ink);font-weight:700}
.recent-item:hover b{color:var(--blue-text)}
.recent-item span{font-size:.78rem;color:var(--muted);font-weight:600}
.about-mini{display:flex;gap:14px;align-items:flex-start}
.avatar{flex:0 0 54px;width:54px;height:54px;border-radius:50%;background:var(--sky);color:var(--navy);display:flex;align-items:center;justify-content:center;font-family:"DM Serif Display",serif;font-size:1.25rem}
.about-mini img.avatar{object-fit:cover}
.about-photo{margin:-40px 0 26px;position:relative;z-index:2}.about-photo img{width:100%;height:auto;border-radius:24px;display:block;border:6px solid #ffffff;box-shadow:0 16px 34px rgba(3,38,61,.16)}
.side-news form{display:flex;flex-direction:column;gap:10px}
.side-news input{padding:13px 16px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-family:inherit;font-size:.92rem;outline:none;width:100%}
section{padding:52px 0 6px}
.main-col section:first-child{padding-top:52px}
.sec-head{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.sec-head h2{font-size:clamp(1.8rem,3.4vw,2.5rem);margin:6px 0 0}
.kicker{font-size:.8rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#0b7cc4}
.sec-head p{color:var(--muted);max-width:56ch;margin:8px 0 0}
.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:26px;overflow:hidden;display:flex;flex-direction:column;transition:transform .18s ease, box-shadow .18s ease}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.card .thumb{height:180px;overflow:hidden;position:relative;background:var(--surface2)}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.tag{position:absolute;top:12px;left:12px;background:#8AD2FF;color:#03263d;font-size:.72rem;font-weight:800;padding:5px 11px;border-radius:999px}
.card .body{padding:20px;display:flex;flex-direction:column;gap:8px;flex:1}
.card h3{font-size:1.28rem;margin:0}
.card h3 a{text-decoration:none}
.card h3 a:hover{color:#0b7cc4}
.card p{color:var(--muted);font-size:.93rem;margin:0;flex:1}
/* v0.1.40 (10 Nov 2026): homepage card excerpts capped at 4 lines — the
   full 55-word excerpt made the homepage cards too tall. Scoped to
   body.home so the Articles page cards are untouched. */
body.home .card p{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;min-height:0}
/* v0.1.43 (11 Nov 2026): the Walking versus running card's description ran to 7 lines on staging even though this clamp caps the other three cards at 4 — same markup and rule for all four, cause unexplained. Belt and braces: the teaser excerpt is now also trimmed to 30 words at the source in index.php (about 3 lines at card width), so no homepage card description can exceed 4 lines even if the clamp fails; min-height:0 added here as the textbook fix for line-clamp inside a flex item. */
.meta{display:flex;gap:10px;font-size:.8rem;color:var(--muted);font-weight:600;flex-wrap:wrap}
.card .foot{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.read{color:#0b7cc4;font-weight:800;text-decoration:none;font-size:.9rem}
.books{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.main-col .books{grid-template-columns:repeat(3,1fr)}
.book{border-radius:26px;padding:28px;color:#fff;min-height:230px;display:flex;flex-direction:column;position:relative;overflow:hidden}
.book h3{font-size:1.55rem;margin:0 0 6px}
.book p{margin:0;font-size:.9rem;opacity:.88}
.book .bk{font-size:.75rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;opacity:.85;margin-bottom:16px}
.book-cover{display:flex;justify-content:center;padding:2px 0 20px}
.book-cover img{height:196px;width:auto;max-width:100%;object-fit:contain;border-radius:5px;background:#ffffff;box-shadow:0 12px 26px rgba(3,38,61,.30)}
.b1{background:#60BEFF;color:#03263d} .b2{background:#000000;color:#ffffff} .b3{background:#EFF2F5;color:#000000;border:1px solid #DFE5EB}
/* corporate + newsletter — side by side, full width below the sidebar layout */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:52px 0 6px;align-items:stretch}
.duo-single{grid-template-columns:1fr}
.duo-full{width:100%;clear:both}
.duo>section{padding:0;display:flex;min-width:0}
.corp-panel{background:#000000;color:#ffffff;border:1px solid #000000;border-radius:32px;padding:32px 28px;display:flex;flex-direction:column;width:100%}
.corp-panel .kicker{color:var(--sky-light)}
.corp-panel h2{font-size:1.85rem;margin:8px 0 10px;line-height:1.15}
.corp-panel p{color:#cfe6f7;margin:0 0 22px;font-size:.95rem}
.corp-panel .btn{margin-top:auto;align-self:flex-start}
.duo .news{width:100%;height:100%}
.news{background:#EFF2F5;border:1px solid #DFE5EB;border-radius:32px;padding:40px 34px;color:#000000;display:grid;grid-template-columns:1.1fr .9fr;gap:26px;align-items:center}
.duo .news{padding:32px 28px;gap:18px;align-items:start;align-content:start}
.duo .news h2{font-size:1.85rem;line-height:1.15}
.duo .news form{flex-direction:column;align-items:stretch}
.duo .news form .btn{text-align:center}
.duo .news input{min-width:0;width:100%}
.duo-full .news{grid-template-columns:1.05fr .95fr;align-items:stretch;align-content:start}
.news-art{align-self:stretch;min-height:280px}
.news-art img{width:100%;height:100%;object-fit:cover;border-radius:24px;display:block;border:6px solid #ffffff;box-shadow:0 0 0 1px #dfe5eb,0 16px 34px rgba(3,38,61,.16)}
.duo-full .corp-panel,.duo-full .news{padding:36px 32px}
.duo-full .news form{flex-direction:row;align-items:center;flex-wrap:wrap}
.duo-full .news form input{width:100%}
.news h2{font-size:2rem;margin:0 0 8px}.news p{color:var(--muted);margin:0}
.news form{display:flex;gap:10px;flex-wrap:wrap}
.news input{flex:1;min-width:200px;padding:14px 18px;border-radius:999px;border:1px solid var(--line);background:#ffffff;color:var(--ink);font-family:inherit;font-size:.95rem}
.site-footer{margin-top:60px;background:var(--surface);border-top:1px solid var(--line);padding:36px 0 46px;color:var(--muted);font-size:.9rem}
.site-footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px}
.site-footer h4{color:var(--ink);margin:0 0 10px;font-size:.95rem}
.site-footer .flogo img{height:52px;width:auto;display:block;margin-bottom:14px}
.site-footer a{display:block;text-decoration:none;margin:5px 0}
.site-footer a:hover{color:#0b7cc4}
.disc{margin-top:22px;border-top:1px solid var(--line);padding-top:16px;font-size:.82rem}
/* Single post / page */
.entry{max-width:760px;margin:0 auto;padding:40px 20px}
.entry h1{font-size:clamp(2rem,4vw,2.8rem)}
.entry-content{font-size:1.05rem}
.entry-content p{margin:0 0 1.1em}
.entry-content img{border-radius:16px}
.drbriffa-second-image{margin:1.5em 0}
.entry-content blockquote{border-left:4px solid #60BEFF;margin:1.5em 0;padding:.2em 0 .2em 1.2em;color:var(--muted)}
.post-nav{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:36px}
.pagination{display:flex;gap:10px;justify-content:center;padding:28px 0;flex-wrap:wrap}
.pagination a,.pagination span{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:9px 16px;text-decoration:none;font-weight:700;font-size:.9rem}
.pagination .current{background:#60BEFF;color:#fff;border-color:#60BEFF}
.search-form{display:flex;gap:10px;flex-wrap:wrap}
.search-form input{flex:1;min-width:200px;padding:12px 16px;border-radius:999px;border:1.5px solid var(--line);font-family:inherit;font-size:.95rem;background:var(--surface);color:var(--ink)}

/* ---- v0.1.4: separate About / Articles / Books pages (9 Nov preview) ---- */
.pagehead{background:#000;color:#fff;margin-top:18px;border-top:4px solid var(--sky)}
.pagehead-inner{padding:52px 20px 46px}
.pagehead .kicker{color:var(--sky-light)}
.pagehead h1{font-family:"Plus Jakarta Sans",system-ui,sans-serif;font-weight:800;letter-spacing:-.02em;font-size:clamp(2rem,4.4vw,3.2rem);line-height:1.1;margin:12px 0 0;max-width:22ch}
.pagehead h1 span{display:block;font-size:.55em;margin-top:8px;color:var(--sky-light)}
.pagehead p{color:#cfe6f7;max-width:64ch;margin:14px 0 0;font-size:1.02rem}
.crumb{font-size:.82rem;font-weight:700;color:#a9c6dc}
.crumb a{color:#fff;text-decoration:none}
.crumb a:hover{color:var(--sky-light)}
.more-link{color:#0b7cc4;font-weight:800;text-decoration:none;font-size:.92rem;white-space:nowrap}
.more-link:hover{text-decoration:underline}
.btn-outline{background:transparent;color:var(--ink);border:1.5px solid var(--line)}
.btn-outline:hover{border-color:var(--sky)}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:22px}
.chip{border:1.5px solid var(--line);background:var(--surface);color:var(--muted);font-weight:700;padding:9px 16px;border-radius:999px;cursor:pointer;font-family:inherit;font-size:.88rem;text-decoration:none;display:inline-block}
.chip.active,.chip:hover{background:var(--sky);border-color:var(--sky);color:var(--navy)}
.toolbar .search{margin-left:auto;display:flex;align-items:center;gap:8px;background:var(--surface);border:1.5px solid var(--line);border-radius:999px;padding:9px 16px;flex:1;min-width:210px;max-width:330px}
.toolbar .search input{border:0;background:transparent;color:var(--ink);font-family:inherit;font-size:.92rem;width:100%;outline:none}
.book-detail{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:30px;margin-bottom:22px;align-items:start}
.book-detail .coverbox{display:flex;justify-content:center;background:var(--surface2);border-radius:20px;padding:22px}
.book-detail .coverbox img{height:250px;width:auto;max-width:100%;object-fit:contain;border-radius:5px;background:#fff;box-shadow:0 12px 26px rgba(3,38,61,.22)}
.book-detail h2{font-size:1.9rem;margin:6px 0 8px}
.book-detail .pub{font-size:.85rem;font-weight:800;color:var(--blue-text);letter-spacing:.04em}
.book-detail p{color:var(--muted);margin:0 0 12px}
.book-detail ul{margin:0 0 16px;padding-left:20px;color:var(--muted);font-size:.94rem}
.book-detail ul li{margin:4px 0}
.book-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.book-actions .btn{padding:11px 20px;font-size:.88rem}
.biblio{background:var(--surface2);border:1px solid var(--line);border-radius:28px;padding:30px}
.biblio h2{font-size:1.7rem;margin:6px 0 14px}
.biblio ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 28px}
.biblio li{padding:10px 0;border-top:1px solid var(--line);font-size:.94rem}
.biblio li b{display:block}
.biblio li span{color:var(--muted);font-size:.86rem}
.about-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;align-items:start;padding-top:52px}
.about-main{min-width:0}
.about-main h2{font-size:clamp(1.7rem,3vw,2.3rem);margin:8px 0 12px}
.about-main p{color:var(--muted);margin:0 0 14px}
.about-main section{padding:0 0 34px}
.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 34px}
.fact{background:var(--surface2);border:1px solid var(--line);border-radius:20px;padding:18px;text-align:center}
.fact b{display:block;font-size:1.45rem;line-height:1.2}
.fact b em{font-style:normal;color:var(--blue-text)}
.fact span{font-size:.8rem;color:var(--muted);font-weight:600}
.cv-list{list-style:none;margin:0;padding:0}
.cv-list li{padding:11px 0;border-top:1px solid var(--line);font-size:.95rem}
.cv-list li:first-child{border-top:0}
.cv-list b{color:var(--ink)}
.cv-list span{color:var(--muted)}
.four{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.four-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:22px}
.four-card h3{font-size:1.25rem;margin:0 0 6px}
.four-card p{font-size:.92rem;margin:0}
.quote{background:#000;color:#fff;border-radius:26px;padding:28px;margin:0 0 16px}
.quote p{color:#eaf4fc;font-size:1.02rem;margin:0 0 10px}
.quote span{color:var(--sky-light);font-weight:700;font-size:.88rem}
.pill-list{display:flex;flex-wrap:wrap;gap:8px}
.pill-list span{background:var(--surface3);border-radius:999px;padding:6px 13px;font-size:.84rem;font-weight:600;color:var(--ink)}
/* ---- v0.1.5: Contact Us page + Performance Prescription cover (10 Nov preview) ---- */
.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;align-items:start}
.contact-main{min-width:0}
.contact-side{min-width:0;padding-top:52px;display:flex;flex-direction:column;gap:20px}
.enquiry{background:var(--surface);border:1px solid var(--line);border-radius:28px;padding:30px}
.enquiry h2{font-size:1.9rem;margin:6px 0 8px}
.enquiry>p{color:var(--muted);margin:0 0 20px}
.cform{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field.full{grid-column:1/-1}
.field label{font-weight:700;font-size:.88rem}
.field label i{font-style:normal;color:var(--blue-text)}
.field input,.field textarea{padding:13px 16px;border-radius:16px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-family:inherit;font-size:.95rem;outline:none;width:100%}
.field textarea{min-height:150px;resize:vertical;line-height:1.55}
.field input:focus,.field textarea:focus{border-color:var(--sky)}
.cform .actions{grid-column:1/-1;display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:4px}
.form-note{color:var(--muted);font-size:.85rem;margin:0;flex:1;min-width:220px}
.detail-link{display:inline-block;font-weight:800;color:var(--blue-text);text-decoration:none;font-size:1.02rem;word-break:break-all}
.detail-link:hover{text-decoration:underline}
.contact-ok{display:none;background:rgba(96,190,255,.16);border:1px solid var(--sky);color:var(--navy);padding:11px 14px;border-radius:14px;font-weight:600;font-size:.88rem;margin-top:16px}
.contact-ok.show{display:block}
.contact-err{display:none;background:#fdf0ef;border:1px solid #e5a09a;color:#7a2e28;padding:11px 14px;border-radius:14px;font-weight:600;font-size:.88rem;margin-top:16px}
.contact-err.show{display:block}
/* The Performance Prescription cover is a landscape 3D render (894x704), not a
   flat portrait cover like the other three. Wider cover column, image shown
   full-width at its natural ratio — never stretched or cropped. */
.book-detail--landscape{grid-template-columns:300px minmax(0,1fr)}
.book-detail--landscape .coverbox img{height:auto;width:100%;max-height:240px;object-fit:contain}
.book .go{display:inline-block;margin-top:14px;font-weight:800;font-size:.9rem;color:inherit}
a.book-link{text-decoration:none;color:inherit;display:block}
.empty{display:none;background:var(--surface2);border:1px solid var(--line);border-radius:20px;padding:22px;color:var(--muted);text-align:center}

@media (max-width:1020px){
  .layout,.about-grid,.contact-grid{grid-template-columns:minmax(0,1fr) 290px;gap:22px}
  .facts{grid-template-columns:1fr 1fr}
  .main-col .books{grid-template-columns:1fr}
  .main-col .books .book{min-height:170px}
}
@media (max-width:900px){
  .biblio ul{grid-template-columns:1fr}
  .duo{grid-template-columns:1fr}
  .news{grid-template-columns:1fr}
	.duo-full .news{grid-template-columns:1fr}
	.news-art{min-height:220px}
  .cards{grid-template-columns:1fr 1fr}
  .hero-stats{grid-template-columns:1fr 1fr}
  .hero-stat:nth-child(3){border-left:0}
  .hero-stat{border-top:1px solid rgba(255,255,255,.16)}
  .hero-stat:nth-child(-n+2){border-top:0}
  .site-footer .cols{grid-template-columns:1fr}
}
@media (max-width:820px){
  .layout,.about-grid,.contact-grid{grid-template-columns:1fr}
  .about-side{padding-top:10px}
  .contact-side{padding-top:10px}
  .sidebar{padding-top:10px;display:grid;grid-template-columns:1fr 1fr;align-items:start}
  .sidebar .widget-corp{grid-column:1/-1}
}
@media (max-width:720px){ .corp-panel .btn{align-self:stretch;text-align:center} }
@media (max-width:560px){ .cards,.books,.sidebar,.four,.cform{grid-template-columns:1fr} .book-detail{grid-template-columns:1fr} .main-col .books{grid-template-columns:1fr} .hero-inner{padding:44px 20px 0} .hero-cred{gap:8px 14px} .site-nav .links{display:none} .menu-toggle{display:inline-flex;margin-left:auto} .site-nav .cta{display:none} .site-nav:not(.menu-open){flex-wrap:nowrap} .logo img{height:40px}  .site-nav.menu-open{border-radius:26px} .site-nav.menu-open .links{display:flex;flex-direction:column;flex-basis:100%;gap:0;padding:6px 0 2px} .site-nav.menu-open .links li{border-top:1px solid var(--line)} .site-nav.menu-open .links a{display:block;padding:10px 12px} .enquiry{padding:24px 20px} }
@keyframes drb-fade-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.reveal{opacity:0}
.reveal.visible{opacity:1;animation:drb-fade-up .6s ease backwards}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1}.reveal.visible{animation:none}}
@media (prefers-reduced-motion: reduce){ *{transition:none !important;scroll-behavior:auto} }
