import json, os

DATA_PATH = '/Users/bryce/FLSM/.tmp/briefs/nurse-charles-2026-04-20/content_data.json'

with open(DATA_PATH) as f:
    data = json.load(f)

# 1. Desired platforms per piece id
PLATFORMS = {
    'short1_li_a': ['LinkedIn A', 'YouTube Shorts', 'TikTok', 'Instagram Reels'],
    'short1_yt':   ['YouTube Shorts', 'TikTok', 'Instagram Reels'],
    'short1_re':   ['Instagram Reels', 'YouTube Shorts', 'TikTok'],
    'short1_tt':   ['TikTok', 'YouTube Shorts', 'Instagram Reels'],
    'short1_li_b': ['LinkedIn B', 'YouTube Shorts', 'TikTok', 'Instagram Reels'],
    'short2_li_a': ['LinkedIn A', 'YouTube Shorts', 'TikTok', 'Instagram Reels'],
    'short2_yt':   ['YouTube Shorts', 'TikTok', 'Instagram Reels'],
    'short2_re':   ['Instagram Reels', 'YouTube Shorts', 'TikTok'],
    'short2_tt':   ['TikTok', 'YouTube Shorts', 'Instagram Reels'],
    'short2_li_b': ['LinkedIn B', 'YouTube Shorts', 'TikTok', 'Instagram Reels'],
}

for p in data['pieces']:
    if p['id'] in PLATFORMS:
        p['platforms'] = PLATFORMS[p['id']]

# 2. New blog pieces
blog4 = {
    "id": "blog4",
    "type": "blog",
    "week": 1,
    "day": "Thu",
    "date": "2026-04-23",
    "angle": "specific",
    "pillar": "pillar_2",
    "title": "The 5 Clinical Red Flags Parents Miss When a Teenager Is Using Substances",
    "keyword": "signs of teen drug use clinical",
    "secondary_keywords": ["teen substance use warning signs", "how to tell if teenager is using drugs", "parent guide teen substance"],
    "meta_description": "An ER nurse with 30 years at Emory lists the 5 clinical red flags parents miss — not behavior patterns, but physical and cognitive signs that show up before the crisis.",
    "estimated_read_time": "7 min read",
    "pexels_query": "nurse talking to worried parent hospital waiting room",
    "url_slug": "clinical-red-flags-teen-substance-use-parents-guide",
    "body": "<h2>The Signs That Are Not on Any Poster in the School Hallway</h2>\n<p>Every parent who has found themselves in an Emory Healthcare waiting room tells me the same thing: they saw something, but they did not know what they were seeing. The signs were there. The clinical framework for reading them was not.</p>\n<p>Schools teach teenagers about the dangers of drugs. They almost never teach parents how to recognize the clinical signs of substance use before the emergency. That gap is what fills ER waiting rooms.</p>\n<p>These are not behavioral warning signs. Those come later, and they are often too easy to explain away. These are physical and cognitive markers that show up earlier, that have physiological explanations, and that give parents something specific to watch for.</p>\n\n<h2>Red Flag 1: Persistent Dry Eyes That Do Not Resolve With Sleep</h2>\n<p>Cannabinoids cause vasodilation in the ocular blood vessels. This is the mechanism behind the red eyes associated with THC use. But the clinical sign parents miss is persistent ocular dryness that your teenager treats by using eye drops frequently and keeps drops in unexpected places: their backpack, the car, their jacket pocket.</p>\n<p>A teenager who always has Visine and uses it regularly is treating a symptom. That symptom has a physiological cause. Dry eyes from seasonal allergies are real, but they do not require the pattern of drops-in-every-bag that regular cannabinoid users develop.</p>\n\n<h2>Red Flag 2: Temperature Dysregulation</h2>\n<p>Stimulant use affects the hypothalamic thermostat. Teenagers using stimulants often present as warm or sweating in situations that do not warrant it. They may wear less clothing in cold weather. They may complain of being hot when the room temperature is unremarkable.</p>\n<p>The opposite pattern appears with opioids: cold extremities, slow circulation, blanket-seeking behavior in normal temperatures. These are not just cold or warm teenagers. These are teenagers with pharmacological agents affecting their temperature regulation.</p>\n\n<h2>Red Flag 3: Changes in Pupil Response Under Normal Lighting</h2>\n<p>You do not need a penlight to check this. Watch how your teenager's pupils respond when they move from a dim room to a normally lit kitchen. The constriction response should be quick and symmetrical. Pupils that are consistently very small in normal lighting (opioids cause miosis), consistently very large in normal lighting (stimulants, psychedelics), or slow to respond are physiological signs worth noting.</p>\n<p>This is not a test you announce. It is something you observe. Sit across from your teenager at dinner. Notice their eyes.</p>\n\n<h2>Red Flag 4: Sleep Architecture Disruption</h2>\n<p>Substance use disrupts sleep architecture at the clinical level. REM suppression is associated with cannabinoid and alcohol use. Stimulant use produces delayed sleep onset and early waking. Opioids alter the ratio of deep sleep to light sleep.</p>\n<p>The behavioral sign parents recognize is a teenager staying up late. The clinical sign is different: a teenager who sleeps for 10 or 11 hours and wakes exhausted, or who falls asleep immediately at unusual times (in the car, at 4pm, at family dinner). These are signs of disrupted sleep architecture, not just a teenager who likes to stay up.</p>\n<p>The difference matters because a late bedtime is a parenting conversation. Sleep architecture disruption is a clinical conversation.</p>\n\n<h2>Red Flag 5: Appetite Patterns That Do Not Match Growth</h2>\n<p>Adolescent growth drives genuine increases in appetite. But the appetite patterns associated with substance use are different in character, not just magnitude.</p>\n<p>Cannabinoid-associated appetite increase tends to be hyperfocused on specific foods at unusual times: 11pm, after waking, unrelated to meal schedules. Stimulant use suppresses appetite during the active period and can produce extreme appetite in the rebound phase. A teenager who does not eat dinner and then consumes a large amount of food at midnight may be in a stimulant rebound cycle.</p>\n<p>These patterns are observable without confrontation. They do not require drug testing. They require knowing what you are seeing.</p>\n\n<h2>What to Do With This Information</h2>\n<p>None of these signs alone confirms substance use. All of them together, in a pattern, is clinical data. If you are seeing three or more of these signs consistently, you have enough information to start a conversation, not an accusation.</p>\n<p>The conversation that works starts with information, not rules. \"I have noticed X. I am not upset. I want to understand what is happening for you.\" That is a different opening than \"Are you using drugs?\" And the teenager on the other side of the table responds to them differently.</p>\n\n<h2>FAQs</h2>\n<p><strong>Q: Should I drug test my teenager if I notice these signs?</strong><br>Home drug tests measure metabolites, not impairment, and a positive test without a conversation strategy often damages the relationship without producing the behavior change you are looking for. Start with the conversation framework before escalating to testing. Testing is appropriate when you already have a confirmed problem and need to monitor compliance with an agreed-upon recovery plan.</p>\n<p><strong>Q: What if my teenager explains away all of these signs?</strong><br>Explanations are data. A teenager who has a ready explanation for every physical sign on this list is a teenager who has thought about how to answer those questions. You are not looking for a confession. You are building a pattern over time.</p>\n<p><strong>Q: At what point do I involve a doctor or counselor?</strong><br>If you are seeing three or more of these signs in a consistent two to three week pattern, that is a reason to make an appointment with your pediatrician and be specific about what you are observing. Pediatricians have screening tools. You do not need to have all the answers before making that call.</p>",
    "linkedin_share": "The clinical red flags parents miss when a teenager is using substances. Not behavioral signs. Physiological markers that show up before the crisis. Five of them, with the mechanism behind each one."
}

blog5 = {
    "id": "blog5",
    "type": "blog",
    "week": 2,
    "day": "Thu",
    "date": "2026-04-30",
    "angle": "personal",
    "pillar": "pillar_1",
    "title": "The Family That Called Before the ER Visit: What They Did Differently",
    "keyword": "how to talk to teenager about drugs",
    "secondary_keywords": ["parent teenager drug conversation", "teen substance prevention", "ER nurse parent advice"],
    "meta_description": "After 30 years in the ER, one pattern separates the families who call early from the ones in the waiting room. An ER nurse explains what the early-callers always had.",
    "estimated_read_time": "8 min read",
    "pexels_query": "family having serious conversation kitchen table parents teenager",
    "url_slug": "family-that-called-before-er-what-parents-did-differently",
    "body": "<h2>The Call That Comes at 2am</h2>\n<p>In 30 years at Emory Healthcare, I have taken a lot of 2am calls. The ones that stay with me are not the ones from the ER waiting room. They are the ones from a parent who caught something early, called before it became an emergency, and kept their kid out of the ER entirely.</p>\n<p>After enough of those calls, I started noticing a pattern. The families who called early were different in one specific way. Not in how much they knew about drugs. Not in how strict they were. Not in how many conversations they had already had.</p>\n<p>They were different in what kind of conversation they were willing to have.</p>\n\n<h2>What the Early-Callers Had</h2>\n<p>The families who called before the crisis had established what I would call clinical credibility with their teenager. Their teenager believed that their parent was a source of accurate information, not just a source of consequences.</p>\n<p>That sounds simple. It is not. Most of the parent-teenager drug conversations I hear about are structured around rules: drugs are dangerous, if you ever use them, here is what happens. That conversation can be delivered once per year for 18 years and never produce the outcome you are looking for. Because the teenager does not need your rules. They need your information.</p>\n<p>The parent whose teenager called them from the party, or texted at midnight, or came into their room and said something is wrong, was a parent who had given their teenager a reason to believe that calling was safe. Not safe from consequences. Safe from being lectured. Safe to receive actually useful information.</p>\n\n<h2>The Case That Clarified This for Me</h2>\n<p>I will not use names or identifying details. But the shape of this case is accurate.</p>\n<p>A teenager was at a party. She had taken something she could not identify. She thought the dosing on the package was accurate. It was not. She was scared, the room was spinning, and she had two choices: wait it out or call her mom.</p>\n<p>She called her mom.</p>\n<p>Her mom told me that she had had exactly one conversation with her daughter about substances. But in that conversation, she had said something specific: if you are ever in a situation where you feel unsafe, call me. No questions, no lecture, no taking away your phone. Just call me. And then she told her daughter what high-dose THC actually feels like physiologically, so that if it ever happened, her daughter would know she was not dying, and she would know to call.</p>\n<p>That one sentence, with that one piece of clinical information attached, was what got that kid into a car with her mom instead of into an ambulance.</p>\n\n<h2>The Difference Between Rules and Information</h2>\n<p>Rules require compliance. Information enables decisions. A teenager at a party does not need to remember your rules. They need clinical information they can act on in the moment: what high-dose THC feels like and what to do, what fentanyl-contaminated products look like and why testing strips exist, what the physical signs of a medical emergency are versus what is just uncomfortable.</p>\n<p>A teenager who has that information has options. A teenager who only has rules has one option: do not get caught. And when they are already in the situation, that option is gone.</p>\n\n<h2>What You Can Do in the Next 15 Minutes</h2>\n<p>This is one conversation that covers three things.</p>\n<p><strong>First:</strong> Tell your teenager specifically what high-dose THC feels like. The clinical symptoms: racing heart, time distortion, paranoia, feeling like you cannot breathe even though you can. And tell them what it means: uncomfortable, but not deadly, and it will pass. This removes the panic that leads to bad decisions in the moment.</p>\n<p><strong>Second:</strong> Tell them that gas-station products are not verified. The dose on the label is not confirmed by an independent lab. Products that say 500mg may contain 1,500mg. This is not a scare tactic. It is a quality-control fact.</p>\n<p><strong>Third:</strong> Give them an out. A specific script they can use with friends. Or a code word they can text you from a party. Or the explicit permission to call you with no lecture, any time, in any condition.</p>\n<p>That is the conversation. It takes 15 minutes. And it is different from every drug conversation they have heard from a school assembly.</p>\n\n<h2>The Families in the ER Waiting Room</h2>\n<p>The families in the ER waiting room are good parents. They are terrified parents. They are parents who had the same conversation everyone told them to have, and it did not produce the outcome they needed.</p>\n<p>The difference is not love. It is information. And information is available. That is why I make this content.</p>\n\n<h2>FAQs</h2>\n<p><strong>Q: What if I already had a bad conversation and my teenager does not trust me on this topic?</strong><br>You reset it. You do not have to explain the past conversation. You can say: I want to try this again differently. I am not going to lecture you. I just want to give you some clinical information that I think you should have, because I trust you to make better decisions when you have better information. That reframe positions you as a source of information instead of a source of judgment.</p>\n<p><strong>Q: My teenager says they already know everything about drugs. How do I get past that?</strong><br>Ask them what 2,000mg of Delta-8 THC does to a brain that has never had that much THC before. Ask them what fentanyl test strips are. Ask them what the difference is between a dispensary product and a gas-station product from a lab-testing standpoint. If they know the answers, great. If they do not, you have an opening.</p>\n<p><strong>Q: At what age should I have this conversation?</strong><br>The research on substance use initiation shows that the average age of first use in the United States is between 12 and 14. That means the conversation should happen by 12, before the social context exists. If your teenager is already older than that, the conversation should happen now.</p>",
    "linkedin_share": "The families who call before the ER visit are different in one specific way. After 30 years at Emory, I can tell you exactly what it is. And it is one conversation."
}

blog6 = {
    "id": "blog6",
    "type": "blog",
    "week": 2,
    "day": "Thu",
    "date": "2026-04-30",
    "angle": "data",
    "pillar": "pillar_4",
    "title": "7 Substance Statistics That Change How Parents Talk to Teenagers",
    "keyword": "teen substance use statistics 2026",
    "secondary_keywords": ["teen drug use facts", "fentanyl teenager statistics", "parent education substance abuse"],
    "meta_description": "These 7 substance statistics from recent public health data are not in any school curriculum. An ER nurse explains what each one means for the conversation with your teenager.",
    "estimated_read_time": "7 min read",
    "pexels_query": "researcher reviewing medical data statistics charts clinical study",
    "url_slug": "7-substance-statistics-change-parent-teen-conversation-2026",
    "body": "<h2>The Statistics Your School's Drug Program Never Had</h2>\n<p>Parent education on teen substance use has been running on old data for decades. The conversation most parents are equipped to have comes from a public health framework built in the 1980s and 1990s. The substance landscape those frameworks were designed to address no longer exists.</p>\n<p>Here are 7 statistics from current public health data. Each one changes something specific about how you should approach the conversation with your teenager.</p>\n\n<h2>1. The Average Age of First Substance Use Is 12 to 14</h2>\n<p><em>Source: SAMHSA National Survey on Drug Use and Health</em></p>\n<p>Most parents plan to have the drug conversation when it becomes relevant. It becomes relevant in middle school. The SAMHSA data consistently shows that the peak initiation window for substance use in the United States falls between ages 12 and 14, with some substances showing initiation as early as 11.</p>\n<p>What this means for your conversation: If your child is in middle school and you have not yet had a clinical conversation about substance safety, the relevant context already exists. You are not getting ahead of the problem. You are concurrent with it.</p>\n\n<h2>2. Fentanyl Is Now Detected in Counterfeit Pills Across All Major Drug Categories</h2>\n<p><em>Source: DEA Fentanyl Awareness Data</em></p>\n<p>The DEA's public reporting shows fentanyl contamination in counterfeit pills pressed to look like prescription medications, in cocaine supply, and in methamphetamine. The contamination is not confined to one drug category. A teenager who believes they are taking an Adderall or a Xanax purchased outside the pharmacy supply chain has no way to know if the pill contains fentanyl.</p>\n<p>What this means for your conversation: The I would never touch the hard stuff framework does not protect teenagers using what they believe to be common prescription medications. Fentanyl test strips exist and are now legal in most states. This is information your teenager should have.</p>\n\n<h2>3. 6 in 10 Teenagers Report That Marijuana Is Easy to Get</h2>\n<p><em>Source: Monitoring the Future Survey</em></p>\n<p>Perceived access, not just actual use, is a predictor of initiation. The Monitoring the Future survey consistently shows cannabis accessibility perception at approximately 60 percent among high school students.</p>\n<p>What this means for your conversation: The my teenager does not have access premise is statistically unreliable. Access is not the variable you are managing. The conversation and the decision-making framework are the variables you can influence.</p>\n\n<h2>4. Teen Brain Development Is Not Complete Until Age 25</h2>\n<p><em>Source: NIH National Institute on Drug Abuse</em></p>\n<p>The prefrontal cortex, responsible for risk assessment, impulse control, and long-term consequence evaluation, is not fully developed in teenagers. Substances that affect dopamine pathways interact with an incompletely developed reward system in ways that do not apply to adult users. The risk of dependence formation is higher in adolescent users than in adults using the same substances at the same dose.</p>\n<p>What this means for your conversation: This is clinical information your teenager probably does not know. Your brain is still developing lands differently when explained as physiology: here is the structure, here is what it does, here is why substance exposure at 15 carries different risk than at 30.</p>\n\n<h2>5. Unregulated Cannabis Products Test at 2 to 5 Times Their Stated Dose</h2>\n<p><em>Source: Multiple independent lab testing studies</em></p>\n<p>Products sold at gas stations and smoke shops without regulated cannabis markets are not subject to mandatory third-party testing. Independent lab testing of unregulated cannabinoid products consistently finds dose accuracy problems: products that state a dose contain 2 to 5 times that dose.</p>\n<p>What this means for your conversation: A teenager who believes they are taking a 100mg gummy may be taking 300 to 500mg. The dose-response curve at those concentrations is not linear. This is the mechanism behind what looks like an unexpected overdose in a teenager who has used cannabis before.</p>\n\n<h2>6. The Majority of Teen Substance Use Happens at Homes, Not Parties</h2>\n<p><em>Source: National Survey on Drug Use and Health, location data</em></p>\n<p>Current survey data shows that a substantial majority of adolescent substance use initiation occurs at private residences, often without supervision, frequently at the teenager's own home or a friend's home, and typically in the hours between 3pm and 6pm on weekdays.</p>\n<p>What this means for your conversation: The safety conversation is not just about parties and peer pressure. This shifts where parents need to focus their attention and what kind of conversation structure is most useful.</p>\n\n<h2>7. Teenagers Whose Parents Talk to Them Are Less Likely to Use</h2>\n<p><em>Source: Partnership to End Addiction, National Survey</em></p>\n<p>The conversation works. Research consistently shows that teenagers who report having had a substantive conversation with a parent about substance risks are significantly less likely to initiate use. The variable is not whether the conversation happened, but whether it was substantive: clinical information, delivered without lecture.</p>\n\n<h2>What These 7 Statistics Add Up To</h2>\n<p>The substance landscape changed. The risk profile changed. The information parents are working with has not kept pace. That gap is closable. It closes with one conversation, starting today, using clinical information instead of abstinence messaging.</p>\n<p>That is what I am here for.</p>\n\n<h2>FAQs</h2>\n<p><strong>Q: Where can I find these statistics to share with other parents?</strong><br>The primary sources are SAMHSA, the DEA's public fentanyl awareness reporting, the NIH National Institute on Drug Abuse, and the Monitoring the Future annual survey. All are publicly available. The Partnership to End Addiction also compiles accessible summaries.</p>\n<p><strong>Q: My teenager will argue that studies can be wrong. How do I respond?</strong><br>These findings are consensus findings across multiple studies and surveys over multiple years. The convergence of data from different methodologies on consistent findings is how public health establishes clinical standards. If your teenager is interested in evidence epistemology, that is actually a productive conversation to have, because understanding how to evaluate claims is itself a protective factor for substance use decisions.</p>\n<p><strong>Q: Is it possible that discussing substances makes teenagers more curious and more likely to use?</strong><br>The research does not support this. Studies examining the curiosity hypothesis consistently show that substantive conversations reduce, not increase, initiation rates. Information reduces the social mystique of substance use and gives teenagers a framework for evaluating risk that peer influence does not provide.</p>",
    "linkedin_share": "7 substance statistics from current public health data that your school's drug education never taught parents. Each one changes something specific about the conversation. Sources included."
}

# Insert blog4 after blog2, blog5/blog6 after blog3
new_pieces = []
for p in data['pieces']:
    new_pieces.append(p)
    if p['id'] == 'blog2':
        new_pieces.append(blog4)
    elif p['id'] == 'blog3':
        new_pieces.append(blog5)
        new_pieces.append(blog6)
data['pieces'] = new_pieces

# 3. Update cal_entries platforms and add blog cal_entries
for ce in data['cal_entries']:
    if ce.get('type') == 'short_platform' and ce['id'] in PLATFORMS:
        ce['platforms'] = PLATFORMS[ce['id']]

# Add cal_entries for blog4, blog5, blog6
blog4_ce = {"id": "blog4", "type": "blog", "week": 1, "day": "Thu", "date": "2026-04-23"}
blog5_ce = {"id": "blog5", "type": "blog", "week": 2, "day": "Thu", "date": "2026-04-30"}
blog6_ce = {"id": "blog6", "type": "blog", "week": 2, "day": "Thu", "date": "2026-04-30"}

new_cal = []
for ce in data['cal_entries']:
    new_cal.append(ce)
    if ce['id'] == 'blog2':
        new_cal.append(blog4_ce)
    elif ce['id'] == 'blog3':
        new_cal.append(blog5_ce)
        new_cal.append(blog6_ce)
data['cal_entries'] = new_cal


with open(DATA_PATH, 'w') as f:
    json.dump(data, f, indent=2)

print("Done. Pieces:", [p['id'] for p in data['pieces']])
print("Cal entries:", [ce['id'] for ce in data['cal_entries']])
