<?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_48940571-b2ee-47c9-ad82-6e3868a1dc0b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_2179816d-33ed-4b43-8704-691f0a49b320">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_5dee8949-06b3-4647-9349-a9e2e25e147e">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_e71384f3-aa6e-4f35-99c6-f31990a40769">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_a0b608de-1c12-4565-aa0f-e736adff34a6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_ff3dfd50-4a32-46f8-8f26-31ef7183ce26">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_84c90a71-6799-4ea0-b2e2-4c0675ec3fe4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_ea9f7dce-1774-4a70-a619-4c10d7a81510">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_1404c2c7-b8ac-4ff8-a266-e4e48857dc67">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_7e0f4dd8-61eb-4095-8190-5fc95ed82628">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      id="F_5673926c-e6cd-4048-b475-add80ad9e064">&lt;p style="tab-size:26.66px;font-size:12pt;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,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_48940571-b2ee-47c9-ad82-6e3868a1dc0b"
      decimals="-6"
      id="F_61c0516e-aa6b-4c8f-a10d-f0043625e6b7"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
