<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_e8992c4f-9466-4171-aa80-20fdc8e15501">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_ca5f8923-85c0-4580-9be9-1ab07fc693f1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_02565f2d-0398-4856-8a84-08a6c5f74a92">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_b5a6e222-e707-442f-b557-11315be8f960">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_3661b18a-0f0b-4c7e-b991-1e84dbb9f379">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_ddcd4af8-a866-447a-a491-712de62211a2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_d792340e-bd43-45dc-82f7-29a9aaa3d696">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_b5499009-4404-41fb-bcde-b8a8ed3236ad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_7a2cf88b-e721-43a8-a30a-6674a1d62fa0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      id="F_01214239-dc85-4263-865e-e40437598061">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;18,235,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_7d6ff8f6-6fb9-4b0b-9fe4-6eb8a6394fa6"
      decimals="0"
      id="F_020addc5-70c9-41df-91ae-34727843e29e"
      unitRef="U_USD">18235000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
