<?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_0ba8677d-8e98-4005-8d30-996cf234ffa5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-30</startDate>
            <endDate>2026-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_ef1c95a2-44c9-4f06-bc5a-842dab1af8cb">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_636b9da9-3dc5-4f43-bbcf-5b1b20dd3dae">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_f2318265-9bb3-43c3-9955-b2ea7375f5e9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_4ac0e042-1b5b-484c-898b-af1a43598735">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_14c4a6ca-6071-4112-88ba-288d628dd007">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_9216e426-36a5-4dde-ae15-9bdfc47b24eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_5a5aab24-c9dd-4d4a-8621-327a0dbf247f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_cd7b2100-ef5e-4ec4-b52b-ddfc205bee45">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_7cdb5e02-c439-45c3-9956-861f381835c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      id="F_f31442fd-9b2c-4f48-bb1d-441eb9318b28">&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;5,698,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_0ba8677d-8e98-4005-8d30-996cf234ffa5"
      decimals="-3"
      id="F_1db01a21-0e6c-4ff9-bf26-e756afa652bd"
      unitRef="U_USD">5698000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
