<?xml version="1.0" encoding="utf-8" ?>
<elements>
  <info>
    <name>The Hidden Courts</name>
    <description>
      An unofficial fan pack inspired by Sarah J. Maas's Throne of Glass series. It is not affiliated with or endorsed by the author or publisher, and no money is made from it. Needs Aurora's core files (Player's Handbook classes) to work.
      All campaign-facing races, backgrounds, and subclasses for a book-free Throne of Glass table.
      Use these under Source "The Hidden Courts". Core classes (Fighter, Rogue, Cleric, etc.) still come from the Player's Handbook — this pack does not replace class rules.
      v2.6: magic for every Fae line, upgrades for the other races, balance changes to several subclasses.
      v2.5: nine setting languages (Old Language, Fae Tongue, Witch-Tongue, Guild Cant, Rebel Signals, Terrasen Dialect, Adarlan Barracks Slang, Torre Script, Silent Hand-Signs).
      v2.4.1: actions and uses of features now print on the sheet.
      v2.4: magic stages as campaign options that print on the sheet.
      v2.3: source entry added, ability score choices fixed, domain/circle spells granted automatically, tool choices corrected.
      v2.2 additions: Shadowed Blade (Fighter) for Hidden Fae / Guild Blade, Circle of the Oakwald (Druid) for Oakwald Fae, small polish.
    </description>
    <author>Erilea Table</author>
    <update version="2.6.1">
      <file name="the-hidden-courts-pack.xml" url="" />
    </update>
  </info>

  <element name="The Hidden Courts" type="Source" source="The Hidden Courts" id="ID_ERILEA_SOURCE_THRONE_OF_GLASS">
    <description>
      <p>An unofficial fan pack inspired by Sarah J. Maas's Throne of Glass series. It is not affiliated with or endorsed by the author or publisher, and no money is made from it. Needs Aurora's core files (Player's Handbook classes) to work.</p>
      <p>Homebrew table pack for a book-free Throne of Glass campaign: races, backgrounds, and subclasses.</p>
    </description>
    <setters>
      <set name="abbreviation">THC</set>
      <set name="url"></set>
      <set name="author" abbreviation="ET" url="">Erilea Table</set>
      <set name="homebrew">true</set>
    </setters>
  </element>

  <!-- ============================================================
       LANGUAGES
       ============================================================ -->
  <element name="Old Language" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_OLD_LANGUAGE">
    <supports>Secret, Rare</supports>
    <description><p>The ancient tongue of magic and old oaths. Few living people speak it, and it is mostly whispered or written. Anyone who knows it can read old wards and oath-marks.</p></description>
    <setters>
      <set name="secret">true</set>
      <set name="speakers">Fae, scholars of old magic</set>
    </setters>
  </element>
  <element name="Fae Tongue" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_FAE_TONGUE">
    <description><p>The everyday speech of the Fae, softer and older than Common. Humans who overhear it often take it for singing.</p></description>
    <setters>
      <set name="standard">true</set>
      <set name="speakers">Fae</set>
    </setters>
  </element>
  <element name="Witch-Tongue" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_WITCH_TONGUE">
    <supports>Secret, Rare</supports>
    <description><p>The harsh mountain speech of the Ironteeth clans. Clan signs, trail marks and challenges are spoken in it.</p></description>
    <setters>
      <set name="secret">true</set>
      <set name="speakers">Ironteeth witches and clan exiles</set>
    </setters>
  </element>
  <element name="Guild Cant" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_GUILD_CANT">
    <supports>Secret, Rare</supports>
    <description><p>A coded speech of the Rifthold underworld and the Assassins’ Guild. To outsiders it sounds like trade talk about prices, weather and gossip that really means contracts and targets.</p></description>
    <setters>
      <set name="secret">true</set>
      <set name="speakers">Guild assassins and blades</set>
    </setters>
  </element>
  <element name="Rebel Signals" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_REBEL_SIGNALS">
    <supports>Secret, Rare</supports>
    <description><p>Spoken codes and chalk marks the resistance uses to warn, hide and meet. They change often, but anyone who knows the system picks up a new mark quickly.</p></description>
    <setters>
      <set name="secret">true</set>
      <set name="speakers">Rebels and their contacts</set>
    </setters>
  </element>
  <element name="Terrasen Dialect" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_TERRASEN_DIALECT">
    <description><p>The speech of Terrasen and its scattered people, with old-kingdom phrases that Adarlan has tried to stamp out.</p></description>
    <setters>
      <set name="standard">true</set>
      <set name="speakers">People of Terrasen</set>
    </setters>
  </element>
  <element name="Adarlan Barracks Slang" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_ADARLAN_BARRACKS_SLANG">
    <description><p>Slang and shorthand from Adarlan’s garrisons and ranks. Orders, patrol calls and insults all follow fixed forms.</p></description>
    <setters>
      <set name="standard">true</set>
      <set name="speakers">Adarlan soldiers</set>
    </setters>
  </element>
  <element name="Torre Script" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_TORRE_SCRIPT">
    <supports>Secret, Rare</supports>
    <description><p>A shorthand used by Torre Cesme healers for herbs, doses and case notes. To outsiders it looks like meaningless marks.</p></description>
    <setters>
      <set name="secret">true</set>
      <set name="speakers">Torre Cesme healers</set>
    </setters>
  </element>
  <element name="Silent Hand-Signs" type="Language" source="The Hidden Courts" id="ID_ERILEA_LANGUAGE_SILENT_HAND_SIGNS">
    <supports>Secret, Rare</supports>
    <description><p>A silent language of hand signals used by guild blades and scouts to talk without a sound across a room or a rooftop.</p></description>
    <setters>
      <set name="secret">true</set>
      <set name="speakers">Guild blades and scouts</set>
    </setters>
  </element>

  <!-- ============================================================
       RACES — everything the table should pick from
       ============================================================ -->

  <element name="Erilean Human" type="Race" source="The Hidden Courts" id="ID_ERILEA_RACE_ERILEAN_HUMAN">
    <description>
      <p>The most common people of Erilea: Adarlanian citizens, Terrasen survivors, Rifthold dockworkers, Torre initiates, rebels, and nobles. No pointed ears, no iron teeth — just politics, fear, and grit under the King’s shadow.</p>
      <p class="indent"><strong><em>Ability Scores.</em></strong> Increase one ability score by 2 and a different one by 1.</p>
      <p class="indent"><strong><em>Size.</em></strong> Medium. <strong><em>Speed.</em></strong> 35 feet.</p>
      <p class="indent"><strong><em>Skill.</em></strong> Proficiency in one skill of your choice.</p>
      <p class="indent"><strong><em>Languages.</em></strong> Common and one extra language.</p>
      <p class="indent"><strong><em>Human Versatility.</em></strong> You gain one feat of your choice (if your table uses feats) OR proficiency in one tool of your choice if feats are off.</p>
      <p class="indent"><strong><em>Rebel Spirit.</em></strong> Advantage on saving throws against being frightened, and proficiency in one additional skill of your choice.</p>
      <p>Ideal for: Torre Healer, Rebel, Deserter, Merchant-born, Noble, Street Survivor.</p>
    </description>
    <sheet display="false" />
    <setters>
      <set name="names" type="male">Bastian, Callan, Joren, Garrick, Soren, Ren, Hale, Doran, Merrick, Tobias</set>
      <set name="names" type="female">Sorscha, Tamsin, Mira, Brenna, Jessa, Lira, Nessa, Kara, Elana, Selene</set>
      <set name="names" type="surname">Ashford, Grimshaw, Keller, Harlan, Colm, Reed, Barlow, Westmark, Voss, Marris</set>
      <set name="height" modifier="2d10">4'8"</set>
      <set name="weight" modifier="2d4">110 lb.</set>
    </setters>
    <rules>
      <stat name="innate speed" value="35" bonus="base" />
      <grant type="Language" id="ID_LANGUAGE_COMMON" />
      <select type="Language" name="Language (Erilean Human)" supports="Standard||Exotic" number="1" />
      <select type="Proficiency" name="Skill (Erilean Human)" supports="Skill" number="1" />
      <select type="Ability Score Improvement" name="ASI +2 (Erilean Human)" supports="Custom Ability Score Increase 2" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <select type="Ability Score Improvement" name="ASI +1 (Erilean Human)" supports="Custom Ability Score Increase 1" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <select type="Feat" name="Feat (Erilean Human)" optional="true" number="1" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_HUMAN_VERSATILITY" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_REBEL_SPIRIT" />
    </rules>
  </element>

  <element name="Human Versatility" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_HUMAN_VERSATILITY">
    <description>
      <p>You are adaptable. If your table does not use feats, you instead gain proficiency with one tool of your choice (DM may grant this manually).</p>
    </description>
    <sheet>
      <description>Adaptable Erilean human; feat or tool training.</description>
    </sheet>
  </element>

  <element name="Hidden Fae" type="Race" source="The Hidden Courts" id="ID_ERILEA_RACE_HIDDEN_FAE">
    <description>
      <p>Full Fae blood, living under Adarlan’s ban. You hide ears, canines, and the way your senses cut too sharp. Magic sleeps while Wyrdstone stands; when its hold weakens, your spark returns.</p>
      <p class="indent"><strong><em>Ability Scores.</em></strong> Increase one ability score by 2 and a different one by 1.</p>
      <p class="indent"><strong><em>Size.</em></strong> Medium. <strong><em>Speed.</em></strong> 30 feet. <strong><em>Darkvision.</em></strong> 60 feet.</p>
      <p class="indent"><strong><em>Keen Senses.</em></strong> Perception proficiency.</p>
      <p class="indent"><strong><em>Fae Blood.</em></strong> Advantage on saves against charm; magic can’t put you to sleep.</p>
      <p class="indent"><strong><em>Hidden Heritage.</em></strong> Deception or Stealth proficiency (choose one).</p>
      <p class="indent"><strong><em>Languages.</em></strong> Common, Fae Tongue, Old Language and one other.</p>
      <p class="indent"><strong><em>Dormant Spark.</em></strong> Your magic wakes only as the world changes (campaign rule, ask your DM).</p>
      <p class="indent"><strong><em>Fae Magic.</em></strong> You know the <em>minor illusion</em> cantrip and can use Shadow Step to teleport 30 feet between dim light or darkness, a number of times equal to your proficiency bonus per long rest. Charisma is your spellcasting ability.</p>
      <p>Ideal for: Assassin, Fae Guard, Scout with a secret. Pairs especially well with Guild Blade background and Shadowed Blade fighter archetype.</p>
    </description>
    <sheet display="false" />
    <setters>
      <set name="names" type="male">Faelar, Caelum, Thalion, Sorwen, Aerendyl, Lorimar, Caeliss</set>
      <set name="names" type="female">Nymera, Mirelle, Eira, Lirael, Sylvaine, Orlaith, Ilyrian</set>
      <set name="names" type="surname">Windshadow, Ashenbow, Frostwhisper, Nightbloom, Emberleaf, Stormrill</set>
      <set name="height" modifier="2d10">5'0"</set>
      <set name="weight" modifier="2d4">110 lb.</set>
    </setters>
    <rules>
      <stat name="innate speed" value="30" bonus="base" />
      <grant type="Vision" id="ID_VISION_DARKVISION" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_PERCEPTION" />
      <grant type="Language" id="ID_LANGUAGE_COMMON" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_OLD_LANGUAGE" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_FAE_TONGUE" />
      <select type="Language" name="Language (Hidden Fae)" supports="Standard||Exotic" number="1" />
      <select type="Proficiency" name="Hidden Heritage" supports="ID_PROFICIENCY_SKILL_DECEPTION|ID_PROFICIENCY_SKILL_STEALTH" number="1" />
      <select type="Ability Score Improvement" name="ASI +2 (Hidden Fae)" supports="Custom Ability Score Increase 2" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <select type="Ability Score Improvement" name="ASI +1 (Hidden Fae)" supports="Custom Ability Score Increase 1" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_FAE_BLOOD" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_DORMANT_SPARK" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_FAE_MAGIC" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_SHADOW_GIFTS_1" requirements="ID_ERILEA_OPTION_CLOCKTOWER_1" />
    </rules>
  </element>

  <element name="Fae Blood" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_FAE_BLOOD">
    <description><p>Advantage on saving throws against being charmed; magic can’t put you to sleep.</p></description>
    <sheet><description>Advantage vs. charm; immune to magical sleep.</description></sheet>
  </element>

  <element name="Dormant Spark" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_DORMANT_SPARK">
    <description><p>Your Fae magic sleeps and only wakes as the world changes. Your DM tells you what is possible, and may allow a rare surge.</p></description>
    <sheet><description>Fae magic wakes slowly; your DM tells you what is possible.</description></sheet>
  </element>

  <element name="Demi-Fae" type="Race" source="The Hidden Courts" id="ID_ERILEA_RACE_DEMI_FAE">
    <description>
      <p>One Fae parent, or thin Fae blood. You usually pass as human; animals and careful eyes sometimes know better.</p>
      <p class="indent"><strong><em>Ability Scores.</em></strong> Increase one ability score by 2 and a different one by 1.</p>
      <p class="indent"><strong><em>Size.</em></strong> Medium. <strong><em>Speed.</em></strong> 35 feet. <strong><em>Darkvision.</em></strong> 60 feet.</p>
      <p class="indent"><strong><em>Fae Legacy.</em></strong> Advantage on saves against being charmed.</p>
      <p class="indent"><strong><em>Skill.</em></strong> Proficiency in one skill of your choice.</p>
      <p class="indent"><strong><em>Keen Senses.</em></strong> Proficiency in Perception.</p>
      <p class="indent"><strong><em>Fae Spark.</em></strong> You know one cantrip of your choice (<em>minor illusion</em>, <em>druidcraft</em> or <em>dancing lights</em>) and can cast <em>speak with animals</em> once per long rest. Charisma is your spellcasting ability.</p>
      <p class="indent"><strong><em>Languages.</em></strong> Common and one other.</p>
      <p>Ideal for: characters who want a subtle supernatural hook without full Fae pressure.</p>
    </description>
    <sheet display="false" />
    <setters>
      <set name="names" type="male">Joren, Callan, Ren, Hale, Doran, Perrin, Corin</set>
      <set name="names" type="female">Sorscha, Tamsin, Mira, Brenna, Selene, Jessa, Nessa</set>
      <set name="height" modifier="2d10">4'10"</set>
      <set name="weight" modifier="2d4">105 lb.</set>
    </setters>
    <rules>
      <stat name="innate speed" value="35" bonus="base" />
      <grant type="Vision" id="ID_VISION_DARKVISION" />
      <grant type="Language" id="ID_LANGUAGE_COMMON" />
      <select type="Language" name="Language (Demi-Fae)" supports="Standard||Exotic" number="1" />
      <select type="Proficiency" name="Skill (Demi-Fae)" supports="Skill" number="1" />
      <select type="Ability Score Improvement" name="ASI +2 (Demi-Fae)" supports="Custom Ability Score Increase 2" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <select type="Ability Score Improvement" name="ASI +1 (Demi-Fae)" supports="Custom Ability Score Increase 1" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_FAE_LEGACY" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_PERCEPTION" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_FAE_MAGIC" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_FAE_SPARK" requirements="ID_ERILEA_OPTION_CLOCKTOWER_1" />
    </rules>
  </element>

  <element name="Fae Legacy" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_FAE_LEGACY">
    <description><p>Advantage on saving throws against being charmed.</p></description>
    <sheet><description>Advantage on saves against being charmed.</description></sheet>
  </element>

  <element name="Oakwald Fae" type="Race" source="The Hidden Courts" id="ID_ERILEA_RACE_OAKWALD_FAE">
    <description>
      <p>Fae of forest paths — Oakwald and older woods. Quieter than court Fae, harder to spot among trees, deeply tied to land that remembers magic.</p>
      <p class="indent"><strong><em>Ability Scores.</em></strong> Increase one ability score by 2 and a different one by 1.</p>
      <p class="indent"><strong><em>Size.</em></strong> Medium. <strong><em>Speed.</em></strong> 35 feet. <strong><em>Darkvision.</em></strong> 60 feet.</p>
      <p class="indent"><strong><em>Keen Senses.</em></strong> Perception proficiency.</p>
      <p class="indent"><strong><em>Fae Blood.</em></strong> Advantage vs. charm; magic can’t put you to sleep.</p>
      <p class="indent"><strong><em>Mask of the Wild.</em></strong> You can attempt to hide when only lightly obscured by foliage, heavy rain, falling snow, mist, or other natural phenomena.</p>
      <p class="indent"><strong><em>Languages.</em></strong> Common, Fae Tongue, Old Language and one other.</p>
      <p class="indent"><strong><em>Dormant Spark.</em></strong> Your magic wakes only as the world changes (campaign rule, ask your DM).</p>
      <p class="indent"><strong><em>Fae Magic.</em></strong> You know the <em>druidcraft</em> cantrip and can cast <em>speak with animals</em> once per long rest. Wisdom is your spellcasting ability.</p>
      <p>Ideal for: Rebel Scout, forest guide, wilderness striker. Pairs especially well with Circle of the Oakwald Druid.</p>
    </description>
    <sheet display="false" />
    <setters>
      <set name="names" type="male">Thalion, Sorwen, Caelum, Emrys, Kerrick</set>
      <set name="names" type="female">Sylvaine, Eira, Lirael, Wren, Mirelle</set>
      <set name="height" modifier="2d10">5'0"</set>
      <set name="weight" modifier="2d4">100 lb.</set>
    </setters>
    <rules>
      <stat name="innate speed" value="35" bonus="base" />
      <grant type="Vision" id="ID_VISION_DARKVISION" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_PERCEPTION" />
      <grant type="Language" id="ID_LANGUAGE_COMMON" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_OLD_LANGUAGE" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_FAE_TONGUE" />
      <select type="Language" name="Language (Oakwald Fae)" supports="Standard||Exotic" number="1" />
      <select type="Ability Score Improvement" name="ASI +2 (Oakwald Fae)" supports="Custom Ability Score Increase 2" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <select type="Ability Score Improvement" name="ASI +1 (Oakwald Fae)" supports="Custom Ability Score Increase 1" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_FAE_BLOOD" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_DORMANT_SPARK" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_FAE_MAGIC" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_FOREST_GIFTS_1" requirements="ID_ERILEA_OPTION_CLOCKTOWER_1" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_MASK_OF_THE_WILD" />
    </rules>
  </element>

  <element name="Mask of the Wild" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_MASK_OF_THE_WILD">
    <description><p>You can attempt to hide even when you are only lightly obscured by foliage, heavy rain, falling snow, mist, or other natural phenomena.</p></description>
    <sheet><description>Hide while lightly obscured by natural phenomena.</description></sheet>
  </element>

  <element name="Ironteeth-Blooded" type="Race" source="The Hidden Courts" id="ID_ERILEA_RACE_IRONTEETH_BLOODED">
    <description>
      <p><strong>Optional / table permission.</strong> Not a full Ironteeth witch from the mountains — a human-passing lineage touched by witch blood, exile, or unfinished yielding-lore. Use only if the DM wants witch themes at the table early.</p>
      <p class="indent"><strong><em>Ability Scores.</em></strong> Increase one ability score by 2 and a different one by 1.</p>
      <p class="indent"><strong><em>Size.</em></strong> Medium. <strong><em>Speed.</em></strong> 30 feet.</p>
      <p class="indent"><strong><em>Darkvision.</em></strong> 60 feet.</p>
      <p class="indent"><strong><em>Predatory Grace.</em></strong> Proficiency in Intimidation or Athletics (choose one).</p>
      <p class="indent"><strong><em>Iron Nails (story).</em></strong> Unarmed strikes can deal 1d4 slashing instead of bludgeoning (still use normal unarmed rules).</p>
      <p class="indent"><strong><em>Witch-Blooded Hardiness.</em></strong> When you score a critical hit with a melee weapon attack, you roll one of the weapon’s damage dice one additional time. You have resistance to poison damage and proficiency in one additional skill of your choice. You also have the Mountain Endurance of the witches.</p>
      <p class="indent"><strong><em>Languages.</em></strong> Common, Witch-Tongue and one other.</p>
      <p>Clan flavour (roleplay): Blackbeak, Yellowlegs, or Blueblood — pick one with the DM.</p>
    </description>
    <sheet display="false" />
    <setters>
      <set name="names" type="female">Vrenna, Kaelith, Drusa, Ravenna, Brynja, Kora, Thora, Sable</set>
      <set name="names" type="male">Grael, Roran, Kestrel</set>
      <set name="names" type="surname">Ashwing, Redfang, Ironbrood, Bonecrest, Grimtalon</set>
      <set name="height" modifier="2d10">5'2"</set>
      <set name="weight" modifier="2d6">130 lb.</set>
    </setters>
    <rules>
      <stat name="innate speed" value="30" bonus="base" />
      <grant type="Vision" id="ID_VISION_DARKVISION" />
      <grant type="Language" id="ID_LANGUAGE_COMMON" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_WITCH_TONGUE" />
      <select type="Language" name="Language (Ironteeth-Blooded)" supports="Standard||Exotic" number="1" />
      <select type="Proficiency" name="Predatory Grace" supports="ID_PROFICIENCY_SKILL_INTIMIDATION|ID_PROFICIENCY_SKILL_ATHLETICS" number="1" />
      <select type="Ability Score Improvement" name="ASI +2 (Ironteeth-Blooded)" supports="Custom Ability Score Increase 2" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <select type="Ability Score Improvement" name="ASI +1 (Ironteeth-Blooded)" supports="Custom Ability Score Increase 1" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_IRON_NAILS" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_WITCH_BLOODED_HARDINESS" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_MOUNTAIN_ENDURANCE" />
    </rules>
  </element>

  <element name="Iron Nails" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_IRON_NAILS">
    <description><p>Your unarmed strikes can deal 1d4 slashing damage instead of the normal bludgeoning damage.</p></description>
    <sheet><description>Unarmed strike option: 1d4 slashing.</description></sheet>
  </element>

  <element name="Ironteeth Witch" type="Race" source="The Hidden Courts" id="ID_ERILEA_RACE_IRONTEETH_WITCH">
    <description>
      <p><strong>Optional / DM permission required.</strong> A true Ironteeth witch of the mountains — Blackbeak, Yellowlegs, or Blueblood blood. Iron teeth, iron nails, and the old hunger for the Yielding. Use only if the table is ready for a more overtly supernatural and dangerous presence.</p>
      <p class="indent"><strong><em>Ability Scores.</em></strong> Increase one ability score by 2 and a different one by 1.</p>
      <p class="indent"><strong><em>Size.</em></strong> Medium. <strong><em>Speed.</em></strong> 35 feet. <strong><em>Darkvision.</em></strong> 60 feet.</p>
      <p class="indent"><strong><em>Predatory Grace.</em></strong> Proficiency in Intimidation and Athletics.</p>
      <p class="indent"><strong><em>Iron Nails &amp; Teeth.</em></strong> Unarmed strikes deal 1d4 slashing. You can make a bite attack as an unarmed strike (same damage).</p>
      <p class="indent"><strong><em>Mountain Endurance.</em></strong> You have advantage on Constitution saving throws against exhaustion from forced marches, cold, or high altitude (DM adjudicates).</p>
      <p class="indent"><strong><em>Iron Toughness.</em></strong> Your hit point maximum increases by 1, and by 1 again every time you gain a level.</p>
      <p class="indent"><strong><em>Languages.</em></strong> Common, Witch-Tongue and one other.</p>
      <p class="indent"><strong><em>Clan Mark.</em></strong> Choose Blackbeak (cruel discipline), Yellowlegs (scouts &amp; spies), or Blueblood (cunning &amp; politics) for roleplay and story hooks.</p>
      <p>Ideal for: Witch warrior, mountain scout, exile seeking the Yielding, or a dangerous ally to the rebels.</p>
    </description>
    <sheet display="false" />
    <setters>
      <set name="names" type="female">Manon, Asterin, Sorrel, Vesta, Ghislaine, Kaltain, Petrah, Bronwen, Imogen, Faline</set>
      <set name="names" type="male">Grael, Roran, Kestrel, Torin</set>
      <set name="names" type="surname">Blackbeak, Yellowlegs, Blueblood, Ashwing, Redfang, Ironbrood, Bonecrest, Grimtalon, Windcutter</set>
      <set name="height" modifier="2d10">5'4"</set>
      <set name="weight" modifier="2d6">140 lb.</set>
    </setters>
    <rules>
      <stat name="innate speed" value="35" bonus="base" />
      <grant type="Vision" id="ID_VISION_DARKVISION" />
      <grant type="Language" id="ID_LANGUAGE_COMMON" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_WITCH_TONGUE" />
      <select type="Language" name="Language (Ironteeth Witch)" supports="Standard||Exotic" number="1" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_INTIMIDATION" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_ATHLETICS" />
      <select type="Ability Score Improvement" name="ASI +2 (Ironteeth Witch)" supports="Custom Ability Score Increase 2" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <select type="Ability Score Improvement" name="ASI +1 (Ironteeth Witch)" supports="Custom Ability Score Increase 1" requirements="!ID_INTERNAL_GRANTS_BACKGROUND_ASI" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_IRON_NAILS" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_IRON_TEETH" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_MOUNTAIN_ENDURANCE" />
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_IRON_TOUGHNESS" />
    </rules>
  </element>

  <element name="Iron Teeth" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_IRON_TEETH">
    <description><p>You can make a bite attack as an unarmed strike, dealing 1d4 slashing damage.</p></description>
    <sheet><description>Bite unarmed strike: 1d4 slashing.</description></sheet>
  </element>

  <element name="Mountain Endurance" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_MOUNTAIN_ENDURANCE">
    <description><p>You have advantage on Constitution saving throws against exhaustion caused by forced marches, extreme cold, or high altitude.</p></description>
    <sheet><description>Adv. on Con saves vs. march/cold/altitude exhaustion.</description></sheet>
  </element>

  <!-- ============================================================
       FAE MAGIC (v2.6)
       ============================================================ -->
  <element name="Fae Magic" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_FAE_MAGIC">
    <description><p>Your Fae blood carries magic that stirs as the world changes. Charisma is your spellcasting ability for the spells and gifts of your Fae line (Wisdom for Oakwald Fae).</p></description>
    <sheet><description>Fae magic stirs as the world changes. Charisma (Wisdom for Oakwald Fae) is your spellcasting ability.</description></sheet>
  </element>
  <element name="Shadow Gifts I" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_SHADOW_GIFTS_1">
    <description><p>You know the <em>minor illusion</em> cantrip. In addition, when you are in dim light or darkness, you can use a bonus action to teleport up to 30 feet to an unoccupied space you can see that is also in dim light or darkness. You can do this a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest.</p></description>
    <sheet action="Bonus Action" usage="{{proficiency}}/Long Rest"><description>Minor illusion. Shadow Step: bonus action, teleport 30 ft between dim light or darkness (PB/LR).</description></sheet>
    <rules>
      <grant type="Spell" id="ID_PHB_SPELL_MINOR_ILLUSION" />
    </rules>
  </element>
  <element name="Forest Gifts I" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_FOREST_GIFTS_1">
    <description><p>You know the <em>druidcraft</em> cantrip. You can also cast <em>speak with animals</em> once without a spell slot and regain the ability when you finish a long rest.</p></description>
    <sheet usage="1/Long Rest"><description>Druidcraft. Speak with animals once without a slot.</description></sheet>
    <rules>
      <grant type="Spell" id="ID_PHB_SPELL_DRUIDCRAFT" />
      <grant type="Spell" id="ID_PHB_SPELL_SPEAK_WITH_ANIMALS" />
    </rules>
  </element>
  <element name="Fae Spark" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_FAE_SPARK">
    <description><p>You know one cantrip of your choice from <em>minor illusion</em>, <em>druidcraft</em> or <em>dancing lights</em>. You can cast it a number of times equal to your proficiency bonus, and you regain all expended uses when you finish a long rest. You can also cast <em>speak with animals</em> once without a spell slot and regain the ability when you finish a long rest. Charisma is your spellcasting ability for these spells.</p></description>
    <sheet usage="{{proficiency}}/Long Rest"><description>One Fae cantrip (PB/LR). Speak with animals once without a slot.</description></sheet>
    <rules>
      <select type="Spell" name="Fae Spark Cantrip (Demi-Fae)" supports="ID_PHB_SPELL_MINOR_ILLUSION|ID_PHB_SPELL_DRUIDCRAFT|ID_PHB_SPELL_DANCING_LIGHTS" />
      <grant type="Spell" id="ID_PHB_SPELL_SPEAK_WITH_ANIMALS" />
    </rules>
  </element>
  <element name="Rebel Spirit" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_REBEL_SPIRIT">
    <description><p>You have advantage on saving throws against being frightened. Your walking speed is 35 feet. You gain proficiency in one additional skill of your choice.</p></description>
    <sheet><description>Advantage vs. frightened; speed 35 ft; one extra skill.</description></sheet>
    <rules>
      <select type="Proficiency" name="Skill 2 (Erilean Human)" supports="Skill" number="1" />
    </rules>
  </element>
  <element name="Witch-Blooded Hardiness" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_WITCH_BLOODED_HARDINESS">
    <description><p><strong>Savage Attacks.</strong> When you score a critical hit with a melee weapon attack, you can roll one of the weapon’s damage dice one additional time and add it to the extra damage of the critical hit. <strong>Poison Resistance.</strong> You have resistance to poison damage. You also gain proficiency in one additional skill of your choice.</p></description>
    <sheet><description>Extra crit die with melee weapons; resistance to poison damage; one extra skill.</description></sheet>
    <rules>
      <grant type="Condition" id="ID_INTERNAL_CONDITION_DAMAGE_RESISTANCE_POISON" />
      <select type="Proficiency" name="Skill 2 (Ironteeth-Blooded)" supports="Skill" number="1" />
    </rules>
  </element>
  <element name="Iron Toughness" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_IRON_TOUGHNESS">
    <description><p>Your hit point maximum increases by 1, and it increases by 1 every time you gain a level. Your walking speed is 35 feet.</p></description>
    <sheet><description>Hit point maximum +1 per level; speed 35 ft.</description></sheet>
    <rules>
      <stat name="hp" value="level" />
    </rules>
  </element>

  <!-- ============================================================
       ARCHETYPES
       ============================================================ -->

  <element name="Guild Assassin" type="Archetype" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_ROGUE_GUILD_ASSASSIN">
    <supports>Rogue,Roguish Archetype</supports>
    <description><p>Rifthold underworld training — Arobynn’s Guild, rival house, or freelance contracts.</p></description>
    <sheet><description>Assassin archetype for Rogue.</description></sheet>
    <rules>
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_BONUS_PROFICIENCIES_GUILD" level="3" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_ASSASSINATE_TRAINING" level="3" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_GUILD_CANT" level="3" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_INFILTRATION" level="9" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_IMPOSTOR" level="13" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_DEATH_STRIKE_ERILEA" level="17" />
    </rules>
  </element>
  <element name="Bonus Proficiencies (Guild)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_BONUS_PROFICIENCIES_GUILD">
    <description><p>Proficiency with disguise kit and poisoner’s kit.</p></description>
    <sheet><description>Disguise kit, poisoner’s kit.</description></sheet>
    <rules>
      <grant type="Proficiency" id="ID_PROFICIENCY_TOOL_PROFICIENCY_DISGUISE_KIT" />
      <grant type="Proficiency" id="ID_PROFICIENCY_TOOL_PROFICIENCY_POISONERS_KIT" />
    </rules>
  </element>
  <element name="Assassinate Training" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_ASSASSINATE_TRAINING">
    <description><p>Advantage on attacks against creatures that haven’t acted yet. Hits against surprised creatures are critical hits.</p></description>
    <sheet><description>Adv. before their turn; surprise hits crit.</description></sheet>
  </element>
  <element name="Infiltration Expertise" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_INFILTRATION">
    <description><p>Create a false identity (7 days, 25 gp). Others accept it until given an obvious reason not to.</p></description>
    <sheet><description>False identity (7 days, 25 gp).</description></sheet>
  </element>
  <element name="Impostor" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_IMPOSTOR">
    <description><p>After 3 hours of study, mimic speech, writing, and behavior. Advantage on Deception if someone is suspicious.</p></description>
    <sheet><description>Mimic after study; adv. Deception if suspected.</description></sheet>
  </element>
  <element name="Death Strike" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_DEATH_STRIKE_ERILEA">
    <description><p>When you hit a surprised creature, it must succeed on a Constitution saving throw (DC 8 + your Dexterity modifier + your proficiency bonus) or take double damage from that attack.</p></description>
    <sheet><description>Surprise hit: Con save or double damage.</description></sheet>
  </element>

  <element name="Torre Domain" type="Archetype" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_CLERIC_TORRE">
    <supports>Cleric,Divine Domain</supports>
    <description><p>Torre Cesme healing tradition. Use Medicine and poultices first; your DM tells you how far your magic reaches.</p></description>
    <sheet><description>Healing domain (Torre Cesme).</description></sheet>
    <rules>
      <grant type="Spell" id="ID_PHB_SPELL_CURE_WOUNDS" level="1" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_DETECT_POISON_AND_DISEASE" level="1" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_LESSER_RESTORATION" level="3" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_PROTECTION_FROM_POISON" level="3" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_BEACON_OF_HOPE" level="5" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_REVIVIFY" level="5" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_DEATH_WARD" level="7" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_AURA_OF_PURITY" level="7" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_MASS_CURE_WOUNDS" level="9" spellcasting="Cleric" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_GREATER_RESTORATION" level="9" spellcasting="Cleric" prepared="true" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_TORRE_SPELLS" level="1" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_BONUS_PROF_TORRE" level="1" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_DISCIPLE_TORRE" level="1" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_PRESERVE_LIFE" level="2" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_BLESSED_HEALER" level="6" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_DIVINE_STRIKE_TORRE" level="8" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_SUPREME_HEALING" level="17" />
    </rules>
  </element>
  <element name="Domain Spells (Torre)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_TORRE_SPELLS">
    <description><p>1st: cure wounds, detect poison and disease. 3rd: lesser restoration, protection from poison. 5th: beacon of hope, revivify. 7th: death ward, aura of purity. 9th: mass cure wounds, greater restoration.</p></description>
    <sheet><description>Torre domain spells.</description></sheet>
  </element>
  <element name="Bonus Proficiencies (Torre)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_BONUS_PROF_TORRE">
    <description><p>Heavy armor and herbalism kit proficiency.</p></description>
    <sheet><description>Heavy armor, herbalism kit.</description></sheet>
    <rules>
      <grant type="Proficiency" id="ID_PROFICIENCY_ARMOR_PROFICIENCY_HEAVY_ARMOR" />
      <grant type="Proficiency" id="ID_PROFICIENCY_TOOL_PROFICIENCY_HERBALISM_KIT" />
    </rules>
  </element>
  <element name="Disciple of Life (Torre)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_DISCIPLE_TORRE">
    <description><p>Starting at 1st level, your healing spells are more effective. Whenever you use a spell of 1st level or higher to restore hit points to a creature, the creature regains additional hit points equal to 2 + the spell’s level.</p></description>
    <sheet><description>Healing spells of 1st level or higher restore an additional 2 + the spell’s level hp.</description></sheet>
  </element>
  <element name="Preserve Life (Torre)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_PRESERVE_LIFE">
    <description><p>Action: distribute HP equal to 5 × cleric level to creatures within 30 feet (each to at most half max HP). 1/short or long rest.</p></description>
    <sheet action="Action" usage="1/Short or Long Rest"><description>Heal pool 5×level within 30 ft.</description></sheet>
  </element>
  <element name="Blessed Healer (Torre)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_BLESSED_HEALER">
    <description><p>When you heal another creature with a 1st+ spell, you regain 2 + spell level HP.</p></description>
    <sheet><description>Heal others → you gain 2 + level HP.</description></sheet>
  </element>
  <element name="Divine Strike (Torre)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_DIVINE_STRIKE_TORRE">
    <description><p>1/turn weapon hit: +1d8 radiant (2d8 at 14th).</p></description>
    <sheet usage="1/Turn"><description>+1d8 radiant 1/turn (2d8 at 14th).</description></sheet>
  </element>
  <element name="Supreme Healing (Torre)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_SUPREME_HEALING">
    <description><p>Healing spell dice are maximized.</p></description>
    <sheet><description>Maximize healing dice.</description></sheet>
  </element>

  <element name="Rebel Blade" type="Archetype" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FIGHTER_REBEL_BLADE">
    <supports>Fighter,Martial Archetype</supports>
    <description><p>Soldier turned resistance fighter — tactical Help, holding the line, hard to kill.</p></description>
    <sheet><description>Rebel fighter archetype.</description></sheet>
    <rules>
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_TACTICAL_HELP_PLUS" level="3" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_HOLD_THE_LINE" level="7" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_ADDITIONAL_FIGHTING_STYLE" level="10" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_RELENTLESS_STAND" level="15" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_SURVIVOR_REBEL" level="18" />
    </rules>
  </element>
  <element name="Tactical Commander" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_TACTICAL_HELP_PLUS">
    <description><p>When you take the Help action to aid an ally’s attack, you can do so from up to 30 feet away. A number of times equal to your proficiency bonus, you can also let that ally add your proficiency bonus to the damage of that attack if it hits. You regain all expended uses when you finish a long rest.</p></description>
    <sheet usage="{{proficiency}}/Long Rest"><description>Help 30 ft; PB/LR bonus damage.</description></sheet>
  </element>
  <element name="Hold the Line" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_HOLD_THE_LINE">
    <description><p>Creatures provoke opportunity attacks from you even if they take the Disengage action. When you hit a creature with an opportunity attack, its speed becomes 0 until the end of the current turn.</p></description>
    <sheet action="Reaction"><description>OA vs Disengage; speed 0 on hit.</description></sheet>
  </element>
  <element name="Additional Fighting Style" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_ADDITIONAL_FIGHTING_STYLE">
    <description><p>Gain a second Fighting Style.</p></description>
    <sheet><description>Second Fighting Style.</description></sheet>
    <rules>
      <select type="Feat" name="Fighting Style (Rebel Blade)" supports="Fighting Style" number="1" />
    </rules>
  </element>
  <element name="Relentless Stand" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_RELENTLESS_STAND">
    <description><p>1/long rest: when reduced to 0 HP and not killed outright, drop to 1 HP instead.</p></description>
    <sheet usage="1/Long Rest"><description>1/LR: 0 HP → 1 HP.</description></sheet>
  </element>
  <element name="Survivor" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_SURVIVOR_REBEL">
    <description><p>Start of turn, if ≤ half HP and above 0: regain 5 + Con mod HP.</p></description>
    <sheet><description>≤ half HP: regen 5 + Con at turn start.</description></sheet>
  </element>

  <!-- ========== NEW in v2.2: Shadowed Blade (Fighter) – ideal for Hidden Fae + Guild Blade ========== -->
  <element name="Shadowed Blade" type="Archetype" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FIGHTER_SHADOWED_BLADE">
    <supports>Fighter,Martial Archetype</supports>
    <description>
      <p>Guild-trained fighter who fights from the dark — precise, patient, and lethal when the moment comes. Perfect for a Hidden Fae who learned the trade in Rifthold’s underworld (Guild Blade background).</p>
    </description>
    <sheet><description>Stealthy guild-trained fighter archetype.</description></sheet>
    <rules>
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_SHADOWED_TRAINING" level="3" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_AMBUSH_STRIKE" level="3" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_FADE" level="7" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_PRECISE_CUT" level="10" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_DEATH_FROM_SHADOW" level="15" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_UNSEEN_KILLER" level="18" />
    </rules>
  </element>
  <element name="Shadowed Training" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_SHADOWED_TRAINING">
    <description><p>You gain proficiency in Stealth (or Expertise if you already have it). You also gain proficiency with the disguise kit or poisoner’s kit (your choice).</p></description>
    <sheet><description>Stealth (or Expertise) + disguise or poisoner’s kit.</description></sheet>
    <rules>
      <grant type="Grants" id="ID_INTERNAL_GRANTS_PROFICIENCY_SKILL_OR_DOUBLE_STEALTH" />
      <select type="Proficiency" name="Kit (Shadowed Blade)" supports="ID_PROFICIENCY_TOOL_PROFICIENCY_DISGUISE_KIT|ID_PROFICIENCY_TOOL_PROFICIENCY_POISONERS_KIT" number="1" />
    </rules>
  </element>
  <element name="Ambush Strike" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_AMBUSH_STRIKE">
    <description><p>Once per turn when you hit a creature that is surprised or that you are hidden from, you deal an extra 1d6 damage (2d6 at 10th level, 3d6 at 15th). The damage is of the same type as the weapon.</p></description>
    <sheet usage="1/Turn"><description>Extra 1d6 (scales) vs surprised or while hidden.</description></sheet>
  </element>
  <element name="Fade" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_FADE">
    <description><p>As a bonus action after you take the Attack action, you can attempt to Hide (even in combat) if you have half cover or are lightly obscured. Once you use this feature, you can’t use it again until you finish a short or long rest.</p></description>
    <sheet action="Bonus Action" usage="1/Short or Long Rest"><description>Bonus action Hide after Attack if half cover or lightly obscured (1/rest).</description></sheet>
  </element>
  <element name="Precise Cut" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_PRECISE_CUT">
    <description><p>When you use your Action Surge, the first attack you make as part of that action has advantage and scores a critical hit on a roll of 19–20.</p></description>
    <sheet><description>Action Surge: first attack adv. + crit on 19–20.</description></sheet>
  </element>
  <element name="Death from Shadow" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_DEATH_FROM_SHADOW">
    <description><p>When you hit a surprised creature or a creature you are hidden from, the target must make a Constitution saving throw (DC 8 + your proficiency bonus + your Dexterity or Strength modifier, your choice). On a failure, it is stunned until the end of your next turn. Once you use this feature, you can’t use it again until you finish a short or long rest.</p></description>
    <sheet usage="1/Short or Long Rest"><description>Surprise/hidden hit: Con save or stunned until end of your next turn (1/rest).</description></sheet>
  </element>
  <element name="Unseen Killer" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_UNSEEN_KILLER">
    <description><p>You can use Fade without limit. In addition, while you are hidden, you have advantage on attack rolls, and your weapon attacks score a critical hit on a roll of 19 or 20.</p></description>
    <sheet><description>Unlimited Fade; advantage while hidden; crit on 19–20 while hidden.</description></sheet>
  </element>

  <!-- ========== NEW in v2.2: Circle of the Oakwald (Druid) – ideal for Oakwald Fae ========== -->
  <element name="Circle of the Oakwald" type="Archetype" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_DRUID_OAKWALD">
    <supports>Druid,Druid Circle</supports>
    <description>
      <p>Druids of the deep woods of Oakwald and older forests. You move like the trees themselves, call the land to hide you, and fight as both guardian and hunter. Perfect for an Oakwald Fae whose magic is waking again.</p>
    </description>
    <sheet><description>Forest / Oakwald Druid Circle.</description></sheet>
    <rules>
      <grant type="Spell" id="ID_PHB_SPELL_ENTANGLE" level="2" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_PASS_WITHOUT_TRACE" level="2" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_PLANT_GROWTH" level="3" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_SPEAK_WITH_PLANTS" level="3" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_TREE_STRIDE" level="5" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_COMMUNE_WITH_NATURE" level="5" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_HALLUCINATORY_TERRAIN" level="7" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_FREEDOM_OF_MOVEMENT" level="7" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_TRANSPORT_VIA_PLANTS" level="9" spellcasting="Druid" prepared="true" />
      <grant type="Spell" id="ID_PHB_SPELL_INSECT_PLAGUE" level="9" spellcasting="Druid" prepared="true" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_OAKWALD_SPELLS" level="2" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_MASK_OF_THE_WOODS" level="2" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_LANDS_ALLY" level="6" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_THORNED_STRIKE" level="10" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_SPIRIT_OF_THE_OAKWALD" level="14" />
    </rules>
  </element>
  <element name="Circle Spells (Oakwald)" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_OAKWALD_SPELLS">
    <description>
      <p>You always have these spells prepared (they do not count against your number of prepared spells):</p>
      <p>2nd: entangle, pass without trace</p>
      <p>3rd: plant growth, speak with plants</p>
      <p>5th: tree stride, commune with nature</p>
      <p>7th: hallucinatory terrain, freedom of movement</p>
      <p>9th: transport via plants, insect plague</p>
    </description>
    <sheet><description>Always-prepared Oakwald circle spells.</description></sheet>
  </element>
  <element name="Mask of the Woods" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_MASK_OF_THE_WOODS">
    <description><p>When you take the Hide action in natural surroundings (forest, heavy rain, falling snow, mist or similar), creatures of your choice within 10 feet of you can also attempt to hide as part of the same action, each making their own Dexterity (Stealth) check. While you are hidden in such surroundings, you can move at full speed without revealing your position.</p></description>
    <sheet><description>Hide in nature: allies within 10 ft can hide with you; full speed while hidden.</description></sheet>
  </element>
  <element name="Land’s Ally" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_LANDS_ALLY">
    <description>
      <p>You can cast pass without trace without expending a spell slot a number of times equal to your Wisdom modifier (minimum once), regaining all uses on a long rest. When you cast it this way, the duration is 1 hour and it only affects you and up to 6 willing creatures of your choice within 30 feet.</p>
    </description>
    <sheet action="Action" usage="Wis mod (min. 1)/Long Rest"><description>Cast pass without trace (self + 6) Wis mod times / LR without slot.</description></sheet>
  </element>
  <element name="Thorned Strike" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_THORNED_STRIKE">
    <description>
      <p>When you hit a creature with a melee weapon attack or a spell attack that deals damage, you can choose to deal an extra 1d8 piercing damage as thorns erupt. You can use this feature a number of times equal to your proficiency bonus, regaining all uses on a long rest.</p>
    </description>
    <sheet usage="{{proficiency}}/Long Rest"><description>+1d8 piercing (PB/LR) on melee or spell attack hit.</description></sheet>
  </element>
  <element name="Spirit of the Oakwald" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_SPIRIT_OF_THE_OAKWALD">
    <description><p>You can use your Wild Shape to take the form of a forest spirit instead of a beast. You keep your own game statistics, except that your creature type is fey, your size is Medium, your walking speed is 40 feet, and you have advantage on Dexterity (Stealth) checks in natural surroundings. You keep your ability to speak and to cast druid spells that do not require material components. While you are concentrating on a druid spell, you have resistance to bludgeoning, piercing, and slashing damage from nonmagical attacks. The form lasts as long as your Wild Shape would.</p></description>
    <sheet><description>Wild Shape as a forest spirit: speak and cast without material components; resist nonmagical B/P/S while concentrating.</description></sheet>
  </element>

  <!-- ========== Mountain Witch (Barbarian) from v2.1 ========== -->
  <element name="Mountain Witch" type="Archetype" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_BARBARIAN_MOUNTAIN_WITCH">
    <supports>Barbarian,Primal Path</supports>
    <description><p>Path of the Ironteeth mountains — rage fuelled by old witch blood, iron will, and the hunger of the Yielding. Perfect for Ironteeth Witch or Ironteeth-Blooded characters.</p></description>
    <sheet><description>Witch-blooded barbarian path.</description></sheet>
    <rules>
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_IRON_RAGE" level="3" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_WITCH_RESILIENCE" level="6" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_PREDATOR_STRIKE" level="10" />
      <grant type="Archetype Feature" id="ID_ERILEA_ARCHETYPE_FEATURE_YIELDING_FURY" level="14" />
    </rules>
  </element>
  <element name="Iron Rage" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_IRON_RAGE">
    <description><p>While raging, your unarmed strikes (including bite) deal an extra 1d4 slashing damage, and you have advantage on Intimidation checks.</p></description>
    <sheet><description>Rage: +1d4 slashing unarmed; adv. Intimidation.</description></sheet>
  </element>
  <element name="Witch Resilience" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_WITCH_RESILIENCE">
    <description><p>You gain resistance to necrotic and poison damage. While raging, you also have advantage on saving throws against being frightened.</p></description>
    <sheet><description>Resist necrotic &amp; poison; rage: adv. vs. fear.</description></sheet>
    <rules>
      <grant type="Condition" id="ID_INTERNAL_CONDITION_DAMAGE_RESISTANCE_NECROTIC" />
      <grant type="Condition" id="ID_INTERNAL_CONDITION_DAMAGE_RESISTANCE_POISON" />
    </rules>
  </element>
  <element name="Predator Strike" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_PREDATOR_STRIKE">
    <description><p>Once per turn when you hit a Large or smaller creature with a melee weapon or unarmed strike while raging, you can force it to make a Strength saving throw (DC 8 + your proficiency bonus + your Strength modifier). On a failure, it is knocked prone.</p></description>
    <sheet usage="1/Turn"><description>Rage hit on Large or smaller: Str save or prone (1/turn).</description></sheet>
  </element>
  <element name="Yielding Fury" type="Archetype Feature" source="The Hidden Courts" id="ID_ERILEA_ARCHETYPE_FEATURE_YIELDING_FURY">
    <description><p>When you enter a rage, you can choose to enter a Yielding Fury: for the duration you gain temporary hit points equal to twice your barbarian level, and your first successful melee attack each turn deals an extra 1d8 necrotic damage. You cannot end this rage early.</p></description>
    <sheet><description>Rage option: temp HP 2×level + extra 1d8 necrotic.</description></sheet>
  </element>

  <!-- ============================================================
       BACKGROUNDS
       ============================================================ -->

  <element name="Torre Cesme Initiate" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_TORRE_CESME_INITIATE">
    <description>
      <p>Torre healing training. <strong>Skills:</strong> Medicine, Insight. <strong>Tools:</strong> Herbalism kit. <strong>Language:</strong> one, plus Torre Script. <strong>Gear:</strong> kit, satchel, sketchbook, clothes, 10 gp.</p>
    </description>
    <sheet><description>Torre-trained healer.</description></sheet>
    <setters><set name="short">Torre healer initiate.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_FIELD_HEALER" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_TORRE_SCRIPT" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_MEDICINE" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_INSIGHT" />
      <grant type="Proficiency" id="ID_PROFICIENCY_TOOL_PROFICIENCY_HERBALISM_KIT" />
      <select type="Language" name="Language (Torre)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: Field Healer" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_FIELD_HEALER">
    <description><p>You can stabilize a creature with a healer’s kit or herbs without making a check. When you finish a short rest, you can tend up to 6 creatures; each of them regains 1 additional hit point for each Hit Die it spent during that rest.</p></description>
    <sheet><description>Stabilize free; +1 HP per tended HD.</description></sheet>
  </element>

  <element name="Rebel Contact" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_REBEL_CONTACT">
    <description><p><strong>Skills:</strong> Stealth, Deception. <strong>Tools:</strong> thieves’ tools or disguise kit. <strong>Language:</strong> one, plus Rebel Signals and Silent Hand-Signs. <strong>Gear:</strong> cloak, knife, coded letter, 15 gp.</p></description>
    <sheet><description>Rebel network.</description></sheet>
    <setters><set name="short">Rebel network contact.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_SAFE_SIGNALS" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_REBEL_SIGNALS" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_SILENT_HAND_SIGNS" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_STEALTH" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_DECEPTION" />
      <select type="Proficiency" name="Tool (Rebel)" supports="ID_PROFICIENCY_TOOL_PROFICIENCY_THIEVES_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_DISGUISE_KIT" number="1" />
      <select type="Language" name="Language (Rebel)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: Safe Signals" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_SAFE_SIGNALS">
    <description><p>1 hour in a resistance town: seek shelter, patrol warning, or gossip. Know rebel marks.</p></description>
    <sheet><description>Rebel contacts and signals.</description></sheet>
  </element>

  <element name="Adarlanian Deserter" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_ADARLANIAN_DESERTER">
    <description><p><strong>Skills:</strong> Athletics, Intimidation. <strong>Tools:</strong> gaming set, vehicles (land). <strong>Language:</strong> Adarlan Barracks Slang. <strong>Gear:</strong> hidden uniform scrap, filed badge, 10 gp.</p></description>
    <sheet><description>Ex-Adarlan soldier.</description></sheet>
    <setters><set name="short">Adarlan deserter.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_KNEW_THE_DRILL" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_ADARLAN_BARRACKS_SLANG" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_ATHLETICS" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_INTIMIDATION" />
      <grant type="Proficiency" id="ID_PROFICIENCY_TOOL_PROFICIENCY_VEHICLES_LAND" />
      <select type="Proficiency" name="Gaming Set (Deserter)" supports="Gaming Set" number="1" />
    </rules>
  </element>
  <element name="Feature: Knew the Drill" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_KNEW_THE_DRILL">
    <description><p>Advantage to read Adarlan ranks, patrols, and forged orders.</p></description>
    <sheet><description>Advantage on Adarlan military reads.</description></sheet>
  </element>

  <element name="Rifthold Street Survivor" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_RIFTHOLD_STREET_SURVIVOR">
    <description><p><strong>Skills:</strong> Sleight of Hand, Perception. <strong>Tools:</strong> thieves’ tools. <strong>Language:</strong> one. <strong>Gear:</strong> knife, sketch map, token, 5 gp.</p></description>
    <sheet><description>Rifthold streets.</description></sheet>
    <setters><set name="short">Rifthold street survivor.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_CROWD_COVER" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_SLEIGHTOFHAND" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_PERCEPTION" />
      <grant type="Proficiency" id="ID_PROFICIENCY_TOOL_PROFICIENCY_THIEVES_TOOLS" />
      <select type="Language" name="Language (Street)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: Crowd Cover" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_CROWD_COVER">
    <description><p>Hide in crowds when lightly obscured; know cheap places to sleep in cities.</p></description>
    <sheet><description>Crowd hide; cheap crash-spots.</description></sheet>
  </element>

  <element name="Guild Blade" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_GUILD_BLADE">
    <description><p><strong>Skills:</strong> Stealth, Investigation. <strong>Tools:</strong> thieves’ tools + disguise or poisoner’s kit. <strong>Language:</strong> Guild Cant and Silent Hand-Signs. <strong>Gear:</strong> black clothes, dagger, 15 gp.</p>
      <p>Especially strong with Hidden Fae + Shadowed Blade fighter archetype.</p>
    </description>
    <sheet><description>Assassin training.</description></sheet>
    <setters><set name="short">Guild or freelance assassin training.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_NAME_PRICE" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_GUILD_CANT" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_SILENT_HAND_SIGNS" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_STEALTH" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_INVESTIGATION" />
      <grant type="Proficiency" id="ID_PROFICIENCY_TOOL_PROFICIENCY_THIEVES_TOOLS" />
      <select type="Proficiency" name="Kit (Guild)" supports="ID_PROFICIENCY_TOOL_PROFICIENCY_DISGUISE_KIT|ID_PROFICIENCY_TOOL_PROFICIENCY_POISONERS_KIT" number="1" />
    </rules>
  </element>
  <element name="Feature: Name Has a Price" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_NAME_PRICE">
    <description><p>Spend a night and 1d4 gp to learn if a name is protected, hunted, or open contract.</p></description>
    <sheet><description>Underworld name-check.</description></sheet>
  </element>

  <element name="Minor Noble (Adarlan / Occupied Courts)" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_MINOR_NOBLE">
    <description>
      <p>Lower court blood — Adarlanian, annexed Terrasen, or merchant-noble. You know etiquette, quiet threats, and how quickly favour dies.</p>
      <p><strong>Skills:</strong> History, Persuasion. <strong>Tools:</strong> one gaming set. <strong>Language:</strong> one. <strong>Gear:</strong> fine clothes, signet or seal, 25 gp.</p>
    </description>
    <sheet><description>Minor noble / courtier.</description></sheet>
    <setters><set name="short">Minor noble of occupied courts.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_COURT_ACCESS" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_HISTORY" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_PERSUASION" />
      <select type="Proficiency" name="Gaming Set (Noble)" supports="Gaming Set" number="1" />
      <select type="Language" name="Language (Noble)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: Court Access" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_COURT_ACCESS">
    <description><p>You can secure audiences with minor officials and entry to upper-class gatherings if dressed for it. You know the current gossip tropes of Adarlan-occupied courts (DM provides what is safe to know).</p></description>
    <sheet><description>Access to minor courts and noble gossip.</description></sheet>
  </element>

  <element name="Ironteeth Clan Exile" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_IRONTEETH_CLAN_EXILE">
    <description>
      <p>You were cast out (or fled) from one of the Ironteeth clans — Blackbeak, Yellowlegs, or Blueblood. The mountains still call, and the old laws still burn in your blood.</p>
      <p><strong>Skills:</strong> Survival, Intimidation. <strong>Tools:</strong> one type of artisan’s tools or vehicles (land). <strong>Language:</strong> one, plus Witch-Tongue. <strong>Gear:</strong> weathered cloak, iron nail token, clan scrap, 10 gp.</p>
    </description>
    <sheet><description>Exiled Ironteeth witch.</description></sheet>
    <setters><set name="short">Ironteeth clan exile.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_MOUNTAIN_MARKS" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_WITCH_TONGUE" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_SURVIVAL" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_INTIMIDATION" />
      <select type="Proficiency" name="Tool (Clan Exile)" supports="ID_PROFICIENCY_TOOL_PROFICIENCY_ALCHEMISTS_SUPPLIES|ID_PROFICIENCY_TOOL_PROFICIENCY_BREWERS_SUPPLIES|ID_PROFICIENCY_TOOL_PROFICIENCY_CALLIGRAPHERS_SUPPLIES|ID_PROFICIENCY_TOOL_PROFICIENCY_CARPENTERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_CARTOGRAPHERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_COBBLERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_COOKS_UTENSILS|ID_PROFICIENCY_TOOL_PROFICIENCY_GLASSBLOWERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_JEWELERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_LEATHERWORKERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_MASONS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_PAINTERS_SUPPLIES|ID_PROFICIENCY_TOOL_PROFICIENCY_POTTERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_SMITHS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_TINKERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_WEAVERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_WOODCARVERS_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_VEHICLES_LAND" number="1" />
      <select type="Language" name="Language (Clan Exile)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: Mountain Marks" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_MOUNTAIN_MARKS">
    <description><p>You recognise Ironteeth clan signs, trail markers, and the difference between Blackbeak, Yellowlegs, and Blueblood customs. In the mountains or among other witches you can often find temporary shelter or a wary truce if you show the right respect (or the right threat).</p></description>
    <sheet><description>Know clan signs &amp; mountain customs; possible shelter among witches.</description></sheet>
  </element>

  <element name="Yellowlegs Scout" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_YELLOWLEGS_SCOUT">
    <description>
      <p>You trained (or still serve) as a Yellowlegs scout — the eyes and ears of the Ironteeth. You know how to move unseen through high passes and how to report without being caught.</p>
      <p><strong>Skills:</strong> Stealth, Survival. <strong>Tools:</strong> thieves’ tools or herbalism kit. <strong>Language:</strong> one, plus Witch-Tongue. <strong>Gear:</strong> dark cloak, climbing gear, coded notes, 12 gp.</p>
    </description>
    <sheet><description>Yellowlegs mountain scout.</description></sheet>
    <setters><set name="short">Yellowlegs scout.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_HIGH_PASS" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_WITCH_TONGUE" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_STEALTH" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_SURVIVAL" />
      <select type="Proficiency" name="Tool (Yellowlegs)" supports="ID_PROFICIENCY_TOOL_PROFICIENCY_THIEVES_TOOLS|ID_PROFICIENCY_TOOL_PROFICIENCY_HERBALISM_KIT" number="1" />
      <select type="Language" name="Language (Yellowlegs)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: High Pass" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_HIGH_PASS">
    <description><p>You have advantage on Survival checks to navigate mountain terrain, find high passes, or track creatures in the Ironteeth ranges. You also know the safest routes that avoid (or deliberately use) old witch trails.</p></description>
    <sheet><description>Adv. Survival in mountains; know witch trails.</description></sheet>
  </element>

  <element name="Blackbeak Warrior" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_BLACKBEAK_WARRIOR">
    <description>
      <p>You were raised (or broken) under Blackbeak discipline — the most ruthless of the Ironteeth. Combat, hierarchy, and the Yielding were drilled into you from childhood.</p>
      <p><strong>Skills:</strong> Athletics, Intimidation. <strong>Tools:</strong> one gaming set or vehicles (land). <strong>Language:</strong> Witch-Tongue. <strong>Gear:</strong> reinforced cloak, iron token, training scars, 10 gp.</p>
    </description>
    <sheet><description>Blackbeak-trained warrior.</description></sheet>
    <setters><set name="short">Blackbeak warrior.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_CLAN_DISCIPLINE" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_WITCH_TONGUE" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_ATHLETICS" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_INTIMIDATION" />
      <select type="Proficiency" name="Tool (Blackbeak)" supports="ID_PROFICIENCY_GAMING_SET_PROFICIENCY_DICE_SET|ID_PROFICIENCY_GAMING_SET_PROFICIENCY_DRAGONCHESS_SET|ID_PROFICIENCY_GAMING_SET_PROFICIENCY_PLAYING_CARD_SET|ID_PROFICIENCY_GAMING_SET_PROFICIENCY_THREE_DRAGON_ANTE_SET|ID_PROFICIENCY_TOOL_PROFICIENCY_VEHICLES_LAND" number="1" />
    </rules>
  </element>
  <element name="Feature: Clan Discipline" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_CLAN_DISCIPLINE">
    <description><p>You have advantage on saving throws against being frightened while within 30 feet of at least one ally who is not frightened. You also know the formal ranks and expected deference of Blackbeak hierarchy.</p></description>
    <sheet><description>Adv. vs. fear near unafraid allies; know Blackbeak ranks.</description></sheet>
  </element>

  <element name="Blueblood Courtesan / Politician" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_BLUEBLOOD">
    <description>
      <p>Blueblood witches deal in information, alliances, and quiet knives. You were trained (or survived) in their more political and cunning traditions — useful both in the mountains and in occupied courts.</p>
      <p><strong>Skills:</strong> Deception, Insight. <strong>Tools:</strong> one gaming set or disguise kit. <strong>Language:</strong> one. <strong>Gear:</strong> fine (or once-fine) clothes, sealed letter, 20 gp.</p>
    </description>
    <sheet><description>Blueblood cunning / politics.</description></sheet>
    <setters><set name="short">Blueblood politician or courtesan.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_WHISPER_NETWORK" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_DECEPTION" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_INSIGHT" />
      <select type="Proficiency" name="Tool (Blueblood)" supports="ID_PROFICIENCY_GAMING_SET_PROFICIENCY_DICE_SET|ID_PROFICIENCY_GAMING_SET_PROFICIENCY_DRAGONCHESS_SET|ID_PROFICIENCY_GAMING_SET_PROFICIENCY_PLAYING_CARD_SET|ID_PROFICIENCY_GAMING_SET_PROFICIENCY_THREE_DRAGON_ANTE_SET|ID_PROFICIENCY_TOOL_PROFICIENCY_DISGUISE_KIT" number="1" />
      <select type="Language" name="Language (Blueblood)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: Whisper Network" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_WHISPER_NETWORK">
    <description><p>In any settlement of reasonable size you can spend an evening and 1d4 gp to pick up current political gossip, who is currently in favour or out of favour, and whether any Ironteeth or rebel names are being whispered. The information is rarely complete, but it is usually useful. You also have advantage on Wisdom (Insight) checks to tell which faction or court a person serves.</p></description>
    <sheet><description>Spend evening + 1d4 gp for political / witch gossip. Adv. on Insight to tell which faction or court someone serves.</description></sheet>
  </element>

  <element name="Yielding Survivor" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_YIELDING_SURVIVOR">
    <description>
      <p>You underwent (or nearly underwent) the Yielding — the brutal Ironteeth coming-of-age that forges witches. You lived. The scars, the hunger, and the knowledge of what the clans truly are remain with you.</p>
      <p><strong>Skills:</strong> Medicine, Survival. <strong>Tools:</strong> herbalism kit. <strong>Language:</strong> one. <strong>Gear:</strong> medical kit, iron token from the trial, 8 gp.</p>
    </description>
    <sheet><description>Survived the Yielding.</description></sheet>
    <setters><set name="short">Yielding survivor.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_HARDENED" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_MEDICINE" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_SURVIVAL" />
      <grant type="Proficiency" id="ID_PROFICIENCY_TOOL_PROFICIENCY_HERBALISM_KIT" />
      <select type="Language" name="Language (Yielding)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: Hardened" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_HARDENED">
    <description><p>You have advantage on saving throws against being poisoned and on Constitution checks to resist the effects of extreme pain or injury (DM adjudicates). You also know the traditional rites and dangers of the Yielding well enough to recognise them (or help someone survive them).</p></description>
    <sheet><description>Adv. vs. poison &amp; extreme pain; know Yielding rites.</description></sheet>
  </element>

  <element name="Terrasen Refugee" type="Background" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_TERRASEN_REFUGEE">
    <description>
      <p>You fled the fall of Terrasen or grew up in the diaspora. You carry stories of the old kingdom, a quiet hatred of Adarlan, and the skills of someone who has had to keep moving.</p>
      <p><strong>Skills:</strong> Survival, History. <strong>Tools:</strong> one type of artisan’s tools. <strong>Language:</strong> one, plus Terrasen Dialect. <strong>Gear:</strong> travel-worn clothes, small Terrasen token, 10 gp.</p>
    </description>
    <sheet><description>Terrasen refugee / diaspora.</description></sheet>
    <setters><set name="short">Terrasen refugee.</set></setters>
    <rules>
      <grant type="Background Feature" id="ID_ERILEA_BACKGROUND_FEATURE_OLD_KINGDOM" />
      <grant type="Language" id="ID_ERILEA_LANGUAGE_TERRASEN_DIALECT" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_SURVIVAL" />
      <grant type="Proficiency" id="ID_PROFICIENCY_SKILL_HISTORY" />
      <select type="Proficiency" name="Tool (Terrasen)" supports="Artisan tools" number="1" />
      <select type="Language" name="Language (Terrasen)" supports="Standard||Exotic" number="1" />
    </rules>
  </element>
  <element name="Feature: Old Kingdom" type="Background Feature" source="The Hidden Courts" id="ID_ERILEA_BACKGROUND_FEATURE_OLD_KINGDOM">
    <description><p>You know the old stories, symbols, and surviving noble or rebel contacts of Terrasen. In places where Terrasen refugees gather you can usually find temporary shelter, news, or a sympathetic ear.</p></description>
    <sheet><description>Terrasen contacts &amp; old-kingdom knowledge.</description></sheet>
  </element>

  <element name="Erilea Campaign: Dormant Magic" type="Option" source="The Hidden Courts" id="ID_ERILEA_OPTION_DORMANT_MAGIC">
    <description>
      <p>Campaign rule: magic is limited in this world. Your DM tells you how far it reaches. Aurora does not block spells, so the table follows the DM.</p>
    </description>
    <setters><set name="short">Magic is limited in this world.</set></setters>
    <rules></rules>
  </element>

  <element name="Erilea: Magic Stage I" type="Option" source="The Hidden Courts" id="ID_ERILEA_OPTION_CLOCKTOWER_1">
    <description>
      <p>Set by your DM. Select the magic stages your table has reached.</p>
    </description>
    <setters>
      <set name="short">Magic stage reached at your table.</set>
      <set name="default">true</set>
    </setters>
    <rules>
      <grant type="Racial Trait" id="ID_ERILEA_TRAIT_CLOCKTOWER_1" />
    </rules>
  </element>



  <element name="Magic Stage I" type="Racial Trait" source="The Hidden Courts" id="ID_ERILEA_TRAIT_CLOCKTOWER_1">
    <description><p>Magic has begun to stir in Erilea. Your DM tells you which spells and gifts are available to you.</p></description>
    <sheet><description>Magic Stage I reached. Your DM tells you what you can cast.</description></sheet>
  </element>

  <element name="Erilea Campaign: Ironteeth Present" type="Option" source="The Hidden Courts" id="ID_ERILEA_OPTION_IRONTEETH_PRESENT">
    <description>
      <p>Campaign flag: Ironteeth witches (or blooded lineages) are active in the story. Use the Ironteeth Witch race and the new witch backgrounds freely. The Yielding, clan politics, and mountain dangers are on the table.</p>
    </description>
    <setters><set name="short">Ironteeth witches are part of the campaign.</set></setters>
    <rules></rules>
  </element>
</elements>