<?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_0b9fb08f-0b6d-47d2-b822-157140b50a5c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-23</startDate>
            <endDate>2026-06-23</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_2300fc99-63bf-4c7f-8bba-526363331e2b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_6e81ce2c-c09c-414f-824e-8ef12b5212c5">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_b2796f8e-9f27-4cd7-a377-aba0e15fc5ef">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_153dcb85-63d4-41c0-a127-e7960857b9e5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_e48a3f4f-c0cf-439d-bdaf-88d2217fef57">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_d3b4b2ed-0967-428a-8737-d41d14d3fb8c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_3fe15bd8-dd91-4a78-9e5a-4a3eaa7093c2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_add0e86c-e9ac-4b1f-98f5-b9bbaf75a835">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_2631d71f-bd23-4091-8b3c-34361334c377">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      id="F_80475855-baea-448d-b31b-9177b0c67195">&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;12,174,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_0b9fb08f-0b6d-47d2-b822-157140b50a5c"
      decimals="-3"
      id="F_7fb9cc2d-5f19-45e9-ac56-7cd49873a090"
      unitRef="U_USD">12174000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
