<?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_1d8caf8c-f461-46e7-8ef7-e820ce3d3031">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_aba0a8d8-8557-4024-b74e-20834fb0db22">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_28867475-c043-4410-bebc-730f69d11331">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_24fc91f0-3482-4218-9059-d211608a8925">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_9c37e544-f0cb-4f97-8e32-180290510c89">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_7ecf905a-5540-4c45-b551-2f89e20ad838">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_442c8480-dacc-408d-a6b1-f10c515556b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_a856e768-0b7f-457d-a543-48b66950f106">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_3d7165fc-bb9e-4f22-a111-c0534cd3fb7e">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_2b510cfa-dbfd-4bc7-b537-28dbf7e52690">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      id="F_2b9f3c21-6a93-4c88-81f3-86b2f9dd3ca1">&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;2,615,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_1d8caf8c-f461-46e7-8ef7-e820ce3d3031"
      decimals="-3"
      id="F_25c481a7-57c4-494d-ba75-74450636b40f"
      unitRef="U_USD">2615000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
