<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_ff3dd5b4-a668-426c-88fb-f75572bed70a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_46f56382-e442-4233-836c-774af370a114">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_873a7e78-9e19-4bdf-8ab9-595ae89641c4">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_4b3e68d7-bec4-4832-bbc9-28c03f101d23">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_5488ff89-fb93-4ccb-90ec-44575ec37a40">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_c3f1c577-854e-4781-947c-a9ad261c46f7">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_15c00391-7989-4f84-b5c3-9186109c757c">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_141e3bfb-a5b4-4111-a0e3-1554f5fc0394">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_4287c746-a01e-4f81-9b00-90d55658552c">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      id="F_90781e4b-47c4-4613-af41-05472cb891cf">&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;536,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_3ca75579-b022-4ab7-a6dd-6bf2b732f369"
      decimals="0"
      id="F_0ce97eb5-aa1e-49e9-a459-0644b27cd2c7"
      unitRef="U_USD">536000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
