<?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_d6733e5c-76ed-4f3d-aa2c-a00d5af79911">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-01</startDate>
            <endDate>2026-07-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_caf95bf6-046d-4ce5-a0a1-b5216aab1d03">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_516720d5-f5d6-4635-b9f5-9e785f71baf7">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_d0c348ce-153e-4161-976a-4232d6e11018">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_57f5c422-6130-4d1c-bb44-77bfd7318c7e">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_0455e3b6-fa55-488a-b719-58208325be74">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_b148ecbc-8e0c-4830-b9da-cd78472c184f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_3974dad4-3b58-4d01-baa0-6c5f545b78ba">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_f1b43a49-1423-4fdd-b2e5-e0cb56af5b0e">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_6f5e421c-d3d7-464e-a668-d8104d02b985">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      id="F_deeb0d8f-dfdf-4104-8d28-74e5ee7e711c">&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;13,224,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_d6733e5c-76ed-4f3d-aa2c-a00d5af79911"
      decimals="-3"
      id="F_d5e89cc5-a26f-45dc-84dc-ba36a7e89199"
      unitRef="U_USD">13224000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
