<?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_32acea23-59e5-4c9e-a747-b1a196d57a41">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-31</startDate>
            <endDate>2026-07-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_563bac3a-bb1d-48cd-bcb3-116006942086">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_2cd6a24c-9ee8-464b-96b7-8ba11e1460ea">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_73494a37-82a4-4372-927c-464eeb3245f9">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_0f4e7e9b-eab7-4483-b27c-342aa001df0b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_469b4c4e-4751-46ba-9236-1070d2433195">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_7d7242e7-e510-4732-89ba-a376e1edcb29">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_b05843d9-0928-4685-8490-f70526c0e324">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_96df8344-7dd8-471d-bbe4-d38296922546">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_a11972d3-d4f4-458f-a04d-2e9f86e3d47d">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_32acea23-59e5-4c9e-a747-b1a196d57a41"
      id="F_34723b66-fe17-45de-bb97-56df467a654a">&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,000,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_32acea23-59e5-4c9e-a747-b1a196d57a41"
      decimals="-6"
      id="F_65ea505f-f6c1-4fd1-9260-0755f2db6623"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
