<?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_5f6f3183-855e-4425-bc73-bd7cc1685bec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_bfbcca31-5168-43d6-b3e2-ded254f82a60">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_eb650120-7f08-4c34-a799-1d15b943281f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_36851496-9dbf-4e69-8391-4fc88c65175a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_1d00bd8c-1f6a-4b3d-93ef-999e7560ac86">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_95e4af20-3885-4914-bcac-d53bee0c5299">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_b8cc0ef5-15fd-44bd-86d7-81212455c9ff">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_317e8d92-2cd4-48b8-890d-4376c126f983">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_42ecd180-c1c3-4cbc-923e-bc946d52928f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_3e728ee7-1e76-451e-b7a0-ef6ee7552ee7">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      id="F_df563306-e10f-471f-8fc6-efa2f15ce0af">&lt;p style="font-size:10pt;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;6,628,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_5f6f3183-855e-4425-bc73-bd7cc1685bec"
      decimals="-3"
      id="F_a264429b-8ec8-48d6-94d5-55f74af56cd3"
      unitRef="U_USD">6628000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
