<?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_2884d20f-1406-4d9f-8ec1-9ce3ba73b940">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_4697354c-d4bb-4c9f-b8f4-93b4522e3b41">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_5a0cc9b3-6041-4e23-89f2-55f8d6f44caf">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_0f1c99f8-f790-41af-99ed-bfa3661b7de4">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_32a2eb19-f71d-4030-accd-88d9bee87c01">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_83f78eae-b172-4dab-badf-bb4d1dec3c6b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_ec1c1b5e-abbb-476a-8d62-c3f55a8861b8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_c2155120-612f-4133-bc56-d8e6954fac46">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_15b9b081-fbe6-4aa4-8421-e10da0310071">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_7ab39ded-3273-46b1-8052-ca343e430ad3">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      id="F_ef113bb6-3126-4667-917b-974eedf0519d">&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,125,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_2884d20f-1406-4d9f-8ec1-9ce3ba73b940"
      decimals="-3"
      id="F_43444652-25ba-439c-82b6-18299898c7ba"
      unitRef="U_USD">2125000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
