<?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_5191b2c9-4549-468b-a819-1a7fe614fbc1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_33174c2d-9a5a-4699-a915-80bb9c14f2d8">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_5de3090d-80e7-4879-88b4-4e605e9658fb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_c693b110-fbef-4e93-9869-5d6c1d99d868">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_33153495-0ac8-4c20-8631-d9d8425e2692">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_a855b5b0-8c80-4224-9d7b-3cfe237186d3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_64a513da-1c16-49a4-b4dd-f110ebfdbd9c">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_3ea6e408-57fa-4d80-978c-e474afa4ebbf">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_35aabf37-01e5-4470-82b1-fc15a2441a5d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_6f1e06b1-66ed-49ba-a908-c55c965508a7">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      id="F_7cc04725-35ac-42ee-a5e7-c1ad7bd9272c">&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;413,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_5191b2c9-4549-468b-a819-1a7fe614fbc1"
      decimals="-3"
      id="F_3ca1f29d-5e0b-43ea-a9ea-c6b274efee24"
      unitRef="U_USD">413000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
