<?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_d08b1b4d-7245-46a8-bccb-785cc04d4144">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_20fff03c-7d8c-4b2f-bb1c-1b7fd25ab48a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_0fddaad0-f963-4bb8-9e34-7d5594252241">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_4b922c7e-1046-4c2e-b6ae-b046ac472e0c">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_f2e52998-2c18-4c04-8cf6-87202cb3a9ce">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_b2ea8642-74cc-45d2-bb23-773c61e16943">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_8b91d52b-6608-481d-81e7-dded27424fb6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_6119044a-8f80-4059-bb9f-78d642d02cc3">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_da39ec04-8a50-47cd-baee-caac5915caee">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_d52057c5-888c-4d04-9598-497f48968b00">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      id="F_45af2d59-c7bb-4292-9b48-bc134d1e8240">&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,470,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_d08b1b4d-7245-46a8-bccb-785cc04d4144"
      decimals="-3"
      id="F_3239b933-31c2-4deb-8aa5-ded011afe60e"
      unitRef="U_USD">1470000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
