XML 42 R29.htm IDEA: XBRL DOCUMENT
v3.23.2

Investments - Summary of Fair Value of Available-for-Sale Investments by Type of Security (Detail) - USD ($) $ in Thousands | Jun. 30, 2023 | Dec. 31, 2022
--- | --- | ---
Schedule of Held-to-maturity Securities [Line Items] |  |
Amortized Cost | $ 731,752 | $ 857,543
Unrealized Gains |  | 108
Unrealized Losses | (6,081) | (10,528)
Fair Value | 725,671 | 847,123
Investments with a maturity of one year or less [Member] |  |
Schedule of Held-to-maturity Securities [Line Items] |  |
Amortized Cost | 579,138 | 593,211
Unrealized Gains |  | 58
Unrealized Losses | (4,929) | (8,627)
Fair Value | 574,209 | 584,642
Investments with a maturity of one to two years [Member] |  |
Schedule of Held-to-maturity Securities [Line Items] |  |
Amortized Cost | 152,614 | 264,332
Unrealized Gains |  | 50
Unrealized Losses | (1,152) | (1,901)
Fair Value | 151,462 | 262,481
U.S treasury bills [Member] | Investments with a maturity of one year or less [Member] |  |
Schedule of Held-to-maturity Securities [Line Items] |  |
Amortized Cost | 238,934 | 356,728
Unrealized Gains |  | 9
Unrealized Losses | (2,343) | (5,523)
Fair Value | 236,591 | 351,214
U.S treasury bills [Member] | Investments with a maturity of one to two years [Member] |  |
Schedule of Held-to-maturity Securities [Line Items] |  |
Amortized Cost | 142,850 | 116,290
Unrealized Gains |  | 14
Unrealized Losses | (1,050) | (915)
Fair Value | 141,800 | 115,389
U.S agency securities [Member] | Investments with a maturity of one year or less [Member] |  |
Schedule of Held-to-maturity Securities [Line Items] |  |
Amortized Cost | 340,204 | 236,483
Unrealized Gains |  | 49
Unrealized Losses | (2,586) | (3,104)
Fair Value | 337,618 | 233,428
U.S agency securities [Member] | Investments with a maturity of one to two years [Member] |  |
Schedule of Held-to-maturity Securities [Line Items] |  |
Amortized Cost | 9,764 | 148,042
Unrealized Gains |  | 36
Unrealized Losses | (102) | (986)
Fair Value | $ 9,662 | $ 147,092

X
- Definition Amount, before tax, of unrealized gain in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-2 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount, before tax, of unrealized loss in accumulated other comprehensive income (AOCI) on investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-2 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amortized cost of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(1)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (aa) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-2 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481830/320-10-45-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 942 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03(6)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479853/942-210-S99-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_AvailableForSaleSecuritiesDebtSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (aaa) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Subparagraph (f)(4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5A -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5A Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5A -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5A Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5A -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5A Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5B -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5B Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5B -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5B Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5B -Subparagraph (b) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5B Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5B -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5B Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5B -Subparagraph (d) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5B Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 320 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 5 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481800/320-10-50-5 + Details
Name: | us-gaap_ScheduleOfHeldToMaturitySecuritiesLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_EquitySecuritiesByIndustryAxis=rlay_InvestmentsWithMaturityOfOneYearOrLessMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_EquitySecuritiesByIndustryAxis=rlay_InvestmentsWithMaturityOfOneToTwoYearsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasurySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentAgenciesDebtSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |