<?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_2039db4e-eb76-4fd5-89dd-ea564aacc092">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_06dd4260-7127-43e6-884e-fe6c26a0a20c">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_6a7b5226-4cac-4a45-91f0-c3b3f9993f9c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_8bd4de25-977c-44c9-95a2-7fee970cc750">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_ccb93a0c-a759-43df-9881-3b90a954ce75">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_dbe8504d-7b17-4d41-b009-292f612fb846">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_d04e2326-06f5-4366-889a-6c859b36133f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_81c9b8b2-ece2-4c61-a1df-5d8b897cc859">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_0888fc9e-7c1b-46d9-b465-248b1d63f050">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_b6c0de4e-b409-4d98-9871-08236ebd755a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      id="F_af2b686f-d4fb-4955-9b19-90c10227d960">&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;33,985,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_2039db4e-eb76-4fd5-89dd-ea564aacc092"
      decimals="-3"
      id="F_bb8e147c-fde7-4c5c-a800-f4521a7963ca"
      unitRef="U_USD">33985000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
