<?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_5f4e91b4-c4f8-4b04-bf3f-119726be9203">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_e6bd3432-a963-4562-ae1a-5d80d1827696">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_e6e05423-055c-4610-98c4-b3a6eb171ce2">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_b435afc7-6689-4eb3-8e28-6d701899ad83">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_081cab07-194d-40f1-988a-bb2eab45b6a8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_9e923107-9399-4136-985b-417ffa0277b1">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_afe2c982-3a20-4f8a-b65b-5c46b8ab7797">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_a83a8684-e5ea-4689-ac47-df4d6bd4cb48">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_d8bb0d48-c7b9-4a84-8db6-e9f30a1be8a4">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_b9be8d5e-0696-42a9-be2c-817f4385eb29">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      id="F_97f384bb-ef0d-49df-bb2b-b5a6818ff833">&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;2,449,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_5f4e91b4-c4f8-4b04-bf3f-119726be9203"
      decimals="-3"
      id="F_85943fff-a67c-42cc-bddf-b7605bad8a33"
      unitRef="U_USD">2449000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
