{"context":{"brandSettings":{"accentColor1":{"hex":"#45C5F0"},"accentColor2":{"hex":"#67D4F3"},"accentColor3":{"hex":"#89E3F6"},"bodyFont":{"font":"Inter","fontSet":"GOOGLE"},"colors":[{"hex":"#03A4EA"},{"hex":"#ABF2F9"},{"hex":"#F24915"},{"hex":"#F5653A"},{"hex":"#F8825F"},{"hex":"#FBA085"},{"hex":"#FDBDAA"},{"hex":"#FFEACE"},{"hex":"#2F363B"},{"hex":"#4A5257"},{"hex":"#656E73"},{"hex":"#808A8F"},{"hex":"#9BA6AB"},{"hex":"#141A1F"}],"fallbackFont":null,"favicon":{"domain":"content.mytechhigh.com","name":"OpenEd","src":"https://45961901.fs1.hubspotusercontent-na1.net/hubfs/45961901/OpenEd%20Twitter%20Logomark.png"},"favicons":[{"domain":"content.mytechhigh.com","name":"OpenEd","src":"https://45961901.fs1.hubspotusercontent-na1.net/hubfs/45961901/OpenEd%20Twitter%20Logomark.png"}],"fonts":[],"logo":{"alt":"OpenEd","domain":null,"height":200,"link":"https://opened.co/","name":"OpenEd","src":"https://45961901.fs1.hubspotusercontent-na1.net/hubfs/45961901/Untitled%20design%20(43).png","width":700},"logos":[{"alt":"OpenEd","domain":null,"height":200,"link":"https://opened.co/","name":"OpenEd","src":"https://45961901.fs1.hubspotusercontent-na1.net/hubfs/45961901/Untitled%20design%20(43).png","width":700},{"alt":"OpenEd Academy","domain":null,"height":141,"link":"","name":"OpenEd Academy","src":"https://45961901.fs1.hubspotusercontent-na1.net/hubfs/45961901/OpenEd%20Academy%20Logo_Final%20(Color%20for%20White%20Base)-1.png","width":482},{"alt":null,"domain":null,"height":127,"link":"https://riseonlineacademy.org/","name":"RISE Online Academy","src":"https://45961901.fs1.hubspotusercontent-na1.net/hubfs/45961901/rise_transparent-2.png","width":332}],"primaryColor":{"hex":"#03A4EA"},"primaryFavicon":{"domain":"content.mytechhigh.com","name":"OpenEd","src":"https://45961901.fs1.hubspotusercontent-na1.net/hubfs/45961901/OpenEd%20Twitter%20Logomark.png"},"primaryFont":{"font":"Inter","fontSet":"GOOGLE"},"primaryLogo":{"alt":"OpenEd","domain":null,"height":200,"link":"https://opened.co/","name":"OpenEd","src":"https://45961901.fs1.hubspotusercontent-na1.net/hubfs/45961901/Untitled%20design%20(43).png","width":700},"secondaryColor":{"hex":"#24B5ED"}},"menuData":{"activeBranch":false,"activeNode":false,"blogNode":false,"categoryId":null,"children":[{"activeBranch":false,"activeNode":false,"blogNode":false,"categoryId":null,"children":[],"contentGroupId":null,"contentType":null,"errorMessage":null,"guid":null,"isDeleted":false,"isNonLinkingNode":false,"isPublished":true,"label":"Access Parent Link","level":1,"linkTarget":null,"live":true,"nodeType":3,"pageId":null,"pageTitle":null,"parentGuid":null,"slug":null,"state":null,"subcategory":null,"topLevelAncestorGuid":null,"url":"https://knowledge.opened.co/help","urlParamStr":"","urlWithoutAnchor":"https://knowledge.opened.co/help"},{"activeBranch":false,"activeNode":false,"blogNode":false,"categoryId":null,"children":[],"contentGroupId":null,"contentType":null,"errorMessage":null,"guid":null,"isDeleted":false,"isNonLinkingNode":false,"isPublished":true,"label":"Login to OpenEd","level":1,"linkTarget":null,"live":true,"nodeType":3,"pageId":null,"pageTitle":null,"parentGuid":null,"slug":null,"state":null,"subcategory":null,"topLevelAncestorGuid":null,"url":"https://opened.co/login","urlParamStr":"","urlWithoutAnchor":"https://opened.co/login"}],"contentGroupId":null,"contentType":null,"errorMessage":null,"guid":null,"isDeleted":false,"isNonLinkingNode":false,"isPublished":true,"label":null,"level":0,"linkTarget":null,"live":true,"nodeType":3,"pageId":null,"pageTitle":null,"parentGuid":null,"slug":null,"state":null,"subcategory":null,"topLevelAncestorGuid":null,"url":null,"urlParamStr":"","urlWithoutAnchor":"null"},"themeSettings":{"bodyFont":{"casing":null,"color":null,"css":"font-family: Inter;","fallback":null,"font":"Inter","font_set":"DEFAULT","letter_spacing":null,"line_height":null,"size":null,"size_unit":null,"style":"font-family: Inter; font-style: normal; font-weight: normal; text-decoration: none","styles":{"font-family":"Inter","font-style":"normal","font-weight":"normal","text-decoration":"none"},"variant":null},"primaryFont":{"casing":null,"color":null,"css":"font-family: Inter;","fallback":null,"font":"Inter","font_set":"DEFAULT","letter_spacing":null,"line_height":null,"size":null,"size_unit":null,"style":"font-family: Inter; font-style: normal; font-weight: normal; text-decoration: none","styles":{"font-family":"Inter","font-style":"normal","font-weight":"normal","text-decoration":"none"},"variant":null},"trellisBorderRadius":"rounded","trellisColorFillPrimaryDefault":{"color":"#03A4EA","css":"#03A4EA","hex":"#03A4EA","opacity":null,"rgb":"rgb(3, 164, 234)","rgba":"rgba(3, 164, 234, 1)"},"trellisColorFillSecondaryDefault":{"color":"#24B5ED","css":"#24B5ED","hex":"#24B5ED","opacity":null,"rgb":"rgb(36, 181, 237)","rgba":"rgba(36, 181, 237, 1)"},"trellisColorFillSurfaceDefault":"light","trellisColorFillTertiaryDefault":{"color":"#45C5F0","css":"#45C5F0","hex":"#45C5F0","opacity":null,"rgb":"rgb(69, 197, 240)","rgba":"rgba(69, 197, 240, 1)"},"trellisColorTextInteractiveDefault":{"color":"#666666","css":"#666666","hex":"#666666","opacity":null,"rgb":"rgb(102, 102, 102)","rgba":"rgba(102, 102, 102, 1)"}},"companyName":"OpenEd"},"modules":{},"dndAreas":{},"globalPartials":{},"headHtml":"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"> \n<meta property=\"og:description\" content=\"\"> \n<meta property=\"og:title\" content=\"\"> \n<meta name=\"twitter:description\" content=\"\"> \n<meta name=\"twitter:title\" content=\"\"> \n<style>\na.cta_button{-moz-box-sizing:content-box !important;-webkit-box-sizing:content-box !important;box-sizing:content-box !important;vertical-align:middle}.hs-breadcrumb-menu{list-style-type:none;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px}.hs-breadcrumb-menu-item{float:left;padding:10px 0px 10px 10px}.hs-breadcrumb-menu-divider:before{content:'›';padding-left:10px}.hs-featured-image-link{border:0}.hs-featured-image{float:right;margin:0 0 20px 20px;max-width:50%}@media (max-width: 568px){.hs-featured-image{float:none;margin:0;width:100%;max-width:100%}}.hs-screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}\n</style> \n<link rel=\"canonical\" href=\"https://support.opened.co/hs/portals/customer-portal-app/brand\"> \n<meta property=\"og:url\" content=\"https://support.opened.co/hs/portals/customer-portal-app/brand\"> \n<meta http-equiv=\"content-language\" content=\"en\">","footerHtml":"<!-- HubSpot performance collection script --> \n<script defer src=\"/hs/hsstatic/content-cwv-embed/static-1.1293/embed.js\"></script> \n<!-- Start of HubSpot Analytics Code --> \n<script type=\"text/javascript\">\nvar _hsq = _hsq || [];\n_hsq.push([\"setContentType\", \"app-page\"]);\n_hsq.push([\"setCanonicalUrl\", \"https:\\/\\/support.opened.co\\/hs\\/portals\\/customer-portal-app\\/brand\"]);\n_hsq.push([\"setPageId\", \"223742447386\"]);\n_hsq.push([\"setContentMetadata\", {\n    \"contentPageId\": 223742447386,\n    \"legacyPageId\": \"223742447386\",\n    \"contentFolderId\": null,\n    \"contentGroupId\": null,\n    \"abTestId\": null,\n    \"languageVariantId\": 223742447386,\n    \"languageCode\": \"en\",\n    \n    \n}]);\n</script> \n<script type=\"text/javascript\" id=\"hs-script-loader\" async defer src=\"/hs/scriptloader/45961901.js\"></script> \n<!-- End of HubSpot Analytics Code --> \n<script type=\"text/javascript\">\nvar hsVars = {\n    render_id: \"dcec0bd3-62fa-47ee-97a0-6c6388402569\",\n    ticks: 1791299346133,\n    page_id: 223742447386,\n    \n    content_group_id: 0,\n    portal_id: 45961901,\n    app_hs_base_url: \"https://app.hubspot.com\",\n    cp_hs_base_url: \"https://cp.hubspot.com\",\n    language: \"en\",\n    analytics_page_type: \"app-page\",\n    scp_content_type: \"\",\n    \n    analytics_page_id: \"223742447386\",\n    category_id: 20,\n    folder_id: 0,\n    is_hubspot_user: false\n}\n</script> \n<script defer src=\"/hs/hsstatic/HubspotToolsMenu/static-1.640/js/index.js\"></script> \n<script>\n(function() {\n  'use strict';\n\n  var DISTRICTS = [\n    \"I don't know\",\"Adel School District 21\",\"Adrian School District 61\",\"Alsea School District 7j\",\n    \"Amity School District 4j\",\"Annex Sd 29\",\"Arlington School District 3\",\"Arock School District 81\",\n    \"Ashland School District 5\",\"Ashwood School District 8\",\"Astoria School District 1\",\n    \"Athena-Weston School District 29rj\",\"Baker School District 5j\",\"Bandon School District 54\",\n    \"Banks School District 13\",\"Beaverton School District 48j\",\"Bend-La Pine Schools\",\n    \"Bethel School District 52\",\"Blachly Sd 90\",\"Black Butte School District 41\",\n    \"Brookings-Harbor School District 17c\",\"Burnt River School District 30j\",\n    \"Butte Falls School District 91\",\"Camas Valley Sd 21j\",\"Canby School District 86\",\n    \"Cascade School District 5\",\"Centennial School District 28j\",\"Central Curry School District 1\",\n    \"Central Linn School District 552\",\"Central School District 13j\",\n    \"Chemawa Indian School District\",\"Clatskanie School District 6j\",\"Colton School District 53\",\n    \"Condon School District 25j\",\"Coos Bay School District 9\",\"Coquille School District 8\",\n    \"Corbett School District 39\",\"Corvallis School District 509j\",\"Cove Sd 15\",\n    \"Creswell School District 40\",\"Crook County School District\",\n    \"Crow-Applegate-Lorane School District 66\",\"Culver School District 4\",\"Dallas School District 2\",\n    \"David Douglas School District 40\",\"Dayton School District 8\",\"Dayville School District 16j\",\n    \"Diamond School District 7\",\"Double O School District 28\",\"Douglas County School District 15\",\n    \"Roseburg District 4\",\"Drewsey School District 13\",\"Dufur School District 29\",\n    \"Eagle Point School District 9\",\"Echo School District 5\",\"Elgin School District 23\",\n    \"Elkton School District 34\",\"Enterprise School District 21\",\"Estacada School District 108\",\n    \"Eugene School District 4j\",\"Falls City School District 57\",\"Fern Ridge School District 28j\",\n    \"Forest Grove School District 15\",\"Fossil Sd 21j\",\"Frenchglen School District 16\",\n    \"Gaston School District 511j\",\"Gervais School District 1\",\"Gladstone School District 115\",\n    \"Glendale School District 77\",\"Glide School District 12\",\"Grants Pass School District 7\",\n    \"Greater Albany Public School District 8j\",\"Gresham-Barlow School District 10j\",\n    \"Harney County School District 3\",\"Harney County School District 4\",\n    \"Harney County Union High School District 1j\",\"Harper Sd 66\",\"Harrisburg School District 7j\",\n    \"Helix School District 1\",\"Hermiston School District 8\",\"Hillsboro School District\",\n    \"Hood River County School District\",\"Huntington School District 16j\",\"Imbler School District 11\",\n    \"Ione Sd R2\",\"Jefferson County School District 509j\",\"Jefferson School District 14j\",\n    \"Jewell School District 8\",\"Grant School District 3\",\"Jordan Valley School District 3\",\n    \"Joseph School District 6\",\"Junction City School District 69\",\"Juntura School District 12\",\n    \"Klamath County School District\",\"Klamath Falls City Schools\",\"Knappa School District 4\",\n    \"La Grande School District 1\",\"Lake County School District 7\",\"Lake Oswego School District 7j\",\n    \"Central Point School District 6\",\"Lincoln County School District\",\"Long Creek School District 17\",\n    \"Lowell School District 71\",\"Mapleton School District 32\",\"Marcola School District 79j\",\n    \"Mckenzie School District 68\",\"McMinnville School District 40\",\"Medford School District 549c\",\n    \"Milton-Freewater Unified School District 7\",\"Mitchell School District 55\",\n    \"Molalla River School District 35\",\"Monroe School District 1j\",\"Monument School District 8\",\n    \"Morrow School District 1\",\"Mt Angel School District 91\",\"Multnomah Esd School District\",\n    \"Myrtle Point School District 41\",\"Neah-Kah-Nie School District 56\",\n    \"Nestucca Valley School District 101j\",\"Newberg School District 29j\",\n    \"North Bend School District 13\",\"North Clackamas School District 12\",\n    \"North Douglas School District 22\",\"North Lake School District 14\",\n    \"North Marion School District 15\",\"North Powder Sd 8j\",\"North Santiam School District 29j\",\n    \"North Wasco County School District 21\",\"Nyssa School District 26\",\"Oakland School District 1\",\n    \"Oakridge School District 76\",\"Ontario School District 8c\",\"Oregon City School District 62\",\n    \"Oregon Department Of Education\",\"Oregon Trail School District 46\",\"Paisley Sd 11\",\n    \"Parkrose School District 3\",\"Pendleton School District 16\",\"Perrydale School District 21\",\n    \"Philomath School District 17j\",\"Phoenix-Talent School District 4\",\n    \"Pilot Rock School District 2\",\"Pine Creek School District 5\",\"Pine Eagle School District 61\",\n    \"Pinehurst School District 94\",\"Pleasant Hill School District 1\",\"Plush School District 18\",\n    \"Port Orford-Langlois School District 2cj\",\"Portland School District 1j\",\n    \"Powers School District 31\",\"Prairie City School District 4\",\"Prospect Sd 59\",\n    \"Rainier School District 13\",\"Redmond School District 2j\",\"Reedsport School District 105\",\n    \"Reynolds School District 7\",\"Riddle School District 70\",\"Riverdale School District 51j\",\n    \"Rogue River School District 35\",\"Salem-Keizer School District 24j\",\n    \"Santiam Canyon School District 129j\",\"Scappoose School District 1j\",\"Scio School District 95\",\n    \"Seaside School District 10\",\"Sheridan School District 48j\",\"Sherman County School District\",\n    \"Sherwood School District 88j\",\"Silver Falls School District 4j\",\"Sisters School District 6\",\n    \"Siuslaw School District 97j\",\"South Harney School District 33\",\n    \"South Lane School District 45j3\",\"South Umpqua School District 19\",\n    \"South Wasco County School District 1\",\"Spray School District 1\",\"Springfield School District 19\",\n    \"St Helens School District 502\",\"St Paul School District 45\",\"Stanfield School District 61\",\n    \"Suntex School District 10\",\"Sutherlin School District 130\",\"Sweet Home School District 55\",\n    \"Three Rivers Josephine County School District\",\"Tigard-Tualatin School District 23j\",\n    \"Tillamook School District 9\",\"Troy School District 54\",\"Ukiah School District 80r\",\n    \"Umatilla School District 6r\",\"Union School District 5\",\"Union-Baker Esd School District\",\n    \"Vale School District 84\",\"Vernonia School District 47j\",\"Wallowa School District 12\",\n    \"Warrenton-Hammond School District 30\",\"West Linn-Wilsonville School District 3j\",\n    \"Willamina School District 30j\",\"Winston-Dillard School District 116\",\n    \"Woodburn School District 103\",\"Yamhill Carlton School District 1\",\n    \"Yoncalla School District 32\",\"Lebanon Community School District 9\"\n  ];\n\n  // Manual overrides for Geocodio names that differ from HubSpot values\n  var OVERRIDES = {\n    'three rivers school district': 'Three Rivers Josephine County School District',\n    'roseburg school district 4': 'Roseburg District 4',\n    'mckenzie school district': 'Mckenzie School District 68',\n    'john day school district 3': 'Grant School District 3',\n    'gresham-barlow school district 1j': 'Gresham-Barlow School District 10j',\n    'st. helens school district 502': 'St Helens School District 502',\n    'greater albany school district 8j': 'Greater Albany Public School District 8j',\n    'douglas county sd 4': 'Roseburg District 4',\n    'west linn school district 3j': 'West Linn-Wilsonville School District 3j',\n    'bend-la pine administrative school district 1': 'Bend-La Pine Schools',\n    'blachly school district 090': 'Blachly Sd 90',\n    'athena-weston school district 29j': 'Athena-Weston School District 29rj',\n    'milton-freewater school district 7': 'Milton-Freewater Unified School District 7',\n    'annex school district 29': 'Annex Sd 29',\n    'camas valley school district 21j': 'Camas Valley Sd 21j',\n    'cove school district 15': 'Cove Sd 15',\n    'crow-applegate-lorane sd 66': 'Crow-Applegate-Lorane School District 66',\n    'douglas county sd 15': 'Douglas County School District 15',\n    'fossil school district 21j': 'Fossil Sd 21j',\n    'harper school district 66': 'Harper Sd 66',\n    'ione school district 2': 'Ione Sd R2',\n    'lakeview school district 7': 'Lake County School District 7',\n    'mount angel school district 91': 'Mt Angel School District 91',\n    'north powder school district 8j': 'North Powder Sd 8j',\n    'north wasco school district 21': 'North Wasco County School District 21',\n    'paisley school district 11': 'Paisley Sd 11',\n    'pine-eagle school district 61': 'Pine Eagle School District 61',\n    'port orford-langlois school district 2j': 'Port Orford-Langlois School District 2cj',\n    'prospect school district 59': 'Prospect Sd 59',\n    'sherman school district 1': 'Sherman County School District',\n    'st. paul school district 45': 'St Paul School District 45',\n    'yamhill-carlton school district 1': 'Yamhill Carlton School District 1'\n  };\n\n  // ZIP fallback for rural districts where Geocodio has no unified boundary data\n  var ZIP_FALLBACK = {\n    '97722': 'Diamond School District 7',\n    '97738': 'Double O School District 28',\n    '97736': 'Frenchglen School District 16',\n    '97720': 'Harney County School District 4',\n    '97911': 'Juntura School District 12',\n    '97710': 'South Harney School District 33',\n    '97758': 'Suntex School District 10'\n  };\n  // 97904 has two districts — check address to distinguish\n  function zipFallback(zipCode, address) {\n    var z = zipCode.replace(/\\D/g,'').substring(0, 5);\n    if (z === '97904') {\n      var addrLower = (address || '').toLowerCase();\n      return addrLower.includes('pine creek') ? 'Pine Creek School District 5' : 'Drewsey School District 13';\n    }\n    return ZIP_FALLBACK[z] || null;\n  }\n\n  var API_KEY = '7767539621e75615e9661226368f988601676e3';\n\n  // Prevent double-attach if script loads from multiple locations\n  if (window._districtLookupAttached) return;\n  window._districtLookupAttached = true;\n\n  var lastLookup = '';\n  var lookupTimer = null;\n\n  function findField(name) {\n    var el = document.querySelector('[name=\"' + name + '\"]');\n    if (el) return el;\n    var iframes = document.querySelectorAll('iframe');\n    for (var i = 0; i < iframes.length; i++) {\n      try {\n        var doc = iframes[i].contentDocument || iframes[i].contentWindow.document;\n        if (doc) { el = doc.querySelector('[name=\"' + name + '\"]'); if (el) return el; }\n      } catch(e) {}\n    }\n    return null;\n  }\n\n  function matchDistrict(apiName) {\n    if (!apiName) return null;\n    var apiLower = apiName.toLowerCase();\n    // Check manual overrides first\n    if (OVERRIDES[apiLower]) return OVERRIDES[apiLower];\n    for (var i = 0; i < DISTRICTS.length; i++) {\n      if (DISTRICTS[i].toLowerCase() === apiLower) return DISTRICTS[i];\n    }\n    for (var i = 0; i < DISTRICTS.length; i++) {\n      if (apiLower.includes(DISTRICTS[i].toLowerCase()) || DISTRICTS[i].toLowerCase().includes(apiLower)) {\n        return DISTRICTS[i];\n      }\n    }\n    return null;\n  }\n\n  async function lookup() {\n    var state = findField('state_form');\n    var addr = findField('address');\n    var zip = findField('zip');\n    var dist = findField('resident_district');\n\n    if (!dist) { console.warn('[District] resident_district field not found'); return; }\n    if (!state || state.value !== 'Oregon') return;\n    if (!zip || zip.value.replace(/\\D/g,'').length < 5) return;\n\n    var q = (addr && addr.value ? addr.value + ', ' : '') + 'Oregon ' + zip.value.trim();\n\n    // Skip if we already looked up this exact query\n    if (q === lastLookup) return;\n    lastLookup = q;\n\n    console.log('[District] Looking up:', q);\n\n    try {\n      var r = await fetch('https://api.geocod.io/v1.9/geocode?q=' + encodeURIComponent(q) + '&fields=school&api_key=' + API_KEY);\n      if (!r.ok) { console.error('[District] API error:', r.status); lastLookup = ''; return; }\n      var d = await r.json();\n      var name = d?.results?.[0]?.fields?.school_districts?.unified?.name;\n      console.log('[District] API returned:', name);\n      if (name) {\n        var match = matchDistrict(name);\n        if (match) {\n          dist.value = match;\n          dist.dispatchEvent(new Event('input', {bubbles:true}));\n          dist.dispatchEvent(new Event('change', {bubbles:true}));\n          console.log('[District] ✅ Set:', match);\n        } else {\n          console.warn('[District] ⚠️ No match for:', name);\n        }\n      } else {\n        // No unified district from Geocodio — try ZIP fallback\n        var cleanZip = zip.value.replace(/\\D/g,'').substring(0, 5);\n        var addrVal = addr ? addr.value : '';\n        var fallback = zipFallback(cleanZip, addrVal);\n        if (fallback) {\n          dist.value = fallback;\n          dist.dispatchEvent(new Event('input', {bubbles:true}));\n          dist.dispatchEvent(new Event('change', {bubbles:true}));\n          console.log('[District] ✅ Set via ZIP fallback:', fallback);\n        } else {\n          console.warn('[District] ⚠️ No unified district and no ZIP fallback for:', cleanZip);\n        }\n      }\n    } catch(e) { console.error('[District] Error:', e); lastLookup = ''; }\n  }\n\n  function fire() {\n    clearTimeout(lookupTimer);\n    lookupTimer = setTimeout(lookup, 600);\n  }\n\n  function tryAttach() {\n    var zip = findField('zip');\n    var state = findField('state_form');\n    var addr = findField('address');\n    var dist = findField('resident_district');\n    if (!zip && !state) return false;\n\n    // Attach every event type that could indicate the user finished typing\n    if (zip) {\n      zip.addEventListener('blur', fire);\n      zip.addEventListener('change', fire);\n      zip.addEventListener('keyup', function(e) {\n        // Fire when ZIP is 5+ digits\n        if (zip.value.replace(/\\D/g,'').length >= 5) fire();\n      });\n      zip.addEventListener('input', function() {\n        if (zip.value.replace(/\\D/g,'').length >= 5) fire();\n      });\n    }\n    if (state) {\n      state.addEventListener('change', function() { if (state.value === 'Oregon') fire(); });\n    }\n    if (addr) {\n      addr.addEventListener('blur', fire);\n    }\n\n    console.log('[District] ✅ Attached — zip:', !!zip, 'state:', !!state, 'addr:', !!addr, 'district:', !!dist);\n    return true;\n  }\n\n  // Poll until form fields appear\n  var attempts = 0;\n  var poller = setInterval(function() {\n    attempts++;\n    if (tryAttach() || attempts > 60) {\n      clearInterval(poller);\n      if (attempts > 60) console.warn('[District] Gave up after 30s');\n    }\n  }, 500);\n\n  // Also catch HubSpot form ready\n  window.addEventListener('message', function(e) {\n    if (e.data && e.data.type === 'hsFormCallback' && e.data.eventName === 'onFormReady') {\n      setTimeout(tryAttach, 300);\n    }\n  });\n\n})();\n</script>","headElements":[{"tag":"meta","attributes":{"name":"viewport","content":"width=device-width, initial-scale=1"}},{"tag":"meta","attributes":{"property":"og:description","content":""}},{"tag":"meta","attributes":{"property":"og:title","content":""}},{"tag":"meta","attributes":{"name":"twitter:description","content":""}},{"tag":"meta","attributes":{"name":"twitter:title","content":""}},{"tag":"style","children":[{"tag":"#text","text":"a.cta_button{-moz-box-sizing:content-box !important;-webkit-box-sizing:content-box !important;box-sizing:content-box !important;vertical-align:middle}.hs-breadcrumb-menu{list-style-type:none;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px}.hs-breadcrumb-menu-item{float:left;padding:10px 0px 10px 10px}.hs-breadcrumb-menu-divider:before{content:'›';padding-left:10px}.hs-featured-image-link{border:0}.hs-featured-image{float:right;margin:0 0 20px 20px;max-width:50%}@media (max-width: 568px){.hs-featured-image{float:none;margin:0;width:100%;max-width:100%}}.hs-screen-reader-text{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}"}]},{"tag":"link","attributes":{"rel":"canonical","href":"https://support.opened.co/hs/portals/customer-portal-app/brand"}},{"tag":"meta","attributes":{"property":"og:url","content":"https://support.opened.co/hs/portals/customer-portal-app/brand"}},{"tag":"meta","attributes":{"http-equiv":"content-language","content":"en"}}],"footerElements":[{"tag":"script","attributes":{"defer":"","src":"/hs/hsstatic/content-cwv-embed/static-1.1293/embed.js"}},{"tag":"script","children":[{"tag":"#text","text":"var _hsq = _hsq || [];\n_hsq.push([\"setContentType\", \"app-page\"]);\n_hsq.push([\"setCanonicalUrl\", \"https:\\/\\/support.opened.co\\/hs\\/portals\\/customer-portal-app\\/brand\"]);\n_hsq.push([\"setPageId\", \"223742447386\"]);\n_hsq.push([\"setContentMetadata\", {\n    \"contentPageId\": 223742447386,\n    \"legacyPageId\": \"223742447386\",\n    \"contentFolderId\": null,\n    \"contentGroupId\": null,\n    \"abTestId\": null,\n    \"languageVariantId\": 223742447386,\n    \"languageCode\": \"en\",\n    \n    \n}]);"}],"attributes":{"type":"text/javascript"}},{"tag":"script","id":"hs-script-loader","attributes":{"async":"","defer":"","src":"/hs/scriptloader/45961901.js","type":"text/javascript"}},{"tag":"script","children":[{"tag":"#text","text":"var hsVars = {\n    render_id: \"dcec0bd3-62fa-47ee-97a0-6c6388402569\",\n    ticks: 1791299346133,\n    page_id: 223742447386,\n    \n    content_group_id: 0,\n    portal_id: 45961901,\n    app_hs_base_url: \"https://app.hubspot.com\",\n    cp_hs_base_url: \"https://cp.hubspot.com\",\n    language: \"en\",\n    analytics_page_type: \"app-page\",\n    scp_content_type: \"\",\n    \n    analytics_page_id: \"223742447386\",\n    category_id: 20,\n    folder_id: 0,\n    is_hubspot_user: false\n}"}],"attributes":{"type":"text/javascript"}},{"tag":"script","attributes":{"defer":"","src":"/hs/hsstatic/HubspotToolsMenu/static-1.640/js/index.js"}},{"tag":"script","children":[{"tag":"#text","text":"(function() {\n  'use strict';\n\n  var DISTRICTS = [\n    \"I don't know\",\"Adel School District 21\",\"Adrian School District 61\",\"Alsea School District 7j\",\n    \"Amity School District 4j\",\"Annex Sd 29\",\"Arlington School District 3\",\"Arock School District 81\",\n    \"Ashland School District 5\",\"Ashwood School District 8\",\"Astoria School District 1\",\n    \"Athena-Weston School District 29rj\",\"Baker School District 5j\",\"Bandon School District 54\",\n    \"Banks School District 13\",\"Beaverton School District 48j\",\"Bend-La Pine Schools\",\n    \"Bethel School District 52\",\"Blachly Sd 90\",\"Black Butte School District 41\",\n    \"Brookings-Harbor School District 17c\",\"Burnt River School District 30j\",\n    \"Butte Falls School District 91\",\"Camas Valley Sd 21j\",\"Canby School District 86\",\n    \"Cascade School District 5\",\"Centennial School District 28j\",\"Central Curry School District 1\",\n    \"Central Linn School District 552\",\"Central School District 13j\",\n    \"Chemawa Indian School District\",\"Clatskanie School District 6j\",\"Colton School District 53\",\n    \"Condon School District 25j\",\"Coos Bay School District 9\",\"Coquille School District 8\",\n    \"Corbett School District 39\",\"Corvallis School District 509j\",\"Cove Sd 15\",\n    \"Creswell School District 40\",\"Crook County School District\",\n    \"Crow-Applegate-Lorane School District 66\",\"Culver School District 4\",\"Dallas School District 2\",\n    \"David Douglas School District 40\",\"Dayton School District 8\",\"Dayville School District 16j\",\n    \"Diamond School District 7\",\"Double O School District 28\",\"Douglas County School District 15\",\n    \"Roseburg District 4\",\"Drewsey School District 13\",\"Dufur School District 29\",\n    \"Eagle Point School District 9\",\"Echo School District 5\",\"Elgin School District 23\",\n    \"Elkton School District 34\",\"Enterprise School District 21\",\"Estacada School District 108\",\n    \"Eugene School District 4j\",\"Falls City School District 57\",\"Fern Ridge School District 28j\",\n    \"Forest Grove School District 15\",\"Fossil Sd 21j\",\"Frenchglen School District 16\",\n    \"Gaston School District 511j\",\"Gervais School District 1\",\"Gladstone School District 115\",\n    \"Glendale School District 77\",\"Glide School District 12\",\"Grants Pass School District 7\",\n    \"Greater Albany Public School District 8j\",\"Gresham-Barlow School District 10j\",\n    \"Harney County School District 3\",\"Harney County School District 4\",\n    \"Harney County Union High School District 1j\",\"Harper Sd 66\",\"Harrisburg School District 7j\",\n    \"Helix School District 1\",\"Hermiston School District 8\",\"Hillsboro School District\",\n    \"Hood River County School District\",\"Huntington School District 16j\",\"Imbler School District 11\",\n    \"Ione Sd R2\",\"Jefferson County School District 509j\",\"Jefferson School District 14j\",\n    \"Jewell School District 8\",\"Grant School District 3\",\"Jordan Valley School District 3\",\n    \"Joseph School District 6\",\"Junction City School District 69\",\"Juntura School District 12\",\n    \"Klamath County School District\",\"Klamath Falls City Schools\",\"Knappa School District 4\",\n    \"La Grande School District 1\",\"Lake County School District 7\",\"Lake Oswego School District 7j\",\n    \"Central Point School District 6\",\"Lincoln County School District\",\"Long Creek School District 17\",\n    \"Lowell School District 71\",\"Mapleton School District 32\",\"Marcola School District 79j\",\n    \"Mckenzie School District 68\",\"McMinnville School District 40\",\"Medford School District 549c\",\n    \"Milton-Freewater Unified School District 7\",\"Mitchell School District 55\",\n    \"Molalla River School District 35\",\"Monroe School District 1j\",\"Monument School District 8\",\n    \"Morrow School District 1\",\"Mt Angel School District 91\",\"Multnomah Esd School District\",\n    \"Myrtle Point School District 41\",\"Neah-Kah-Nie School District 56\",\n    \"Nestucca Valley School District 101j\",\"Newberg School District 29j\",\n    \"North Bend School District 13\",\"North Clackamas School District 12\",\n    \"North Douglas School District 22\",\"North Lake School District 14\",\n    \"North Marion School District 15\",\"North Powder Sd 8j\",\"North Santiam School District 29j\",\n    \"North Wasco County School District 21\",\"Nyssa School District 26\",\"Oakland School District 1\",\n    \"Oakridge School District 76\",\"Ontario School District 8c\",\"Oregon City School District 62\",\n    \"Oregon Department Of Education\",\"Oregon Trail School District 46\",\"Paisley Sd 11\",\n    \"Parkrose School District 3\",\"Pendleton School District 16\",\"Perrydale School District 21\",\n    \"Philomath School District 17j\",\"Phoenix-Talent School District 4\",\n    \"Pilot Rock School District 2\",\"Pine Creek School District 5\",\"Pine Eagle School District 61\",\n    \"Pinehurst School District 94\",\"Pleasant Hill School District 1\",\"Plush School District 18\",\n    \"Port Orford-Langlois School District 2cj\",\"Portland School District 1j\",\n    \"Powers School District 31\",\"Prairie City School District 4\",\"Prospect Sd 59\",\n    \"Rainier School District 13\",\"Redmond School District 2j\",\"Reedsport School District 105\",\n    \"Reynolds School District 7\",\"Riddle School District 70\",\"Riverdale School District 51j\",\n    \"Rogue River School District 35\",\"Salem-Keizer School District 24j\",\n    \"Santiam Canyon School District 129j\",\"Scappoose School District 1j\",\"Scio School District 95\",\n    \"Seaside School District 10\",\"Sheridan School District 48j\",\"Sherman County School District\",\n    \"Sherwood School District 88j\",\"Silver Falls School District 4j\",\"Sisters School District 6\",\n    \"Siuslaw School District 97j\",\"South Harney School District 33\",\n    \"South Lane School District 45j3\",\"South Umpqua School District 19\",\n    \"South Wasco County School District 1\",\"Spray School District 1\",\"Springfield School District 19\",\n    \"St Helens School District 502\",\"St Paul School District 45\",\"Stanfield School District 61\",\n    \"Suntex School District 10\",\"Sutherlin School District 130\",\"Sweet Home School District 55\",\n    \"Three Rivers Josephine County School District\",\"Tigard-Tualatin School District 23j\",\n    \"Tillamook School District 9\",\"Troy School District 54\",\"Ukiah School District 80r\",\n    \"Umatilla School District 6r\",\"Union School District 5\",\"Union-Baker Esd School District\",\n    \"Vale School District 84\",\"Vernonia School District 47j\",\"Wallowa School District 12\",\n    \"Warrenton-Hammond School District 30\",\"West Linn-Wilsonville School District 3j\",\n    \"Willamina School District 30j\",\"Winston-Dillard School District 116\",\n    \"Woodburn School District 103\",\"Yamhill Carlton School District 1\",\n    \"Yoncalla School District 32\",\"Lebanon Community School District 9\"\n  ];\n\n  // Manual overrides for Geocodio names that differ from HubSpot values\n  var OVERRIDES = {\n    'three rivers school district': 'Three Rivers Josephine County School District',\n    'roseburg school district 4': 'Roseburg District 4',\n    'mckenzie school district': 'Mckenzie School District 68',\n    'john day school district 3': 'Grant School District 3',\n    'gresham-barlow school district 1j': 'Gresham-Barlow School District 10j',\n    'st. helens school district 502': 'St Helens School District 502',\n    'greater albany school district 8j': 'Greater Albany Public School District 8j',\n    'douglas county sd 4': 'Roseburg District 4',\n    'west linn school district 3j': 'West Linn-Wilsonville School District 3j',\n    'bend-la pine administrative school district 1': 'Bend-La Pine Schools',\n    'blachly school district 090': 'Blachly Sd 90',\n    'athena-weston school district 29j': 'Athena-Weston School District 29rj',\n    'milton-freewater school district 7': 'Milton-Freewater Unified School District 7',\n    'annex school district 29': 'Annex Sd 29',\n    'camas valley school district 21j': 'Camas Valley Sd 21j',\n    'cove school district 15': 'Cove Sd 15',\n    'crow-applegate-lorane sd 66': 'Crow-Applegate-Lorane School District 66',\n    'douglas county sd 15': 'Douglas County School District 15',\n    'fossil school district 21j': 'Fossil Sd 21j',\n    'harper school district 66': 'Harper Sd 66',\n    'ione school district 2': 'Ione Sd R2',\n    'lakeview school district 7': 'Lake County School District 7',\n    'mount angel school district 91': 'Mt Angel School District 91',\n    'north powder school district 8j': 'North Powder Sd 8j',\n    'north wasco school district 21': 'North Wasco County School District 21',\n    'paisley school district 11': 'Paisley Sd 11',\n    'pine-eagle school district 61': 'Pine Eagle School District 61',\n    'port orford-langlois school district 2j': 'Port Orford-Langlois School District 2cj',\n    'prospect school district 59': 'Prospect Sd 59',\n    'sherman school district 1': 'Sherman County School District',\n    'st. paul school district 45': 'St Paul School District 45',\n    'yamhill-carlton school district 1': 'Yamhill Carlton School District 1'\n  };\n\n  // ZIP fallback for rural districts where Geocodio has no unified boundary data\n  var ZIP_FALLBACK = {\n    '97722': 'Diamond School District 7',\n    '97738': 'Double O School District 28',\n    '97736': 'Frenchglen School District 16',\n    '97720': 'Harney County School District 4',\n    '97911': 'Juntura School District 12',\n    '97710': 'South Harney School District 33',\n    '97758': 'Suntex School District 10'\n  };\n  // 97904 has two districts — check address to distinguish\n  function zipFallback(zipCode, address) {\n    var z = zipCode.replace(/\\D/g,'').substring(0, 5);\n    if (z === '97904') {\n      var addrLower = (address || '').toLowerCase();\n      return addrLower.includes('pine creek') ? 'Pine Creek School District 5' : 'Drewsey School District 13';\n    }\n    return ZIP_FALLBACK[z] || null;\n  }\n\n  var API_KEY = '7767539621e75615e9661226368f988601676e3';\n\n  // Prevent double-attach if script loads from multiple locations\n  if (window._districtLookupAttached) return;\n  window._districtLookupAttached = true;\n\n  var lastLookup = '';\n  var lookupTimer = null;\n\n  function findField(name) {\n    var el = document.querySelector('[name=\"' + name + '\"]');\n    if (el) return el;\n    var iframes = document.querySelectorAll('iframe');\n    for (var i = 0; i < iframes.length; i++) {\n      try {\n        var doc = iframes[i].contentDocument || iframes[i].contentWindow.document;\n        if (doc) { el = doc.querySelector('[name=\"' + name + '\"]'); if (el) return el; }\n      } catch(e) {}\n    }\n    return null;\n  }\n\n  function matchDistrict(apiName) {\n    if (!apiName) return null;\n    var apiLower = apiName.toLowerCase();\n    // Check manual overrides first\n    if (OVERRIDES[apiLower]) return OVERRIDES[apiLower];\n    for (var i = 0; i < DISTRICTS.length; i++) {\n      if (DISTRICTS[i].toLowerCase() === apiLower) return DISTRICTS[i];\n    }\n    for (var i = 0; i < DISTRICTS.length; i++) {\n      if (apiLower.includes(DISTRICTS[i].toLowerCase()) || DISTRICTS[i].toLowerCase().includes(apiLower)) {\n        return DISTRICTS[i];\n      }\n    }\n    return null;\n  }\n\n  async function lookup() {\n    var state = findField('state_form');\n    var addr = findField('address');\n    var zip = findField('zip');\n    var dist = findField('resident_district');\n\n    if (!dist) { console.warn('[District] resident_district field not found'); return; }\n    if (!state || state.value !== 'Oregon') return;\n    if (!zip || zip.value.replace(/\\D/g,'').length < 5) return;\n\n    var q = (addr && addr.value ? addr.value + ', ' : '') + 'Oregon ' + zip.value.trim();\n\n    // Skip if we already looked up this exact query\n    if (q === lastLookup) return;\n    lastLookup = q;\n\n    console.log('[District] Looking up:', q);\n\n    try {\n      var r = await fetch('https://api.geocod.io/v1.9/geocode?q=' + encodeURIComponent(q) + '&fields=school&api_key=' + API_KEY);\n      if (!r.ok) { console.error('[District] API error:', r.status); lastLookup = ''; return; }\n      var d = await r.json();\n      var name = d?.results?.[0]?.fields?.school_districts?.unified?.name;\n      console.log('[District] API returned:', name);\n      if (name) {\n        var match = matchDistrict(name);\n        if (match) {\n          dist.value = match;\n          dist.dispatchEvent(new Event('input', {bubbles:true}));\n          dist.dispatchEvent(new Event('change', {bubbles:true}));\n          console.log('[District] ✅ Set:', match);\n        } else {\n          console.warn('[District] ⚠️ No match for:', name);\n        }\n      } else {\n        // No unified district from Geocodio — try ZIP fallback\n        var cleanZip = zip.value.replace(/\\D/g,'').substring(0, 5);\n        var addrVal = addr ? addr.value : '';\n        var fallback = zipFallback(cleanZip, addrVal);\n        if (fallback) {\n          dist.value = fallback;\n          dist.dispatchEvent(new Event('input', {bubbles:true}));\n          dist.dispatchEvent(new Event('change', {bubbles:true}));\n          console.log('[District] ✅ Set via ZIP fallback:', fallback);\n        } else {\n          console.warn('[District] ⚠️ No unified district and no ZIP fallback for:', cleanZip);\n        }\n      }\n    } catch(e) { console.error('[District] Error:', e); lastLookup = ''; }\n  }\n\n  function fire() {\n    clearTimeout(lookupTimer);\n    lookupTimer = setTimeout(lookup, 600);\n  }\n\n  function tryAttach() {\n    var zip = findField('zip');\n    var state = findField('state_form');\n    var addr = findField('address');\n    var dist = findField('resident_district');\n    if (!zip && !state) return false;\n\n    // Attach every event type that could indicate the user finished typing\n    if (zip) {\n      zip.addEventListener('blur', fire);\n      zip.addEventListener('change', fire);\n      zip.addEventListener('keyup', function(e) {\n        // Fire when ZIP is 5+ digits\n        if (zip.value.replace(/\\D/g,'').length >= 5) fire();\n      });\n      zip.addEventListener('input', function() {\n        if (zip.value.replace(/\\D/g,'').length >= 5) fire();\n      });\n    }\n    if (state) {\n      state.addEventListener('change', function() { if (state.value === 'Oregon') fire(); });\n    }\n    if (addr) {\n      addr.addEventListener('blur', fire);\n    }\n\n    console.log('[District] ✅ Attached — zip:', !!zip, 'state:', !!state, 'addr:', !!addr, 'district:', !!dist);\n    return true;\n  }\n\n  // Poll until form fields appear\n  var attempts = 0;\n  var poller = setInterval(function() {\n    attempts++;\n    if (tryAttach() || attempts > 60) {\n      clearInterval(poller);\n      if (attempts > 60) console.warn('[District] Gave up after 30s');\n    }\n  }, 500);\n\n  // Also catch HubSpot form ready\n  window.addEventListener('message', function(e) {\n    if (e.data && e.data.type === 'hsFormCallback' && e.data.eventName === 'onFormReady') {\n      setTimeout(tryAttach, 300);\n    }\n  });\n\n})();"}]}]}