<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_d2807690-93a1-4301-8e99-3d7988e7fb27">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_c46bd838-eef9-45fb-a412-9eb792a6e384">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_cbcb2dab-d5c3-4843-8d72-0b94235bd686">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_d603eea8-e726-4889-bc9c-906b35f43f4e">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_3ed4e1b3-728b-4175-bf52-6b0b50c354ce">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_68699f45-2ce0-4730-b8e2-74fb8df8ddb4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_cd397bee-7055-41ec-9463-9a35cb44ce80">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_0966171b-aa5f-42b7-a345-4b80d33301ca">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_c4fe339d-9952-4bfc-bfc4-7e0d0a4ebf9c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_c481e8c3-5482-4b57-ae32-32a1266c8009">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d2807690-93a1-4301-8e99-3d7988e7fb27"
      id="F_cfdddeee-1232-4fa2-8c38-c77dffda30b9">&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;5,260,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_d2807690-93a1-4301-8e99-3d7988e7fb27"
      decimals="0"
      id="F_7c56bbe2-7f54-4b55-83a4-bd65fc8115f4"
      unitRef="U_USD">5260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
