<?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_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_5374c2d8-a3ee-4040-9dd7-3fe4292c0f15">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_2afd491c-be39-4e7c-9882-0ba39363f81a">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_96ffe7c4-e2c9-4712-8f57-d80619185b17">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_ba7df2f3-024b-48ea-adc8-bda965744ba2">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_25fcaed0-6092-462a-862a-3835e68b5238">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_c71cf830-e619-40df-806d-710642906d19">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_18dd2d65-6d28-4ae3-821c-e332bf775def">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_bd9a2976-8e30-47e6-b1fa-ad3be60ab72f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_2acc5b4f-6c97-4a36-8466-d2d3905d3f5e">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      id="F_fad0c8c6-4c59-4b2d-ac07-4fe6443f1c5f">&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,045,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_8857f647-6fb2-43f3-a6ea-8c9bdaf3b461"
      decimals="-3"
      id="F_3cf76342-5c7f-4fdf-a598-d3af71eea683"
      unitRef="U_USD">2045000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
