<?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_c3166927-3fd5-4c55-ae84-cec0f1ab2d62">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-04</startDate>
            <endDate>2026-09-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_7e9f2ec8-4801-47e3-89c0-f26895416543">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_3b8d0608-d14c-4444-a5f8-620564b73009">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_cd93f09a-0eba-45f9-921a-041d9b807969">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_1b4b6288-c9f7-43c5-bb29-73aa79c438ba">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_76e489b0-5d74-40a5-8684-c970ea863ac1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_bbbe78bf-040d-4b65-af5c-3c6013ac003f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_47dac0d4-153b-40a2-8e51-926b46780d85">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_7a282ff8-59ee-478b-939e-9da17814f17b">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_36c0e99a-b24f-4665-bf06-cc1b0b7467be">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      id="F_23bf781a-8249-4224-ba15-9bb8987a1478">&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,977,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_c3166927-3fd5-4c55-ae84-cec0f1ab2d62"
      decimals="-3"
      id="F_f86317f5-ab85-48a0-b72c-d4f4b25814db"
      unitRef="U_USD">1977000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
