<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_29f6ef55-c85e-4420-bfd7-8aef59dfa880">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_a2ad0c87-9af3-47d5-9ab5-40ef28550fce">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_69031ed7-68e3-412a-8e0e-02de7693ea7f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_8a24a7a3-c348-4796-9b73-da6b668554e3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_8671f0b3-a3a3-4368-9993-53812f04b8c1">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_d9346d43-2fb3-4139-9f4f-10f819d4c543">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_01e03abd-ea26-4033-a6cd-da9ec95c9d97">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_af36a8c4-f506-4f0c-aafc-22583c2ab012">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_63b3cfc8-ee8d-46ea-8242-253530f1cbe2">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      id="F_552cc994-1683-4c3d-bcae-16a9fe314e08">&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;635,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_75699e9c-9447-4033-8f1c-0a47b2b5bd40"
      decimals="-3"
      id="F_d667c040-5914-4d29-8849-09b8e97efe89"
      unitRef="U_USD">635000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
