<?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_29d0893f-9c71-46f6-894b-7dfceeecaade">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_dafd53b4-d80c-408d-bffb-f3a4fa743184">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_5c746f4a-c061-4945-908d-189f10adee14">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_660891e8-cffc-4988-9fec-0a7a89ce3664">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_f35dc811-863a-4463-ac6b-1f00e91fc3b4">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_959af9b3-8182-4c44-a403-9e0c933b198e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_7d84ab13-74b8-40f1-9ee4-5798c0a85f03">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_06d9de8c-8cc4-4622-8dc9-a6cedc42377f">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_8c8ae2d0-8824-4e07-a60a-a3d302ce6754">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_f68eeed7-c1a2-4d1c-8e1c-43f96c4deb6b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_29d0893f-9c71-46f6-894b-7dfceeecaade"
      id="F_3135a64e-225f-46b0-8374-554064e1ed6c">&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,734,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_29d0893f-9c71-46f6-894b-7dfceeecaade"
      decimals="-3"
      id="F_712827b4-591f-4b9e-ac30-4cb7d7e57f6a"
      unitRef="U_USD">1734000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
