<?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_a1737735-36ca-4e60-91be-759567d5f435">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_a285eef9-6291-4cb7-a55a-d1ce55f5ca3f">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_c7297756-a81f-4958-a053-9d8fa0f97dd4">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_1ca59b8e-3b05-4094-8366-faaa39c165f9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_f96069ea-b4d3-4cb0-9141-53cc231cc750">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_605c5531-9003-4834-bb61-7373920e2c58">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_456746d4-0338-425f-8167-a9f091fb6913">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_37531365-747c-45a0-964e-e6b74777524e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_7c027696-00d3-49a6-9954-aa3ad31c841b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_eed58b5b-e509-40c0-bf1c-6dd23a6444dd">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a1737735-36ca-4e60-91be-759567d5f435"
      id="F_8b710413-3bbc-4581-9a63-7b844308593b">&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;800,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_a1737735-36ca-4e60-91be-759567d5f435"
      decimals="-3"
      id="F_9d1762d7-95f7-4de6-b25b-1e2a4f45baaf"
      unitRef="U_USD">800000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
