<?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_0981238e-d754-4867-b6a2-7f722e4f5b4f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-01</startDate>
            <endDate>2026-11-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_dfa766ae-9eeb-4cf5-8723-51349ddc789f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_97587740-d745-439f-90a5-a032a1077b46">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_5a3338c6-20da-446d-b628-4ee0bfc84d81">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_06557255-13f2-4350-9f7c-ba4936701ad8">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_6295c7ea-4219-4d11-8160-da66cb850da3">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_67c89013-7065-4158-a602-b014660f2217">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_bb066d30-1627-4762-b98b-5558d2827499">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_48f759d8-c583-4706-9d53-41fb5424093a">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_afe62728-979b-4de7-a22f-f6225bbf3740">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      id="F_73c6f1c6-7b06-4a6a-8c1a-2bdfa442a10e">&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;500,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_0981238e-d754-4867-b6a2-7f722e4f5b4f"
      decimals="-3"
      id="F_76bc447d-df00-41ac-8f07-5aca7ccfe640"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
