<?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_0285c996-08c6-4603-b727-55fd218a9f17">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-29</startDate>
            <endDate>2026-06-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_90fba94a-4ce2-4b9e-949d-f53f535055e1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_a9a96eec-c857-45d5-80e7-cc932b46ae6e">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_0592b045-d4ec-49c1-81e3-831a4548b299">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_3047a52f-5b25-4a5d-bc99-4f775b212ba0">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_58ccbdf4-a474-4a98-a7f0-1e6bda4eb5af">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_a1dc4388-a8da-41a7-9bbd-38ecd95bc17d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_8479fee6-14e8-4522-bd4e-e0ea80496d78">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_868480a7-f272-40ad-8d85-187d98460cc8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_33776425-6ca3-4caf-bda7-4d015d18b32b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0285c996-08c6-4603-b727-55fd218a9f17"
      id="F_91f0d802-7021-4c97-83b5-b2515c338f24">&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;3,925,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_0285c996-08c6-4603-b727-55fd218a9f17"
      decimals="-3"
      id="F_95178b0e-4993-43d6-b68e-a16a20cfca3d"
      unitRef="U_USD">3925000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
