<?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_b3576251-05c7-44aa-b1a8-cd757c9830ad">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_aa8a8097-8883-4614-a2cd-c77a50117a5c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_69ee807c-625c-43d9-9027-354bc3909c62">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_c3f760bf-88fa-44f6-a811-56515ea99694">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_6c6786d7-69c5-47e3-97ae-4523776c7dfe">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_04b009d3-993a-4cbd-9345-ecfad1d1fae6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_b8c8c94b-9885-476e-9ab9-4ff325b83cc5">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_3e67abd8-eb1d-46b2-9136-596c7b4f9e63">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_2472ed0f-2e6f-4438-9e87-4b30abb580b9">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_6f5b0aeb-4a5f-4d3f-a9f1-b3cc78c67c6c">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      id="F_ef66f9c1-0304-466e-939f-b022b05d97a6">&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;11,122,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_b3576251-05c7-44aa-b1a8-cd757c9830ad"
      decimals="-3"
      id="F_7c303be4-77ec-4e14-96b6-f13fbd36c4da"
      unitRef="U_USD">11122000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
