<?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_e50e4e3d-5e86-47ec-946c-e0b4898213e0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-08</startDate>
            <endDate>2026-05-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_0ae82a5c-9432-4dea-a7b2-9e9cbfa90858">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_d4c26c43-bdec-4430-b5f0-4abc0448b2f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_4ceb676c-68c0-4680-bfee-565b3d0e83b4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_419db1a2-835d-4ded-8c8c-89bc38ab34d6">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_e3bb106c-6678-47de-af40-83d843122d97">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_9728b45d-1fef-43ef-b05c-03370819ed29">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_8b4a732e-b9f5-454c-b929-978dbedb29ba">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_6e70cc10-7c07-42b2-805f-aa8c4abc8cec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_81c55337-a23e-42a6-b1f1-362071bf6db3">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      id="F_14ba506f-cf67-4424-a24e-0344988ab127">&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;1,064,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_e50e4e3d-5e86-47ec-946c-e0b4898213e0"
      decimals="0"
      id="F_a123004e-14bc-49a5-8bfd-da13f7bc0b50"
      unitRef="U_USD">1064000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
